Commit Graph

78 Commits

Author SHA1 Message Date
Alexandre Alves 3e3fdb3dd7
[backport fix] fix issue with addon modal in cluster edit (#15185)
* fix issue with addon modal in cluster edit

* revert changes to genericPrompt and promptModal
2025-08-19 16:43:10 +01:00
Evgeniya Vashkevich 2e25bc83ae
Added back RKE1 removal, removed etcdbackup (#14786) 2025-07-14 08:29:27 -07:00
Alexandre Alves a2b3f9e5aa
fix proble m with edit as yaml access (#14757) 2025-07-10 11:25:02 +01:00
Phillip Rak cb1fdd34aa
Guard against DOM events in modal close event (#14754)
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-10 10:32:20 +01:00
Richard Cox ce70f83265 Primary change - Fix and improve labelSelectors and vai auto updates
- labelSelector has two primary applicators
  - matching utils function
    - this should normally NOT be cached and not receive updates over sockets
    - this is done by stipulating transient = true
  - findLabelSelector
    - this should normally be cached and receive updates
    - this is done by stipulating transient = false
    - when applicable (workload and services detail page) we want live updates whilst we're on the page
      - we don't when we leave, so unwatch
- fix and align these two and their usages
  - ensure each input (transient) is correct for context
  - ensure response is in the correct format and handled correctly
- improved typing

Additionally
- Improve labelling for network policy ingress/egress label selectors
- Replace empty table with 'no details' in cis report detail page's list's sub row
- On services page handle the very weird use case of no visibility on pods
- Fix issue where extension catalog was not showing when refreshing on extension catalog page list
- Fixed an issue where we would ALWAYS show false positive invalid field warning in console
- Bump up default page size from 10k to 100k
  - this is for requests we make to the new vai cache outside of pages
  - it matches the default they use when proxying requests to target kube cluster
2025-07-03 14:25:37 +01:00
Phillip Rak 02e2663126
Use `defaultNamespace` prop as a default value (#14651)
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-01 07:26:07 -06:00
Alexandre Alves aebde5c25f
Rancher as an OIDC provider (#14475)
* Rancher as an OIDC provider (interface and flow)

---------

Co-authored-by: Richard Cox <ricox@suse.com>
2025-06-26 10:39:26 +01:00
Phillip Rak ec960ed115
Explicitly pass undefined when closing MoveNamespaceDialog (#14429)
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-06-25 11:08:39 -07:00
Francesco Torchia 51c24a1a8d
Fleet implement HelmOps list page; fix dashboard cards
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:40 +02:00
Francesco Torchia 1ea22fc32c
Fleet add Oci Registry secret selector in GitRepo wizard
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-17 04:04:31 +02:00
Yiya Chen 449803238f
Add confirmation dialog for workload redeploy actions (#14482)
* feat: add RedeployWorkloadDialog
* feat: enhance a11y
* refactor: fix linting
* refactor: remove unused code
* refactor: rewrite with ts
* refactor: update wordings
---------
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
2025-06-13 14:36:41 +08:00
Neil MacDougall c0ea22f63b
RKE1 Clusters unsupported (#14226)
* Make RKE1 Unsupported

* Fix for unit tests

* Update a11y test for removed RKE1 toggle switch

* Fix missing import

* Remove RKE templates and related tests

* Fix lint and tidy up

* Removed unused code

* Updates e2e tests

* Tidy up e2e tests

* Fix lint

* Prevent edit of RKE1 cluster

* Remove RKE1 settings

* Fix lint with removed settings

* Remove e2e test for removed setting

* Remove unused e2e po

* Remove toggle switch from a11y test
2025-05-29 13:07:00 +01:00
Richard Cox 980d4b06d9
Integrate new label select filtering (#12919)
* Test / Wire in new label filtering to limited places

- Wired in to
  - Workload detail page - pods and services (broken due to reverse selector)
  - Service Detail - Pods List
  - Service create/edit - Pod selector tab
- Also
  - Fix showPodRestarts in random location
- TODOs
  - Lots of testing / validation required
  - reverse deployment --> service selector (not services given deployment, but for each service contains pods from deployment)
  - workload model usages of pods getter
  - services model usages of pods getter
  - many many more....

* wired in, NOT tested

* improvement

* sdfdsf

* ryrty

* werer

* The great test off begins

* testing and tidying

* testing and tidying

* First good run

* tests, fixes and improvements

* updates

* Tidying up

* Fixes (namespace orientated), tweaks, updates

* Fix unit test

* Fixes for vai off

* Re-write `matching`
- handle namespaces better (given if the resource is namespaced
- better align with legacy matching fn (given specific scenarios that should return none or all)

* Lots of fixes, but mainly vai off --> pods list --> deployment detail --> pods list updates correctly

* fix lint, unit test

* e2e fix

* Fix weird plugins build validation failure (TS error on expected param for JS method with a default)

* Fix workload services

* changes following mini code review

* Only show pods tab if workload type supports it, always show pod resource table if tab is shown
2025-05-28 11:17:25 +01:00
Alexandre Alves d269e5fd34
refactor catalog install and uninstall extension modals as a prompt modals (#14192)
* refactor catalog install and uninstall extension modals as a prompt modal + add unit tests

* remove todos

* address merge conflicts + revert change to structuredClone + update unit test
2025-05-08 17:11:11 +01:00
Alexandre Alves c9225d0632
refactor add repos and developer load extension modals as a prompt modals (#14191)
* refactor add repos and developer load  extension modals as a prompt modal + add unit tests

* fix broken unit test

* remove unused prop

* remove todos

* code cleanup
2025-05-07 08:39:40 +01:00
Alexandre Alves c37239ca13
refactor install and uninstall extension modals as a prompt modals (#14190)
* refactor install and uninstall extension  modals as a prompt modal + add unit tests

* remove old modals

* remove unused prop

* remove todos
2025-05-06 19:09:41 +01:00
Alexandre Alves 6e568be938
refactor known hosts edit modal as a prompt modal (#14196)
* refactor disable known host edit modal as a prompt modal + add unit tests

* fix broken unit test

* remove unused prop
2025-05-06 18:32:06 +01:00
Alexandre Alves bb4ea23610
refactor change password modal as a prompt modal (#14195)
* refactor disable change password modal as a prompt modal + add unit tests

* remove old modal

* remove unused prop

* address merge conflicts + add missing role to hr
2025-05-06 18:30:41 +01:00
Alexandre Alves 50e1daccd5
Refactor AssignTo, MoveModal and feature flag modal as prompt modals (#14187)
* refactor AssignTo, MoveModal and feature flag modal as prompt modals + add unit tests + remove store mechanisms that were dedicated to these modals

* fix small issues with FeatureFlagListDialog and MoveNamespaceDialog

* fix merge conflicts + remove code comments

* address merge conflicts + remove text from template
2025-05-06 17:34:55 +01:00
Alexandre Alves 5ad9edf870
refactor disable auth provider modal as a prompt modal (#14194)
* refactor disable auth provider  modal as a prompt modal + add unit tests

* remove unused prop

* re-trigger gates
2025-05-06 11:39:47 +01:00
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 445b7fb9c6
refactor wechat modal as a prompt modal (#14189)
* refactor wechat modal as a prompt modal + add unit tests

* remove unused prop
2025-05-02 09:46:14 +01:00
Alexandre Alves 94b0645fb8
Update AppModal, PromptModal and focusTrap (#14186)
* update AppModal, PromptModal and focusTrap to use only the watcher based focus trap and wire in required props for prompt modals + add unit test for current prompt modals display assertion + minor tweaks to current prompt modals so that they work fine on unit tests

* update PR with recommended changes

* fix lint issue

* push to retry pipelines

* remove unit test variable from promptModal

* remove prop not needed - autoTriggerFocusTrapWatcher
2025-04-30 09:16:48 +01:00
Alexandre Alves e8e05df687
fix missing labels on form fields (#13957)
* fix missing labels on form fields

* update Select to match wiring work done in another PR for aria attributes + add a11y unit test
2025-04-11 09:51:15 +01:00
Alexandre Alves 467139b939
fix aria-labels in copy to clipboard (#14014) 2025-04-08 08:45:57 +01:00
Evgeniya Vashkevich 2e2ee18033 fixed more url 2025-04-07 11:59:25 -07:00
Evgeniya Vashkevich 38917aaf1a lint 2025-04-07 11:57:12 -07:00
Evgeniya Vashkevich b61f6f9225 [FIX] Added error handling when driver activation fails 2025-04-07 11:57:12 -07:00
Francesco Torchia f3ce68a2f4
Restore resourceNames util for extensions compatibility (#13874)
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-03-27 11:17:51 +00:00
Francesco Torchia 4e725f76f0
Fleet: fix Force update banner color and margin
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-25 18:28:20 +01:00
Francesco Torchia b1b9b756e6
Fleet: Implement force update dialog
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-25 12:48:49 +01:00
Francesco Torchia fab51d0be3
Delete message, list of items refactoring:
- Remove plusMore from dialogs and use a default one
- Fix double and string in resourceNames
- Fix pods remove dialog

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-25 11:20:00 +01:00
Alexandre Alves 13496483fe
keyboard navigation for cluster badge appearance modal (#13021)
* working on key nav for cluster badge appearance

* color input is now key nav friendly + tooltip works on focus + trying to get focus trap to work properly

* remove console logs + add focus trap to card component with prop control + fix element for config badge button

* fix lint problem

* fix TS errors on pkg build

* remove step of building the skeleton app in the check-plugins-build step, which imo doesnt serve any purpose whatsoever

* add focus-trap as a shell dependency + revert publish script change

* remove focus-trap directive + improve chaining event handler modifiers

* pin focus-trap to 7.6.2 + replace link for button on cluster explorer main page + remove unused ev

* address pr comments
2025-01-24 09:33:00 +00:00
Evgeniya Vashkevich 1c540a811c
[FIX] Fixed drain worker form being uneditable (#12869) 2024-12-11 12:10:19 -08:00
Cody Jackson 5052c2a8e8 Enabling `vue/require-explicit-emits` linting rule
https://github.com/rancher/dashboard/issues/11961
2024-09-19 09:58:53 -07:00
Phillip Rak b68adb3833 Revert "Refactoring the plain element <input> data bindings"
This reverts commit 7f1536d9cf.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-27 15:39:02 -07:00
Cody Jackson f8029bb51f Fixing databinding where v-model.trim needed to instead be v-model:value.trim 2024-08-22 16:09:55 -07:00
Phillip Rak 7874da578f Fix slot syntax
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
cnotv ff08d80e0e Lint: Manually fixed issues related to vueApp variable added by the script 2024-08-22 16:07:03 -07:00
Phillip Rak b4d08bb704 Resolve compiler errors
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:05:36 -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
Cody Jackson 7f1536d9cf Refactoring the plain element <input> data bindings
Performing this change so the vue3 migration script can modify all @input, @v-model of components without changing plain elements. This will reduce the number of vue3 compiler errors.
2024-08-22 16:04:52 -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
Richard d1929dd71b fix lint 2024-07-03 14:05:13 +01:00
Richard 3c8aec6721 Changes following review 2024-07-03 14:05:13 +01:00
Evgeniya Vashkevich 7136e0a9fc [FIX] Fixed some issues with driver pages 2024-07-03 14:05:13 +01:00
Sorin 08f11a5d81
fixes i18n, new Cluster Appearance UX (#10677)
* fixes i18n and small UX
* new layout design for the modal
* enables edit badge from cluster explorer

---------

Signed-off-by: scures <scurescu@suse.com>
2024-04-29 17:12:16 +02:00
Evgeniya Vashkevich 47ff3ddac6
[FEAT] Moved driver pages from Ember (#10557)
* [FEAT] Moved driver pages from Ember
2024-03-26 16:33:15 -07:00
Phillip Rak 6fb40e3108
Merge pull request #10671 from rak-phillip/bugfix/10661-modal-styles
Update modal styles
2024-03-22 07:35:55 -07:00