749 Commits

Author SHA1 Message Date
Vault Automation
24cf5eef07
move client count typescript declarations to separate file (#9418) (#9429)
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-09-18 16:31:15 +00:00
Vault Automation
de3d4453a3
UI: Improve formatting of API errors (#9330) (#9390)
* format error message with bullets

* format error message with bullets

* add changelog

* update kv error messages

* address tests and add coverage

* fix tests

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-09-17 09:41:24 -07:00
Vault Automation
5ead15b8f2
UI: Add month filtering to client count dashboard (#9148) (#9255)
* delete activity component, convert date-formatters to ts

* add "month" filter to overview tab

* add test coverage for date range dropdown

* add month filtering to client-list

* remove old comment

* wire up clients to route filters for client-list

* adds changelog

* only link to client-list for enterprise versions

* add refresh page link

* render all tabs, add custom empty state for secret sycn clients

* cleanup unused service imports

* revert billing periods as first of the month

* first round of test updates

* update client count utils test

* fix comment typo

* organize tests

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-09-10 18:09:20 +00:00
Vault Automation
98108f8e0e
UI: Rely on sys/internal/counters/activity response to set time period for client data (#9096) (#9137)
* add error handling for permission denied

* one more for the error handling business

* remove date range alert

* add more test coverage to date formatters

* update date querying and test coverage

* one more lil cleanup

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-09-06 13:30:00 -07:00
Vault Automation
7bd975f3e1
add aria-describedby and id to non-accessible elements (#9025) (#9030)
Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
2025-09-03 15:47:28 -06:00
Vault Automation
c2823e96eb
UI: Render client export table in "Client list" tab (#8880) (#9071)
* render export activity in table by client type

* refactor filter toolbar to apply filters when selected

* finish filter toolbar refactor

* finish building client-list page

* remaing test updates from the filter-toolbar refactor

* WIP tests

* finish tests for export tab!

* add test for bar chart colors

* reveal client list tab

* add changelog

* filter root namespace on empty string or "root"

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-09-03 00:24:00 +00:00
Vault Automation
db994695e0
Backport UI: Reorganize client components into ce/main (#8826)
* UI: Reorganize client components (#8742)

* remove complex logic from running totals component

* move byMonthNewClients getter to overview

* organization: remove unused @versionHistory, update tests

* rename namespaceLabels getter

* refactor filter-toolbar to manage drodown Sets

* add search bar to filter toolbar

* make export request

* finish adding search logic to dropdown

* rename route method

* move typescript declarations because all of the client ones are in client-count-utils

* add error template for failed export request

* update tests

* stub activity export adapter method instead of trying to mock readable stream

* lint

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
2025-09-02 15:54:52 -07:00
Vault Automation
2b469deeca
UI: Update client count overview table and add filtering (#8663) (#9057)
* rename query params to match keys from api response

* move type guard check to util

* update color scheme

* remove passing selected namespace to export activity data request

* remove namespace and mount filter toolbar

* update response, sort by client count number

* remove default page size for testing

* implement table and filters in overview tab

* remove old query params

* cleanup unused args

* revert page header changes

* update mirage, remove month from utils

* update client count utils

* one more color!

* reset table to page 1;

* workaround to force Hds::Pagination::Numbered to update when currentPage changes

* add empty state test for no attribution

* delete unused methods

* add test for new utils

* add changelog

* rename changelog

---------

Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
2025-09-02 13:43:02 -07:00
Vault Automation
ec0ca21dec
[UI] VAULT-37386 Plugin management: General Settings Route + Templates (#8726) (#8801)
* Move components and routes over to new PR

* Move components to secrets-engine folder

* Use native FormData

* Update params that are passed in

* Add loading state

* Add comments

* Update jsdoc description

* Remove unused action

* Remove debugger

* Fix linting errors

* Add version card component and fix merge conflict issues

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2025-08-21 15:32:42 +00:00
lane-wetmore
04295060d1
remove readonly attr once element is ready for input (#31502) 2025-08-15 11:47:37 -05:00
claire bontempo
a607fb181c
UI: wrap ember-power-select- overrides so Hds::SuperSelect is usable (#31492)
* wrap ember-power-select overrides in search-select css selector

* move class accidentally applied to nested block

* make renderInPlace default to true
2025-08-13 18:01:10 -07:00
Angel Garbarino
b0d8f4f1be
UI Bug fix: Fix DR Secondary view (#31478)
* test coverage and the fix

* not working

* fix failing test

* fix another test

* changelog

* the correct changelog number
2025-08-13 11:16:46 -06: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
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
Matthew Irish
970975cfa4
[UI] - Colocated components in addons (#31413)
* core: run colocated components codemod

* kmip: run colocated components codemod

* replication: run colocated components codemod

* core: remove manual setting of templates with setComponentTemplate

* run prettier
2025-08-04 08:02:27 -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
c7102065c8
reinstitutes api migration reversions (#31347) 2025-07-22 11:57:24 -06:00
Jordan Reimer
4a76fdce59
updates login settings api vars to snake_case (#31336) 2025-07-18 12:09:28 -06: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
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
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
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
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
claire bontempo
ab830995b2
UI: Fix login settings list view if names include an underscore (#31150)
* revert api service use in login settings list view

* add changelog

* update list view

* update error text assertion

* restart tests
2025-07-01 09:30:04 -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
8da4386cac
UI: Fixes kv v2 secret overview for failed subkeys policy check for secrets with underscores (#31136)
* default subkeyData to an empty object

* add changelog and extra check

* m rewrite test stubbing capabilities intead
2025-06-27 22:13:24 +00: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
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
Jordan Reimer
a6ab9bed1d
[UI] Ember Data Migration - Form Type Updates (#31011)
* updates type handling for forms

* fixes validation in aws and ssh config forms

* fixes issue with missing sync destination name
2025-06-19 10:03:09 -06: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
Jordan Reimer
a4c869b049
regnerates client after updating gen script (#30997) 2025-06-17 13:39:38 -07: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
5e6516ad83
Fix failing ent test (#30985)
* fix transform submit issues

* fix and clean up replication

* left overs

* build waiter for namespace capabilities check to show button, hoping it helps with test flaky issues
2025-06-16 19:21:12 +00: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
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
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
370beb6946
UI: Adds custom login settings link to empty state (#30923)
* add link to empty state

* add "UI"
2025-06-09 12:40:12 -07:00
lane-wetmore
15a5358db5
UI: Update Swagger Title Element (#30888)
* add h1 page title and update styling
2025-06-06 12:39:09 -05:00
claire bontempo
2feeaa907e
UI: Update namespace key to namespace_path (#30848)
* change namespace to namespace_path

* VAULT-36846 link jira

* update login settings tests

* fix details param

* update namespace param

* add comment
2025-06-05 12:52:26 -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
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