354 Commits

Author SHA1 Message Date
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
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
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
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
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
Cristiano Rastelli
82fe418053
[VAULT-34821] UI: update showHelpText getter in FormField to return the helpText string (#29986)
* sample help text

* [UI] renamed `hasHelpText` getter to `helpTextString` for consistency with similar `labelString` getter (#34821)

* [UI] inverted `helpTextString` logic for consistency with `labelString` getter (#34821)

* [UI] updated `FormField` template code to follow changes introduced (#34821)

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

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

---------

Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2025-03-21 21:58:57 +00:00
Cristiano Rastelli
ba45d586f3
[VAULT-34729] UI: move the password block in FormField under the HDS block (#29962)
* [UI] updated logic in `isHdsFormField` of `FormField` to include the `password` use case (#34742)

* [UI] added large comments as visual code delimiters (#34729)

* [UI] moved template logic for `password` in `FormField` under the `isHdsField` block  (#34742)

* [UI] added `on input` handler to update model with the input value when is updated

* 

---------

Co-authored-by: Angel Garbarino <argarbarino@gmail.com>
2025-03-21 20:03:00 +00:00
Cristiano Rastelli
4850cb0779
[VAULT-34742] UI: move the generic select block in FormField under the HDS block (#29960)
* [UI] updated logic in `isHdsFormField` of `FormField` to include the generic `select` use case (#34742)

* [UI] moved template logic for generic `select` in `FormField` under the `isHdsField` block  (#34742)
2025-03-20 23:37:56 +00: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
Cristiano Rastelli
00ef06ac58
[VAULT-34792] UI: refactor FormField template code to move checkboxList under the newly added HDS block (#29958)
* [UI] moved template logic for `checkboxList` of `FilterInput` under the `isHdsField` block (#34792)

* [UI] added handling of `label/helpText/subText/docLink` + validation errors message for `checkboxList` (#34792)

(now that is not anymore handled by the shared initial/final blocks of code)

* [UI] moved `validationWarning` block out of the conditional so it can serve both HDS and non-HDS use cases (#34792)

* [UI] removed `has-error-border` class on validation error (not conformant with HDS specs) (#34792)
2025-03-19 17:46:56 +00:00
Cristiano Rastelli
c11dfaabc7
[VAULT-34728] UI: prepare FormField template logic for migration to HDS components (#29944)
* [VAULT-34728] UI: added `isHdsFormField` logic to the `FormField` controller

* [VAULT-34728] UI: added `isHdsFormField` logic to the `FormField` template
2025-03-19 08:37:55 +00:00
Cristiano Rastelli
0c940f8d45
[VAULT-34703] UI: update InputSearch component to use Hds::Form::TextInput (#29949)
* [UI] replaced internal implementation of `InputSearch` with equivalent `Hds::Form::TextInput::Base` (#34703)

* [UI] fixed acceptance test for `InputSearch` (#34703)

* [UI] updated selector in acceptance test for `InputSearch` (#34703)

per PR suggestion
2025-03-18 20:40:15 +00:00
Cristiano Rastelli
730119bbe4
[UI] replaced generic <input> in NavigateInput component with equivalent Hds::Form::TextInput::Base (#34702) (#29941) 2025-03-17 17:15:04 +00:00
Cristiano Rastelli
758727b190
[VAULT-34699] UI: Remove FormError component (not used) (#29930)
* [UI] removed `FormError` component (not used) (#34699)

* added changelog
2025-03-14 18:49:33 +00: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
Shannon Roberts (Beagin)
018674a798
[VAULT-33969] UI: replace readonly JsonEditor with Hds::CodeBlock (#29720)
* http://localhost:4200/ui/vault/secrets/kubernetes/kubernetes/roles/test/details readOnly JsonEditor to Hds::CodeBlock

* http://localhost:4200/ui/vault/policies/acl/create readonly JsonEditor to Hds::CodeBlock

* http://localhost:4200/ui/vault/policy/acl/default readonly JsonEditor to Hds::CodeBlock

* http://localhost:4200/ui/vault/access/oidc/scopes/test/details readonly JsonEditor to Hds::CodeBlock

* http://localhost:4200/ui/vault/access/oidc/scopes/create readonly JsonEditor to Hds::CodeBlock

* fix (some) tests

* fix remaining tests

* add changelog
2025-02-27 18:42:07 +00:00
Jordan Reimer
c1754f5f97
[UI] Types Linting (#29702)
* adds linting for types to scripts and lint staged

* fixes issue with AdapterError type

* moves lint-staged setup out of package.json and into config file

* fixes ember data store service type

* fixes route params types

* fixes model types

* fixes general type errors

* fixes ts declaration errors in js files

* adds missing copyright headers

* fixes issue accessing capabilities model properties

* ignores AdapterError import type error

* more updates to AdapterError type

* adds comment to lint-staged config

* moves ember data store type to @ember-data namespace

* updates store import

* moves AdapterError type to @ember-data namespace

* turns ember-data import eslint rule back on
2025-02-25 16:08:51 -07:00
lane-wetmore
4051cb4d4c
UI: Remove custom tag class and replace with Hds::Badge (#29475)
* replace custom tag class with Hds::Badge

* another wave of custom class replacements

* remove tag class styles and cleanup

* add changelog entry

* fix changelog name

* remove changelog entry and old styles and clean up

* remove extra classes and clean up

* one more clean up section

* update tests

* fix value check

* updated test

* update tests

* switch to code elements with specific styling and cleanup
2025-02-07 15:29:12 -06:00
claire bontempo
e7d3b60a73
fix jsdoc typo (#29513) 2025-02-06 01:04:55 +00:00
Dan Rivera
3c5ec5d3b4
UI: Fix text overflow for long Secret and Auth names (#29430)
* adding overflow class to link text

* adding separate class to fix overflow text on list & card views

* adding class to search list items to handle overflow

* adding ellipsis instead of just hidden for visual indicator

* added changelog

* updating styling to use helper classes, added child class to global style, updated changelog

* added test checks for oveflow classes
2025-01-30 11:21:49 -05:00
claire bontempo
91d88c3de1
Add UI support name constraints (#29263)
* add open api params

* support pki name constraints

* fix conditional

* revert helptextwsubtext

* fix typo

* add name constraints to sign intermediate form

* add changelog

* update test
2025-01-02 11:50:49 -06:00
Shannon Roberts (Beagin)
66470b3538
[VAULT-33207] Update Policy Modal to add isHrefExternal to External Links (#29264)
* [VAULT-33207] Update Policy Modal to add isHrefExternal to External Links

* add isHrefExternal to doc links as well as github links
2024-12-27 09:30:49 -08:00
Shannon Roberts (Beagin)
28768d5b5b
[VAULT-33207] Update Policy Modal links to use HDS, add ACL Policies "get started" link (#29254)
* [VAULT-33207] Update Policy Modal links to use HDS, add ACL Policies "get started" link

* fix failing test
2024-12-26 09:24:24 -08:00
Angel Garbarino
2b3f517076
Add Azure configuration details view (#29071)
* configuration details only changes

* azure configuration acceptance test

* clean up

* change attrs to display attrs and reuse formFields

* missed some

* clean up

* Update ui/app/helpers/mountable-secret-engines.js

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

* remove extra conditional

* fix test for oss runs

* clean up the logic for checking if the model has been configured

* remove formatTtl

* fix broken conditional

* address pr comments

* clean up clean up everybody lets clean up

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-12-10 16:21:55 -07:00
Angel Garbarino
442b6f5291
Prep for Azure WIF work (#28994)
* make things more generic

* aws to wif selector change

* secret list header cleanup

* clean up
2024-11-27 09:50:52 -07:00
Alex
42552f6303
Migrate FlightIcon to Hds::Icon (#28979)
* Migrate `FlightIcon` to `Hds::Icon`

* Update getter name for Icon component
2024-11-26 17:52:57 +00:00
Angel Garbarino
c7ca295816
Solve cntrl+f issue on KVv2 JSON details and edit views (#28808)
* initial changes need to add test coverage

* change icon

* replace original idea with hds::codeblock on kvv2 details view

* changelog

* fixing edit view by addressing viewportMargin

* fix failing test

* missedone

* Update 28808.txt

* Update json-editor.js

* test coverage

* update codeblock selector

* Update general-selectors.ts

* Update kv-data-fields.js

* Update ui/lib/core/addon/components/json-editor.js

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

* Update ui/lib/kv/addon/components/kv-data-fields.js

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

* update test name

* add default to modifier

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-11-08 18:23:01 +00:00
claire bontempo
30d4e21e88
UI: LDAP Hierarchical roles (#28824)
* remove named path adapter extension, add subdirectory query logic to adapter

* add subdirectory route and logic to page::roles component

* fix overview page search select

* breadcrumbs

* update tests and mirage

* revert ss changes

* oops

* cleanup adapter, add _ for private methods

* add acceptance test

* remove type

* add changelog

* add ldap breadcrumb test

* VAULT-31905 link jira

* update breadcrumbs in Edit route

* rename type interfaces
2024-11-06 00:52:29 +00:00
claire bontempo
7774261c15
UI: Ember upgrade: Handle deprecation router service from host (#28603)
* use alias for router injection

* update @router declarations in engine files

* fix remaining pki router imports

* dynamically set router based on owner

* address replication routers

* update markdown docs

* use non-deprecated import for getOwner

* revert out of scope changes

* add transition-to test
2024-10-08 09:01:46 -07:00
claire bontempo
05f32b69ee
UI: upgrade HDS to 4.12.0 (#28525)
* update hds to latest version

* yield dropdown Interactive text instead of use @text arg, results after running codemod

* remaining dropdown changes

* address sidebar nav IconButton deprecation, fix secret tests

* revert

* explicitly select popupmenu

* more test changes

* fix pki toggle button

* remove tracked prop in oidc client controller

* aaand more test updates

* change to tilde

* tilde yarn lock changes

* small cleanup items
2024-10-04 20:07:48 +00:00
claire bontempo
71422d4cdd
UI: Fix oidc auth method missing default_role field (#28539)
* add auth-config/oidc to openapi model helper

* alphabetize

* update maskedinput selector to be standard data-test-input

* add test

* add changelog

* fix maskedinput test and kv selector

* final textarea selector!
2024-10-01 09:21:16 -07:00
Chelsea Shaw
74c4e0bd86
UI: Update model docs (#28495)
* rename validators util into model-helpers folder

* move kmip-role-fields to model-helpers

* fill out docs

* Move database-helpers into model-helpers

* broom
2024-09-24 14:07:06 -07:00
Chelsea Shaw
1c16994bc3
UI: stabilize replication tests (#28384)
* Add specificity to replication title selectors

* Use specific selectors for replication titles in tests
2024-09-12 14:50:37 -05:00
Chelsea Shaw
e1c56a300f
UI: reorg replication (#28332)
* Add replication-overview-mode component + tests

* Move both primary view higher to template

* simplify replication-summary component

* remove replication-mode-summary

* Add jsdocs to replication-overview-mode

* fix overview-mode test

* fix page/mode-index test

* copyright

* address PR comments

* note to devs
2024-09-11 09:19:33 -05:00
Chelsea Shaw
6c270af47b
UI Remove obscured json (#28261) 2024-09-06 18:13:59 +00:00
claire bontempo
3a9db72792
UI: improve control group UX (#28232)
* wip control group fix?

* dont rely on models for capabilities;

* Revert "wip control group fix?"

This reverts commit cf3e896ba05d2fdfe1f6287bba5c862df4e5d553.

* make explicit request for data

* remove dangerous triple curlies

* cleanup template logic and reuse each-in

* remove capability checks from model

* update tests to reflect new behavior

* add test coverage

* fix mirage factory, update details tests

* test control groups VAULT-29471

* finish patch test

* alphabetize!

* does await help?

* fix factory

* add conditionals for control group error
2024-09-03 10:49:41 -07:00
Angel Garbarino
3abca46464
WIF sidebranch (#28148)
* manual cherry pick to deal with all the merge things

* changelog

* test fixes

* Update 28148.txt

* fix tests failures after main merge

* fix test failures after main merge

* Add Access Type and conditionally render WIF fields (#28149)

* initial work.

* remove access_type

* better no model logic well kind of

* rollback attrs

* remove defaults

* stopping point

* wip changing back to sidebranch

* hustling shuffling and serializing

* some of the component test coverage

* disable acces type if editing

* test coverage

* hide max retries that sneaky bugger

* cleanup

* cleanup

* Update root-config.js

* remove flash message check, locally passes great but on ci flaky

* clean up

* thank you chelsea

* test clean up per enterprise vs community

* address pr comments

* welp a miss add

* UI (sidebranch) WIF Issuer field (#28187)

* Add type declaration files for aws config models

* use updated task syntax for save method on configure-aws

* fix types on edit route

* fetch issuer on configure edit page if aws + enterprise

* track issuer within configure-aws component

* add placeholder support on form-field

* Add warning if issuer changed from previous value or could not be read

* cleanup

* preliminary tests

* dont use while loop so we can test the modal

* tests

* cleanup

* fix tests

* remove extra tracked value and duplicate changed attrs check

* modal footer

---------

Co-authored-by: Angel Garbarino <argarbarino@gmail.com>

* Display issuer on Configuration details (#28209)

* display issuer on configuration details

* workflow complete, now on to testing

* handle issuer things

* fix all the broken tests things

* add test coveragE:

* cleanup

* rename model/adapter

* Update configure-aws.ts

* Update aws-configuration-test.js

* 90 percent there for pr comments

* last one for tonight

* a few more because why not

* hasDirtyAttributes fixes

* revert back to previous noRead->queryIssuerError

---------

Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2024-08-29 12:17:51 -06:00
Angel Garbarino
dbc542efd7
AWS refactor, move to one form (#28125)
* initial changes with no test coverage

* test coverage and fixes

* additional edit config test coverage

* clean up

* clean up

* Address pr feedback

* welp missed an await

* missed

* take back

* Update configure-ssh-test.js
2024-08-21 14:25:18 -06:00
claire bontempo
30da9aef46
UI: Build KV v2 overview page (#28106)
* move date-from-now helper to addon

* make overview cards consistent across engines

* make kv-paths-card component

* remove overview margin all together

* small styling changes for paths card

* small selector additions

* add overview card test

* add overview page and test

* add default timestamp format

* cleanup paths test

* fix dateFromNow import

* fix selectors, cleanup pki selectors

* and more selector cleanup

* make deactivated state single arg

* fix template and remove @isDeleted and @isDestroyed

* add test and hide badge unless deactivated

* address failings from changing selectors

* oops, not ready to show overview tab just yet!

* add deletionTime to currentSecret metadata getter
2024-08-16 14:40:23 -07:00
claire bontempo
eaf47c4c00
UI: Build kv-patch-editor form (#28060)
* build kv-patch-editor component

* add tests

* use validator helpers in kv-object-editor

* update class name in version-history

* remove is- from css class

* move whitespace warning and non-string values warning messages to validators util

* break editor component into smaller ones

* fix typo

* add docs

* rename files and move to directory, add tests for new templates

* fix some bugs and add tests!

* fix validation bug and update tests

* capitalize item in helper

* remove comment

* and one more comment change
2024-08-14 11:52:33 -07:00
Angel Garbarino
09cc71d6dc
SSH configuration test coverage (#28021)
* initial changes

* test selector and duplicate tests clean up

* check for flashDanger

* rename to make it easier to parse

* clean up selector names

* clean up

* add component test coverage

* remove true
2024-08-08 20:44:12 -06:00
Angel Garbarino
1f982bf13a
Restructure SSH and AWS configuration screens (#27831)
* setup the toggle to display mount configuration options

* whew.. getting there. aws only, borked for ssh

* another round, better than before

* masked things

* changelog

* fix broken oss test

* move to component

* handle ssh things and cleanup

* wip test coverage

* test coverage for the component

* copywrite header miss

* update no model error

* setup configuration aws acceptance tests

* update CONFIURABLE_SECRET_ENGINES

* acceptance tests for aws

* ssh configuration

* clean up

* remove comment

* move to confirm model before destructuring

* pr comments

* fix check for ssh config error

* add message check in api error test

* pr comments
2024-07-29 19:52:42 -06:00
claire bontempo
fe18e6ca87
UI: add subkey request to kv v2 adapter (#27804)
* add subkey request to ui

* WIP kv subkey display

* revert subkey changes to see view in ui

* finish subkey component

* remove reamining user facing changes

* update jsdoc

* add subtext depending on toggle

* finish tests

* organize adapter tests into modules

* add adapter tests

* woops, make beforeEach

* encode paths and add wrap secret test

* reword subkey component

* extract subkey path logic into util

* extract subkey path logic into util

* rename yielded subtext block
2024-07-29 13:12:40 -07:00
Angel Garbarino
5787fa20f6
Prep for SSH and AWS configuration changes (#27869)
* move non user facing changes to another pr

* remove non-relevant test coverage

* address pr fixes

* Update mountable-secret-engines.js

* Update secrets-engine-mount-config.ts

* clean up

* put back console because of tests and use debug instead

* missed one

* blah fix
2024-07-26 10:47:33 -06:00
claire bontempo
e88b6b117e
UI: update overview card action handling (#27785)
* yield all overview card actions

* yield remaining overview card content to the correct block

* close overview card in test

* fix typo

* fix route typo, add selectors where needed

* fix class typo add one more selector
2024-07-16 12:40:35 -07:00
Angel Garbarino
66e78db425
Mask obfuscated Secret sync create/edit fields (#27348)
* wip not working on edit view

* changelog

* vercel and fix tests

* need conditional to not break all the things:

* create test coverage and add for other obfustcaed fonts, still missing one.

* Update 27348.txt

* remove meep

* comment

* test coverage
2024-06-18 14:20:22 -06:00
Chelsea Shaw
67fc1fab4c
UI: Fix aws credential generation sending ttl value when off (#27366)
* do not send ttl if unset for aws credentials

* test coverage

* remove comment

* add changelog

* Update aws test, cancel button is secondary
2024-06-05 19:56:54 +00:00
Noelle Daley
87f693c1f8
UI: convert mount backend code to TS (#27349)
* chore: convert form-field-groups to TS

* chore: convert mount-backend-form to TS

* chore: convert mount-backend-form to TS, option 2

* chore: co-locate mount-backend-form template
2024-06-04 21:40:55 +00:00
Angel Garbarino
20382fab26
UI bug fix: Kubernetes Role filter replace with explicit input filter (#27178)
* initial changes for new component template only handle actions in parent

* add changelog

* fix current kubernetes test

* component test

* remove concurrency task

* make div and not form due to testing things

* address pr feedback

* Update ui/tests/integration/components/filter-input-explicit-test.js

Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>

* Update filter-input-explicit-test.js

* fix tests

* make it a form and fix test:

---------

Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
2024-06-03 09:39:41 -06:00