[UI] VAULT-40951 Add top nav dropdown (#12027) (#12050)

* Add top nav dropdown

* Add help menu tests

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
This commit is contained in:
Vault Automation 2026-01-28 12:35:06 -05:00 committed by GitHub
parent 2eceb5650c
commit bf12f404e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -33,7 +33,17 @@
{{on "click" (fn (mut this.console.isOpen) (not this.console.isOpen))}}
{{on "click" this.trackReplToggle}}
/>
{{! TODO: insert help button }}
<Hds::Dropdown @enableCollisionDetection={{true}} data-test-dropdown="help menu" as |dd|>
<dd.ToggleIcon @icon="help" @text="help menu" />
<dd.Title @text="Help & Support" />
<dd.Interactive @href="https://developer.hashicorp.com/vault/docs">Documentation</dd.Interactive>
<dd.Interactive @href="https://developer.hashicorp.com/vault/tutorials">Tutorials</dd.Interactive>
<dd.Interactive @href="https://www.hashicorp.com/en/blog/products/vault">Blogs</dd.Interactive>
<dd.Interactive @href="https://github.com/hashicorp/vault/blob/main/CHANGELOG.md">Changelog</dd.Interactive>
<dd.Separator />
<dd.Interactive @href="https://support.hashicorp.com/hc/en-us/requests/new">Create support ticket</dd.Interactive>
</Hds::Dropdown>
<Sidebar::UserMenu />
</:utilityActions>
</Hds::AppHeader>

View file

@ -86,6 +86,7 @@ module('Integration | Component | sidebar-frame', function (hooks) {
assert.dom('.panel-open').exists('Console ui panel opens');
assert.dom('[data-test-user-menu]').exists('User menu renders');
assert.dom(GENERAL.dropdownToggle('help menu')).exists('Help menu renders');
await click('[data-test-console-toggle]');
assert.dom('.panel-open').doesNotExist('Console ui panel closes');
});