Extend admin settings search to match sub-card titles and toggle names
Maintainer thường phản hồi trong vòng 1 ngày
@paullizer đang làm issue này rồi.
Từ ngày 24/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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, primarilyfilterAdminSections(),showAllAdminSections(), andclearAdminSearch(). filterAdminSections()currently reads only.admin-nav-group,.admin-nav-tab, and.admin-nav-sectionlabel text, so card and toggle text is never considered.- Admin tab content lives in
application/single_app/templates/admin_settings.html, where cards use Bootstrapcard-headermarkup and toggles useform-check-labelelements. - 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.
- Ngôn ngữ chính
- Python
- Star
- 155
- Fork
- 116
- Merge trung bình
- 5 giờ 3 phút
- Pull request đã merge (30 ngày)
- 206
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/simplechat
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoft/simplechat#1491 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoft/simplechat#1370 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
microsoft/simplechat#1770 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Harden deployer private networking and add optional AMPLS for Commercial and GovernmentCó thể đã có người làm @paullizer đã nhận 2 ngày trước. Đang mởbug enhancement P1 security_improvement
microsoft/simplechat#1765 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
V2 bootstrap takes ~5s: optimize /api/v2/bootstrap backend and first paintCó thể đã có người làm @paullizer đã nhận 8 ngày trước. Đang mởenhancement P1 python
microsoft/simplechat#1725 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/simplechat
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
omegaup/omegaup#10353 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bot-triaged module: LrScheduler module: optimizer triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation glm5 llm-model
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/vllm-ascend#19062 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Author Page: shuai-zhao-llmĐang mởauthor-page correction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
acl-org/acl-anthology#10496 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày