Extend admin settings search to match sub-card titles and toggle names
Los mantenedores suelen responder en 1 día
@paullizer ya está trabajando en esto.
Desde el 24/8/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 157
- Forks
- 117
- Merge medio
- 5 h 3 min
- PR fusionados (30 d)
- 206
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/simplechat
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
microsoft/simplechat#1491 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
microsoft/simplechat#1370 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
microsoft/simplechat#1770 ·
Los mantenedores suelen responder en 1 día
-
Harden deployer private networking and add optional AMPLS for Commercial and GovernmentPosiblemente ocupada @paullizer la tomó hace 4 días. Abiertobug enhancement P1 security_improvement
microsoft/simplechat#1765 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
V2 bootstrap takes ~5s: optimize /api/v2/bootstrap backend and first paintPosiblemente ocupada @paullizer la tomó hace 9 días. Abiertoenhancement P1 python
microsoft/simplechat#1725 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/simplechat
Issues similares
-
bug Size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
oposs/repo-infra#93 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Graphify-Labs/graphify#4546 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
521xueweihan/HelloGitHub#4025 ·