* fix linting errors
* don't show primary url if we don't have any primaries
* Revert "fix linting errors"
This reverts commit a56d371272868d93024c557a6d5807be6eadda57.
* run all component tests always
* fix issue where if dr is not enabled, the breadcrumb link did not work. Now if DR not enabled, the breadcrumb says replication and links back to rep index.
* show black nav when cluster is not initialized and is loading, no need for menu items and because NavHeader component and the icon live in the app and not addons I cannot access them without moving them. I figured the black bar was enough, and it wasn't worth moving just for that
* conditional change the breadcrumb link in Disaster Recovery based on what page they are currently on (details or manage). Before the breadcrumb link didn't do anything if they were on the manage page
* fix slow modal loading after demoting a dr secondary. due to shamir modal not being in the addon engine and erroring out.
* to prevent confusing transition state during dr demotion, set new property on cluster and compare the mode of the dr which changes from primary to secondary during demotion. If dr mode changes, showing loading status
* get more specific about conditional so loader does not some on disabling, but only on demote
* remove concurrency from onSubmit
* revert all concurency, I think this is solved by the removal of shamir in the dom
* reverse order
* cleanup
* forgot that tricky layout, hopefull this will fix test
* remove page container, it's not needed
* remove breadcrumbs if DR secondary
* remove pageType no now longer using
* remove conditional that is no longer hit
* Match spacing, content, and styling better to designs on DR secondary generate operation token
* Clarify language around OTP and DR secondary operation token
* Update TTL picker on add replication secondary
This change updates the TTL picker to the new version to match most updated designs. The component also allows the default value to be more obvious
* Remove erroneous else
* Add changeOnInit param for TtlPicker2 and use it on add secondary page
* Update ttlPicker2 docs and add tests for new param
* Calculate value in unit provided on init for ttl-picker2, with tests
* Cleanup and make ttl-picker2 test more specific
* Sidebranch: add new route on DR secondary (#8640)
* setup, not complete
* update routing
* clean up
* add test
* add link from status menu
* clean up
* fixes per pr comments
* revert back to two if statements due to refresh bug
* Sidebranch: Setup Replication Page as component to be consumed in all pages for project (#8661)
* setup, not complete
* update routing
* clean up
* add test
* add link from status menu
* clean up
* fixes per pr comments
* setup dashboard with contextual components, and toggle
* setup option to show tabs or not
* handle conditional nav menu
* pass in whole model object
* rename to replication-page
* clean up
* clean up based on pr feedback
* fix linting error
* Sidebranch: setup replication dashboard with scss and initial card components (#8670)
* setup replication dashboard with scss and initial card components
* sync with Noelles changes and clean up the inner grid container inside the selectable card
* set up nested contextual components for selectable-cards
* setup component for table row
* address walk through notes
* remove name selectable from card component as it is not selectable
* add missing space
* Ui/dr primary/initial page setup (#8671)
* add helperText param to InfoTableRow
* initial page setup
* format card with padding and correct number of rows
* style card titles with margin
* move styles inside replication class; add todos
* move replication-summary styles into core app so hot reloading works
* prevent known secondaries card from being cut off on the right hand side
* make cards have the correct column span
* make code elements inside tables black
* WIP - start VltTable component
* simplify css
* renamed VltTable to ReplicationTable and use divs instead of table elements
* fix position of known secondaries
* use table element for secondaries card
* add todo
* move replication components to replication engine
* Revert "move replication components to replication engine"
This reverts commit 2228b8392199a1376815dc8b7642de438aad68b5.
* move ReplicationPrimaryCards to components
* remove hover box shadow since cards are not selectable yet
* only apply padding to replication selectable-cards
* specify replication vlt-table in classname
* move replication toggle and toggle into core addon
* remove extra toolbar border
* remove duplicate css
* move ReplicationTableRows to core addon and use them on DR primary page
* clean up todos
* add jsdoc comments
* rename ReplicationTable to KnownSecondaries
* update replicaiton table api to accept flexible data
* rename replicationAttrs to data
* move replication components to core addon
* Ui/dr primary components (#8711)
* populate table with actual secondary ids
* add todo
* make KnownSecondariesCard component
* move KnownSecondariesCard styles to own file
* add EmptyState when there are no known secondaries
* fix known secondaries manage link
* fix Add Secondary link; bring in capabilities model to repliation index route so we can check for adding secondaries
* fix JSDOC comments and updata data to replicationAttrs
* Sidebranch: DR Secondary Dashboard - pr4 (#8706)
* setup styling for delta
* clean up
* replication table remove and rename model to data
* remove old replication header component now that it is in addons
* move replication secondary card component
* calc delta
* clean up
* remove unused components that are now in addon
* address pr comments
* remove test
* fix failing test
* address pr comments
* attempting to fix test
* move to computed components
* fix test error
* fix state of null error
* Sidebranch: DR Secondary Dashboard state message handlers (#8741)
* setup styling for delta
* clean up
* replication table remove and rename model to data
* remove old replication header component now that it is in addons
* move replication secondary card component
* calc delta
* clean up
* remove unused components that are now in addon
* address pr comments
* remove test
* fix failing test
* address pr comments
* attempting to fix test
* initial setup before merge updates
* move to computed components
* fix test error
* fix state of null error
* clean up
* setup alert banner and documentation link
* setup alert banner with second icon
* remove underscore to dash
* add in missing error messages
* add connection-state shutdown
* add storybook update to alert banner
* pr comments
* move css class to helper class
* address pr comments
* add in connection states correct endpoint
* Ui/dr dashboard tests (#8732)
* initial test setup
* use margin when there are no knownsecondaries
* set up replication tests in ember engine
* set knownSecondaries
* move tests to host app and set resolver
* finish known-secondaries-card-test
* make knownSecondaries array match the API response
* add known secondaries table test
* oops, remove stories directory
* wip - replication table rows test
* remove extra code
* finish replication table rows tests
* add | Enterprise | to test module
* remove unncessary assertion:
* show dynamic state glyph (#8747)
* show dynamic state glyph
* show state glyph after state
* move LearnLink into core addon
* make ReplicationDocLink component
* prevent double lines at the bottom of the dashboard
* Sidebranch: dr-secondary-dashboard-pr7 (#8792)
* move dr to higher level component and setup isDisabled for error state when dr mode is disabled.
* add in error messages final
* refactor transistion on submit handler focused on dr secondary
* handle transition
* update empty state component to include icon and add empty state to details page
* fix spelling
* address pr comments
* merge with replication branch
* remove component structure for replication-secondary-card
* compute title and error message
* make specific empty state messages
* fix test
* address pr comments
* regenerate the storyboook for empty state
* Replication Primary Dashboard: handle errors (#8845)
* use h3 instead of code elements
* use correct property names for StateDisplay
* WIP
* remove todo
* move cluster states into a map; make status menu icon match cluster state
* show error in state card using the same state map in the cluster model
* whitespace
* move cluster-states into a helper and update usage
* use circle success icon for stream-wals because that is the ideal state
* more refactoring of cluster state display
* use new cluster-states helper
* whitespace
* use clusterStates helper in replication secondary card
* remove extra import
* add default values for when state isn't recognized
* make sure that state exists before getting state details from clusterStates helper
* be more strict when state cannot be found
* use brace expansion to fix linting error
* add tests for error states
* fix text wrapping issue on secondary cards; make titles match mocks
* use unknown if metric isn't foudn
* remove extra border on selectable card when there is an error
* use outline square in status menu for error
* Ui/replication/refactor dashboard components (#8878)
* use ReplicationDashboard component
* move syncing and alert banners into dashboard component
* only show primary cluster addr if dashboard is for a secondary
* use ReplicationPage and Dashboard
* move isSecondary to page component
* remove duplication
* remove dead code
* refactored table rows
* make sure dashboards update data when we are switching between mclusterModes and replicationTypes
* clarified replicationMode and clusterMode
* remove extra margin
* get rid of data
* remove syncProgress
* remove Enterprise filter from tests so component tests are run
* Ui/replication/primary reindexing (#8906)
* fix typo
* fetch replication/mode/status and pass to dashboard component
* add reindexing stage to AlertBanner; use real value for isReindexing
* remove dr since we don't need it anymore
* add indentation
* remove TODO
* capitalize reindexing_stage and make progress 0 by default
* remove Toggle since we don't need it anymore
* get allllll the variables at once
* only run secondary details test on enterprise
* Sidebranch: component and acceptance tests (#8903)
* address secondary card overflow issue
* setup replicaiton header test
* address secondary card overflow issue
* setup replication secondary card test
* setup replicaiton header test
* setup replicaiton page test
* setup replication secondary card test
* setup replication dashboard test
* setup replicaiton page test
* remove unused code
* fix overflow
* finish test for rep dashboard
* update rep secondary card test
* finish rep header test
* fix rep table rows and header test
* fix header test
* fix missing data-test-primary-cluster
* add to secondary test
* remove pauseTest
* add to enterprise replication test
* add mode to dr secondary test
* remove pauseTest
* add enterprise to test
* amend per pr commments
* re organize rep secondary card test
* adjust error heights with design input
* move const around in rep secondary card test
* move const around and message for rep dashboard test
* amend per pr review comments
* remove styling from grid-item-left
* remove dup hasErrorClass key
* quick fix
* test failure fix
* fix test due to merge
* remove hasErrorClass
* modify test message
* Sidebranch: remove delta, toggle, and make auto-refresh (#8945)
* change styling
* remove replication toggle
* modifications for auto refresh and final removal of delta and last wal
* fix refresh issue by removing replicationMode on this.reset which conflicts with the same property being set on the cluster model
* remove comments
* add unknown placeholder
* add auto refresh to other components and remove mention of toggle
* remove meep and primary cluster heading area
* ensure status menu displays replication state, not just one (#8959)
* Add Replication Reindexing Progress Bar (#8975)
* whitespace
* rename consts
* rename variables
* test that dashboard shows a reindexing alert banner
* standardize shamir and ui wizard progress bar
* make new progressbar component
* just kidding, we can use the html5 progress bar
* make top margins consistent across primary and secondary dashboards
* clean up AlertBanner JSDocs and markdown
* show a progress bar inside an AlertBanner if cluster is reindexing
* add example AlertBanner with Progress Bar
* add reindexing tests
* add a tiny left margin to progress bars inside alert banners
* keep old class names in wizard to prevent bug, but keep consistent progress background color
* use spacing variables
* remove extra border when secondary card has an error
* make card header sizes and weight consistent
* Sidebranch: Performance Secondary Dashboard (#8956)
* setup rep dashboard to dynamically take in the component to render and dynamically setup the css based on mode of cluster
* conditional pass in the correct props to the Dashboard.card component and add margin to reindexing alertBanner
* update replication dashboard test
* add performance secondary test and clean up replication-secondary-card test
* fix message
* replace cluster-id with secondaryId
* remove reindexing test as its a duplicate of the branch noelle is working on
* cleanup
* address pr comments
* small test fixes
* add secondaryId to header test
* fix tests description
* Ui/replication/test update (#8995)
* make sure progress bar updates and animates
* ensure dashboard updates when replication mode has changed
* make sure we update isSyncing when state has changed
* wip - console log statements to see if components are getting new attrs
* Revert "wip - console log statements to see if components are getting new attrs"
This reverts commit d05219ba6c14c64a9f2e867892476faf7dad4659.
* style progress bar in mozilla; allow testing the progress bar in storybook
* test that primary and secondary card container don't display at the same time
* prepare KnownSecondariesTable for backend compatibility (#9029)
* Ui/replication mgmt action block (#9053)
This does some low-impact work to prepare for the refactor of replication-actions. Includes:
- Move modal to addon in lib/core
- Update modal to take a "type" param which changes the header color + icon
- Add tests for modal changes
- Add action-block style only component
- Add styles-only replication-action grid that the action-blocks will live inside of
* Sidebranch: address transition issues on replication engine and actions (#9010)
* small formatting changes
* change findRecord to peekRecord so it keeps track of the changing data.
* add styling such that when page is loading it does not spread across the whole page
* help with reload and styling on replication route
* initial setup for new flow that handles adding a perf secondary, and also some on a dr secondary
* clean up
* add loader on rep page for situations when data is still loading, and add loading mode in header, seperate from the modeForUrl used in other places to help transistion
* fix transitionTo when coming from different replication.mode vs replication.index route
* set default of mode for radio checkboxes after removing from DEFAULTS var
* reset and cont using onEnable because TransitionTo is not working inside of component
* remove console
* the reason we were getting transition errors :(
* remove modeObjecT
* fix error by removing peek record from application and moving it lower down in a property replicationAttrs
* Readd back space
* this one really does fix the issue
* add back peek record and add conditional to isLoadingData
* figure out cluster id from service instead of hardcoded
* fix capabilities-self error by adding a 1 sceond delay for when transition from replication.index to replication.mode.index on enable performance secondary
* remove attempt to circumvent the peekRecord in application
* add to replication page tests and clarify replicationMode to formattedReplicationMode, it's super confusing when seeing replicationMode being duplicated throughout the computed components. this clarifies its computed only for formatting
* fix repetive conditional
* capture the state when either dr.mode or performance.mode are undefined, which happens during a transition. If this is the case add a loader on the replicationindex page.
* address some pr comments
* small change
* add bootstrapping mode to test
* add Replication Learn Links to wizard (#9106)
* Ui/summary dashboard (#9079)
* move key value to lib/core/addon so I can use inside replication engine
* setup summary dasbhoard on replication summary component
* set title for summary dashboard
* do not show replication table rows on summary dashboard
* show that last_wal updates every 10 seconds
* show replication table rows on individual dashboards, but not summary
* remove extra bottom border on replication-dashboard
* add replicationDetailsSummary object and replication-summary-card
* setup structure and data calcs of replication summary card
* fix links and styling on summary card
* breadcrumbs
* match state title on summary dashboard to individual dashboards
* add margin below replication header
* update breadcrumbs to show replication mode
* align details link right
* add margin below tabs in replication header
* user helper-text to make card text styling consistent across dashboards
* remove unneeded code
* add bottom border to summary state
* add bottom margin to summary dashboard
* add negative margins to bring values closer to related cell
* fix failing test due to data-test attribute change and make storybook component for replication-summary-card
* setup replication summary card test. I suspect we'll move the hasError test to the dashboard where the error will show around the state display
* add to replication acceptance test for new summary dashboard
* remove pauseTest
* add is-active to li element
* clean up
* dashboard test and clean up
* addressing pr comments
* fix replication/null/status error
* add JSDocs for rep page and rep dash
* more pr cleanup
* remove conditional and fix styling blue link
* fix conditional on when loading summary dashboard to check for primary on both. wrap code in div so it lands on another line.
Co-authored-by: Noelle Daley <adriannenoelle@gmail.com>
* change message with bold 'not' if primary (#9112)
* Add JSDocs to components (#9125)
* jsdocs
* remove todo that is no longer relevant
* clean up wording
* wordsmithing
* fix spelling
* example for clusterMode
* Replication Management Sidebranch: Replication Action Disable (#9061)
Set up dr-secondary management page with new action flow
* Create confirmation-modal component
* Refactor replication-dr-secondary splash page to replication manage page
* Refactor replication-action-disable component to use confirmation modal
* Add details/manage tab to replication-dr-secondary section
* Refactor Replication Action: Promote to use modal flow (#9122)
* Ui/replication mgmt/reindex action (#9126)
* Replication Management Sidebranch: Replication Action Disable (#9061)
* Ui/replication mgmt/recover action (#9127)
* Replication Management Sidebranch: Replication Action Recover (#9061)
* Close link-to tag in header (#9139)
Fixes bad merge conflict
* UI: Fix replication management tests (#9136)
* do not show replication mode or id when replication isn't enabled
* fix broken tag
* fill in confirmation text when disabling replication in tests
* fix typo
* fix demote primary test selector
* add test selectors and update tests to match new format
* fill in Performance when disabling performance secondary
* Ui/replication mgmt/update primary action (#9149)
* Update Primary replication action uses modal flow
* Update modal max-height to accommodate for the navbar
* Ui/secondary token flow dr (#9150)
* setup token modal flow
* calc expirationDate
* fix date-format test after moving it in addon
* fix icon conditional in modal title
* decode token to get epoch expiration date and convert
* handle clicking outside of modal
* remove extra copy button
* add modal check in rep acceptance test
* look only at day and month and remove console
* fix spelling
* cleanup
* replace dr with variable
* make string check longer in test
* fix test variables
* refactor enterprise test for secondary token flow
* make cluster model property replicationModeForDisplay to handle all cases where we were either conditionally displaying the DR, Disaster Recovery, etc. or where we were hardcoding it into the hbs. For situations where it was DR before, I am now keeping it more consistent and using Disaster Recovery as on the manage page we do not show the Diaster Recovery (DR) anywhere.
* set initial value for ttl picker to fix issue where itwas setting seconds to minutes
* clean up
* add comment about ttl picker
* Add known primaries info table (#9152)
* replace primaryClusterAddr with knownPrimaryClusterAddrs
* rename state to Status; fix css layout
* add InfoTable component
* only show label column if there is a label
* add grid-item-middle class
* whitespace
* fix grid layout
* die tagName, die
* set table max-height
* prep InfoTable for Storybook
* ensure cards always have the same height
* remove duplicate max height since vlt-table already has max-height
* add InfoTable tests
* add InfoTable to Storybook
* organize grid item css; rename for consistency
* add sticky header to table
* add sticky-header class to keep table styles in scope
* whoops, do not use fake data
* Ui/rep design updates (#9169)
* show secondaryId in table rows
* show primary_cluster_addr in table rows
* remove cluster Ids from replication headers
* Ui/fix enable overflow (#9173)
* only show primary_cluster_addr for primary
* fix overflow on replication index
* remove display from cluster-states because it is not used anywhere
* fix missing replication mode from description
* add comments
* use helper to consolidate replication descriptions
* fix text wrapping on medium screen sizes
* Ui/replication mgmt/demote action (#9168)
* Replication demote action uses modal flow
Co-authored-by: Noelle Daley <adriannenoelle@gmail.com>
Co-authored-by: Angel Garbarino <argarbarino@gmail.com>
* Ui/replication merge cleanup 2 (#9212)
* replace with replicationModeForDisplay that is defined on the cluster
* fix spelling on replication and confirmed with design for placeholder when Not defined
* remove extra div with box class
* change manage link to take you to the secondaries manage as it's within the known secondaries card
* fix scroll always showing by adding auto, and decreasing the height. WIP
* add empty state to known_primary_cluster_addrs
* address pr comments
* Add real connected state and API address (#9219)
* fix title of secondary card
* show connected status
* fix tests
* fix enterprise test (#9229)
* fix enterprise test
* add n
* add another n
* Ui/replication mgmt/generate token action (#9187)
Generate operation token flow from replication DR Secondary. Clicking 'Cancel' on the modal after the operation has started results in cancelling generate operation and restarting the process.
* use none set instead of not defined
Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
Co-authored-by: Chelsea Shaw <chelshaw.dev@gmail.com>
Co-authored-by: Noelle Daley <adriannenoelle@gmail.com>
* link to changelog in version
* link to specific changelog version number
* update CHANGELOG headings to match expected format
* clean up and add tests
* handle errors
* use https
* update test url
* Make logging out of Web UI redirect to the login form using the same auth method that was previously used. This makes it less annoying to log back in again when your session expires.
* Address PR feedback.
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
* wip -- add modal component using ember-wormhole, add static content but still need to enable onClose
* add onClose to modal
* WIP
* add copy and close button
* add copy and close button
* and copy and close button to modal
* use modal on each key action page
* make text copied text more generic
* update datakey textareas to codemirror
* only show user input on encrypt and decrypt
* only show user input on all key actions
* separate copy ciphertext, plaintext, and close button on datakey modal
* style ciphertext and plaintext as code
* only show separate copy buttons on datakey modal if both outputs are shown
* update modal styling
* style modal
* add descriptions to each key action
* remove conditional from hmac modal since we only ever show hmac output
* add modal for export key action
* make output scroll horizontally with copy button next to it
* make output scroll horizontally with copy button next to it
* escape & in copy and close button, format text output so it scrolls horizontally
* fix formatting of key action descriptions
* Ui/add transit modal tests (#8523)
* Fix tests for updated transit with modals workflow
* WIP // remove box shadow from key actions descriptions
* WIP // flash messages on successful action match mocks
* WIP // remove ciphertext view after datakey created
* WIP // make flash messages when copy & closing less generic, and match copy flash message
* WIP // Optionally show close button on modal, with tests
* remove unused deps from modal test
* WIP // Fix verify modal styling and content
* Add modal for sign action
* Fix output of non-wrapped export key
* Fix output of non-wrapped export key
* Add description to JSDOCS about modal component
* Add help text about plaintext encoded in base64
* add flash msgs for datakey and export
* flash success msg when closing modal on export page
* clarify sign success msg
* address PR feedback
* add indentation for export key json
* Fix modal tests pt 2
* Remove decode after decrypt in transit tests
Co-authored-by: Chelsea Shaw <chelshaw.dev@gmail.com>
* move manage and add refresh action
* move title of current namespace
* finish menu redesign
* conditionally hide or show manage namespaces
* fix quotes
* Update transit versions list styling and add ability to copy public key from dropdown menu for asymmetric key types
* Cursor is default if list item row has no destination
* add core usage metrics components to storybook, rename component from small to simple
* remove const from js file
* remove grid container knob from selectable-card
* set timeout to give time for data to be written to local storage preventing oidc login bug
* remove clear as this might be the only way for folks to login to safari right now, bug there
* RSA3072 implementation in transit secrets engine
* moved new KeyType at the end of the list
So already stored keys still work properly
Co-authored-by: Jim Kalafut <jim@kalafut.net>
* add placeholder for Key actions tab
* navigate to key items by default
* add placeholder key actions list page
* remove extra whitespace from component blueprint
* add SelectableCard
* move key actions from side nav to top nav
* make tabs active
* remove toolbar from key actions pages
* add divs to link to each key action on key actions page
* move preview-head to gitignore
* use selectable card css
* remove key actions
* use css grid
* update selectable card styling
* update Key Actions page header
* make cards clickable
* refactor supportedActions to include glyph
* make header black on hover
* rename selectable-card transit card and update styling
* add description and glyph for other key types
* use human readable titles for key action names
* update tests; still need to fix failing ones
* use datakey instead of data-key
* fix some failing tests
* fix more tests
* remove extra chevron from rotate button
* remove whitespace
* remove pauseTest
* use rename export to export key in the template instead of the model
* fix last few failing tests
* WIP
* link to key actions page by default
* test for transit action title
* only add query params when viewing a transit secret
* update structure icons
* add missing structure icons
* resolve merge conflicts from rebase
* use filter and map for supported actions
* only add query params for transit secrets
* thread backend through requests so that the transit-key model has it on list responses
* add tests for transit-key menu and serializer handling of backend
* remove changes to preview-head
Co-authored-by: Noelle Daley <noelledaley@users.noreply.github.com>
* Core usage metrics v1 (merge to side-branch) (#8238)
* restructure menu layout per designs
* setup new routing that will set the stage for a metrics landing page
* fix formatting
* Revert "fix formatting"
This reverts commit e77cdec5e58cdcea49aa1b97f80238433c4f7d1e.
* fix formatting
* small styling changes
* change request routing to metrics
* rename route js file
* Core usage metrics v2 (#8263)
* restructure menu layout per designs
* setup new routing that will set the stage for a metrics landing page
* fix formatting
* Revert "fix formatting"
This reverts commit e77cdec5e58cdcea49aa1b97f80238433c4f7d1e.
* fix formatting
* small styling changes
* change request routing to metrics
* rename route js file
* setup selectable card component and api request
* add token and http request models to route and template
* add entities to route and template
* clean up
* add breadcrumbs and some clean up work
* remove unused selectable-card component
* refactor to a serializer
* move adapters, serializers, and models into metrics folder
* remove unused file
* address pr comments
* address pr comments
* Core Usage Metrics V3 (#8316)
* restructure menu layout per designs
* setup new routing that will set the stage for a metrics landing page
* fix formatting
* Revert "fix formatting"
This reverts commit e77cdec5e58cdcea49aa1b97f80238433c4f7d1e.
* fix formatting
* small styling changes
* change request routing to metrics
* rename route js file
* setup selectable card component and api request
* add token and http request models to route and template
* add entities to route and template
* clean up
* add breadcrumbs and some clean up work
* remove unused selectable-card component
* setup smaller http request bar chart
* refactor to a serializer
* move adapters, serializers, and models into metrics folder
* remove unused file
* setup change part of component
* fix broken model
* add conditional class
* setting up computed properties in new component
* small fixes
* setup components
* minor fixes
* rename
* clean up
* firefox fix
* remove shadow bars
* move out of metrics folders
* modify permissions to show difference between token entities and requests
* make tests
* fix class names and associated tests
* clean up
* fix text overflow in non-chrome browsers
* address pr comments, specifically class names and tests
* move into one component
* clean up component descriptions in comments
* small wording changes
* fix for accessibility
* address pr comments around component examples for storybook
* fix test
* fix failing test
* fix test
* remove default for authMethod as it's preventing the other auth methods from being selected as default when they are marked as List method when unauthenticated.
* fix test
* fix test
* fix typo
* fix missed query params
* fix missing backend.type, and adjust formatting per prettier requirements
* remove condition to check if cluster is secondary. It is unintentionally hiding the license menu item. The cluser.dr.isSecondary condition is later checked on whether is should should the license line item farther down in the nested menu
* keep conditional, just wrap the final and in parentheses
* remove testing param
* Fix oidc callback to check entire storage
In some cases, extensions or other unexpected javascript can be executed
on the oidc callback. Sometimes changing the localstorage and generating
a `storage` event before the callback component does. In such cases, the
authorization component will hang indefinitely.
A simple fix is to check for the expected `oidcState` key in the whole
localstorage instead of just the event `key`.
* Fix tests for auth-jwt
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
* add catch for fail on save. isError is not being set to true, so set it in the catch
* add conditionally to only catch 403 permission errors. Otherwise it will catch and return an unhelpful error message for when you are trying to save a duplicate secret
* add in code comment
* remove catch and pass version 2 secret model to Error handler inside template
* replace Error model with modelForData to catch errors on the correct model
* add back in space
* replace error model with modelForData
* do not access items.content since it turns items into an InternalModel and breaks deleting namespaces
* remove pagination story until we have a better way to fake data in Storybook
* UI update headless chrome flags to fix ember/chrome crash in test
* UI update references from test-oss to test:oss
* UI removed disable-gpu flag from headless Chrome
* UI and also remove the comment
* fix bug where users couldn't click on update primary
* don't show status menu items when cluster isSecondary since those links don't work
* show the mode of replication in the status menu
* do not show server header in status menu when the contents are empty
* show Disaster Recovery instead of 'DR'
* do not show http metrics in status menu unless user is authenticated
* fix typo so icons in status menu show
* only show entities sidenav item if user has list capability on entities
* wip - link to correct paths in top navigation
* remove comment
* only link to groups page if user has list capability
* add test for checking multiple capabilities
* test when capabilities are not specified
* format jsdoc comments
* move capabilities check out of helper and into permissions service
* embed yarn binary using yarn policies set-version and loosen the restriction on yarn in the dockerfile and the package.json
* don't lint the embedded yarn package
* rename mount-filter-config models, components, serializer, adapters to path-filter-config
* move search-select component to core addon
* add js class for search-select-placeholder and sort out power-select deps for moving to the core component
* expose oninput from powerselect through search-select
* don't fetch mounts in the replication routes
* remove toggle from add template
* start cross-namespace fetching
* group options and set up for namespace fetch via power-select search prop
* add and style up radio-card CSS component
* add xlm size for icons between l and xl
* copy defaults so they're not getting mutated
* finalize cross-namespace fetching and getting that to work with power-select
* when passing options but no models, format the options in search select so that they render properly in the list
* tint the background of a selected radio card
* default to null mode and uniq options in search-select
* finish styling radio-card
* format inputValues when first rendering the component if options are being passed from outside
* treat mode:null as deleting existing config which simplifies save logic
* correctly prune the auto complete list since path-filter-config-list handles all of that and finish styling
* remove old component
* add search debounce and fix linting
* update search-select docs
* updating tests
* support grouped options for when to show the create prompt
* update and add tests for path-filter-config-list
* fix tests for search-select and path-filter-config-list
* the new api uses allow/deny instead of whitelist/blacklist
* enable auth method item configuration in go code
* properly parse and list generated items
* make sure we only set name on attrs if a label comes from openAPI
* correctly construct paths object for method index route
* set sensitive property on password for userpass
* remove debugger statements
* pass method model to list route template to use paths on model for tabs
* update tab generation in generated item list, undo enabling userpass users
* enable openapi generated itams for certs and userpass, update ldap to no longer have action on list endpoint
* add editType to DisplayAttributes, pull tokenutil fields into field group
* show sensitive message for sensitive fields displayed in fieldGroupShow component
* grab sensitive and editType fields from displayAttrs in openapi-to-attrs util
* make sure we don't ask for paths for secret backends since that isn't setup yet
* fix styling of sensitive text for fieldGroupShow component
* update openapi-to-attrs util test to no longer include label by default, change debugger to console.err in path-help, remove dynamic ui auth methods from tab count test
* properly log errors to the console
* capitalize This value is sensitive...
* get rid of extra padding on bottom of fieldgroupshow
* make auth methods clickable and use new confirm ux
* Update sdk/framework/path.go
Co-Authored-By: Jim Kalafut <jkalafut@hashicorp.com>
* Update sdk/framework/path.go
Co-Authored-By: Jim Kalafut <jkalafut@hashicorp.com>
* add whitespace
* return intErr instead of err
* uncomment out helpUrl because we need it
* remove extra box class
* use const instead of let
* remove extra conditional since we already split the pathName later on
* ensure we request the correct url when listing generated items
* use const
* link to list and show pages
* remove dead code
* show nested item name instead of id
* add comments
* show tooltip for text-file inputs
* fix storybook
* remove extra filter
* add TODOs
* add comments
* comment out unused variables but leave them in function signature
* only link to auth methods that can be fully managed in the ui
* clean up comments
* only render tooltip if there is helpText
* rename id authMethodPath
* remove optionsForQuery since we don't need it
* add indentation
* standardize ConfirmMessage and show model name instead of id when editing
* standardize ConfirmMessage and show model name instead of id when editing
* add comments
* post to the correct updateUrl so we can edit users and groups
* use pop instead of slice
* add TODO for finding a better way to store ids
* ensure ids are handled the same way on list and show pages; fix editing and deleting
* add comment about difference between list and show urls
* use model.id instead of name since we do not need it
* remove dead code
* ensure list pages have page headers
* standardize using authMethodPath instead of method and remove dead code
* i love indentation
* remove more dead code
* use new Confirm
* show correct flash message when deleting an item
* update flash message for creating and updating
* use plus icon for creating group/user instead of an arrow
* add storage route
* template out the routes and new raft storage overview
* fetch raft config and add new server model
* pngcrush the favicon
* add view components and binary-file component
* add form-save-buttons component
* adjust rawRequest so that it can send a request body and returns the response on errors
* hook up restore
* rename binary-file to file-to-array-buffer
* add ember-service-worker
* use forked version of ember-service-worker for now
* scope the service worker to a single endpoint
* show both download buttons for now
* add service worker download with a fallback to JS in-mem download
* add remove peer functionality
* lint go file
* add storage-type to the cluster and node models
* update edit for to take a cancel action
* separate out a css table styles to be used by http-requests-table and on the raft-overview component
* add raft-join adapter, model, component and use on the init page
* fix styling and gate the menu item on the cluster using raft storage
* style tweaks to the raft-join component
* fix linting
* add form-save-buttons component to storybook
* add cancel functionality for backup uploads, and add a success message for successful uploads
* add component tests
* add filesize.js
* add filesize and modified date to file-to-array-buffer
* fix linting
* fix server section showing in the cluster nav
* don't use babel transforms in service worker lib because we don't want 2 copies of babel polyfill
* add file-to-array-buffer to storybook
* add comments and use removeObjectURL to raft-storage-overview
* update alert-banner markdown
* messaging change for upload alert banner
* Update ui/app/templates/components/raft-storage-restore.hbs
Co-Authored-By: Joshua Ogle <joshua@joshuaogle.com>
* more comments
* actually render the label if passed and update stories with knobs
* check for model in the edit form before rolling back
* make sure namespace service name is consistent in the auth service
* actually tell it what service to inject
* do not swallow ControlGroupErrors when viewing or editing kvv2 secrets
* test kv v2 control group workflow
* do not manually clearModelCache when logging out since this already happens when leaving the logout route
* remove pauseTest
* update comments
* wip - looking into why restricted user can see the control group protected secret after it has already been unwrapped once
* strip version from query params so we can unwrap a secret after it is authorized
* use attachCapabilities instead of lazyCapabilities to ensure models are cleaned up properly
* remove comment
* make ControlGroupError extend AdapterError
* fix broken redirect_to test
* one day i will remember to remove my debugger statements; today is not that day
* no need to check for a ControlGroupError since it extends an AdapterError
* see if using EmberError instead of AdapterError fixes the browserstack tests
* Revert "see if using EmberError instead of AdapterError fixes the browserstack tests"
This reverts commit 14ddd67cacbf1ccecb8cc2d1f59a2c273866da72.
* default to token auth method
* pass in selectedValue to the AuthForm
* adjust when and if tasks are called so there's no race condition with wrapped_token query param
* add some tests for wrapped_token
* adjust redirect_to behavior so that it also works with the logout route and the wrapped_token query param
* fix linting
* remove ember-cli-valid-component-name since we no longer need it
* component names no longer need to contain a hyphen
* remove Husky from README since we no longer use it
* update Storybook example
* update JSDoc examples and fix params table header
* add initial Confirm component to secrets list page
* use ember-wormholes to render confirmation message
* use maybe-in-element instead of ember-wormhole
* hide overlay initially
* animate confirm overlay left and right on click
* hide overlay in the DOM to properly set height
* adjust height when showing/hiding confirm-overlay
* disable confirmation buttons until trigger has been rendered
* adjust height of confirm-wrapper instead of confirm
* move Confirm/ to core
* only add style attribute when a height property exists
* fix indentation
* wip - use new Confirm inside status menu
* add Confirm to Storybook
* ensure confirm links have proper styling in Storybook and outside popup-menu
* fix height transition
* disable no-inline-styles
* add test selector
* remove comment
* consolidate Message into Trigger to make Confirm easier to use
* use new Trigger API in status menu
* remove height transition
* fix binding inline style warning
* rename confirmMessage to message
* update Confirm for Storybook
* fix indentation
* do not pass in onCancel from outer template because it is static
* add jsdoc comments to Trigger
* wip - add trigger and confirm to storybook
* fix status menu styling
* fix styling of confirm stories
* use new Confirm on secrets engine list
* use bulma speed variable
* fix indentation
* re-renable eslint no-inline-styles
* showConfirm when rendered trigger matches id
* fix background color on namespace picker
* do not expose onTrigger
* Revert "re-renable eslint no-inline-styles"
This reverts commit c7b2a9097f177a2876afaaec6020f73b07bad3c7.
* rename Confirm Trigger to Message
* add tests
* update JSDocs
* focus trigger after cancelling the confirm message
* update Confirm JSDocs
* differentiate between ConfirmAction and Confirm
* add Message to Storybook
* re-enable eslint import/extensions
* update confirmButtonText to Revoke token
* remove linebreak and extra whitespace
* fix typo
* add loading to empty button
* fix more typos
* only show Message contents when showConfirm is true
* no need to disable the confirm buttons since they only render in the DOM when showConfirm is true
* use Confirm to delete aws roles
* use Confirm to delete pki roles
* use Confirm to delete ssh roles
* add Confirm to entity alias page
* fix confirm button text on Revoke token in status menu
* ensure you can use tab to revoke a token from status menu
* reset the open trigger after the confirm has been confirmed
* use Confirm on identity list pages
* fix Disable engine confirmation text
* use <PopupMenu /> angle brack syntax
* use Confirm on policies list page
* use Confirm for namespaces
* use Confirm for kmip scopes
* use Confirm for deleting kmip roles
* use Confirm for revoking KMIP credentials
* fix Revoke token triggerText
* be more specific about node version, and specify a yarn version
* update ember, ember-cli, ember-data, ember-data-model-fragments
* use router handlers to access transition information
* fix shadowing of component helper
* update ivy-codemirror, ember-cli-inject-live-reload
* remove custom router service
* don't use transition.queryParams
* update ember-cli-deprecation-workflow
* refactor kv v1 to use 'path' instead of 'id' on creation
* fix auth-jwt-test and toolbar-link-test
* update ember composable helpers
* remove Ember.copy from test file
* no more deprecations in the workflow
* fix more secret tests
* fix remaining failed tests
* move select component to core because it's used by ttl-picker
* generate new model class for each test instead of reusing an existing one
* fix selectors on kmip tests
* refactor how control groups construct urls from the new transition objects
* add router service override back in, and have it be evented so that we can trigger router events on it
* move stories and markdown files to core if the component lives in core
* update ember-cli, ember-cli-babel, ember-auto-import
* update base64js, date-fns, deepmerge, codemirror, broccoli-asset-rev
* update linting rules
* fix test selectors
* update ember-api-actions, ember-concurrency, ember-load-initializers, escape-string-regexp, normalize.css, prettier-eslint-cli, jsdoc-to-markdown
* remove test-results dir
* update base64js, ember-cli-clipboard, ember-cli-sass, ember-cli-string-helpers, ember-cli-template-lint, ember-cli-uglify, ember-link-action
* fix linting
* run yarn install without restoring from cache
* refactor how tests are run and handle the vault server subprocess
* update makefile for new test task names
* update circle config to use the new yarn task
* fix writing the seal keys when starting the dev server
* remove optional deps from the lockfile
* don't ignore-optional on yarn install
* remove errant console.log
* update ember-basic-dropdown-hover, jsonlint, yargs-parser
* update ember-cli-flash
* add back optionalDeps
* update @babel/core@7.5.5, ember-basic-dropdown@1.1.3, eslint-plugin-ember@6.8.2
* update storybook to the latest release
* add a babel config with targets so that the ember babel plugin works properly
* update ember-resolver, move ember-cli-storybook to devDependencies
* revert normalize.css upgrade
* silence fetchadapter warning for now
* exclude 3rd party array helper now that ember includes one
* fix switch and entity lookup styling
* only add -root suffix if it's not in versions mode
* make sure drop always has an array on the aws role form
* fix labels like we did with the backport
* update eslintignore
* update the yarn version in the docker build file
* update eslint ignore
* fix switch css
* allow breadcrumbs container to grow if it's overflowed so that it's still usable
* close the dropdowns on destructive actions that cause a route refresh
* use new attachCapabilities for context menus on auth methods to get rid of an error
* add redirect_to query param
* alias auth controller state to vault controller where the query param is defined
* capture the current url before redirecting a user to auth if they're being redirected
* consume and reset the redirectTo query param when authenticating
* make sure that the current url when logging out does not get set as the redirect_to query param
* add unit tests for the mixin and make it so that redirects from the root don't end up in redirect_to
* acceptance tests for redirect
* add shell quote
* use shell quote's parse method to properly escape strings entered in the web cli
* add and update tests for the web CLI
* fix linting and skip test for ' in a path
* skip the correct test
* reset namespace cache when a user logs out
* fix issue where if you log in to a namespace with an initial /, nested namespaces would not show up in the navigation
* set an empty list of namespaces instead of ignoring error
* add tests for namespace bugs
* use this consistently in template
* add SelectDropdown
* use SelectDropdown instead of HttpRequestsDropdown
* use html selector instead of class name
* ensure SelectDropdown still works when rendered inside a Toolbar
* add tests
* remove old HttpRequests component
* make SelectDropdown example easier to read in Storybook
* add isFullwidth prop
* add SelectDropbown inside a Toolbar story
* fix tests
* remove actions block and call this.onChange directly
* replace dropdownLabel with label
* rename SelectDropdown to SelecT
* add test for onChange
* remove selectedItem prop since we don't need it
* make Select accept options as an array of strings or objects
* Revert "remove selectedItem prop since we don't need it"
This reverts commit 7278516de87bb1df60482edb005137252819931e.
* use Select inside TtlPicker
* remove debugger
* use a test selector
* fix pki test selectors
* improve storybook docs
* fix selected value in ttl picker
* ensure httprequests dropdown updates the selected item
* ensure select dropdown correctly matches selectedItem
* rename selectedItem to selectedValue
* remove debugger lol
* update selectedItem test
* add valueAttribute and labelAttribute to Storybook knobs
* udpate jsdocs
* remove old httprequestsdropdown component
* add note that onChange will receive value of select
* use Select inside AuthForm
* use correct test selector
* change the story blueprint so that using -ir will generate a story in the expected place for in-repo addons and engines
* update gen-story-md script to do output md to stories folder inside of in-repo addons and engines
* update storybook config to look for story files in /lib
* add story for list-view component
* add list view page object
* add kmip page objects and tests
* update storybook commands in the README
* split tests up more
* update var name in storybook
* ci: re-enable browserstack tests ...
- Also sets "strict mode" bash with -euo pipefail at executor level.
* ci: Makefile: more compatible SHELL var
* ci: remove some trailing whitespace
* ci: remove redundant set -eux -o pipefail
- In some cases, just replace with -x where debug output might be useful.
- In most cases, don't bother with -x, it is a secret leak risk, and
circleci prints the command body before executing it anyway.
* try specifying yarn version
* set yarn version
* Revert "try specifying yarn version"
This reverts commit 6b4e57a304d999d72d4b07468a6b4a30880f1f4c.
* always use ?force for kmip scope delete
* update the delete message when deleting a scope
* support disabling and not showing help text for checkboxes
* group TLS fields and render new allowed operations widget
* add operation-field-display component for kmip roles
* use operation-field-display component
* switch glyph for false value in info-table-row
* divvy up roles and tls
* fix JSDoc - showHelpText defaults to true
* fix tests and linting
* rename vars in operation-field-display component
* make the action name clearer re: what it's actually doing
* align the allowed-ops header
* show all operations as checked if you check to allow all
* ensure dropdown updates selected item
* ensure no duplicate ticks
* handle case where counters are Dates instead of strings so bar chart filters in Storybook
* switch to dynamic imports so that bundling doesn't include swagger-ui-dist in its vendor file
* remove ember-ajax
* delete comment
* update comment about lazy loading in the engine index.js
* init dropdown
* add dropdown to storybook
* move http requests components into container
* add event handler for selecting new time window
* no need for this. in the template
* filter bar chart and table
* add bar chart transitions
* handle Last 12 Months in dropdown
* don't use fake data
* start tests
* add jsdoc and notes for storybook
* add container to storybook
* compute filteredCounters when counters change
* move static dropdown options to template
* add tests
* style the dropdown
* use this.elementId
* fix linting errors
* use ember array extensions
* use fillIn instead of page object and make dom assertions consistent
* calculate the correct percent change between months
* use data-test selector instead of id
* show plus or minus next to percent change
* open-api-explorer engine with embedded swagger-ui
* move swagger config to a component, rely directly on swagger-ui
* filter operations by endpoint, hook up filter to query param, add namespace handling
* fix namespace handling
* update ember-engines so that we can app.import in a lazy engine
* use engine's included hook to move swagger-ui to engine-vendor.* files
* show flash message about this being a live vault server
* show a namespace reminder and override some styles from swagger-ui
* switch filter to use includes instead of startsWith
* move flash-message to alert-banner and fix namespace reminder with a block
* adds explore web-cli command to navigate to the api-explorer engine
* allow passing a preformatted string to flash messages
* add multi-line flash-message to api explorer
* invert control and trigger events on react app so we can control the layout more and use our components
* tweak styling some more and adjust message on the flash
* change web cli command from 'explore' to 'api'
* shorten namespace warning
* fix console
* fix comments
* add menu-loader component to show menu loading button when the model relationship isPending
* list what keys we've got in api-path error
* fix spacing issue on error flash
* add an action on list-controller that bubbles to the list-route mixin to refresh the route
* empty store when creating scopes
* don't delete _requestQuery in the loop, do it after
* add scope deletion from the scope list
* add deleteRecord to kmip adapters
* add model-wrap component
* delete role from detail page and list
* add revoke credentials functionality
* fix comment
* treat all operations fields specially on kmip roles
* adjust kmip role edit form for new fields
* fix api-path test
* update document blocks for menu-loader and model-wrap components
* lay groundwork for application serializer to setup capabilities relationships
* add api path util and tests, and attach-capabilites fn
* make attach-capabilities work with array responses, add tests
* move download-button and toolbar-download-button to core addon
* add ca model and adapter and show CA on the engine configuration page
* add other side of model relationship for kmip ca<->config
* initialize tooltip
* style tooltip
* show date in tooltip
* show tooltip on hover
* style tooltip
* add hover padding for when bar is very short
* add tooltip test and format tooltip date
* revert to using real data
* update comment about binding the tooltip to shadowBars
* remove d3array
* use double colons for pseudo elements
* use elementId in bars-container id name to prevent clashing
* use Object.freeze to eliminate linting error
* extend edit form with a custom kmip role form
* adjust model fields and use new kmip role edit form
* customize serialize adapter hook for kmip/role
* refresh list routes in the list mixin
* style up kmip role edit form
* return a promise from preSave so that the queue helper waits to call save
* add serialize tests for the kmip/role adapter
* rename component to edit-form-kmip-role
* add tests for edit-form-kmip-role
* add some clarifying comments
* make input more realistic in tests
* remove delete toolbar
* add kmip engine
* adjust where kmip engine is mounted and sketch out routes
* add secret mount path service to share params to engines
* move list-controller and list-route mixins to core addon and adjust imports
* properly link kmip secrets from the secrets list page
* tweak routes and add list controllers
* stub out some models and adapters
* fix mixin exports
* move a bunch of components into the core addon
* use new empty yield in list-view in the namespace template
* scopes list using list-view and list-item components
* simplify and flatten routes, templates for all of the list pages
* role show route and template and scope create template
* add ember-router-helpers
* add more packages to the dependencies of the core addon
* add field-group-show component for listing fields from a model
* move more components to the shared addon
* make configure and configuration routes work and save a generated model
* save and list scopes
* role create, list, read
* list credentials properly
* move allowed attributes to field group
* show allowed operations on role details page
* add kmip logo to mount secrets engine list page
* add role edit page
* show all model attributes on role show page
* enable role edit
* fix newFields error by creating open api role model on the role list route
* only show selected fields on role edit page
* do not send scope and backend attrs to api
* move path-or-array to core addon
* move string-list component to core addon
* remove extra top border when there is only one field group
* add icons for all of the list pages
* update kmip config model so defaultValue doesn't error
* generate credentials
* credential create and show
* only show kmip when feature is enabled
* fix saving of TTL fields generated from Open API
* move masked-input and list-pagination components to core addon
* add param on edit form to allow for calling onSave after render happens
* polish credential show page and redirect there after generating credentials
* add externalLink for kmip engine
* add kmip-breadcrumb component
* use kmip-breadcrumb component
* add linkPrefix param to linked-block component to allow for routing programmatically inside an engine
* redirect to the right place when enabling kmip
* fix linting
* review feedback
* update signature for path-help usage
* fix ttl field expansion test
* remove role filed from role form, fix generate redirect
* remove field-group-show because it's in the core addon
* remove bottom rule from show pages
* fix Max TTL displayAttrs for ssh role
* update edit-form to take fields or attrs
* fix linting
* remove listenAddrs and set default val on ttl if a val is passed in
* add no-jquery rule and move event listeners to ember-concurrency tasks
* remove unnecessary onchange and handleKeyDown actions
* add element.closest polyfill and convert linked-block to use native dom apis
* update pretender, fetch, page-object, add optional-features, remove ember/jquery
* turn off jquery inclusion
* remove jQuery.isPlainObject usage
* violatedDirective isn't always formatted the same
* use fetch and the ember-fetch adapter mixin
* move to fetch and lowercase headers for pretender
* display non-ember-data errors
* use new async fn test style and lowercase headers in auth service test
* setContext is not necessary with the new style tests and ember-cli-page-object - it actually triggers jquery usage
* update ember-fetch, ember-cli-pretender
* wait for permissions check
* lowercase header name in auth test
* refactor transit tests to one test per key type
* simplify pollCluster helper
* stop flakey tests by prefering the native fetch
* avoid uncaught TransitionAborted error by navigating directly to unseal
* unset model on controller after unloading it because controllers are singletons
* update yarn.lock
* Add http request volume table (#6765)
* init http metrics page
* remove flex-table-column
* add http requests table
* calculate percent change between each counter
* start percent change tests
* style request table
* show percent more/less glyph
* add percent more less tests
* add inline alert about recorded metrics
* make arrows diagonal
* remove conditional inside countersWithChange
* add better error msg
* use tagName and wrapping element a la glimmer components
* extend ClusterRouteBase so auth and seal checks happen
* make table accessible
* remove curlies
* add HttpRequestsTable to storybook
* make table accessible
* use qunit dom for better assertions
* remove EmptyState since we will never have 0 requests
* ensure counters is set in test context
* Http request volume/add barchart (#6814)
* Add http request volume table (#6765)
* init http metrics page
* remove flex-table-column
* add http requests table
* calculate percent change between each counter
* start percent change tests
* style request table
* show percent more/less glyph
* add percent more less tests
* add inline alert about recorded metrics
* make arrows diagonal
* remove conditional inside countersWithChange
* add better error msg
* use tagName and wrapping element a la glimmer components
* extend ClusterRouteBase so auth and seal checks happen
* make table accessible
* remove curlies
* add HttpRequestsTable to storybook
* make table accessible
* use qunit dom for better assertions
* remove EmptyState since we will never have 0 requests
* ensure counters is set in test context
* add http-requests-bar-chart
* add HttpRequestsBarChart tests
* add HttpRequestsBarChart to Storybook
* format total number of requests according to locale
* do not show extra minus sign when percent change is negative
* add link to request metrics in status bar menu
* only show bar chart if we have data for more than 1 month
* make ticks lighter
* ensure charts show data for correct month
* make example counters response look like the adapter response instead of the raw api response
* ensure ui shows the same utc date as the api response
* add format-utc tests
* downgrade to d3 v4 to support ie11
* add gridlines
* move dasharray to css
* use scheduleOnce instead of debounce to prevent multiple re-renders
* add key function to bars
* add exit case when data is no longer in parsedCounters
* fix timestamp in table test
* fix timestamps
* use utcParse and fallback to isoParse for non-UTC dates
* fix bar chart tests
* ci: break config into separate files
* Untangle githooks
* githooks: fix whitespace
* .hooks/pre-commit: add ui -> lint-staged check
- We no longer require dependency on husky with this change.
* ui: remove husky dependency and config
- The previous commit obviates the need for it.
- We will now have to manage these hooks by hand, but this removes
the conflict between husky-installed hooks and those in the .hooks dir.
* ui: update yarn.lock with husky removed
* .hooks/pre-commit: always use subshell + docs
- Always use subshell means we consistently exit from the
same place which feels less complex.
- Docs are necessary for horrible bash like this I think...
* Makefile: remove old husky githooks
- Husky has installed a handler for every single git hook.
- This causes warnings on every git operation.
- Eventually we can remove this, but better not to confuse
people with these messages for now.
* ci: fix go build tags
* Makefile: improve compatibility of rm call
- Looks like the xargs in Travis does something different to the one
on my mac, this more verbose call should be safe everywhere.
* ci: fix make target names
* ci: fix test-ui invocation
* Makefile: simplify husky hook cleanup
* ci: more focussed readme
* use ember-power-select-with-create instead of ember-power-select
* add custom Add message to clarify whether you need a name or ID
* add search-select to storybook
* add wormhole div for ember-basic-dropdown
* add search-select to storybook
* make sure knobs are working
* remove unused code
* ci: make ember-ci-test (browserstack) VLTES-28
* Update .circleci/config.yml
Co-Authored-By: Josh Freda <jfreda@users.noreply.github.com>
* Update .circleci/config.yml
Co-Authored-By: Josh Freda <jfreda@users.noreply.github.com>
* ci: rename test-ember -> test-ui-browserstack
* Makefile: ember-ci-test -> test-ui-browserstack
- Use the same name for this test everywhere to reduce cognitive load.
* browserstack: exit non-zero on failure to connect
* .travis.yml: ember-ci-test -> test-ui-browserstack
* browserstack: add vault bin to the path
* Makefile: browserstack: fail early w/clear msgs
This might save someone time later. The same checks could be applied
elsewhere too trivially.
* upgrade yargs-parser for better quote handling
* remove encoding pre&post parse, and remove wrapping quotes when pushing to data array
* add test for spaces and strings
* base64 encode policy strings in tests where we're using them with string interpolation
* improve regex to only remove wrapping single and double quotes
* don't support quotes in paths in the web cli