ER: Remove unused `search` id query selectors
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 88/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
assets/js/current-projects.js を開き、#search id を対象とする 3 つのセレクターを検索します。_includes/current-projects.html と比較して、その id が存在しないことを確認します。document.querySelector('#search') の出現箇所をすべて削除し、その後、JavaScript ファイルにそのようなセレクターが残っていないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 364
- フォーク
- 872
- 平均マージ
- 4日 14時間
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hackforla/website のほかの issue
-
Complexity: Small P-Feature: Projects page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
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
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
hackforla/website#8806 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Complexity: Small Feature: Infrastructure Ready for Prioritization role: back end/devOps size: 0.25pt
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
Complexity: Small Feature: Infrastructure Ready for Prioritization role: back end/devOps size: 0.25pt
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
メンテナーはふだん 2 日以内に返信
-
good first issue new-win-submission P-Feature: Wins Page role: product size: missing
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
hackforla/website#8798 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
hackforla/website の issue をすべて見る
似ている issue
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
opensearch-project/security-dashboards-plugin#2543 ·
メンテナーはふだん 1 日以内に返信
-
[quality] refresh-radar-reports.yml runs on ubuntu-latest while every other job pins ubuntu-24.04オープンagent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
godotengine/godot-website#1432 ·
-
Add: Mooz Retroオープンchannels:add check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信