Commit Graph

94 Commits

Author SHA1 Message Date
Alexandre Alves d1dc8b2e21
refactor import and search header modals as a prompt modals (#14197)
* refactor import and search header modals as a prompt modal + add unit tests

* fix lint issue

* remove unused prop + fix e2e test

* fix merge conflicts
2025-05-06 09:52:14 +01:00
Alexandre Alves 4af23f6d6a
working on issues reported in the a11y tests (#13609) 2025-04-02 09:57:46 +01:00
Yonas Berhe 8f6e91e7ac add more accessibility tests 2025-03-10 17:22:04 -07:00
Alexandre Alves 3970a9ff63
fix misc issues for a11y (#13519)
* fix misc issues for a11y

* fix prop + fix issue with white area not resizing as whole shell window

* improve aria labels for shell resize
2025-02-28 15:56:18 +00:00
Alexandre Alves 52b516a5d9
Fix Header keyboard navigation (#13369)
* address header accessibility issues

* fix codemirror component not using refs + improve logic to check yaml editor focus on app modal

* add missing optional chaining

* fix unit test

* fix some failing e2e tests

* fix lint issue

* revert changes to namespaceFilter + revert changes to e2e tests

* revert e2e changes

* revert e2e changes

* add fix for configmap e2e test

* add unique name for configmap resource creation test

* test e2e fix

* address pr comments
2025-02-21 08:51:39 +00:00
Phillip Rak ca3220a0db Remove top/bottom padding for user info
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-05 15:03:36 -07:00
Phillip Rak 6ef6147dbd Update avatar styles
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 10:00:04 -07:00
Phillip Rak 1dc914b697 Add new ghost button role
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:44:03 -07:00
Phillip Rak b9b1004a7b Add aria-labels for dropdown triggers
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:44:02 -07:00
Phillip Rak 8a173db084 Rename `RcDropdown.d.ts` to `types.ts`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 2445fb52b5 Move `showUserMenu()` conditional to Dropdown container
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 13fddf9ee8 Fix issue with displaying user info and associated separator
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 32f630d17e Update e2e tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 3f0ecd2cfd Add aria-label to dropdown menu
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 4798685f8f Remove extra padding around buttons in header
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 3e457f180e Add `btn-sm` class to the button component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 3b24ff9426 Replace user menu in header with RcDropdown component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 7fedbda45d Clean up unused imports and console statements
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 21170cab29 Replace action menu with new component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 679cca1c3a [POC] Add an accessible dropdown component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:07 -07:00
Francesco Torchia 705bf22187
Fix imports
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:41 +01:00
Francesco Torchia e71adc7e9b
Fix BrandImage for Harvester product
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:40 +01:00
Francesco Torchia eac3deaa4b
Add harvester features
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:36 +01:00
Alexandre Alves 1ed167d2ab
Support standard user handling SAML SLO feature (#12360)
* fix styling issue for logout link on avatar menu

* adapt saml logout logic to rely on info from public authprovider for SLO feature
2024-10-29 16:33:00 +00:00
Francesco Torchia 83d023dac8
Merge pull request #12208 from torchiaf/fix-harvester-4040
Fix nav-headers
2024-10-14 15:49:27 +02:00
Francesco Torchia 99f0dd6af2
Fix nav-headers
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-10-10 15:58:20 +02:00
Phillip Rak 5d09fa0bcd Reintroduce missing styles to `Header.vue`
21050a3695 migrated styles used by `Header.vue` into 'HeaderPageActionMenu.vue`, when these styles should have remained in `Header.vue`.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-08 13:55:11 -07:00
Phillip Rak e8d6f755c0 Fix style regression in header component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-02 21:02:41 -07:00
Phillip Rak 21050a3695 Create component `PageHeaderActionMenu.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-02 10:09:39 -07:00
Mo Mesgin 6c6eec8e47 Merge branch 'master' of github.com:rancher/dashboard into 11684-popover-fix 2024-09-03 12:02:58 -07:00
Mo Mesgin c0623cb0b6 fix set login popper position and styling 2024-09-03 10:25:56 -07:00
Mo Mesgin 1016bce378 fix set login popper not closing 2024-08-30 14:19:43 -07:00
Alexandre Alves 60026587c3 fixing tooltips and metions of tooltips and dropdowns wherever I could find them 2024-08-30 15:49:34 +01:00
Alexandre Alves 297f76e476 fix header user menu styling 2024-08-30 15:49:34 +01:00
Alexandre Alves 647eb93031 add missing bits to make saml slo feature work + fix notations + fix propagation of data on TextAreaAutoGrow 2024-08-30 09:24:00 +01:00
Phillip Rak d9b6a2dc46 Resolve rendering issues with popovers in header
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:07:03 -07:00
Phillip Rak 399696ae73 Upgrade `v-tooltip` to `floating-vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:05:37 -07:00
Cody Jackson 9b829c55ea Ran `yarn lint --fix` 2024-08-22 16:05:36 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Alexandre Alves 340d41031e
SAML SLO support (#11182)
* wip

* add logout action according to logic (SAML - logoutAll) + add modal to prompt user to select SLO logout type when logging out of Dashboard

* update authProvidersInfo method to allow for a getter usage in order to make it store reactive

* wip - missing final plumbing for the finalRedirectUrl

* bug fix for non-reactive header logout when auth provider is enabled

* adjust slo UI elements to match expected UI/UX

* minor adjustments + pr cleanup

* cleanup

* handle promise rejection for standard users (apparently they cannot get the schema)

* Updates
- Tweaked text (to be reviewed)
- Removed some code smells
- Ensure rancher logout via modal uses same process as normal logout
- Use async buttons in logout modal
- Add cancel to log out modal
- Fix logout on fail-whale page

* Add error handling (WIP with Andreas, does not currently reach final redirct / verify route)

* Fix check for IS_SLO

* Only allow optional auth provider log out if logged in auth provider

* Fix error message (SLO failures still result in rancher log out)

* check complete slo flow + add special copy when doing a slo logout

* Update shell/dialog/SloDialog.vue

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>

* Update shell/edit/auth/saml.vue

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>

* update syntax from phil pr review

* Fix logout modal on diangostics, about, etc pages that use plain template

* Remove PromptRemove from diagnostic page
- it uses the plain template which now contains it
- caused x2 modals to show

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 19:16:06 +01:00
Francesco Torchia 7bcc4f31cd
Fixing harvester cluster page reload currentProduct null
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-07-04 10:37:12 +02:00
Izaac Zavaleta 8e3317951b Cluster Actions Header 2024-05-20 10:55:16 -07:00
Neil MacDougall da47da7ab1
Add e2e test for resource search and namespace filter issue (#10932)
* Add e2e test for resource search and namespace filter issue

* Fix lint issues
2024-05-07 09:07:25 +01:00
Cody Jackson e205b568ee Updating <router-link> to no longer use the deprecated :tag property 2024-04-18 04:23:04 -07:00
Alexandre Alves e6c4d0194e
Don't show state column on import yaml dialog (#10730)
* remove state col and subrows from import YAML action success screen + add tests

* fix e2e test issue

* address pr comments

* address pr comments
2024-04-09 09:04:30 +01:00
Alexandre Alves c7ffa7477c
10153: add e2e test (#10731)
* add e2e test

* fix e2e test issue

* fix e2e test issue
2024-04-04 09:50:40 +01:00
Phillip Rak 6206f9763c
Merge pull request #10716 from rak-phillip/chore/remove-nuxt-link
Replace `nuxt-link` with `router-link`
2024-04-01 08:00:12 -07:00
Neil MacDougall f6c80b295f
Add root product to improve performance of nav change within inExplorer products (#10447)
* Fix race condition in loadCluster

* Revert new error and comments

* Improve navigation performance for products within the explorer product

* Remove unused getter

* Fix issue with not loading nwe cluster when changing clusters

* Fix bug where sidenav take a short time to update (was using queueUpdate)

* Fix lint issues

* Address PR feedback
2024-03-28 09:28:23 +00:00
Phillip Rak 7e703b4c74 Replace `nuxt-link` & `n-link` with `router-link`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-27 14:04:17 -07:00
Phillip Rak 4a9ce08614
Merge pull request #10591 from rak-phillip/feature/8207-modal-replace
Replace `vue-js-modal` with `app-modal`
2024-03-13 09:58:02 -07:00