695 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
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
Jordan Reimer
ed67e9e59e
[UI] Ember Data Migration - Sync Cleanup (#30634)
* removes namespace param from activation flags endpoint in api client

* updates sync activation modal to use api service

* updates sync destination sync page to use api service

* removes ember data type deps from sync engine and updates tests

* updates sync activation modal to always override namespace header in activate request
2025-05-15 11:15:18 -06:00
Jordan Reimer
771d8c6e7f
[UI] Ember Data Migration - Sync Destination Create/Edit (#30620)
* adds field group support to forms

* adds forms for sync destination types

* adds type for sync destination form

* adds readonlyParams to sync-destinations helper and error handling to findDestination util

* updates sync destinations create/edit routes to use forms

* updates sync create-and-edit component to use form class and api service

* updates sync destinations tests
2025-05-14 20:00:28 -06:00
Cristiano Rastelli
71254a4e0b
[VAULT-34808] UI: move the radio block in FormField under the HDS block (#30555)
* [UI] moved template logic for `radio` editType in `FormField` under the `isHdsField` block (#34742)

* [UI] added integration tests for `FormField` with editType=‘radio’ (#34742)

* [UI] fix broken tests (#34742)
2025-05-14 09:45:53 -06:00
Angel Garbarino
2be17aa3ea
all the changes (#30594) 2025-05-13 16:44:44 -06:00
Cristiano Rastelli
e9faec3832
[VAULT-34873] UI: improve FormField test coverage for fields migrated to HDS (#30345)
* [UI] added `data-test-form-field-doc-link` attribute to `<DocLink>` instances in `FormField` (#34873)

* [UI] renamed a few `data-test` attributes in `FormField` for consistency (#34873)

* [UI] added integration tests for `FormField` with editType='password' (#34873)

* [UI] added integration tests for `FormField` with editType='select' (#34873)

* [UI] added integration tests for `FormField` with editType='checkboxList' (#34873)

* [UI] tweakings per review comments (#34873)

* [UI] standardized template code and data attributes for `form-field` + added general selectors + updated/standardized integration tests (#34873)

* fixed a couple of broken tests (selector needed to be updated)
2025-05-13 20:59:13 +01: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
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
Jordan Reimer
23ab4d924c
[UI] Ember Data Migration - Sync Details/Secrets (#30554)
* more updates to api-client for sync

* updates sync destination-header component to use api service

* updates to sync types

* updates sync destination route to use api service

* updates sync destination mirage factory and handler

* refactors sync setup-models test helper and removes store

* refactors sync destination details route to function with api service data

* refactors sync destination secrets route to function with api service data

* adds sync destination edit route
2025-05-08 14:31:01 -06: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
Jordan Reimer
712d3338b7
[UI] Ember Data Migration - Sync Overview/Destinations (#30524)
* improves path handling in capabilities service

* converts has-capability to class helper and adds pathKey and params args

* adds api service to sync engine

* updates sync types

* improves typings in paginate-list util

* adds api client error handling to error page component

* adds api utils for sync

* updates sync overview route and page component to use api service

* updates sync destinations route and page component to use api service

* adds missing copyright header

* fixes paginate-list regression

* fixes return type for has-capability helper

* Apply suggestions from code review

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

* fixes page error tests

* resolves suggestions from review

* fixes has-capability usage errors

* fixes comment in capabilities service

* more test fixes

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2025-05-07 10:53:56 -06: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
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
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
Jordan Reimer
e18b0485f5
[UI] Ember Data Migration - Config UI Engine (#30238)
* WIP updating config-ui engine to use api service and form class

* updates form-field component to support false values for radio types

* updates api-error-message util to log out error in dev env

* fixes issues in custom messages create and edit workflows

* fixes issues in api service

* updates capabilities handling

* updates to custom messages form

* removes store from custom messages tests

* removes store as dependency from config-ui engine

* removes commented out code in messages route

* updates orderedKeys to displayFields in messages page component

* removes unneccesary method var from message create-and-edit component

* removes comment about model in message details page
2025-04-28 16:09:11 -06: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
Evan Moncuso
21f772d9d1
Chore/remove ember svg jar (#30181)
* bump hds to latest version

* disable ember-svg-jar

* fix mfa

* remove ember svg jar dep and cleanup

* cleanup old svgs and fix icon test

* add changelog

* rebuild yarn.lock
2025-04-23 09:27:01 -07:00
Dan Rivera
2d582c2e74
UI: Fix for failing DB role test (#30324)
* separate tests for edit checks

* removing unneeded lines
2025-04-22 16:52:56 -04:00
Angel Garbarino
938b6ecdf1
Address UI Flaky Tests (#30298)
* remove setTimeout from mfa and login test

* remove transit flaky as that has largely been resolved by a glimmerization effort

* some improvements but one remaining flaky test

* skip the flaky thing

* whatever I give up

* got it, thank you shannon for the pair

* remove flaky note

* revert test name

* revert to setTimeout

* Update oidc-auth-method-test.js

* Update oidc-auth-method-test.js

* combine imports

* cleanup
2025-04-21 15:49:40 -06:00
Dan Rivera
ceb9c6d062
UI: Add password field to static role creation page (#30275)
* adding password to static roles

* adding check for password rotation to disable password edit

* update field type and tests

* adding changelog

* replacing readonly with enableinput, added disable arg, test updates

* update to unless

* PR comments
2025-04-21 16:10:58 -04: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
Dan Rivera
0df36cd8a6
UI: Changing polarity for toggle logic with skip import rotation for roles (#30055)
* changing polarity for skip import toggles

* changelog & test fix

* tests

* adding to workflow test

* rename

* add opposite check and remove default

* connection change

* using beforeEach for static tests
2025-03-31 11:12:15 -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
claire bontempo
b4364238c7
UI: Remove slash from check for admin namespace path (#30046)
* update test

* update test
2025-03-27 14:47:51 +00: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
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
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
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
Cristiano Rastelli
2679c42e56
[VAULT-34704] UI: update FilterInput component to use Hds::Form::TextInput (#29946)
* [UI] replaced internal implementation of `FilterInput` with equivalent `Hds::Form::TextInput::Base` (#34704)

* [UI] updated `FilterInput` instances to use correct `Hds::Form::TextInput::Base` arguments/API (#34704)

* [UI] updated `FilterInput` integration tests (#34704)
2025-03-19 20:06:16 +00:00