Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Extend admin settings search to match sub-card titles and toggle names

オープン
#1,345 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@paullizer がすでに取り組んでいます。

2026年8月24日 から。

評価

この issue はまだ評価されていません。

説明

enhancement P2

Summary

The admin settings search (the magnifying glass in the admin sidebar) only matches navigation labels today. Extend it so it also matches the titles of sub-cards inside each tab and the names of individual toggles/switches, so admins can find a specific setting by the name they actually see on the settings surface.

User Value

Admins usually know the name of the setting they want (for example a specific toggle), not the nav group or tab it lives under. Today searching for that name returns "No settings found", so the admin has to click through tabs and scan cards manually. Matching card titles and toggle names makes the search work the way admins expect and cuts the time to locate a setting across a large admin surface.

Proposed Behavior

  • Search continues to match nav group labels, tab labels, and section labels as it does now.
  • Search additionally matches sub-card titles rendered inside each admin tab.
  • Search additionally matches toggle/switch labels (the visible setting names).
  • A match on a card title or a toggle name surfaces the owning tab (and section, where one exists) in the sidebar, revealing and expanding its group so the match is never hidden behind a collapsed group.
  • Matched entries are highlighted using the existing search highlight treatment.
  • Clearing or closing the search restores the normal browsing state, exactly as it does now.
  • The existing "No settings found for ..." message only appears when nothing matches across all searched text.

Acceptance Criteria

  • Searching a sub-card title surfaces and highlights the tab/section that contains that card.
  • Searching a toggle name surfaces and highlights the tab/section that contains that toggle.
  • Existing group/tab/section matching behavior is unchanged.
  • Matches inside collapsed groups are revealed rather than left hidden.
  • Clearing the search restores persisted group expansion and removes all highlights.
  • "No settings found" only shows when there are genuinely no matches.
  • Functional test added under functional_tests/ covering card-title and toggle-name matching.
  • Admin documentation updated if the search behavior is described there.

Notes

Relevant implementation context:

  • Search logic lives in application/single_app/static/js/admin/admin_sidebar_nav.js, primarily filterAdminSections(), showAllAdminSections(), and clearAdminSearch().
  • filterAdminSections() currently reads only .admin-nav-group, .admin-nav-tab, and .admin-nav-section label text, so card and toggle text is never considered.
  • Admin tab content lives in application/single_app/templates/admin_settings.html, where cards use Bootstrap card-header markup and toggles use form-check-label elements.
  • Card titles and toggle labels are in the tab panes rather than the sidebar, so this likely needs an index built from the settings content mapped back to the owning tab/section, rather than extending the existing sidebar-only text scan.
  • Any new browser JavaScript must be served from a local SimpleChat static asset per the repo's local browser assets rule.
主要言語
Python
スター
157
フォーク
117
平均マージ
4時間 19分
マージ済み PR(30日)
200

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/simplechat のほかの issue

microsoft/simplechat の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。