525 Commits

Author SHA1 Message Date
claire bontempo
19786e54b4
UI/fix stacked charts tooltip (#26592)
* update selector vertical bar basic

* WIP vertical bar stacked component

* css for bars

* update css

* remove test data

* abstract monthly data getter

* move shared functions to base component

* rename tick formatting helper

* Revert "move shared functions to base component"

This reverts commit 5f931ea6f048df204650f9b4c6ba86195fa668b4.

* fix merge conflicts

* finish typescript declarations

* update chart-helpers test with renamed method

* use timestamp instead of month

* finish typescript

* finish ts cleanup

* add charts to token tab;

* dont blow out scope

* add comments and tests

* update token test

* fix tooltip hover spacing

* cleanup selectors

* one last test!

* delete old chart
2024-04-24 21:47:07 +00:00
Chelsea Shaw
94e07771b9
UI: Add necessary params to links in PKI (#26608) 2024-04-24 19:17:54 +00:00
Angel Garbarino
069975413f
Rename feature-flag service and include activation-flags state (#26476)
* rename

* move activation-flags state to the flags service

* clean up descriptions of services

* fix naming that I missed

* Update secrets.ts

* add test coverage

* services/flags: rearrage getters

---------

Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
2024-04-22 15:37:11 -07:00
claire bontempo
4cf7a4464f
UI: add monthly new chart to sync clients tab (#26583)
* add monthly new sync counts to tab

* update tests

* update copy for token tab

* update token tab

* cleanup selector

* move copy
2024-04-22 14:55:07 -07:00
Noelle Daley
8ada0cedaf
chore: clarify total secerts === total secrets of all time (#26560) 2024-04-22 16:52:52 +00:00
claire bontempo
54304bf6f4
fix failing enterprise test (#26567)
* fix failing test

* fix attribution test modifying original array

* use .map not forEach
2024-04-19 17:19:12 -07:00
claire bontempo
17552aab7d
UI: Refactor and resuse UsageStats display template across tabs (#26562)
* refactor usage stats to use Hds::Card

* use usage stats in other tabs

* use flex row and remove verbose grid css classes

* cleanup selectors, add arg to usage stat selector

* update usage stat test

* update token tab usage stat title

* add test coverage for description and title
2024-04-19 22:14:46 +00:00
claire bontempo
7469053bac
UI: Add ACME client counts to overview tab (#26484)
* only generate 2 mounts per client type

* add acme_clients to attribution chart

* add acme clients to running total

* cleanup selectors

* add stat box to single historical month running total, update tests

* update filter subtext

* add mountpath to usage stat description, change tags from h to p

* cleanup extra divs

* remove extra clients text from cluttered stats

* update attribution test

* fix some a11y tests and update attribution counts

* fix a11y violations

* move to beforeEach?
2024-04-19 12:18:20 -07:00
claire bontempo
dd939d9a7e
UI: fix undefined csv filename (#26485)
* fix undefined file name start date

* add test coverage!

* small copy changes

* one last test!

* add changelog;
2024-04-18 11:11:23 -07:00
Noelle Daley
55241c2b09
fix: don't show an undefined error in flash msg when unsyncing (#26422)
* fix: don't show an undefined error in flash msg when unsyncing

* tests/int/secrets-test: add flash message tests
2024-04-17 10:35:41 -07:00
claire bontempo
3f19f8b0f0
UI: Add charts to ACME client count tab (#26385)
* use model returned by route model hook for ts declaration

* remove hasActivity helper

* refactor mirage so namespace totals are summed from monthly data

* add charts to acme tab

* add controller, update counts test

* add test for acme page

* selector cleanup

* update empty state handling for cc charts

* cleanup conditional logic

* add acme acceptance tests for filtering

* wrap up util updates

* finish acceptance tests

* update usage stats

* wrap up number updates from latest stubbed response
2024-04-16 20:58:54 -07:00
Chelsea Shaw
349e449d49
UI: Glimmerize replication enable form (#26417)
* Glimmerize replication controllers

* Add enable-replication-form component with tests

* use EnableReplicationForm in index and mode routes

* clean up enable action from replication-actions mixin

* fix test failure for structuredClone

* stabilize tests, remove enable action from replication-actions and replication-summary

* Update ui/lib/replication/addon/controllers/replication-mode.js

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

* address PR comments

* stabilize oidc test?

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-04-15 15:30:33 -05:00
Chelsea Shaw
52c0dc812b
UI: Dependency bumps 1.17.x (#26346)
* re-form yarn.lock, remove resolutions that are out of date. resolves:

- mout VAULT-25595 VAULT-25603
- follow-redirects VAULT-25605
- terser VAULT-25594 VAULT-25593
- minimatch VAULT-25591
- loader-utils VAULT-25216 VAULT-25590 VAULT-25589 VAULT-25588 VAULT-25587
- decode-uri-component VAULT-25586
- qs VAULT-25585
- @xmldom/xmldom VAULT-25217

* VAULT-25596 pin async in resolutions due to testem > fireworm

* VAULT-25606 pin nth-check due to ember-svg-jar

* fix typescript errors after bump

* update ember-template-lint to 6.0.0

* Add broken rules to template-eslintrc

* pin ansi-html

* remove ember-d3 in favor of specific d3 libraries we import

* add changelog
2024-04-12 22:13:45 +00:00
claire bontempo
1fe71b7840
use model returned by route model hook for ts declaration (#26374) 2024-04-11 11:12:21 -05:00
claire bontempo
f8b092c201
UI: Add acme route and tab (#26355) 2024-04-11 08:07:48 -07:00
Chelsea Shaw
82eda875dd
UI: Test reorganization (#26340) 2024-04-10 22:01:35 +00:00
claire bontempo
009702cae0
UI: Convert client count utils to typescript (#26262)
* cleanup namespaceArrayToObject method

* WIP typescript conversion

* WIP typescripted destructured block

* slowly making progress....

* WIP move all types to util type file, separate returns in formatByMonths

* namespaceArrayToObject is working?!?

* fix mirage handler not generating months when queries are after upgrade

* wow, the types are actually working omg

* add comments and update client-count-utils test

* delete old js file

* remove types from activity model

* remove comment

* reuse totalclients type to minimize places we add types

* commit file with type changes for git diff

* delete util file again

* address PR feedback and move type declarations to util file

* remove unused types

* update tests, use client helper in dashboard clients test

* remove typo

* make modifications with updated combined activity response from the backend
2024-04-09 20:53:16 +00:00
Angel Garbarino
d56f564362
Secrets Sync: only call destinations and associations if isActivated (#26299)
* conditionally call the destinations and associations in the secret route if isActivated is true

* fix overview tests

* fix

* add test coverage

* clean up

* address pr comments and break out test
2024-04-09 09:27:13 -06:00
Melanie Sumner
ce639f84b9
Bug: fixed cases where CodeMirror textarea inputs did not have associated labels (#26263)
* fixes cases where inputs did not have associated labels

* add changelog entry

* update form-field test now that json editor has label

* remove label-related TODOs from other tests

---------

Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
2024-04-05 08:49:42 -05:00
claire bontempo
d8e6ed1c5b
Add acme_clients to mirage and client count utils (#26232)
* remove yarn script that no longer works in yarn 3

* delete other deprecated yarn script

* add acme_clients to mirage handler and utils

* consolidate client names

* revert changes to homogenizeClientNaming, wait until confirmation from backend

* remove flattenDataset helper

* revert deleting flattendataset method (done in separate PR)

* move response to helper file

* cleanup utils based on test changes

* add acme_clients to tests

* rename variables and add comments!

* refactor homogenizeClientNaming and rename

* move by_namespace to test helper as well

* add comments and finally delete flattenDataset

* add more comments and update response to match no mounts shape

* update test selector

* finish updates for removing clients: null from serialized response

* final comments!

* remove arrayOfCounts helper

* Update ui/tests/integration/components/clients/page/sync-test.js

Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>

---------

Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
2024-04-03 20:21:24 +00:00
Noelle Daley
cc40781928
[secrets sync] add more thorough Secrets Sync landing page tests (#26196)
* tests: remove unused test selector

* integration/sync/overview-test: add more thorough tests

* acceptance/secrets/overview-test: clarify coverage for activation workflow; remove redundant assertions

* integration/sync-header-test: tidy up tests to match overview-tests
2024-04-03 11:13:48 -07:00
Noelle Daley
f204fc3d8c
secrets/overview: remove extra breadcrumb (#26197) 2024-03-28 15:55:05 +00:00
Chelsea Shaw
5c18a4e7a4
UI: Ember deprecation - addObject, removeObject (#25952)
* Update add-to-array and remove-from-array helpers

* remove search-select-has-many, moved logic directly into mfa-login-enforcement-form (see #16470)

* Replace add/remove object in MFA files - All MFA tests pass

* Replace in PKI components (pki tests all passing)

* Replace in core addon where applicable

* glimmerize console service -- console tests pass

* more replacements

* update string-list, add comment to vertical-bar-chart

* Refactor CSP Event service

- only used one place (auth-form) so simplified that usage
- glimmerize and refactor so that the tests work

* small updates

* more cleanup

* Fix tests

* Remove objectAt from console-helpers

* Address PR comments

* move commandIndex clearing back

* Remove extra model set
2024-03-25 18:31:31 +00:00
claire bontempo
3df09357b2
UI: Follow on sync updates for 1.16 GA (#26114)
* hide sync average stat when sync average is 0

* add bug fix for community users without billing start date

* VAULT-25315 link jira

* add CE stub for sync test

* cleanup template to only calculate average once

* fix comment

* add test

* fix conditional
2024-03-22 20:48:49 +00:00
Angel Garbarino
a953a3cade
Secret Sync Permissions cleanup (#26069)
* add secrets sync feature to version service

* fix syntax for feature in version service

* UI [Sidebranch]: correctly call activation flags endpoints (#26068)

* Show empty state on client count sync page if feature isn't activated (#26024)

* page/sync: show empty state if sync is not activated

* tests: add sync page integration tests

* tests: add secrets sync acceptance tests

* cleanup: remove redundant empty state selector

* chore: rename to isSecretsSyncActivated

* Only make POST request to activation-flags in root namespace (#26081)

* Clean up around opt-in banner on non-secrets-sync views (#26039)

* only show and make request to activated-features  if enterprise with secrets sync feature

* waiting for final badge title but hiding banner and network request based on if user has secrets-sync feature.

* final copy for badge

* handle dismiss erorr message, custom messaging in errors, different badge names and upsell if not on license.

* add secrets sync feature to version service

* nope, add to main sidebranch not in this PR

* use version service directly to check for secrets sync feature

* update badges to use version service directly

* do not unnecessarily pass hasSecretsSyncFeature, access from version directly

* last spot to update using the feature getter

* cleanup landing cta logic

* UI [Sidebranch]: correctly call activation flags endpoints (#26068)

* small cleanups after merge

* remove unused type imports

* update tests

* update nav link test

* add test waiter for race condition on test

* add waiter to fetch activation-flags

* remove customer waiters and go for waitFors in test

* worth a try? mirage issues?

* closer?

* fix issue with inconsistent asserts

* adding back in in case this is the issue

* revert cluster.hbs change

* skip test

* delete test

---------

Co-authored-by: clairebontempo@gmail.com <clairebontempo@gmail.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>

* Hide sync for managed vault (#26084)

* [secrets sync] hide sync content from client overview (#26078)

* clients/overview: hide secrets sync content if not in license

* clients: remove sync tab if not in license

* routes: fetch isSecretsSyncActivated at clients/counts route level

* wip - hide secrets sync from overview page

* tests: fix usage-stats test

* more wip hiding from overview page

* hide secrets sync on attribution component/modal

* hide secrets sync content on running total component

* fix RunningTotal class name

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

* controllers: fix type

* tests: usage tests

* tests: running totals tests

* add s to secrets-sync

* tests: running-total test cleanup

---------

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

* cleanup unused version service

* return extra line

* wip - sync tests

* wip -- clients overview acceptance tests

* test coverage for sync in license, activated

* tests: add more robust sync-related overview tests

* hide sync client charts if feature not in license

---------

Co-authored-by: clairebontempo@gmail.com <clairebontempo@gmail.com>
Co-authored-by: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com>
Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Co-authored-by: Chelsea Shaw <cshaw@hashicorp.com>
2024-03-22 14:07:09 -05:00
Noelle Daley
76d51dcf61
tests: add more confirm-modal test coverage / remove flaky test (#26040) 2024-03-19 10:55:37 -07:00
Noelle Daley
4f6aef6664
update HDS and ember-flight-icons (#25946)
* chore: update hds and flight-icons

* fix: add missing deps and use .css from HDS

* update HDS components to new syntax

* database-connection-edit: add @waitFor to fix rotate-related acceeptance tests

* use stub to fix confirm-modal-test

---------

Co-authored-by: Alexey Kulakov <uni_que@me.com>
2024-03-18 10:42:45 -07:00
Angel Garbarino
1745d50c2d
Test coverage and disable button fix on Secrets Sync opt-in modal (#25907)
* fix issue of checkbox value not disabling after canceling the modal

* add component test coverage in overview

* add acceptance test to see flow show banner to not show banner

* comment change

* remove unecessary hash and add settled because ci is funny

* circle ci play nice

* forgot to add my changes 🙃

* blah

* that was a lot for delinating the errors properly—😵‍💫

* pr review comments, thank you for the catches team
2024-03-15 09:59:08 -06:00
Chelsea Shaw
6e7717a707
UI: Ember deprecation - remove toArray (#25859)
* replace all instances of toArray() with slice()

* remove unnecessary array check

* remove superfluous that used to be toArray

* remove other superfluous slices

* Revert "remove other superfluous slices"

This reverts commit 51df83f44ebf0445a18c5cf17283ca7cde23fd53.
2024-03-13 10:03:27 -05:00
Chelsea Shaw
425b6279b5
UI: glimmerize replication page (#25838) 2024-03-11 16:22:36 -05:00
claire bontempo
d989eae10e
UI: Only add user lockout config for supported methods (#25867)
* update model so only supported methods add user_lockout_config params

* update auth config form to only show user lockout config for supported methods

* add changelog
2024-03-11 11:01:36 -05:00
Jordan Reimer
7caa1d46cb
Sync Enable Feature Workflow (#25739)
* adds modal for enabling sync in landing page cta workflow

* adds config endpoint to sync mirage handler

* update checkbox copy

* handle adapter error and modify endpoints

* address pr changes

* add banner for when not opted in and update tests

* change adapterError with verb to clarify boolean

* update small tests changes

* fix linting js errors

* remove empty payload and update banner text

* fix problematic test solve for another day

* fix test

---------

Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
Co-authored-by: Angel Garbarino <argarbarino@gmail.com>
2024-03-07 14:57:05 -07:00
claire bontempo
164a1af54a
UI: Return upgrade banner to refactored client count UI (#25733)
* refactor upgradesDuringActivity to return an array

* move filterVersionHistory to util

* remove icon from inline link

* chance copy

* VAULT-24541 change ticket purpose

* add empty string for default break

* remove 1.16 for now

* update copy

* update test param

* add test for upgrade alert banner

* add version-history to mirage and consolidate time variables

* cleanup/fix imports after removing consts from helper file

* update more test dates

* fix attribution date format

* refactor util to just take timestamps

* util test

* use isWithinInterval instead

* finish count and overview updates after fixing mirage

* use the same static_time for all clients/ test files

* remove floating dot
2024-03-04 21:33:43 -08:00
Jordan Reimer
087efc9993
Sync Associations ID Format (#25740)
* updates sync associations id format

* fixes tests

* fixes test
2024-03-04 09:16:25 -07:00
Kianna
a77f695bd2
Update acceptance test to use timestamp.now (#25721) 2024-02-29 08:15:26 -08:00
claire bontempo
9f8ddae96f
UI: Add missing auth config params (#25646)
* add allowed_response_headers and plugin_version to auth method config

* add user_lockout_config to auth tune

* add changelog;

* update test

* add test
2024-02-28 11:49:19 -08:00
claire bontempo
638f9ddae6
Sync UI: Remove beta tags, and reveal sync client count billing tab (#25669)
* Revert "hide sync billing related details"

This reverts commit 26d24d9e789dc2378be5845f0e835978676fc9e6.

* Revert "add beta tags"

This reverts commit a9837bce0b2123ad3eb47f261f127fa166ddb1bc.

* final cleanup from remaining SYNC BETA comments

* fix line chart scale

* update sync copy

* update test
2024-02-28 09:53:24 -08:00
Angel Garbarino
2cf10b3b0e
Remove deprecated "mulitple" from page object (#25629)
* remove multiple and any unused page selectors

* fix issues
2024-02-27 10:26:11 -07:00
Angel Garbarino
156de6a3fd
Deprecations: Remove firstObject from RecordArray (#25583)
* wip

* focusing on js files

* rest of the js files

* round up the last bits focusing on hbs

* address test failures

* Update transit-key-test.js

* Update ui/app/services/csp-event.js

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

* Update options.js

* build error push

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-02-23 10:34:29 -07:00
claire bontempo
e6d2caaa52
update overview metric to total secrets instead of associations (#25599) 2024-02-22 23:37:35 +00:00
Chelsea Shaw
263584d7b4
UI: Replace popup-menu on list items (#25588) 2024-02-22 17:11:48 -06:00
Jordan Reimer
e57f12fdc7
Sync Overview Table Copy Updates (#25586)
* updates number of secrets column name in sync overview chart and adds tooltip

* Update ui/lib/sync/addon/components/secrets/page/overview.hbs

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

---------

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
2024-02-22 19:34:25 +00:00
Angel Garbarino
a15ecf3230
do all the things (#25573) 2024-02-22 08:39:01 -07:00
Jordan Reimer
574f54ab28
Sync Destination Updates (#25571)
* normalizes sync destination granularity key in serializer

* adds new fields to aws and gcp sync destinations

* updates sync destination delete action from destinations list view to route to overview on success

* updates destination serializer normalize to check if options is defined
2024-02-21 15:49:01 -07:00
Chelsea Shaw
aa5d9f7b49
UI: Ember 5 deprecations: filterBy, mapBy, auto location (#25546)
* Replace all mapBy

* Replace findBys

* Remove auto location https://deprecations.emberjs.com/v4.x/\#toc_deprecate-auto-location

* fixes

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
2024-02-21 18:45:00 +00:00
Angel Garbarino
98bd45a999
Glimmerize Transit Key Actions (#25365)
* wip, all actions wired up, not finished or tested.

* move the rotate action to it's own component to clarify scope

* clean up and refresh component on queryParam change without forcing a refresh from component as before

* solve issue of carrying over props we want to keep

* clean up and add clearProps action

* transit key actions passing

* update assert and doc

* remove unecessary changes

* Address pr comments

* replace perform in submit action and instead pass it in as perform

* address claire's pr comments

* welp

* trying to rearrange closer to original

* addressing pr comments

* move things around

* pr comments

* remove ciphertext when last action was rewrap

* add args and istruncated and isfullwidth
2024-02-20 15:36:56 -07:00
claire bontempo
dd62f9fa28
Sync UI: Add granularity to sync destinations (#25500)
* add granularity form field to sync destinations

* update mirage, shim in subkey response

* fix comment

* add granular updates to list view

* update mirage;

* update test

* comment for updating test

* use hds::dropdown in destinations for consistency

* move banner to popup menu

* add changelog

* remove spans from test
2024-02-20 14:17:34 -07:00
Angel Garbarino
3850d41a87
Upgrade Ember data 4.11.x to 4.12.x (#25272)
* add target to tsconfig

* initial setup

* fix shamir test

* fix auth test with title case header

* fix mfa-login-test

* fix auth-form-test with title case header

* fix service auth-form test with title case header

* fix test with mfa

* Update package.json

* fix failing cubbyhole tests

* changelog

* fix pki configuration test failure

* update yarn lock

* userpass-rest-password test

* missed

* wip sync issues

* sync stablized
2024-02-20 12:37:50 -07:00
Chelsea Shaw
d137030e1a
UI: client count minor fixes (#25472)
* fix a11y violation on tab list

* Add tooltip for disabled input

* hide toggle when data collection cannot be changed

* Correct assertion count
2024-02-20 12:51:06 -06:00
Chelsea Shaw
c5d39c816a
UI: Use HDS::Toast for flash messages (#25459)
* Move global-flash to HDS-specified area

* Add flash-toast component

* use flash toast for flash messages

* Use spacing vars

* Remove unnecessary key

* Cleanup + tests

* Remove nondeterministic build warning

* add changelog

* I wish this was automatic
2024-02-15 18:06:51 -06:00