Lisbet Alvarez
371301b4ba
refactor: 💡 use hds::applicationstate instead of rose::message ( #2577 )
...
* refactor: 💡 use hds::applicationstate instead of rose::message
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15639
2024-12-04 14:16:05 -08:00
Zack Moore
6eb83b2a25
Upgrade HDS dependency to 4.13 & migrate FlightIcon to Hds::Icon ( #2540 )
...
* updated hds and replaced deprecated flight-icon
* removed code trying to import from ember-flight-icons
* fixing linting issue
* fixing linting issue
* fixing dropdown test selectors
* updated dropdown selectors
* updated dropdown selectors
* updated dropdown selectors
* addressing pr feedback
* fixing linting error
* updating dropdown selectors
2024-11-04 11:29:56 -06:00
Lisbet Alvarez
0f52b86364
refactor: 💡 remove route-action usage for targets and sessions ( #2528 )
...
* refactor: 💡 remove route-action usage for targets and sessions
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15040
2024-10-22 13:16:58 -07:00
Zhihe Li
b40c53fb45
feat: 🎸 Update alert designs ( #2496 )
2024-09-24 14:30:52 -04:00
Zhihe Li
97258f7525
Use updated cache daemon ( #2475 )
...
* feat: 🎸 Handle truncated cache daemon response
2024-09-24 14:30:52 -04:00
Zhihe Li
20e6df522a
feat: 🎸 Hide daemon errors initially ( #2477 )
...
* feat: 🎸 Hide daemon errors initially
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14961
* feat: 🎸 Move the user and server cards up in settings
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14962
2024-09-24 11:58:26 -04:00
Zhihe Li
edaf19f59b
feat: 🎸 Add section for client agent in settings ( #2442 )
...
* feat: 🎸 Add section for client agent in settings
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14780
2024-09-24 11:58:25 -04:00
Dharini Jeeva
de5defeab2
Icu 14781 add a section for server information ( #2438 )
2024-09-24 11:58:25 -04:00
Zhihe Li
e4f4394197
Icu 14403 add dropdown to select and save log verbosity ( #2431 )
...
* feat: 🎸 Add logging settings card
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14403
2024-09-24 11:58:25 -04:00
Dharini Jeeva
0b9357e9b3
chore: 🤖 add user info ( #2425 )
...
* chore: 🤖 add user info
2024-09-24 11:58:25 -04:00
Dharini Jeeva
777380e19f
Add theme selection ( #2428 )
...
* fix: 🐛 remove theme from main menu bar and move to settings pag
* chore: 🤖 move toggletheme to app controller
2024-09-24 11:58:24 -04:00
Dharini Jeeva
25b3a940a3
Icu 14400 add a section for version info cli and dc ( #2409 )
...
* chore: 🤖 cli info
2024-09-24 11:58:24 -04:00
Dharini Jeeva
a97f66e011
feat: 🎸 settings page ( #2395 )
...
* feat: 🎸 settings page
2024-09-24 11:58:24 -04:00
Lisbet Alvarez
8605a54221
refactor: 💡 remove route-action usage for scopes in desktop ( #2447 )
...
* refactor: 💡 remove route-action usage for scopes in desktop
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12621
2024-09-17 16:36:47 -07:00
Dharini Jeeva
ae5a03250f
fix: 🐛 add visuallyhidden to empty table columns ( #2383 )
2024-07-15 10:15:55 -07:00
Zhihe Li
0094cef9f5
refactor: 💡 Rename client daemon to cache daemon ( #2346 )
2024-06-17 17:16:07 -04:00
Dharini Jeeva
9b1f052a56
chore: Update desktop client license from MPL to BSL ( #2307 )
...
* chore: 🤖 license
2024-05-31 11:29:24 -07:00
Dharini Jeeva
4c342061d3
fix: 🐛 aliasing bugs ( #2257 )
...
* fix: 🐛 aliasing bugs
2024-04-22 12:16:00 -07:00
Zhihe Li
79a932bebb
feat: 🎸 Add aliases to list view ( #2256 )
...
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13487
2024-04-19 16:18:32 -04:00
Dharini Jeeva
f9cd1c331f
feat: 🎸 show associated aliases in target detail page ( #2249 )
...
* feat: 🎸 show associated aliases in target detail page
2024-04-17 12:39:34 -07:00
Lisbet Alvarez
edba33bbda
Icu 13359 refactor query requests for resources added to indexed db ( #2224 )
...
* refactor: 💡 update query requests for resources in indexedDB
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13359
2024-04-12 14:55:34 -04:00
Cameron Perera
eb4ec5f6de
refactor: 💡 update Dropdown component to have name & toggleText ( #2218 )
...
* refactor: 💡 update Dropdown component to have name & toggleText
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13336
* test: 💍 remove hds class selector
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13336
2024-04-12 14:55:33 -04:00
Carlos Alcaide Corvo
956f6fd04d
refactor: 💡 Adopt HDS copy snippet Desktop UI ( #2146 )
...
* refactor: 💡 Adopt HDS copy snippet Desktop UI
Adopt HDS copy snippet and delete usage of Copyable custom component
2024-02-22 13:56:56 -08:00
Zhihe Li
06cc64e6af
fix: 🐛 Add refresh button back ( #2124 )
2024-01-30 19:54:34 -05:00
Cameron Perera
842a84296a
refactor: 💡 remove icon from sessions table for session id ( #2108 )
2024-01-24 16:12:07 -06:00
hashicorp-copywrite[bot]
314c1b36f4
[COMPLIANCE] Add Copyright and License Headers ( #2100 )
...
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2024-01-22 12:12:44 -05:00
Cameron Perera
1488bdf95e
Icu 12027 let the user know if the dc isnt compatible with the controller and link them to the previous version ( #2073 )
...
* chore: 🤖 allow use of hashicorp release endpoints in desktop
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 use page_size to bypass pagination in query adapter
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 add list_token mirage scopes list response
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* feat: 🎸 add logic for unsupported controllers
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 add comment to application adapter change
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 rename scopes controller method
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 remove scopes controller
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 use beforeModel and setupController hook for scopes
along with converting scopes model back to original state
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 remove styling to hide modal dismiss button
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 update comment for opening external links
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 revert model hook changes for scopes
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* test: 💍 remove target connect test from scopes acceptance tests
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* test: 💍 add tests for unsupported controller logic
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* test: 💍 update modal test to waitFor elements to render
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 remove use of set and get from scopes router
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* refactor: 💡 default isPaginationSupported to false
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* test: 💍 remove unsupported controller tests
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* test: 💍 add tests back but skip them
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
* test: 💍 fix failing tests
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12027
2024-01-16 10:17:47 -05:00
Zhihe Li
2e36d3c3e2
feat: 🎸 Add fallback if client daemon is down or errors ( #2085 )
...
* feat: 🎸 Add fallback if client daemon is down or errors
* test: 💍 Add tests for client daemon being down
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12026
2024-01-16 10:17:46 -05:00
Cameron Perera
9046c01238
feat: 🎸 target list will update according to org scope selected ( #2083 )
...
* feat: 🎸 target list will update according to org scope selected
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12205
* refactor: 💡 add comment to resetController logic
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12205
* feat: 🎸 filter sessions by org selected at global level
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12205
2024-01-16 10:17:46 -05:00
Zhihe Li
ba0c7d5683
feat: 🎸 Add loading indicators for initial loads of resources ( #2074 )
...
* feat: 🎸 Add loading indicators for initial loads of resources
* refactor: 💡 Use HDS application state component
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12025
2024-01-16 10:17:46 -05:00
Lisbet Alvarez
a1fbfdc1ad
Icu 11804 filter targets by type ( #2063 )
...
* feat: 🎸 filter targets by type
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11804
* refactor: 💡 remove console.log
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11804
* docs: ✏️ fix comment typo
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11804
2024-01-16 10:17:46 -05:00
Lisbet Alvarez
c7483e5602
feat: 🎸 filter sessions by status & scope ( #2058 )
...
* feat: 🎸 filter sessions by status
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12067
2024-01-16 10:17:46 -05:00
Cameron Perera
7fa2541ddb
Icu 12069 clear current filters component for scopes filter ( #2051 )
...
* feat: 🎸 add filters applied tags under search/filter bar
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* feat: 🎸 create Rose::FilterTags component
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 use Rose::FilterTags component in targets list
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 update FilterTags to handle multiple queryParams
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* test: 💍 update dropdown component tests - applyFilter
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* feat: 🎸 create filter-tags component in core
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* chore: 🤖 update core addon to export styles
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 remove filter-tags component from rose addon
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* chore: 🤖 update sass package version
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* feat: 🎸 use FilterTags component in targets list screen
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 reduce component complexity
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* chore: 🤖 add sinon to core
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 update how FilterTags displays filters
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 trucate long tag names
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 wrap FilterTags component in if this.filters
to fix issue of static text displaying before the dynamic tags
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
* refactor: 💡 address feedback
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12069
2024-01-16 10:17:46 -05:00
Lisbet Alvarez and Zhihe Li
05553643a6
feat: 🎸 filter sessions by target ( #2053 )
...
* feat: 🎸 filter sessions by target
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
* docs: ✏️ add missing comment
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
* refactor: 💡 make action reusable
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
* refactor: 💡 remove unnecessary block
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
* refactor: 💡 fix tests, add hds app state
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
* perf: ⚡ ️ set limit of targets rendered in dropdown
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
* fix: 🐛 change from displayName to name
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
* Update addons/core/addon/components/dropdown/index.hbs
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
* refactor: 💡 remove # from if statement and remove .slice
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12066
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
2024-01-16 10:17:46 -05:00
Zhihe Li
47cf7995d3
feat: 🎸 Add active session filter ( #2052 )
...
* feat: 🎸 Add active session filter
* fix: 🐛 Fix tests and verify client daemon calls are correct
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11803
2024-01-16 10:17:46 -05:00
Lisbet Alvarez and Zhihe Li
c06d18940d
Icu 11916 add flyout for session in prgoress field ( #2042 )
...
* feat: 🎸 sessions flyout for targets list view
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11916
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
2024-01-16 10:17:46 -05:00
Cameron Perera
9fec047506
Icu 12060 move rose filterable dropdown to core ( #2048 )
...
* feat: 🎸 generate new dropdown component in core
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* feat: 🎸 add template and class code to new dropdown component
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* chore: 🤖 add lodash package to core addon
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* test: 💍 add tests for core/dropdown component
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* refactor: 💡 use new core/dropdown in targets list screen
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* refactor: 💡 remove rose/filterabledropdown
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* feat: 🎸 add maxHeight to core/dropdown component
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* style: 💄 fix lint errors in dropdown/index-tests
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* refactor: 💡 update height to match designs
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* chore: 🤖 remove lodash from ui/admin
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* chore: 🤖 remove lodash from ui/desktop
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* chore: 🤖 move lodash to devDep in core
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* chore: 🤖 add lodash as core dependency
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* test: 💍 use waitUntil & findAll instead of setTimeout
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* chore: 🤖 add lodash as peerDependency for core
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
* refactor: 💡 update waitUntil with suggestion from PR
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12060
2024-01-16 10:17:46 -05:00
Zhihe Li
916b261cdf
refactor: 💡 Optimize the retrieval of targets for scopes filter ( #2047 )
2024-01-16 10:17:46 -05:00
Lisbet Alvarez
f801f595f7
Icu 11915 add session in progress field to the table and populate it ( #2028 )
...
* initial support for sessions in targets list view
2024-01-16 10:17:46 -05:00
Cameron Perera
7af8e71a2d
Icu 11802 filter targets by project scope ( #2022 )
...
* feat: 🎸 add ability to filter targets by scope
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 update model hook signature comment
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 remove await from cancel session route transition
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 add comments to new controller methods
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 add options to query for all targets
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 handle ESC key press for dropdown
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* feat: 🎸 add searching within scope dropdown list
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 set pushToStore to false for all target query
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 handle scopes not having names
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 move fetch allTargets to controller
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 fix rebase conflicts
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* test: 💍 fix test
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 update allTargets query to have empty query
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 change let to const
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 add replace: true to scopes query param
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 add allTargets fetch back to model hook
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 change on search to on input to trigger action
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* test: 💍 fix test by adding more target returns to stub
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* feat: 🎸 create filterable-dropdown rose component
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* feat: 🎸 finish Rose::FilterableDropdown component
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* feat: 🎸 use FilterableDropdown in targets table
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 🤖 move methods comment
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 render Rose::FilterableDropdown correctly in test
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* test: 💍 remove generated comments from tests
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 improve readability of itemOptions getter
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* refactor: 💡 change block parameters to uppercase
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
* test: 💍 skip generated tests until adding more
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11802
2024-01-16 10:17:46 -05:00
Zhihe Li
15d815c271
feat: 🎸 Add pagination component to targets ( #2023 )
...
* feat: 🎸 Add pagination component to targets
* test: 💍 Fix tests and add helper for client daemon search
* refactor: 💡 Update the returns from client daemon
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11905
2024-01-16 10:17:45 -05:00
Zhihe Li
3f11019ef0
feat: 🎸 Add pagination support to client daemon handler ( #2016 )
...
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11743
2024-01-16 10:17:45 -05:00
221ab1f7bd
Icu 11748 add free search for targets ( #1995 )
...
* refactor: 💡 fix how we access socket_address from status call
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* feat: 🎸 add free search capability to targets list
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* test: 💍 update test asserts to look for hds appl state title
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* refactor: 💡 remove filtering for yes, no, & narrow-results
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* refactor: 💡 add aria-label to dropdown search input
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* refactor: 💡 add to handleInput signature comment
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* refactor: 💡 move buildQuery to client daemon handler
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* refactor: 💡 Add new parser for MQL expressions
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* refactor: 💡 use queryParams for searching
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* fix: 🐛 Fix some MQL expressions not being properly filtered
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* style: 💄 update handleSearchInput comment signature
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11748
* Update addons/api/addon/utils/mqlQuery.js
Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com >
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com >
2024-01-16 10:17:45 -05:00
9782f7e243
feat: 🎸 Implement time-remaining helper into desktop UI ( #2018 )
...
* 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 >
2023-12-07 16:01:57 -05:00
Devon Anderson
3b3a00e1ee
Upgrade desktop UI to Ember 4.12.2 ( #1990 )
...
* Upgrade desktop UI to Ember 4.12.2
* refactor: 💡 refactor scripts
Refactor concurrently scripts, and removed duplicate entries in
`eslintrc.js`
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747
* refactor: 💡 peer dependencies
Revert changes to `peerDependencies`.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747
* refactor: 💡 revert config back before upgrade
Revert `styelint-standard-config-scss` back to 6.0.0 so that it can be
put into seperate ticket.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747
* Update _notify.scss
fix misspelling
* refactor: 💡 revert dependency
Revert `stylelint-config-standard-scss` back to original version
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747
2023-11-15 11:29:24 -05:00
Cameron Perera and Dharini Jeeva
f54d48c380
refactor: 💡 allow target connection even with no read ability ( #1984 )
...
* refactor: 💡 allow target connection even with no read ability
* Update ui/desktop/tests/acceptance/projects/targets/index-test.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com >
* refactor: 💡 remove unneeded await from transitionTo
---------
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com >
2023-11-03 16:01:51 -05:00
Zhihe Li
1ddabf4980
feat: 🎸 Add checks for cancel permissions in desktop sessions ( #1980 )
...
* feat: 🎸 Add checks for cancel permissions in desktop sessions
* chore: 🤖 Move model hook from session to session.index
2023-11-02 13:42:51 -04:00
Cameron Perera
f879bbb1ec
Session permissions issue ( #1975 )
...
* 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
2023-11-01 11:22:18 -05:00
Carlos Alcaide Corvo and cameronperera
3f8e39d0e1
Host set permission issue ( #1968 )
...
* 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 >
2023-10-30 12:54:37 -05:00
Lisbet Alvarez
bac3593b97
fix: 🐛 host modal renders whenever there is an error during connection ( #1936 )
...
* fix: 🐛 host modal renders whenever there is an error
✅ Closes: ICU-11231
* test: 💍 add test case to make sure fix is working properly
* fix: 🐛 toggle flag back to false and remove @tracked
* fix: 🐛 host modal should also close after host connection error
* refactor: 💡 change toggle to toggleModal
* test: 💍 rename toggle in test cases
2023-10-02 07:26:10 -05:00