Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,345 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

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ả

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.
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

Mở trong Codespaces

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.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/simplechat

Tất cả issue của microsoft/simplechat

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.