fix(navbar): remove truncated page search hint from search button

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-10-07 17:59:10 +02:00
co-authored by Claude Opus 5.5
parent 1abcd3dad8
commit d6a36c068f
2 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -65,8 +65,7 @@
class="menu-item justify-between !bg-neutral-100 dark:!bg-white/[0.04] hover:!bg-neutral-200 dark:hover:!bg-white/[0.07] !text-fg-faint">
<span class="flex items-center gap-2.5 min-w-0">
<x-reicon name="search" class="menu-item-icon" />
<span class="menu-item-label truncate" :class="collapsed && 'lg:hidden'">Search<span
x-show="hasPageSearch" x-cloak class="text-[11px] opacity-70"> page &amp; global</span></span>
<span class="menu-item-label truncate" :class="collapsed && 'lg:hidden'">Search</span>
</span>
<kbd class="px-1.5 py-0.5 text-[11px] font-medium text-fg-faint bg-neutral-200 dark:bg-white/[0.06] rounded-md border border-transparent dark:border-white/5"
:class="collapsed && 'lg:hidden'" x-text="modKeyLabel + 'K'"></kbd>
@@ -21,7 +21,7 @@ it('shows the settings of the open resource in the command palette and switches
$page = visit(applicationConfigurationUrl($this->stack['project'], $this->stack['environment'], $this->application));
$page->assertSee('Palette App')
->assertMissing('[aria-label="Filter settings"]')
->assertVisible('button:visible:has-text("Search page & global")');
->assertVisible('button:visible[title^="Search this page"]');
$page->script("window.dispatchEvent(new Event('open-global-search'))");
@@ -49,7 +49,7 @@ it('does not show the scope switch on pages without a settings sidebar', functio
loginAndSkipBoarding();
$page = visit('/dashboard');
$page->assertDontSee('page & global');
$page->assertMissing('button[title^="Search this page"]');
$page->script("window.dispatchEvent(new Event('open-global-search'))");
$page->assertVisible('.command-palette-input')
@@ -65,7 +65,7 @@ it('focuses the search input when the palette is opened from the mobile menu', f
$page->assertSee('Palette App')
->click('button:visible:has-text("Open sidebar")')
->assertSee('Search page & global')
->assertVisible('button:visible[title^="Search this page"]')
->screenshot(filename: 'command-palette-mobile-menu')
->click('button:visible:has-text("Search")')
->assertVisible('.command-palette-input')
@@ -112,7 +112,7 @@ it('searches the sidebar pages of other settings pages', function (string $pageT
loginAndSkipBoarding();
$page = visit($url);
$page->assertVisible('button:visible:has-text("Search page & global")');
$page->assertVisible('button:visible[title^="Search this page"]');
$page->script("window.dispatchEvent(new Event('open-global-search'))");
$page->assertVisible('.command-palette-scope')
@@ -135,7 +135,7 @@ it('searches the sections of a page without a settings sidebar and scrolls to th
loginAndSkipBoarding();
$page = visit('/profile');
$page->assertVisible('button:visible:has-text("Search page & global")');
$page->assertVisible('button:visible[title^="Search this page"]');
$page->script("window.dispatchEvent(new Event('open-global-search'))");
$page->assertVisible('.command-palette-scope')