mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-25 11:21:11 +01:00
* replace instances of ToolTip component with HDS tooltip * Replace InfoTooltip component instances with HDS tooltip * update tests * remove remaining custom tooltip code * remove rich tooltip with copy * update test and update toolbar link with styling to remove extra link * Apply suggestions from code review * update test and remove setRunOptions now that tooltip violations are addressed * Revert "Apply suggestions from code review" This reverts commit 90f01c653be68f23b6dbd75f252d227e38dbe53f. * Remove unused disabled tooltip code * add comment and TODO explaining conditional modifier pattern --------- Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com> Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Running Codemods
The handlebars codemods use ember-template-recast and can be run with the following:
- navigate to the UI directory of the Vault project
- execute
npx ember-template-recast "**/*.hbs" -t ./path/to/transform-file.js
This will run the transform on all .hbs files within the ui directory which covers the app and all addons. The terminal will output the number of files processed as well as the number of changed, unchanged, skipped and errored files. It's a good idea to validate the output to ensure that the intended transforms have taken place. If there are issues with some of the files, simply revert the changes via git, tweak the codemod and run again.
Example
npx ember-template-recast "**/*.hbs" -t ./scripts/codemods/no-quoteless-attributes.js