651 Commits

Author SHA1 Message Date
Dan Rivera
ca778930d0
UI: Create engine list view into separate component (#30393)
* pulling engine list view into separate component

* add header

* add header x2

* rename and add test

* copyright

* removing the unnecessary, updating tracked

* tests

* adding tests

* fix tests

* wrap in enterprise?

* fix line

* add import

* fix tests pls

* move tests around

* cleanup

* some fixes
2025-05-19 18:15:07 -04:00
lane-wetmore
cdbb0c49cc
UI: Vault update client count charts to show new clients only (#30506)
* increase bar width, show new clients only, add timestamp to header, update bar color

* remove extra timestamps, switch to basic bar chart

* update docs and styling

* remove unneeded timestamp args

* show new client running totatls

* initial test updates

* update test

* clean up new client total calc into util fn

* bits of clean up and todos

* update tests

* update to avoid activity call when in CE and missing either start or end time

* update todos

* update tests

* tidying

* move new client total onto payload for easier access

* update more tests to align with copy changes and new client totals

* remove addressed TODOs

* Update comment

* add changelog entry

* revert to using total, update tests and clean up

* Update ui/app/components/clients/page/counts.hbs

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

* remove duplicate charts and update descriptions

* update tests after removing extra charts

* tidy

* update instances of byMonthActivityData to use byMonthNewClients and update tests

* Update ui/app/components/clients/running-total.ts

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

* update chart styles

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-05-19 15:57:32 -05:00
claire bontempo
6964c093e7
UI: Make single method views consistent, add max width (#30660)
* update single method to match single tab view

* add max-widht

* update tests

* convert page component to typescript

* add azure to icons, update custom-login mirage scenario

* update assertion count
2025-05-19 08:57:45 -05:00
lane-wetmore
e7d37c6cce
address todos (#30652) 2025-05-16 15:31:56 -05:00
Angel Garbarino
fdbbe1cf7e
add timeout for saml and update selector (#30642) 2025-05-15 17:58:21 -04:00
lane-wetmore
9998650de4
UI: Update TOTP QR default size and hide when 0 (#30636)
* update default qr size, hide when 0 and add test

* update test
2025-05-15 12:30:24 -05:00
Shannon Roberts (Beagin)
52aa1e0fc5
[VAULT-35871] UI: Address design UI feedback on namespace picker (#30571)
* [VAULT-35871] UI: Address design UI feedback on namespace picker

* remove unused css class

* dynamic width based on namespace length; not help messages

* handle long namespace name - truncate the second line

* hide/show message element so that it doesn't affect the layout while getting the width.

* add copyright header to scss file

* address PR comments & additional design feedback

* fix syntax error

* address more design feedback: use small buttons
2025-05-12 15:52:20 -07:00
claire bontempo
e8c196aa62
UI: Update template helpers and cleanup component args (#30580)
* make displayName a global helper

* rename authTabTypes to visibleMountsByType

* remove superfluous arg

* move all of mount displaying to component

* rename hasMountData to isVisibleMount, update comment
2025-05-12 11:13:24 -07:00
claire bontempo
c893d8c52b
Attempt to stabilize flaky saml test (#30570)
* stabilize saml test

* add loading icons
2025-05-09 20:13:46 +00:00
lane-wetmore
ddd34fdbc5
UI: CE Datepicker (#30488)
* CE date picker and header changes

* update test

* add changelog and update empty component css

* update modal values from args

* update modal copy

* header changes to add docs and move edit button

* move + update test

* Update ui/app/components/clients/date-range.ts

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

* Update ui/app/components/clients/date-range.ts

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

* refactor modal state and update docs

* update tests

* update modal copy

* Update changelog/30488.txt

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

* update date parsing, docs link copy and tidy

* update var name for clarity

* add date range test to check for disallowing current month selection

* update tests to reflect disallowal of current month (or beyond) date selection

* move ce header into page header comp and update tests

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-05-09 12:26:43 -05:00
Jim Wright
5ee33d47ba
[UI] VAULT-35614 review reporting phase 1 dashboard design changes (#30538)
* Update reporting addon

* Update usage page data mappings

Remove display name mapping per design review

* Update after feedback from design

Copywrite headers

* Remove the old name mapping test from the usage page

* Update tooltips to have periods

Update namespaces tooltip
2025-05-09 09:33:09 -07:00
claire bontempo
f730905313
UI: Move preselected auth type logic to Auth::FormTemplate (#30563)
* move preset logic to form template because it was confusing having it in the parent

* rename variable
2025-05-09 08:32:45 -07:00
Angel Garbarino
27cbe2f168
Flaky test and info-table-row test selectors (#30525)
* selector things and addressing flakiness in secret-test

* replace and update the data test selectors for info-table-row

* fix a selector

* skip the replication test that borks it all, I have a follow up ticket and replication works still.

* remove the uneeded data-test-div thing

* missed one

* fix replication selector

* fix ci test failures

* pull in clicktrigger

* update transit test
2025-05-08 11:54:32 -06:00
claire bontempo
9832c90037
UI: Implement accessible auth form components (#30500)
* UI: Move `wrapped_token` login functionality to route (#30465)

* move token unwrap functionality to page component

* update mfa test

* remove wrapped_token logic from page component

* more cleanup to relocate unwrap logic

* move wrapped_token to route

* move unwrap tests to acceptance

* move mfa form back

* add some padding

* update mfa-form tests

* get param from params

* wait for auth form on back

* run rests

* UI: Add MFA support for SSO methods (#30489)

* initial implementation of mfa validation for sso methods

* update typescript interfaces

* add stopgap changes to auth service

* switch order backend is defined

* update login form for tests even though it will be deleted

* attempt to stabilize wrapped_query test

* =update login form test why not

* Update ui/app/components/auth/form/saml.ts

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>

---------

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>

* Move CSP error to page component (#30492)

* initial implementation of mfa validation for sso methods

* update typescript interfaces

* add stopgap changes to auth service

* switch order backend is defined

* update login form for tests even though it will be deleted

* attempt to stabilize wrapped_query test

* =update login form test why not

* move csp error to page component

* move csp error to page component

* Move fetching unauthenticated mounts to the route (#30509)

* rename namespace arg to namespaceQueryParam

* move fetch mounts to route

* add margin to sign in button spacing

* update selectors for oidc provider test

* add todo delete comments

* fix arg typo in test

* change method name

* fix args handling tab click

* remove tests that no longer relate to components functionality

* add tests for preselectedAuthType functionality

* move typescript interfaces, fix selector

* add await

* oops

* move format method down, make private

* move tab formatting to the route

* move to page object

* fix token unwrap aborting transition

* not sure what that is doing there..

* add comments

* rename to presetAuthType

* use did-insert instead

* UI: Implement `Auth::FormTemplate` (#30521)

* replace Auth::LoginForm with Auth::FormTemplate

* first round of test updates

* return null if mounts object is empty

* add comment and test for empty sys/internal/mounts data

* more test updates

* delete listing_visibility test, delete login-form component test

* update divs to Hds::Card::Container

* add overflow class

* remove unused getters

* move requesting stored auth type to page component

* fix typo

* Update ui/app/components/auth/form/oidc-jwt.ts

make comment make more sense

* small cleanup items, update imports

* Delete old auth components (#30527)

* delete old components

* update codeowners

* Update `with` query param functionality (#30537)

* update path input to type=hidden

* add test coverage

* update page test

* update auth route

* delete login form

* update ent test

* consolidate logic in getter

* add more comments

* more comments..

* rename selector

* refresh model as well

* redirect for invalid query params

* move unwrap to redirect

* only redirect on invalid query params

* add tests for query param

* test selector updates

* remove todos, update relevant ones with initials

* add changelog

---------

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
2025-05-08 09:58:20 -07:00
Angel Garbarino
cf30401602
Fix Firefox headless test (#30517)
* fix json editor for firefox headless

* Update json-editor-test.js

* fix a11y failure that we were hitting on headless—likely a firefox vs chrome difference as it is not happing on ci

* remove concurrency, not needed from backend list disable action.

* attempt to stabilze mfa timeout issues

* rename disable selector and refactor a flaky test
2025-05-05 18:42:37 -07:00
Shannon Roberts (Beagin)
fe9f18b7f2
[VAULT-34216] UI: Namespace picker feature branch (#30490) 2025-05-05 16:12:36 -07:00
Jaired Jawed
1150bc2c87
Replace e.keyCode with e.key (#30493)
* remove e.keyCode in favor of e.key

* remove key-codes.js

* add changelog

* update to satisfy pr comments

* changes

* changes
2025-05-05 10:06:52 -07:00
lane-wetmore
1e16abd3cc
UI: Update remaining copyright headers (#30504)
* update header formats for missed sidebranch files

* update more headers that did not fit format
2025-05-02 16:47:47 -05:00
lane-wetmore
9c8d8e8013
UI: Update Enterprise Client Count Datepicker (#30349)
* date picker changes (mostly) for ent client counts

* Move edit modal button + padding

* only show start time in dropdown and add changelog

* remove unused variable and update toggle width

* remove unnecessary period end dates

* tidy

* update tests

* Update changelog/30349.txt

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

* improve date logic

* add export button back in, re-arrange header, update dropdown

* update when date is shown

* add default for retention months

* update tests and remove unnecessary tests

* account for retention months that are not whole periods

* update logic to show end date on export modal

* update exported file name

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-05-01 11:42:58 -05:00
Jordan Reimer
38396b5882
[UI] API Service Error Parsing (#30454)
* adds error parsing method to api service

* replaces apiErrorMessage util instances with api service parseError

* removes apiErrorMessage util and tests

* removes ApiError type

* fixes issue in isLocalStorageSupported error handling
2025-04-30 11:44:19 -06:00
claire bontempo
ba3f7363ae
PR: Set autocomplete="off" for new auth fields (#30444)
* set autocomplete to off

* add comment

* update test
2025-04-29 12:36:48 -07:00
claire bontempo
138e805cb0
UI: Build SAML auth component (#30435)
* initial saml component build

* cleanup, oops!

* remove unused vars, add check for login running

* initial round of tests

* poll out polling logic into separate method

* convert to typescript

* add test for insecure context

* remove unrelated comment
2025-04-29 12:24:21 -07:00
claire bontempo
bdf9c4efd5
UI: Smoke test and add mfa validation support for standard methods (#30424)
* =VAULT-34544 userpass

* update args for okta and oidc-jwt

* add todo

* VAULT-34551 tested github login

* VAULT-34550 tested radius login

* VAULT-34545 tested ldap login

* test token
2025-04-28 12:49:27 -07:00
claire bontempo
88f4180fcc
UI: Consolidates form parsing logic to base.ts component (#30397)
* stuck tests

* consolidate form parsing logic
2025-04-25 14:58:09 -07:00
claire bontempo
28f0f22490
UI: Builds OIDC-JWT component (#30371)
* finish okta auth method

* convert to ts

* move login fields down

* rename arg to prep for mfa business

* build oidc-jwt auth component

* add tests for oidc-jwt component

* add loading and button text states depending on config

* cleanup error handling, prep for ts

* convert to typescript

* minor cleanup items

* add comments
2025-04-25 10:12:31 -07:00
Jordan Reimer
3cc24fbecb
[UI] API Client Update (#30380)
* regenerates api client

* updates systemReadUtilizationReport api method to generateUtilizationReport

* updates VoidResponse interface to camelCase keys

* fixes issue in api-client VoidApiResponse

* updates tools components and tests to camel api response keys

* test fixes

* fixes more tests
2025-04-25 10:36:23 -06:00
Dan Rivera
6010dfabe9
UI: Cleanup and update selectors in Secret Engine tests (#30382)
* a whole lot of cleanup across test files

* fix selectors

* fix tests 2

* redo fix

* changing selector

* changelog

* rename class

* remove changelog
2025-04-25 12:07:25 -04:00
claire bontempo
03fbde820b
UI: Build Okta auth method component (#30316)
* finish okta auth method

* convert to ts

* move login fields down

* rename arg to prep for mfa business
2025-04-23 11:06:19 -07:00
Jim Wright
188e0c727d
[UI] Mount vault-reporting components (#30261)
* Reporting generated files

* Update vault reporting addon (#30264)

* Update yarn.lock based on main

* Update vault-reporting addon

* Mount reporting components

* Rename route and page component based on review feedback

Add docs to component

* Add page style to import vault-reporting style

* Add header to new page style
2025-04-23 10:41:16 -07:00
claire bontempo
b00d986be7
UI: Assume default auth path if custom path is not provided (#30300)
* add default path and update base tests

* finish okta, oidc-jwt and saml tests

* fix test name
2025-04-21 11:28:22 -07:00
lane-wetmore
55674ddd1f
UI: Add TOTP secrets engine (#29751)
* TOTP secrets in the web UI
---------

Co-authored-by: Moritz Pflanzer <moritz@pflanzer.eu>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: Shannon Roberts (Beagin) <beagins@users.noreply.github.com>
2025-04-17 12:59:45 -05:00
claire bontempo
d7e2b7bcd8
Auth test selector cleanup (#30283)
* first pass of selector cleanup

* fix control group test
2025-04-17 17:38:57 +00:00
claire bontempo
c4cfa371c1
UI: Build Auth::FormTemplate (#30257)
* move auth tests to folder

* polish auth tests

* build auth::form-template component

* add components for other supported methods

* add comments, add tests

* convert to typesript

* conver base.js to typescript

* use getRelativePath helper

* fix logic for hiding advanced settings toggle, use getter for selecting tab index

* update tests

* how in the heck did that happen

* add punctuation to comments, clarify var name

* update loginFields to array of objects

* update tests

* add helper text and custom label tests

* woops, test was in the beforeEach block
2025-04-17 08:36:00 -07:00
Jordan Reimer
681a3b8563
[UI] Ember Data Migration - Form Class (#30232)
* moves validators from model-helpers to forms directory

* creates validate util and updates model-validations directory to use it

* adds form and field classes

* updates validation types

* updates validators import in test

* adds readme for forms

* Update ui/app/utils/forms/validate.ts

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>

---------

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
2025-04-15 09:35:56 -06:00
claire bontempo
784d8ff581
UI: Glimmerize AuthJwt (#30130)
* glimmerize auth-jwt

* update asserton count

* update jwt acceptance test

* simplify stubbed popup

* remove references to this.window

* remove waitFor, will add back if necessary

* wip tests

* finish auth-jwt integration tests

* finish acceptance tests

* temp skip unit tests

* Revert "temp skip unit tests"

This reverts commit 24ed7c9de8f37a597ef1be28b0f3856278b041bb.

* temp skip unit tests

* remove loading management in parent

* polish integration tests, add final acceptance test, revert while loops

* refactor window helper and address small component cleanup items
2025-04-02 17:10:49 -07:00
Dan Rivera
72dbb0cb34
UI: Adding warn modal for rotating a static role immediately (#30119)
* adding warn modal to static role

* changelog

* update modal text

* moved hbs, removed action, updated to action

* removing extra spacing
2025-03-31 17:57:10 -04:00
claire bontempo
c881782a52
UI: Add auth tests (#30033)
* rename page test to login form

* add username/password tests to auth page test

* add github and generalize tests

* finish standard auth types for page test

* add tests for onNamespaceInput

* fix accessibility violation

* add oidc provider qp test

* move helper into test

* move destructured arg

* address oidc auth method flakiness...maybe?

* cleanup unused fake window methods

* add comment why...

* fix diff

* fix header

* finish mfa acceptance tests move mfa selectors to folder
2025-03-28 12:45:10 -07:00
Jordan Reimer
cd0cd0a175
[UI] Ember Data Migration - Remove Tools Adapter (#30030)
* updates unwrap request in auth-form and control-group-success components to use api service

* removes tools adapter and test

* fixes tests
2025-03-26 13:51:59 -06:00
Jordan Reimer
1c95305989
[UI] Ember Data Migration - Tools Unwrap Component (#30022)
* generates new api client version with runtime changes for VoidResponse type and JSONApiResponse transformer update

* removes extractData middleware from api service

* converts tools/unwrap component to ts and updates to use api service

* another api client version with more tweaks to JSONApiResponse in runtime

* removes extractData test for api service
2025-03-25 14:45:39 -06:00
Jordan Reimer
fc60dbb3a7
converts tools/random component to ts and updates to use api service (#30019) 2025-03-25 14:45:24 -06:00
Jordan Reimer
89d398a999
converts tools/lookup component to ts and updates to use api service (#30014) 2025-03-25 14:45:11 -06:00
claire bontempo
629b04c003
UI: Separate flag and version service concerns (#30001)
* move sync activation and capabilities from flag service to version service and components

* cleanup unnecessary args

* remove permissions service

* un-nest (some) modules

* simplify overview test so logic is easier to follow

* modal test

* update service tests

* change back to 403 because maybe it is permissions related?

* fix tests running on CE

* small cleanup

* fix logic based on feedback

* add logic for hvd specifically, update cluster tests
2025-03-25 10:24:11 -07:00
Jordan Reimer
1d280b9cd7
converts tools/hash component to ts and updates to use api service (#30007) 2025-03-25 09:27:48 -06:00
claire bontempo
2dfc88f157
UI: Updates the namespace service to explicitly check for the HVD managed admin namespace (#30000)
* update namespace service to include admin namespace check

* add test

* whoops, copy pasta forgot to update assertion

* make comment clearer

* delete space
2025-03-24 12:53:02 -07:00
Jordan Reimer
e86561543a
converts tools/rewrap component to ts and removes store for api service (#30006) 2025-03-24 11:34:29 -06:00
Jordan Reimer
85afe0c3a3
[UI] Ember Data Migration - Tools Wrap Component (#29994)
* adds codemirror types

* adds api error message util

* converts tools/wrap component to ts and updates wrap request to use api service

* adds comments to api and error message utils

* adds type to html element event import
2025-03-24 10:49:48 -06:00
Dan Rivera
404356a805
UI: Add Skip password rotation field on DB connection creation (#29820)
* adding skip flag to db creation

* update field name & add default val change to static role

* transfer both fields to be toggle buttons

* add changelog

* test updates

* leftover

* test fixes

* fix tests pt2

* test pt3

* adding conditional to disable role type selection

* adding alert when overriding db default

* cleanup

* pr comments pt1 -  updates to logic, adding empty state  & form field test

* moving empty state placement

* updating form field logic for subtext, test fixes

* restructuring a bit to use a getter / eliminate separate function

* update

* fix typo, bring back tests

* fixes and cleanup
2025-03-12 12:44:32 -04:00
Jordan Reimer
df843a859a
updates copyright header formatting in hbs files (#29890) 2025-03-11 11:10:20 -06:00
Angel Garbarino
72cf813cbd
🥐Transform-edit-base: remove use in transform-template-edit and alphabet-edit (#29803)
* remove transform-edit-base from alaphabet and transform edit components

* cleanup documentation

* move hbs file to be next to js

* update this.displayErrors to this.errorMessage

---------

Co-authored-by: Shannon Roberts <shannon.roberts@hashicorp.com>
2025-03-04 08:35:34 -08:00
Dan Rivera
6b9467c568
UI: Glimmerize database/role.js and add model validations (#29754)
* glimmerize db role model

* adding validations

* updates to validators

* formatting fix

* changelog

* add validations to top fields

* updates

* added test for form validation

* updates from pr review

* remove added period

* remove extra line
2025-03-03 16:04:20 -07:00