VAULT-41682 - Updates dashboard cards to use HDS:ApplicationState instead of EmptyState (#12041) (#12047)

* VAULT-41682 - EmptyState update to dashboard cards

* fix - spelling



---------

Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Vault Automation 2026-01-28 11:58:05 -05:00 committed by GitHub
parent 47b000674b
commit 84cf94dba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 47 additions and 42 deletions

View File

@ -6,7 +6,7 @@
<Hds::Card::Container @hasBorder={{true}} class="has-padding-l" data-test-card="quick-actions">
<h2 class="title is-4">Quick actions</h2>
{{#if this.filteredSecretsEngines}}
<div class="has-top-margin-m has-bottom-margin-m">
<div class="has-top-margin-m has-bottom-margin-l">
<Hds::Form::SuperSelect::Single::Field
@options={{this.filteredSecretsEngines}}
@selected={{this.selectedEngine}}
@ -85,25 +85,26 @@
</div>
{{/if}}
{{else}}
<EmptyState
@title="No mount selected"
@message="Select a mount above to get started."
data-test-empty-state="no-mount-selected"
/>
<Hds::ApplicationState @align="center" data-test-empty-state="no-mount-selected" as |A|>
<A.Header data-test-empty-state-title @title="No mount selected" />
<A.Body data-test-empty-state-message @text="Select a mount above to get started." />
</Hds::ApplicationState>
{{/if}}
{{else}}
<EmptyState
@title="Welcome to quick actions"
@message="Access secret engine actions easily. Enable a compatible secret engine (such as database, KV version 2, or PKI) to get started."
data-test-empty-state="quick-actions"
>
<Hds::Link::Standalone
@icon="chevron-right"
@iconPosition="trailing"
@text="Enable a secrets engine"
@route="vault.cluster.secrets.enable"
<Hds::ApplicationState @align="center" data-test-empty-state="quick-actions" as |A|>
<A.Header data-test-empty-state-title @title="Welcome to quick actions" />
<A.Body
data-test-empty-state-message
@text="Access secret engine actions easily. Enable a compatible secret engine (such as database, KV version 2, or PKI) to get started."
/>
</EmptyState>
<A.Footer data-test-empty-state-actions as |F|>
<F.LinkStandalone
@icon="chevron-right"
@iconPosition="trailing"
@text="Enable a secrets engine"
@route="vault.cluster.secrets.enable"
/>
</A.Footer>
</Hds::ApplicationState>
{{/if}}
</Hds::Card::Container>

View File

@ -86,18 +86,20 @@
</small>
</div>
{{else}}
<EmptyState
@title="Replication not set up"
@message="Data will be listed here. Enable a primary replication cluster to get started."
class="has-top-margin-m"
data-test-empty-state="replication"
>
<Hds::Link::Standalone
@icon="chevron-right"
@iconPosition="trailing"
@text="Enable replication"
@route="vault.cluster.replication"
<Hds::ApplicationState @align="center" data-test-empty-state="replication" class="has-top-margin-l" as |A|>
<A.Header data-test-empty-state-title @title="Replication not set up" />
<A.Body
data-test-empty-state-message
@text="Data will be listed here. Enable a primary replication cluster to get started."
/>
</EmptyState>
<A.Footer data-test-empty-state-actions as |F|>
<F.LinkStandalone
@icon="chevron-right"
@iconPosition="trailing"
@text="Enable replication"
@route="vault.cluster.replication"
/>
</A.Footer>
</Hds::ApplicationState>
{{/if}}
</Hds::Card::Container>

View File

@ -77,18 +77,20 @@
{{/if}}
{{else}}
<EmptyState
@title="No secrets engines enabled"
@message="Secret engines will be listed here. Enable a secret engine to get started."
class="has-top-margin-m"
data-test-empty-state="secrets-engines"
>
<Hds::Link::Standalone
@icon="chevron-right"
@iconPosition="trailing"
@text="Enable a secrets engine"
@route="vault.cluster.secrets.enable"
<Hds::ApplicationState @align="center" data-test-empty-state="secrets-engines" class="has-top-margin-l" as |A|>
<A.Header data-test-empty-state-title @title="No secrets engines enabled" />
<A.Body
data-test-empty-state-message
@text="Secret engines will be listed here. Enable a secret engine to get started."
/>
</EmptyState>
<A.Footer data-test-empty-state-actions as |F|>
<F.LinkStandalone
@icon="chevron-right"
@iconPosition="trailing"
@text="Enable a secrets engine"
@route="vault.cluster.secrets.enable"
/>
</A.Footer>
</Hds::ApplicationState>
{{/if}}
</Hds::Card::Container>