Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Replace instances of <table> with <HDS::Table> #24257

Merged
merged 7 commits into from
Nov 27, 2023

Conversation

hashishaw
Copy link
Contributor

@hashishaw hashishaw commented Nov 27, 2023

We only had 3 places where we used the table tag, all of which are shown below with before/after:

Raft Storage

Before:
Raft storage - before
After:
Raft storage - after

DR Known Secondaries

Before:
DR secondaries - before
After:
DR secondaries - after

Performance Secondary primary clusters table

Before:
Perf secondary - before
After:
Perf secondary - after

@hashishaw hashishaw added this to the 1.16.0-rc1 milestone Nov 27, 2023
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Nov 27, 2023
Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@zofskeez zofskeez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More HDS 🎉 . Thanks for the updates!

{{#if this.useServiceWorker}}
<dd.Interactive
@href="/v1/sys/storage/raft/snapshot"
@isHrefExternal={{false}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think false is the component default

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disregard. The docs show false as default and then contradict that by saying "we add the target="_blank" and rel="noopener noreferrer" attributes to it by default".

Comment on lines -6 to -54
<PageHeader as |p|>
<p.levelLeft>
<h1 class="title is-3">
Raft Storage
</h1>
</p.levelLeft>
</PageHeader>
<Toolbar>
<ToolbarActions>
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" as |D|>
<D.Trigger
data-test-popup-menu-trigger="true"
class={{concat "toolbar-link" (if D.isOpen " is-active")}}
@htmlTag="button"
>
Snapshots
<Chevron @direction="down" @isButton={{true}} />
</D.Trigger>
<D.Content @defaultClass="popup-menu-content">
<nav class="box menu" aria-label="snapshots actions">
<ul class="menu-list">
<li class="action">
{{#if this.useServiceWorker}}
<ExternalLink
@href="/v1/sys/storage/raft/snapshot"
@sameTab={{true}}
onclick={{queue (action "downloadViaServiceWorker") (action D.actions.close)}}
>
Download
</ExternalLink>
{{else}}
<Hds::Button
@text="Download"
class="link"
{{on "click" (queue (action "downloadSnapshot") (action D.actions.close))}}
/>
{{/if}}
</li>
<li class="action">
<LinkTo @route="vault.cluster.storage-restore">
Restore
</LinkTo>
</li>
</ul>
</nav>
</D.Content>
</BasicDropdown>
</ToolbarActions>
</Toolbar>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much nicer with Hds PageHeader and Dropdown! 🎉

/>
{{else}}
<p class="has-text-grey">URL unavailable</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice adding a placeholder!

@hashishaw hashishaw disabled auto-merge November 27, 2023 19:54
@hashishaw hashishaw merged commit 83a6ffc into main Nov 27, 2023
@hashishaw hashishaw deleted the ui/VAULT-22151/replace-table branch November 27, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants