Commit Graph
56 Commits
Author SHA1 Message Date
Zhihe Li 4bf1a88764 feat: 🎸 Add handler to make search requests to client daemon (#1989)
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11691
2024-01-16 10:17:45 -05:00
Zhihe Li b8b970ce4d feat: 🎸 Add initial setup for client daemon integration (#1987)
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11702
2024-01-16 10:17:45 -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
Carlos Alcaide Corvoandcameronperera 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 3740bb079a Icu-11111 don't display empty modal when a target has no target address and no host sources (#1909)
* fix: 🐛 disable connect buttons & add message

✅ Closes: ICU-11111

* test: 💍 add test cases

* fix: 🐛 buttons on list view & add getter to target model

* refactor: 💡 use can ability instead and remove Promise.all

* test: 💍 fix expect number
2023-09-22 18:58:15 -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
Cameron Perera 4b9496b4f2 Icu 10491 create route for session/session-id (#1825)
* fix: 🐛 call displayName on model

* feat: 🎸 add sessions/session-id route and base layout

✅ Closes: ICU-10491
2023-09-22 18:58:13 -04:00
Cameron Perera 55eca5037e refactor: 💡 Remove targets/target-id/hosts route and tests (#1810)
* refactor: 💡 Remove targets/target-id/hosts route and tests

✅ Closes: ICU-10316

* refactor: 💡 Remove targets/target-id/sessions route and tests (#1811)

* refactor: 💡 Remove targets/target-id/sessions route and tests

✅ Closes: ICU-10317

* refactor: 💡 remove targets/target-id/sessions controller
2023-09-22 18:58:13 -04:00
hashicorp-copywrite[bot]andCameron 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
Carlos Alcaide Corvo 4fcb005a1f Refactor origin to cluster (#1210) 2022-07-27 10:25:01 -07:00
Carlos Alcaide Corvo 6f8afbb7af Chore update eslint and plugins update (#1171) 2022-07-07 11:18:51 -07:00
Randall Morey 2bb63c3775 refactor: 💡 merge model and collection abilities 2022-01-31 12:02:37 -05:00
Randall Morey 0879a0430d chore: 🤖 upgrade deps for ember 3.28 and fix qunit lint errors 2021-10-23 11:48:10 -04:00
Randall Morey 4659b54e9e feat: 🎸 add ui-level navigation ability 2021-08-19 17:52:27 -04:00
Randall Morey 863e81bc01 fix: 🐛 migrate IPC to service-based window for reliable testing
This resolves a longstanding issue where IPC tests rely on the real
window.postMessage and MessageChannel APIs.  These are evented and
asynchronous, resulting in nondeterministic tests.  This commit updates
tests with synchronous mocked APIs.
2021-05-08 12:08:56 -04:00
Susmitha Girumala 1a901b15d2 fix: Trim first to avoid leaving trailing slashes in origin 2021-04-13 16:57:07 -04:00
Susmitha Girumala e894dbc4e8 fix: Trim origin url in desktop 2021-04-13 16:57:07 -04:00
Randall Morey 586a4dbe23 feat: 🎸 roll out OIDC to desktop 2021-04-12 18:10:08 -04:00
Randall Morey d1303c7bca Merge branch 'main' into feature-oidc-authenticate 2021-04-09 13:27:38 -04:00
Randall Morey 0d8508cd4e fix: 🐛 silently drop trailing slashes from origin input 2021-04-08 13:45:19 -04:00
Randall Morey 3d13d8f412 refactor: 💡 auth payloads now have "attributes" field 2021-04-01 17:41:30 -04:00
Susmitha Girumala 6bd994c86b tests: Update unit tests in desktop 2021-03-19 12:09:06 -04:00
Randall Morey ba34b6c4f9 refactor: 💡 upgrade ui/desktop to Ember 3.24 2021-03-05 17:49:47 -05:00
Randall Morey 0e0083b6c7 Merge branch 'main' into refactor-recursive-desktop 2021-02-11 10:45:07 -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
Susmitha Girumala 1e7da91574 Merge remote-tracking branch 'origin/navigate-into-a-target' into active-sessions-in-a-target 2021-02-04 16:36:55 -05:00
Susmitha Girumala 0050615062 Merge branch 'main' into navigate-into-a-target 2021-02-04 16:30:05 -05:00
Susmitha Girumala fbdae2c532 feat: Add /target/sessions route 2021-02-04 10:49:14 -05:00
Susmitha Girumala 621c8ec2f1 feat: Add hosts nav tab in a target view 2021-02-03 11:20:38 -05:00
Randall Morey 10e0a3d5a7 chore: 🤖 create related sessions on connect in dev for mocks 2021-02-02 15:42:08 -05:00
Susmitha Girumala 0d2bb33876 feat: Add /targets/:target_id route 2021-02-02 14:52:34 -05:00
Susmitha Girumala f922c90a0f refactor: Remove unnecessary global user creation in test 2021-01-29 15:23:55 -05:00
Susmitha Girumala ff447981a1 fix: desktop: revert header padding & fix broken tests 2021-01-08 13:22:13 -05:00
Susmitha Girumala 0d6a60d080 feat: Basic sessions view 2021-01-07 17:41:03 -05:00
Randall Morey 77f21f696d feat: 🎸 Ember IPC service rejects when receiving error instance 2020-12-03 15:08:36 -05:00
Randall Morey d4be5504bf refactor: 💡 extract origin procedures into service 2020-11-24 16:19:52 -05:00
Susmitha Girumala 68107589bb refactor: Scope service into core addon and desktop routes
Ensure top-level scopes route within ui/admin and ui/desktop are exactly
the same in preparation for future refactor.

feat: Add projects/targets route

chore: yarn:format output in ui/desktop

test: Add basic acceptance tests for projects and targets
2020-11-23 16:22:34 -05:00
Randall Morey 0c6187e707 refactor: move mock IPC to initializer 2020-11-23 14:16:43 -05:00
Randall Morey 1cff850b17 chore: 🤖 apply prettier formatting to ui projects 2020-11-16 15:08:59 -05:00
Randall Morey d84d427ff5 test: 💍 add missing auth navigation and setup initial tests 2020-11-13 17:10:56 -05:00
Randall Morey aa40a3c917 feat: 🎸 add origin flow 2020-11-13 15:20:26 -05:00
Susmitha Girumala d81e2b26a7 Merge branch 'main' into add-project-to-targets-view 2020-11-13 10:37:19 -05:00
Randall Morey 5ecf0eaad8 feat: 🎸 add initial auth flow 2020-11-12 15:13:28 -05:00
Randall Morey f9693ec365 chore: 🤖 initial ember-simple-auth installation 2020-11-12 13:22:16 -05:00
Susmitha Girumala 85ef0915fd chore: Match ui/desktop prettier config to ui/core 2020-11-12 10:33:13 -05:00
Susmitha Girumala 865207c190 chore: Fix lint errors and format 2020-11-11 16:43:49 -05:00
Susmitha Girumala 06a3014bf9 feat: Add project name to targets list in desktop 2020-11-11 15:59:16 -05:00
Susmitha Girumala 88ec06624e Merge remote-tracking branch 'origin/main' into add-scope-header 2020-11-10 16:52:24 -05:00
Susmitha Girumala 9656c883bc feat: Init targets route 2020-11-10 16:48:15 -05:00