ER: Remove unused `search` id query selectors
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend
Línea de trabajo
Abre assets/js/current-projects.js y busca los tres selectores que apuntan al id #search; compáralo con _includes/current-projects.html para confirmar que ese id no está presente. Elimina todas las apariciones de document.querySelector('#search') y, después, verifica que no queden selectores de ese tipo en el archivo JavaScript.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Emergent Requirement - Problem
In assets/js/current-projects.js, there are three query selectors that select an id named search. However, in _includes/current-projects.html, there is no id for search.
We must remove any query selectors for search in assets/js/current-projects.js since it is an unused id.
Issue you discovered this emergent requirement in
- #8466
- Issue was pointed out in this comment for the PR of the original issue
Date discovered
9/19/2026
Did you have to do something temporarily
- YES
- NO
Who was involved
@ldaws003 @castillios
What happens if this is not addressed
Any deprecated IDs may continue to bloat the codebase if left unaddressed.
Resources
- Use this template to create your issue: Blank Issue Template
- Tutorial on Chrome's Dev Tools to test for mobile views: https://developer.chrome.com/docs/devtools/device-mode
Recommended Action Items
- Make a new issue
- Discuss with team
- Let a Team Lead know
Potential solutions [draft]
-
Create a small issue that lists the 3 instances of
document.querySelector('#search')and their corresponding line numbers to be removed fromassets/js/current-projects.js. -
In your issue body under the
Instructionssection, include before and after code snippets as follows:Line 105 before:
const inputEl = document.querySelector('#search-desktop') || document.querySelector('#search-mobile') || document.querySelector('#search');Line 105 after removing
document.querySelector('#search'):const inputEl = document.querySelector('#search-desktop') || document.querySelector('#search-mobile');Lines 344-348 before:
function searchEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile') || document.querySelector('#search'); let searchTerm = input ? input.value : '';Lines 344-348 after removing
document.querySelector('#search'):function searchEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile'); let searchTerm = input ? input.value : '';Lines 376-380 before:
function searchCloseEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile') || document.querySelector('#search'); if (input) input.value=""; }Lines 376-380 after removing
document.querySelector('#search'):function searchCloseEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile'); if (input) input.value=""; } -
After listing implementation details, include an action item to test and verify that the changes still work by performing a search in both mobile and desktop views on the Projects and Projects-Check pages
-
Ensure your issue labels match this parent ER (with the exception of
Issue Making: Level 1andER) -
Once the overall issue has been drafted, in the sidebar under Relationships, add this ER as a parent to your issue
-
Review and if ready, apply the
ready for merge teamlabel
- Lenguaje dominante
- JavaScript
- Estrellas
- 364
- Forks
- 873
- Merge medio
- 4 d 23 h
- PR fusionados (30 d)
- 11
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hackforla/website
-
Complexity: Small P-Feature: Projects page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
Complexity: See issue making label epic good first issue Issue Making: Level 1 non-PR contribution P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt Status: Unassigned by Bot time sensitive
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
hackforla/website#8806 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Complexity: Small Feature: Infrastructure Ready for Prioritization role: back end/devOps size: 0.25pt
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
Complexity: Small Feature: Infrastructure Ready for Prioritization role: back end/devOps size: 0.25pt
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
good first issue new-win-submission P-Feature: Wins Page role: product size: missing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
hackforla/website#8798 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de hackforla/website
Issues similares
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
stac-utils/stac-fields#42 ·
-
[sec-check] SVG remote-reference gate misses src attributes, link hrefs and bare-string @importAbiertoagent/security hive/hosted-available-lke648397-260827-5n31 security
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Fix #3381 does not fix #3343: watch() returns the ref, not the value, so setup() never re-runsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Add: Eurosport 1 PolskaAbiertochannels:add check:passed
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días