748 Commits

Author SHA1 Message Date
lane-wetmore
bb54062c3d
UI: Snapshots index route (#31473)
* build out snapshots index route

* add card for loaded snapshot

* add tests

* lint fix and remove logs

* use api enum

* lint fix

* remove extra imports

* tidy

* routing updates

* update tests

* update styling

* improve types

* lint

* add copyright header

* update capability check

* pull out header

* add copyright headers

* update url

* Update ui/app/routes/vault/cluster/recovery/snapshots/snapshot.ts

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

* test + error handling updates

* update details route and add integration tests

* tidy tests and pull out header title

* lint

* test updates

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-08-13 15:07:45 -05:00
claire bontempo
7d4854d549
UI: Build dropdown filter toolbar (#31475)
* build filter toolbar component

* delete unused controllers

* rename enum and move to client count utils

* wire up filters to route query params

* update test coverage

* add support for appliedFilters from parent

* update type of ns param

* move lists to client-list page component
2025-08-12 17:41:15 +00:00
Matthew Irish
32e806f88a
[UI] - Glimmerize b64-toggle component (#31423)
* convert b64-toggle to ts and make it a glimmer component

* update usage of b64-toggle
2025-08-12 11:23:32 -05:00
claire bontempo
b0a9ad2236
UI: Generalize Clients::Table component (#31439)
* generalize test selectors

* generalize table component

* update tests, add component test

* delete unused selectors

* add coverage for yielded empty state

* update sync selector

* update to advanced table

* rename key to "namespace_path"
2025-08-11 11:36:56 -07:00
lane-wetmore
3d461150b1
add basic routes for secrets recovery (#31412)
* add basic routes for secrets recovery

* lint fix no index invocation

* hide routes in production

* update routes

* add missing route js files

* add comments and clean up

* update tests
2025-08-06 12:02:05 -05:00
claire bontempo
9507c22c45
UI: Builds template and basic page component for new client-list route (#31414)
* resolve todos

* rename chart container component

* template the client-list route

* update tests

* only render colon if items is selected

* stub clients endpoint so activity is consistent
2025-08-05 10:26:27 -07:00
claire bontempo
f04fe92b89
UI: Remove tabs for each client count type (#31393)
* delete vertical bar grouped

* delete individual routes and tabs for client count types

* add nav-bar component to hide tab in production

* first round of test updates

* skip client list tests for now

* reogranize overview tests

* fix css color for chart

* change chart styling from grid to flex

* add split view for running total chart

* update latest colors from designs

* add changelog

* rename yield blocks to be more flexible

* add conditional for description

* delete routes
2025-08-01 11:02:06 -07:00
Jordan Reimer
863ab9408c
[UI] Ember Data Migration - Auth Method Enable (#31394)
* adds form for auth method and updates mount backend form to use it

* fixes tests
2025-08-01 08:54:41 -06:00
Dan Rivera
c80c4b4180
UI: Fix externally mounted engine tooltip bug (#31382)
* adding clause for external plugin to tooltip

* fixing mouseover event

* fix check

* pulling object out of list

* fix used parameter

* adding comments

* fix

* fixing tests

* adding 1 more test

* update tooltip func, remove excess params, update tests
2025-07-30 12:01:27 -04:00
claire bontempo
3a37fe4cca
UI: Stablize control group tests (#31390)
* use hds alert component, update tests delete page objects

* move token to next row

* revert compact alert

* remove a11y overrides for control group tests
2025-07-30 08:26:18 -07:00
claire bontempo
f18a0643d3
UI: Cleanup scss color variables (#31386)
* update greys to use hds tokens

* update blue vars

* remove unused color vars

* replace remaining colors, add hex codes in commnets

* update kv rgp color

* remove color_variables file and use hds tokens directly
2025-07-29 13:13:08 -07:00
Zack Moore
e6ce95acd3
Replace codemirror 6 code editor with HDS CodeEditor component (#30188)
* Completed initial replacement of editor

* fixing ts issues

* removing codemirror modifier and deps

* working on replacing the code editor

* addressing linting concerns

* cleaning up policy-form editor

* fixing linting issues

* fixing linting issues

* fixing tests

* fixing tests

* fixing tests

* fixing tests

* fixing failing tests

* cleaning up PR

* fixing tests

* remove outdated message for navigating editor

* fix linting in tests

* add changelog

* fix tests

* update naming

* remove unused lint param + name changes

* update test selector usage

* update test selector usage

* update test selector usage

* lint fixes

* replace page object selectors

* lint fix

* fix lint

* fix lint after merge

* update tests

* remove import

---------

Co-authored-by: Lane Wetmore <lane.wetmore@hashicorp.com>
2025-07-23 11:12:20 -07:00
Jordan Reimer
8700becc45
[UI] Ember Data Migration - API Property Casing (#31325)
* updates api client vars to snake_case for custom messages

* updates api client vars to snake_case for tools

* updates api client vars to snake_case for sync

* updates api client vars to snake_case for secrets engine

* updates api client vars to snake_case for auth

* updates api client vars to snake_case for usage

* updates api client dep to point to gh repo

* fixes custom-messages service unit tests

* fixes configure-ssh test

* fixes configure-ssh test...again
2025-07-18 09:32:01 -06:00
claire bontempo
41d8301927
UI: Fix namespace picker selecting all namespaces with matching nodes (#31326)
* add test

* add changelog
2025-07-17 15:56:59 -07:00
Dan Rivera
4c828c389d
UI: Replication - fixing overflow issue on secondaries list / table (#31323)
* fixing overflow issue on secondaries lists

* add checks in tests
2025-07-17 15:05:04 -04:00
claire bontempo
6981f475c6
remove sys/namespace capabilities check for refresh button (#31308) 2025-07-17 10:06:09 -07:00
claire bontempo
0fb6c5e895
UI: Include user's root namespace in the namespace picker if it is not the true root (#31300)
* add userRootNamespace to namespace picker

* add changelog
2025-07-16 22:39:21 +00:00
Dylan Hyun
046c33bc72
[VAULT-34734] UI: Move the text input block in FormField under the HDS block (#30859)
* [UI] Updated `FormField` to use `Hds::Form::TextInput` for `type=string` and `type=number`  (#34733)

* [UI] Updated `FormField` tests for `type=string` and `type=number` (#34733)

* [UI] Fixed failing test cases from `FormField` `type=string` and `type=number` updates (#34733)

* [UI] Removed checks for this.hideLabel and this.labelString (#34733)

* [UI] Standardize test cases for `FormField` `editType=undefined` (#34733)

* [UI] Update `editType=undefined` tests to use `assert.true` (#34733)

* [UI] Update logic of isHdsFormField to align to previous template (#34733)

* Update ui/tests/integration/components/form-field-test.js

Co-authored-by: Cristiano Rastelli <public@didoo.net>

* [UI] Added `CharacterCount` to `FormField` text input (#34733)

---------

Co-authored-by: Cristiano Rastelli <public@didoo.net>
2025-07-11 14:59:45 -04:00
claire bontempo
a260fa668e
delete unused component (#31241) 2025-07-09 20:56:00 +00:00
claire bontempo
31051ef1e4
UI: Implement api service in auth components (#31085)
* change entity_id to camel casing, remove "backends" key from stored auth data

* fix tokenExpirationEpoch returning NaN, use authSuccess in auth service tests

* camel case mfa_requirement references

* refactor auth service

* implement api service for token method

* implement api service in standard auth methods

* add lookupSelf request to persistAuthData method in auht service instead of calling in components

* implement api service in oidc-jwt component

* implement api service in okta component

* implement api service in saml component

* use api service for wrapped_token query param

* remaining test updates, enterprise tests and stabilize auth helpers

* upate renew() to use new persistAuthData method, add a test

* revert as this will be addressed upstream

* rename supported-login-methods to auth-form-helpers and delete old supported-auth-backends helper, update tests

* cleanup normalize after testing mfa validation for each auth method

* update type declarations, set displayName in each method component

* stabilize redirect tests by waiting for login before asserting url

* stabilize tests

* modernize typescript syntax, move error const to util

* use mirage instead of vault server to resolve test race conditions

* fix file import
2025-07-09 10:11:23 -07:00
Jordan Reimer
75e1108750
[UI] Ember Data Migration - Auth Method List/Config (#31203)
* updates auth method list and config views to use api service

* adds capabilities checks to auth methods route

* fixes auth method config tests

* updates SecretsEngine type to Mount

* updates listingVisibility value in config test

* adds missing copyright header
2025-07-08 11:50:38 -06:00
Shannon Roberts (Beagin)
aa27ee4b0a
[VAULT-37111] UI: use general selector for textarea toggle (#31222)
* [VAULT-37111] UI: use general selector for textarea toggle

* rename data-test-text-file-textarea to data-test-masked-input to match hds component
2025-07-08 08:50:14 -07:00
Shannon Roberts (Beagin)
740107f47e
[VAULT-37110] UI: Replace data-test-text-toggle with general selector textToggle (#31175) 2025-07-07 14:17:17 -07:00
Cristiano Rastelli
bcdce39002
[VAULT-34737] UI: move the dateTimeLocal block in FormField under the HDS block (#30939)
* [UI] Updated `FormField` to use `Hds::Form::TextInput` for `editType=datetime-local` (#34737)

* [UI] Updated `FormField` tests for `editType=datetime-local` (#34737)

* [UI] Fixed failing test cases from `FormField` `datetimeLocal` updates (#34798)
2025-07-01 09:27:06 +00:00
Cristiano Rastelli
54b1fceca0
[VAULT-34798] UI: move the boolean block in FormField under the HDS block (#30771)
* [UI] Updated `FormField` to use `Hds::Form::Checkbox` for `type/editType=boolean` (#34798)

* [UI] Updated `FormField` tests for `type/editType=boolean` (#34798)

* [UI] Fixed failing test cases from `FormField` `boolean` updates (#34798)

* [UI] fixes raised in PR review (#34798)

* removed `this.labelString` guard per agreement

see https://github.com/hashicorp/vault/pull/30788

* [UI] replaced `assert.ok` with `assert.true` per code review suggestion

* updated `isHdsFormField` logic to reflect more accurately inital “logic” flow in the `form-field.hbs` template file

for context: https://hashicorp.slack.com/archives/C05DGFEBCP2/p1751023770911809

* fixed test that was erroneously changed in previous PR due to an undetected bug

the previous code was generating a `checkbox` instead of a `toggleButton`
it’s now been fixed (see previous commit)

* Update ui/lib/core/addon/components/form-field.hbs

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-06-30 16:45:35 +01:00
claire bontempo
11c179c11d
render description when multiple mounts are visible (#31115) 2025-06-26 11:09:02 -07:00
Dylan Hyun
f85a7caa4b
[VAULT-34733] UI: Move the textarea block in FormField under the HDS block (#30762)
* [UI] Updated `FormField` to use `Hds::Form::Textarea` (#34733)

* [UI] Updated `FormField` tests for `editType` of `textarea` (#34733)

* [UI] Fixed failing test cases from `FormField` `textarea` updates (#37433)

* [UI] Update if statements in `FormField` for `textarea` (#34733)

* [UI] Update `id` from attribute to argument in `FormField` `textarea` (#34733)

* [UI] Removed checks for `this.hideLabel` and `this.labelString` (#34733)

* [UI] Standardize test cases for `FormField` `editType=textarea` (#34733)

* [UI] Update `textarea` tests to use `GENERAL` selectors (#37433)

* [UI] Update `textarea` tests to use `assert.true`

* [UI] Removed unneeded `hasVisibilityToggle` argument from `textarea` (#34733)
2025-06-26 12:41:04 -04:00
Shannon Roberts (Beagin)
659f1b1ada
[VAULT-37108] UI: update toggle-input test selectors (#31087)
* [VAULT-37108] UI: update toggle-input test selectors
- update namespace-picker to data-test-button

* - replace instances of data-test-toggle-input with general selector

* - replace enableDefaultTtl() and enableMaxTtl()  with general selector

* - replace toggleJson with general selector

* - replace toggleButton with general selector

* - replace toggleTtl() with general selector

* - replace hasToggleButton() with general selector

* - replace hasTTLPicker() with general selector

* - replace toggleDiff with general selector

* fix lint error :]

* fix failing test
2025-06-26 09:18:01 -06:00
claire bontempo
b97bdc4cff
UI: Revert api service use for requests to sys/internal/ui/mounts (#31094)
* revert api service use for sys/internal/ui/mounts

* add changelog

* replace this.api.sys.internalUiListEnabledVisibleMounts with ajax request to sys/internal/ui/mounts
2025-06-25 11:22:15 -07:00
lane-wetmore
369be9cfcf
UI: A11y fix for disabled swagger interarctive (#31079)
* update disabled fields to be readonly

* add tests for a11y fix
2025-06-25 11:27:27 -04:00
lane-wetmore
39841ff7f1
UI: A11y Fixes for malformed swagger interactives (#31034)
* update caret tab index

* make copy to clipboard accessible

* update try it out description

* add tests for a11y fixes

* lint fix

* use keys util, workaround swagger input event issue, disconnect mutation observer

* lint fixes

* lint fix
2025-06-24 16:44:39 -05:00
Angel Garbarino
6cc4eae735
Address flaky tests: namespace and config-ui/messages (#31016)
* namespace and ui-config, running out of time ahhh

* fix some tests

* triple back to back runs on namespace and we're solid

* add cleanup test pollution on config-ui/messages and also remove the empty state check as we do that in the component test:

* Fix test error: "Promise rejected during "it should show the list of custom messages": _generalSelectors.GENERAL.listItem is not a function"

* fix more tests

---------

Co-authored-by: Shannon Roberts <shannon.roberts@hashicorp.com>
2025-06-23 09:12:52 -06:00
Dan Rivera
008835ba36
UI: Surface plugin version & cleanup utils (#31001)
* surface plugin version & removing mountable-auth-methods.js

* UI: Removing mountable-secret-engines.js (#30950)

* first pass, removing all related imports

* fix usage

* fix category

* fix typos

* fix more tests

* fix more tests pt2

* attempting WIF const removal

* fix wif tests, removing config consts

* fixing tests

* please

* removing fallback

* cleanup

* fix type ent test

* remove isaddon

* Revert "remove isaddon"

This reverts commit ee114197b7299711e35e3c8e5aca9694063726eb.

* adding tab click

* update case

* fix case, rename to isOnlyMountable

* fix backend form

* more test fix

* adding changelog

* pr comments

* renaming params, adding requiresADP

* updates

* updates and pr comments

* perhaps update the test
2025-06-19 15:10:09 -04:00
Shannon Roberts (Beagin)
be9111a677
[VAULT-37109] UI: Tackle data test toggle group selectors (#30982)
* [VAULT-37026] UI: Tackle data test toggle selectors

* remove shannontest debug
2025-06-17 13:52:57 -07:00
Cristiano Rastelli
b9905485d3
Fix acceptance/integration tests with modal non being closed (#30806)
* added explicit actions to close modals in acceptance/integration tests

* updated selector per recent buttons selectors refactoring
2025-06-17 16:44:44 +01:00
Jordan Reimer
2417aa9aad
[UI] Ember Data Migration - Secrets Engine (#30829)
* [UI] Ember Data Migration - Secrets Engine Resource (#30791)

* adds base factory for resources and secrets engine resource

* updates dashboard and secret-engine list route to fetch mounts from api service

* updates secret backends routes to use api service

* updates secrets engine config routes to use api service

* updates secrets backend route to use internal mounts endpoint and fixes error handling

* updates property casing in config details card component

* fixes dashboard tests

* fixes issues with engine configuration

* updates api service to only set token header if value is defined in auth service

* fixes more tests

* Update ui/app/routes/vault/cluster/secrets/backend/configuration/index.js

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>

* removes alwaysRender from publicKey field in secret engine configuration details component

* removes unused hideToggle arg from secret engine mount config template

* updates kv config route to load secret-engine model

* fixes kv config route

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>

* [UI] Ember Data Migration - Secrets Engine Forms (#30951)

* adds secrets engine form class

* updates mount-secret-backend route and form component to use secrets engine form class and api service

* updates to form class proxy for nested form data properties

* adds form classes for configurable secrets engines

* updates secrets engine config edit route and components to use form classes and api service

* adds missing copyright header

* fixes tests

* fixes type error

* updates configure-ssh component to use form class and api service

* updates configure-ssh tests

* updates configuration-wif component tests

* fixes mount secret backend and form tests

* adds method to normalize request key casing to api service

* addresses pr review feedback

* removes unused secrets engine config models, adapters and serializers (#30980)

* fixes azure config tests

* fixes more ent tests

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2025-06-16 14:29:17 -06:00
Angel Garbarino
d3a604b3bc
Continued work on standardizing button selectors (#30972)
* download-button

* remaining data-test-button-

* manual cherry pick

* more

* fix test
2025-06-13 18:47:58 -06:00
lane-wetmore
5a321b8d96
Docs: Update to Reflect Client Count Changes (#30798)
* naming updates

* start of renaming usage-metrics to client-usage

* update screenshots and remove docs for removed charts

* add redirect from usage-metrics to client-usage and rename doc file

* rename links

* add screenshot for attribution table

* update table screenshot

* update urls to new pattern

* Update website/content/docs/commands/operator/usage.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Update website/content/docs/concepts/client-count/client-usage.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Update website/content/docs/concepts/client-count/client-usage.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Update website/content/docs/concepts/client-count/client-usage.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Update website/content/docs/concepts/client-count/counting.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* Update website/content/partials/faq/client-count/tools.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

* alt text improvements + removed outdated faq section

---------

Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
2025-06-13 10:25:39 -05:00
claire bontempo
ad93d78ede
UI: Fix initial rendering of ToggleButton values for nested params (#30960)
* fix initial toggle of nested params

* use get from @ember/object

* add changelog

* add test for optionalText
2025-06-12 11:51:03 -07:00
claire bontempo
e80d0ac68c
UI: Auth test cleanup to prep for auth service refactor (#30949)
* update test helpers, export DELAY_IN_MS, make window event a helper

* simplify auth method map helpers, move page tests into separate files

* use new buttons

* finish separating page tests

* move test helpers back to relevant files

* remove redundant oidc test

* move misplaced linked block AUTH_FORM selector

* i definitely already addressed these..

* comment meant remove "trailing" forward slash...lol

* cleanup stubs
2025-06-12 09:46:45 -07:00
Shannon Roberts (Beagin)
b54aba9fd8
[VAULT-35715] UI: Namespace picker is updated after add/delete namespace (#30737)
* [VAULT-35715] UI: Namespace picker is updated after add/delete namespace

* + changelog

* pairing session updates

* fixing tests (wip)

* fix tests!

* remove meep lol

* fix one more test

* add missing test coverage

* address PR comments, enterprise tests are passing again!!

* fix lint issue
2025-06-11 10:59:16 -07:00
Angel Garbarino
a51c5ed362
Clean up button test selectors (#30694)
* clean up selectors file and then update testButton to buttonByAttr

* a lot but not really in the scheme of things

* fix component test failures

* fix acceptance test failures

* fix namespace selector

* clean up remaining tests

* another test

* last test

* small changes, but I have test failures

* a mess in custom messages, really hard to test because of test pollution.

* make data-test-submit vs data-test-save

* change other-methods to sign in with other methods

* clean up of failing test

* buttonByAttr to button

* clean up test pollution on config messages

* sweep of clean ups

* another round of small cleanups

* fix some message things, remaining oidc issue?

* use a runCmd to better delete things

* fix to amend for recent auth test changes

* remove skip
2025-06-10 16:25:34 -04:00
claire bontempo
aa32c4e2ac
UI: Add assertion to FormField for @attr.name and @model args (#30788)
* test assertion for form fields

* resuse const cars

* add tests

* remove conditionals for attr.name

* link jira VAULT-36640

* test assertion for form fields

* resuse const cars

* add tests

* remove conditionals for attr.name

* [UI] removed guard for `this.hideLabel` and `this.labelString` for migrated HDS components

* reverty copy pasta

---------

Co-authored-by: Cristiano Rastelli <public@didoo.net>
2025-06-10 10:20:37 -07:00
claire bontempo
dc0e85b625
UI: Fixes issue where backup tab was selected if they included default type (#30805)
* Fixes issue where backup tab was selected if backups include default type

* fix enterprise empty state assertion
2025-06-02 10:29:48 -07:00
claire bontempo
d82d82ef80
UI: Fix direct login link for auth mounts (#30800)
* fix typos, check for supported auth method and render direct link in display view too

* add namespace

* linebreak

* add tests
2025-06-02 09:05:04 -07:00
lane-wetmore
303c36e2c7
UI: Update Month Order to be Recent - Oldest (#30787)
* show most recent months first in option list

* update test
2025-05-30 09:20:46 -05:00
Cristiano Rastelli
d89e69de72
[VAULT-36594] UI: add missing integration tests for FormField component (#30781)
* [UI] added missing tests for `@layout` argument of `editType=radio` (#36594)

* [UI] added missing tests for `@name` argument of `editType=radio` (#36594)

* [UI] added missing tests for `@value` argument of `possibleValue` in `editType=radio`

* [UI] added missing tests for `@editDisabled` option in `editType=radio` (#36594)

* [UI] added missing tests for `@name` argument of `editType=checkboxList` (#36594)

* [UI] added missing tests for `@value` argument of `possibleValue` in `editType=checkboxList` (#36594)

* [UI] added missing tests for `@id` argument and `name` attribute of `editType=select` (#36594)

* [UI] added missing tests for `name`, `placeholder`, `autocomplete`, `spellcheck` attributes of `editType=password` (#36594)

* [UI] added back test removed in PR 30768 (#30781)

context: https://hashicorp.slack.com/archives/CA64C81U5/p1748465244375689
2025-05-29 18:36:06 +01:00
claire bontempo
65677a9e77
UI: add legend to Hds::Form::Radio::Group (#30768)
* add legend to Hds::Form::Radio::Group

* add some tests for the radio groups in the wild
2025-05-28 21:35:35 +00:00
claire bontempo
71071183a6
UI: Rename "UI Login Rules" to "UI Login Settings", revert messages link back to "Custom messages" (#30767)
* change name back to "Custom messages"

* rename to "UI Login Settings"

* fix casing

* unused seletor

* fix comment typo
2025-05-28 08:22:31 -06:00
claire bontempo
2d0587f316
UI: Improve namespace input UX (#30751)
* yield namespace input and update tests

* add refocus logic

* more tests!
2025-05-27 16:41:01 -07:00