Cameron Perera and Zhihe Li
b86ce41e68
fix: 🐛 use filter query param to filter by org scope id ( #2103 )
...
* fix: 🐛 use filter query param to filter by org scope id
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 remove duplicate call for scopes.scope model
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 add filter to allTargets and sessions query
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 reset query params for targets and sessions
on org scope change
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 remove open/close parens from filter string
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 Update logic on when to reset query parameters
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 filter sessions query by parent scope isOrg
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 update to & from transition references
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
* refactor: 💡 update to & from transition references for sessions
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12309
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
2024-01-24 10:18:28 -06:00
Lisbet Alvarez
5a9cbdd913
refactor: 💡 change filter name ( #2102 )
2024-01-22 14:07:11 -08:00
Lisbet Alvarez and Zhihe Li
9e6d647949
Icu 12137 add additional session sorting and add default filters ( #2084 )
...
* chore: 🤖 add additional session sorting and add default filters
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12137
* test: 💍 fix test
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12137
* Update ui/desktop/app/controllers/scopes/scope/projects/sessions/index.js
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
2024-01-16 10:17:46 -05:00
Zhihe Li
16a054519f
fix: 🐛 Fix display of no results from type filter ( #2075 )
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
Zhihe Li
916b261cdf
refactor: 💡 Optimize the retrieval of targets for scopes filter ( #2047 )
2024-01-16 10:17:46 -05:00
Zhihe Li
15da4ea69f
fix: 🐛 Fix failing tests from rebase onto main ( #2045 )
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
Zhihe Li
1135f88cb7
feat: 🎸 Add debouncing for the search bar ( #2008 )
...
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11851
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
Lisbet Alvarez and Zhihe Li
550dee9ae0
Icu 11861 add sorting to session recording ( #2005 )
...
* refactor: 💡 add sorting to session recordings & sessions
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11861
* Update ui/admin/app/routes/scopes/scope/session-recordings.js
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
2024-01-16 10:17:45 -05:00
Lisbet Alvarez
6ae3067dd9
refactor: 💡 remove unnecessary sorting due to pagination change ( #1996 )
...
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11787
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
Zhihe Li
bcf004b8a4
Reformat codebase with trailing commas in functions ( #2006 )
...
* style: 💄 Update trailing commas in API
* style: 💄 Update trailing commas in core
* style: 💄 Update trailing commas in rose
* style: 💄 Update trailing commas in admin
* style: 💄 Update trailing commas in desktop
2023-11-22 14:07:41 -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
Cameron Perera
861562201b
refactor: 💡 remove unused target/sessions controller ( #1979 )
2023-11-01 13:54:36 -05: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
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
Cameron Perera
c5cffd5137
feat: 🎸 create Host Modal for connecting to specific modal ( #1898 )
...
✅ Closes: ICU-10432
2023-09-22 18:58:14 -04:00
Cameron Perera
374b21bcff
feat: 🎸 update connect logic for targets with static addresses ( #1874 )
...
* feat: 🎸 update connect logic for targets with static addresses
✅ Closes: ICU-10430
* refactor: 💡 remove console logs
* refactor: 💡 add missing awaits
2023-09-22 18:58:14 -04:00
Dharini Jeeva
40673c180c
chore: fix sortby deprecation warning ( #1842 )
...
chore: 🤖 install lodash and fix sortby deprecation
2023-08-15 11:36:57 -07:00
hashicorp-copywrite[bot] and Cameron Perera
3d610427d0
[COMPLIANCE] Add Copyright and License Headers ( #1617 )
...
* [COMPLIANCE] Add Copyright and License Headers
* chore: 🤖 update Copyright headers to satisfy our lint rules
---------
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com >
2023-03-01 09:39:41 -06:00
Randall Morey
ea1c32ad8b
chore: 🤖 manual merge from main
2021-03-06 10:34:44 -05:00
Randall Morey
ba34b6c4f9
refactor: 💡 upgrade ui/desktop to Ember 3.24
2021-03-05 17:49:47 -05:00
Randall Morey
13a8b531a7
feat: 🎸 filter top-level sessions by current user ID
2021-02-26 16:37:12 -05:00
Randall Morey
87c91d5d62
fix: 🐛 target sessions should update on poll
2021-02-11 15:48:46 -05:00
Randall Morey
0e0083b6c7
Merge branch 'main' into refactor-recursive-desktop
2021-02-11 10:45:07 -05:00
Randall Morey
8e43f3aef6
chore: 🤖 PR feedback
2021-02-11 10:44:48 -05:00
Susmitha Girumala
3f3e21e60c
refactor: Sort and filter active sessions in a target
2021-02-10 16:19:29 -05:00
Randall Morey
0b8550c136
refactor: 💡 use recrusive listing for desktop queries
...
and add mock rescursive support for scopes, targets, and sessions
2021-02-10 13:19:24 -05:00