ER: Remove unused `search` id query selectors
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 88/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Apri assets/js/current-projects.js e cerca i tre selettori che puntano all’id #search; confrontalo con _includes/current-projects.html per confermare che quell’id sia assente. Rimuovi ogni occorrenza di document.querySelector('#search'), quindi verifica che nel file JavaScript non rimangano selettori di questo tipo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- JavaScript
- Stelle
- 364
- Fork
- 873
- Merge medio
- 4g 23h
- PR unite (30g)
- 11
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hackforla/website
-
Complexity: Small P-Feature: Projects page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
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
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
hackforla/website#8806 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Complexity: Small Feature: Infrastructure Ready for Prioritization role: back end/devOps size: 0.25pt
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Complexity: Small Feature: Infrastructure Ready for Prioritization role: back end/devOps size: 0.25pt
Difficoltà 1/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni
-
good first issue new-win-submission P-Feature: Wins Page role: product size: missing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
hackforla/website#8798 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di hackforla/website
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Design only Leadership Survey SLFS
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
bcgov/digital-journeys#2293 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
tursodatabase/turso#9405 ·
I maintainer di solito rispondono entro 1 giorno
-
Toolkit
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
API Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ProjectSidewalk/SidewalkWebpage#5556 ·
I maintainer di solito rispondono entro 1 giorno