mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-27 02:05:26 +08:00
Followup e26a1175d7
Adds extra functionality and tests for the admin search modal.
* Show third level plugin config pages in search, e.g. AI Usage
* Remember last used search filters
* Allow navigating search results with keyboard, using tab or up/down
and enter to go to result
* Add a placeholder beneath search input to tell the admin what to do
* Add a full page search at `/admin/search` which can be reached from
pressing Enter on the search input
* Add specs for modal and full page search
* Change admin sidebar filter "no results found" to point to full page
search
* Add keyboard shortcut help to modal for admin search
19 lines
No EOL
594 B
Handlebars
Vendored
19 lines
No EOL
594 B
Handlebars
Vendored
<DPageHeader
|
|
@titleLabel={{i18n "admin.config.search_everything.title"}}
|
|
@descriptionLabel={{i18n "admin.config.search_everything.header_description"}}
|
|
@shouldDisplay={{true}}
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/search"
|
|
@label={{i18n "admin.config.search_everything.title"}}
|
|
/>
|
|
</:breadcrumbs>
|
|
</DPageHeader>
|
|
|
|
<div class="admin-container admin-config-page__main-area">
|
|
<div class="admin-config-area__full-width">
|
|
<AdminSearch @initialFilter={{this.filter}} />
|
|
</div>
|
|
</div> |