* feat: 🎸 create helper
Create `time-remaining` helper to track remaining session time.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* refactor: 💡 Clean up code for time-remaining helper
Moved time remaining helper into `core` addons folder. Cleaned up the
`time-remaining` helper to use the `DurationUnitFormat` service.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* Update session.hbs
removed test implementation
* refactor: 💡 files added for helper
files added for helper
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* Update session.hbs
fix linting
* refactor: 💡 fix uneeded spacing
Fix spacing on hbs file used for testing time-remaining helper
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* refactor: 💡 refactor time-remaining helper
Cleaned up code that was returning a string if `differenceInSeconds` was
less than or equal to zero. Code is now conditionally checking in the
`differenceInSeconds` variable if the `difference` is greater than zero.
If it is not then it will return zero and let the `DurationUnitFormat`
handle the rest.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* refactor: 💡 fix failing test
Fix failing `time-remaining` test
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* chore: 🤖 Upgrade addons/rose dependencies
Upgraded `addons/rose` dependencies to match other addons. Lint fixes,
and fixed scripts for concurrently
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11587
* v4.4.1...v4.12.2
* Update ember-try.js
change scenarios to match 4.12.2
* Update addons/rose/tests/integration/components/rose/button-test.js
Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
* Update ember-try.js
originally had the right scenarios for 4.
12.2
* chore: 🤖 upgrade ember-cli-babel
Upgrade ember-cli-babel to match other addons
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11587
* Update button-test.js
fix test declaration statement
---------
Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
* refactor: 💡 allow for graceful error handling when connecting
to a target where host-sets cannot be fetched
* refactor: 💡 update for loop to for...of loop
* Move fetching host from target to session domain
* Decouple getting target host-sets and getting hosts from the host-sets, now this code is extracted in 2 methods. Now if the user does not have permissions to fetch host or host-sets we do not show an error and we allow for quick-connect approach
* Fix a check within getHostsFromHostSets
* Change a for loop for Promise.all within getTargetHostSets
* Change a for loop for Promise.All within getHostsFromHostSets
* Delete unnecessary condition
* Delete unnecessary condition
* chore: 🤖 remove host sources from target mirage factory
by default it uses address when using 'withAssociations'
* test: 💍 update target address tests to use 'withOneHost'
* test: 💍 remove connect tests from scopes acceptance tests
* refactor: 💡 remove can initiate connect target ability
and associated code and tests
* refactor: 💡 update target model afterModel hook, and preconnect
* refactor: 💡 revert 'withAssociations' mirage change
* test: 💍 add tests for permissions issues for host-sets and host
* test: 💍 visiting session without permissions to read hosts
---------
Co-authored-by: cameronperera <cameron.perera@hashicorp.com>
* chore: 🤖 Upgrade `addons/core` to Ember 4.12.2
Upgrade `addons/core` to Ember 4.12.2
✅ Closes: ICU-11341
* refactor: 💡 testing updating plugin-proposal-decorators version
Update `@babel/plugin-proposal-decorators` to latest version.
* refactor: 💡 testing legacy plugin-proposa-decorators version
Testin `legacy` version for `plugin-proposal-decorators` plugin
* refactor: 💡 testing plugin-proposal-decorators
Testing `@babel/plugin-proposal-decorators`
* refactor: 💡 Revert @babel/exlint-parser to previous version
Revert `@babel/eslint-parser` to use version 2018 EcmaScript version
until further research is done on latest versions
* Update package.json
put @babel/core back into `devDependencies`
* refactor: 💡 testing linging changes
Pushed ember-tempalate-lint, prettier, and ember template lint plugin
for prettier to latest versions to test why CI builds are not passing.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11341
* feat: 🎸 add Proxy URL info to session detail screen
✅ Closes: ICU-10311
* chore: 🤖 add setupIntl to proxy-url tests
* refactor: 💡 update styles for proxy-url component
* refactor: 💡 display proxy info based on target type
* refactor: 💡 move proxy-url into session specific directory
* refactor: 💡 change template logic for which command to show
* refactor: 💡 remove isSSH getter for session/proxy-url
* feat: 🎸 add credentials panel for session detail screen
✅ Closes: ICU-10315
* fix: 🐛 remove use of A in sessions list array
* refactor: 💡 fix class name to apply style to both detail screen
* refactor: 💡 add comment to resetController on session route
* refactor: 💡 add @value to HDS Toggle in session detail page
* refactor: 💡 class name refactor for credential panel
* refactor: 💡 remove unneeded div around CodeEditor
* refactor: 💡 change border units from rem to px
* feat: 🎸 create CredentialsPanel component
* Update ui/desktop/tests/integration/components/credentials-panel-test.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* refactor: 💡 update credential panel styles
* style: 💄 fix lint error for desktop styles
* chore: 🤖 yarn.lock update
---------
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* feat: 🎸 CRUDL capabilites for ldap managed-group
✅ Closes: ICU-10100
* refactor: 💡 managed-group serializer & remove members tab
* refactor: 💡 show members tab
* fix: 🐛 add type getters in managed group model
* refactor: 💡 fix column name
* refactor: 💡 Refactor default option in scope field and desc
Refactor default option for scope field to be 'Choose an option' instead
of 'Global', so user can explicitly select their scope. Refactor scope
field descriptions to give different context based on if the selection
is 'global' or an 'org' scope.
✅ Closes: ICU-9641
* refactor: 💡 refactor translations
Added correct translations for default, global, and org. Added small bit
of logic to help with switch of text on `onChange` event.
* refactor: 💡 Add loading substate for channels
* refactor: 💡 Use conditional block for session recording player
* style: 💄 Use a unicode ellipsis instead of periods
* refactor: 💡 rename asciiCast to asciicast (#307)
---------
Co-authored-by: cameronperera <cameron.perera@hashicorp.com>
* fix: 🐛 Fix isAsciicast check
✅ Closes: ICU-9511
* fix: 🐛 add message for channels that cannot be played back
* Update ui/admin/app/templates/scopes/scope/session-recordings/session-recording/channels-by-connection/channel.hbs
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* refactor: 💡 update not supported message
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* refactor: 💡 refactor worker form fieldset to use HDS
* feat: 🎸 add recording_storage_path optional config for workers
* chore: 🤖 tweak language and add learn-more link
* chore: 🤖 add additional feature check
* Update addons/core/translations/resources/en-us.yaml
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* chore: 🤖 use hds inline link
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>