* feat: 🎸 implement helper
Implement `time-remainig` helper to display duration of a session for
desktop app.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10487
* refactor: 💡 Refactored scenarios
Refactored `ipc.js` scenario to include `expiration_time` for a new
session.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10487
* fix: 🐛 Fix add expiration_time when user has no grants to read (#2024)
* refactor: 💡 refactor styles
Removed `div` and added `Hds::Badge` to `h1` element. Condensed and
renamed styling for title to `session-details-info`
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10487
* Refactored `projects/targets` controller to return the correct `expiration_time` field returned from CLI. Cleaned up CSS for `session-details-info` attribute and wrapped `@model.displayname` in span tag.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10487
* Update ui/desktop/app/controllers/scopes/scope/projects/targets/index.js
mixed naming expiration field on payload to store
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* refactor: 💡 refactored page header
Refactored `sessions` header to use `<Hds::Text::Dislpay/>` instead of a
span.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10487
* refactor: 💡 refactor cli response
Refactor `expiration` field from CLI response to be the correct
definition
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10487
* refactor: 💡 refactor sessions layout
Removed span as parent of header information, and pushed styles to
yielded page.header. Fixed stub in test
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10487
---------
Co-authored-by: Carlos Alcaide Corvo <ccorvo@hashicorp.com>
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* 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: 💡 session isCancelable to isAvailable
* refactor: 💡 check for target info for showing target details
* refactor: 💡 add fallback for session data from connect command
* refactor: 💡 remove extra divs
* refactor: 💡 remove await from peekRecord of a session
* test: 💍 add test for no read permission for sessions
* test: 💍 reset global qunit after test is done
* 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
* test: 💍 update acceptance tests in desktop UI
✅ Closes: ICU-11130
* test: 💍 move tests to target-test.js
* test: 💍 add another test case for targets list view
* 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: 🎸 add canRead ability for session model
* refactor: 💡 create constant values for session status types
* feat: 🎸 add link to session detail from sessions list
✅ Closes: ICU-10521
* chore: 🤖 Upgrade API layer to ember 4.12
* chore: 🤖 Upgrade ember-data to 4.12
* fix: 🐛 Fix breaking change from usage of internal method
* chore: 🤖 Remove stylelint in API addon
* test: 💍 Fix broken API tests
* chore: 🤖 get rid of toArray
* test: 💍 Fix tests broken by ember data changes
---------
Co-authored-by: dharini <dharini@hashicorp.com>
* refactor: 💡 Refactor ldap account view and serializer
Refactor LDAP account view to only show `InfoField` fields if values are
not `undefined`. Also fixed bug for updating accounts.
✅ Closes: ICU-10514
* refactor: 💡 clean up code
Quick cleanup of code for accounts
* Update account.js
change text for commit
* Update index.hbs
* refactor: 💡 format hbs
format hbs
* fix: 🐛 accounts update refactor
Changed `type` and `auth_method_id` on `accounts` model to `readOnly` so
it is not sent in API payload.
✅ Closes: ICU-10503
* refactor: 💡 fix test
Refactor test to not include removed attributes.
* refactor: 💡 refactor test
Fix test
* 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
* feat: 🎸 create CRUD:read
Create LDAP CRUD:read details form by adding
`client_certificate_key_hmac` and `bind_password_hmac` attributes.
✅ Closes: ICU-10064
* refactor: 💡 refactor ldap details view
Revert details view for LDAP to not show HMAC