Commit Graph

1394 Commits

Author SHA1 Message Date
Phillip Rak 3c8a6cc47b Close dropdown on activate
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 33b7195c54 Fix type errors in RcButton and RcDropdown
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:07 -07:00
Phillip Rak edd9ac777e Configure focus and keyboard navigation in RcDropdown
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:07 -07:00
Phillip Rak 9c947cb098 Expose focus function in RcButton
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:07 -07:00
Phillip Rak 97276b5f91 Annotate poc
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:07 -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
Phillip Rak e32e4e5a93 Resolve vue defineEmits compiler warnings
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-03 15:35:11 -07:00
Phillip Rak 0be6bfb299 Resolve vue table structure compiler warnings
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-03 15:35:10 -07:00
Phillip Rak 68e964d324 Add alert role error messages in ChangePassword.vue
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-03 14:58:27 -07:00
Phillip Rak a2a65c0230 Create roles and aria-labels/descriptions for growls
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-03 14:42:25 -07:00
Francesco Torchia 7e2e0f374b
Replace clusterId with cluster Name in Fleet Graphs links
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-03 16:36:48 +01:00
Yonas Berhe 23ba8dde87 automation: services tests 2025-01-31 15:26:56 -08:00
Alexandre Alves 478e195431
fix workload health accessibility (#13220) 2025-01-31 09:32:27 +00:00
Francesco Torchia df1aab576f
Fleet: Add cluster labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-28 12:16:44 +01:00
Francesco Torchia fe3f545319
Merge pull request #12896 from aruiz14/perf-improvements
Improve Fleet performance
2025-01-24 17:48:45 +01:00
Alexandre Alves 3b0418f9f3
fix key nav on charts page (#13139)
* fix key nav on charts page in cluster

* minor fixes to Select
2025-01-24 12:54:55 +00:00
Alexandre Alves 51bdc529db
add key nav to sidenav (#13177) 2025-01-24 12:54:37 +00: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
Alejandro Ruiz 8c49d0c0e1
Merge branch 'master' into perf-improvements 2025-01-24 10:23:25 +01:00
Alejandro Ruiz e54c936a87 Calculate cluster state within gitrepo without iterating on all clusters 2025-01-23 18:41:01 +01:00
Alejandro Ruiz c5403d50e2 Calculate resourceCount for single cluster instead of using find 2025-01-23 18:41:01 +01:00
Alejandro Ruiz a301c7ef01 Avoid calculating summary multiple times 2025-01-23 18:41:01 +01:00
Alejandro Ruiz 04cde0f6fd Use clusterId instead of clusterLabel 2025-01-23 18:41:01 +01:00
Richard Cox c19aabe62c Move PaginatedResourceTable and ResourceLabeledSelect to type file, improving naming 2025-01-23 17:06:08 +00:00
Richard Cox bec8e7aaed missed a param 2025-01-23 16:09:10 +00:00
Richard Cox 51f21ab6f3 Merge remote-tracking branch 'upstream/master' into pagination-remove-findall-2 2025-01-23 15:57:51 +00:00
Richard Cox 972e85e116 Changes following review
- fix and simplify FetchPageSecondaryResources
- ensure resource detail page events list doesn't add ns filters (not needed)
2025-01-23 15:56:47 +00:00
Alexandre Alves bc003d36a0
fix key nav on preferences page (#13161)
* fix key nav on preferences page

* address pr comments
2025-01-23 09:49:24 +00:00
Alexandre Alves c6db1b70df
fix keyboard nav on settings list page + settings edit page (#13123) 2025-01-23 09:48:57 +00:00
Francesco Torchia 1bb4450276
Merge pull request #13083 from torchiaf/10170-fix-first-step
Fleet Git Repo make first configuration step clickable
2025-01-21 10:27:57 +01:00
Neil MacDougall 8c0ced4e24
Add last used column for API tokens (#12114)
* Add last used column for API tokens

* Address PR feedback
2025-01-21 08:57:17 +00:00
Neil MacDougall 78c867ee6c
Add support for creation of registry secret using RKE auth config type (#13153)
* Add support for creation of registry secret using RKE auth config type

* Fix grammar in e2e test
2025-01-21 08:56:13 +00:00
Francesco Torchia 9aac7ecbe3
component CruResource: add stepsOptions prop
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-20 18:39:53 +01:00
Evgeniya Vashkevich beef20e10c
Fixed LabeledSelect not emitting search explicitly (#13142) 2025-01-17 15:04:43 -08:00
Richard Cox 7a4b3d1b57 Fix gitrepo bundle list and bundle list when there's a gitrepo that does not target any clusters 2025-01-16 11:42:35 +00:00
Yiya Chen 36d8a069ee
Merge pull request #13073 from houhoucoop/harvester-issue-6946
LabeledSelect: Show tag prompts only if select is searchable
2025-01-16 12:01:24 +08:00
Neil MacDougall 3ff358c401
Show badge color for local cluster (#13077) 2025-01-13 16:30:16 +00:00
Richard Cox 898b9038ab Fix lint and unit test 2025-01-13 15:10:53 +00:00
Richard Cox 96e30e285c Tidy up event headers
- opens up to event header e2e failures again...
2025-01-13 14:47:33 +00:00
Richard Cox 1fe4b8970d Merge remote-tracking branch 'upstream/master' into pagination-remove-findall-2 2025-01-13 11:25:52 +00:00
Neil MacDougall fea429edb4
Fix icon alignment in the growl component (#13074) 2025-01-13 10:26:40 +00:00
Yi-Ya Chen 1ede584162
refactor: show tag prompts if isSearchable
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
2025-01-13 15:27:05 +08:00
Nancy 23c0cdb82b
Fix rke2 addon validation (#13017)
* add codemirror error reporting

wire in codemirror validation to rke2 addon config

update addon config validation status when list of available addons changes

* added e2e test for addon config validation;

* account for codemirror being used with no options
2025-01-09 13:08:39 -08:00
Richard Cox 09194418bf finish off functional stuff 2025-01-09 16:50:41 +00:00
Richard Cox 86ae345eed Tidying up ready to review 2025-01-09 13:55:55 +00:00
Richard Cox fb203f945f tidying up ready for review 2025-01-09 11:26:18 +00:00
Cody Jackson 728bc64cef Resolving some issues around rendering pagination loading on resource list pages
fixes https://github.com/rancher/dashboard/issues/12748
2025-01-08 16:28:39 -07:00
Richard Cox 92430b36fb Finish off questions/reference 2025-01-08 14:07:16 +00:00
Richard Cox 05eabe99be Merge remote-tracking branch 'upstream/master' into pagination-remove-findall-1 2025-01-08 11:47:54 +00:00
Richard Cox f589ccfd9b wip 2025-01-08 11:42:54 +00:00
Richard Cox f980283813
Add server-side pagination to cluster explorer lists (#11672)
* cluster list now uses resource table

* New PaginatedResourceTable

* WIP

* add context to pag setting

* tidying up

* Add server-side pagination to cluster explorer events and general events list

* Servier-side pagination for catalog apps, cluster repo and operation

* Servier-side pagination for Service --> HPA, inmgress, services

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* fixes after merge. apply PagResTable to node list, vue3 fixes

* - Fix issue where list components containing PaginatedResourceTables would incorrectly fetch all resources anyway
- convert reminaing storage lists

* policy section

* fix async button in manual refresh mode

* fgh

* aaaaa

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* Iteration

Note - prov clusters is broken (only fetches local) due to blocking pr. breals
- notPinned list

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)

* fixes / updates

* testing/tidying

* WIP - Rest of workload lists

* finish off workloads

* tidying up

* fix non-generic list filtering by namespace

* remove comment, backport fix

* test fixes

* E2E: Ensure we wait for cluster entries to exist before clicking on them

* backport fix for local/api filtering

* Remove debug code

* Changes after review

* e2e fixes / debugging

* More e2e fixes

* More e2e fixes

* More e2e fixes

* Fix generic pages that filter on pagination

* Attempt to fix flaky vai test

* Fix after merge from master

* Updates following new indexed files

* Fix lint and test

* Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....

* Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881

* Fix unit tests

* remove invalid sort/filter type

* Running through new indexed fields

* fix unit tests

* lint fixes

* Fixes after small review

* lint

* Test for check-plugin-gates pkg build from shell

* e2e fixes

* Testing new indexed fields with dev image

* tidyuing up imports in hope to fix ts error in check-plugins gate

* Fix failing check-plugin-gates
- caused by shell/scripts/test-plugins-build.sh importing list/catalog.cattle.io.clusterrepo.vue
- the component had been updated to a TS component
- check-plugin build outputs TS errors for a component file imports
- vs code shows no errors for imported file

* tidying up a smidge

* Many tweaks
- Remove final todo's
  - includes fix for service type clusterip/headless overlap
- Removed ununused ENDPOINT column (note ENDPOINT formatter used in other columns)
- Testing freshly added index fields

* Improve location of new place where componentWillFetch is set

* fix lint, comment updated

* Fix failing e2e tests
- fix cluster dashboard events test
- fix and greatly improve flaky events test
- fix hpa test
- functional fixes
  - fix sorting/filtering events by object type
  - fix hpa columns
2025-01-07 15:13:42 -07:00
Alexandre Alves 9553614394
fix keyboard nav for home page (#12966)
* fix keyboard nav for home page

* minor fixes based on another PR comment

* add aria-sort to table column headers + remove space key bindings for links

* revert small change on Checkbox

* revert small change on Checkbox

* clear key space to trigger links

* change role for links that are in fact buttons + keep space key
2025-01-07 17:19:09 +00:00
Richard Cox cb87aa3b6e Remove ununused component, tweaks, update ResourceTabs events to be super ok 2025-01-07 15:31:15 +00:00
Richard Cox 11eda663bf WIP 2025-01-07 13:34:18 +00:00
Alexandre Alves 8a5cd702a4
fix keyboard nav for app bar (#12958)
* fix keyboard nav for app bar

* remove dones

* minor fixes based on another PR comment

* removed all space key for links + move floating-vue config to plugin definition

* rename tabbing-index to tab-order + add aria-label to main menu
2025-01-07 09:28:29 +00:00
Francesco Torchia 8715067f00
Merge pull request #12962 from torchiaf/12939-fix-node-selector
Fix Node Scheduling / Node Name option in Workloads page
2025-01-07 10:09:16 +01:00
Alexandre Alves 7632c5192b
fix keyboard nav on login screen (#12956)
* fix keyboard nav on login screen

* adjust for dark mode

* remove border radius from focus styles + dont open locale selector on focus

* add missing aria label

* minor fixes based on another PR comment

* remove tabbingindex from components + fix checkbox component disabled state

* remove tabbingindex from checkbox

* remove tabbingindex from LocaleSelector

* address pr comments
2025-01-06 19:03:04 +00:00
Richard Cox a9ea0607ec Improve location of new place where componentWillFetch is set 2025-01-06 15:40:44 +00:00
Richard Cox e227f3ebd7 Many tweaks
- Remove final todo's
  - includes fix for service type clusterip/headless overlap
- Removed ununused ENDPOINT column (note ENDPOINT formatter used in other columns)
- Testing freshly added index fields
2025-01-06 15:06:35 +00:00
Richard Cox 8dcc72299b Two side nav improvements
- Reduce the flicker of cluster icons when the top level menu component is recreated given a change to the page's layout
- Add finer changes and comments to reduce churn from user / system changes to resources
2025-01-06 13:48:43 +00:00
Richard Cox 595ea9072c tidying up a smidge 2025-01-03 16:43:12 +00:00
Richard Cox dca2c2e053 Merge remote-tracking branch 'upstream/master' into pagination-cluster-explorer 2025-01-03 15:42:59 +00:00
Richard Cox b614082ce1
Add server-side pagination to home page cluster list (#11663)
* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* Iteration

Note - prov clusters is broken (only fetches local) due to blocking pr. breals
- notPinned list

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)

* remove comment, backport fix

* test fixes

* E2E: Ensure we wait for cluster entries to exist before clicking on them

* backport fix for local/api filtering

* Remove debug code

* Changes after review

* e2e fixes / debugging

* More e2e fixes

* More e2e fixes

* More e2e fixes

* Fix generic pages that filter on pagination

* Attempt to fix flaky vai test

* Fix after merge from master

* Updates following new indexed files

* Fix lint and test

* Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....

* Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881

* Fix unit tests
2025-01-03 15:34:28 +00:00
Alexandre Alves 938035f2e8
fix keyboard nav for about page (#12959)
* fix keyboard nav for about page

* fix styling for dark mode

* address pr comments

* address pr comments

* change role and add key space handler for diagnostic button
2025-01-03 12:27:36 +00:00
Francesco Torchia cd73a687a4
Lint
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-02 12:29:38 +01:00
Francesco Torchia 55cf3b3a7c
Implement NodeScheduling.test
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-02 12:04:15 +01:00
Francesco Torchia 289f638bae
Fix Node Selector value update
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-02 10:38:11 +01:00
Evgeniya Vashkevich 9fe1f4ad0d
Fixed not being able to update node taints (#12949) 2024-12-27 14:40:01 -08:00
Alexandre Alves 8698cb8dd1
Fix Unable to add extension tab to Edit Storage Class page (#12886)
* first iteration to improve extension point for tabs (missing default mode = VIEW)

* add default _DETAIL for the extension tabs extension point so that they are not added to EDIT views as well, unless specified otherwise

* revert harvester change
2024-12-26 12:08:12 +00:00
Richard Cox 5916758b12 Fix failing check-plugin-gates
- caused by shell/scripts/test-plugins-build.sh importing list/catalog.cattle.io.clusterrepo.vue
- the component had been updated to a TS component
- check-plugin build outputs TS errors for a component file imports
- vs code shows no errors for imported file
2024-12-18 19:55:03 +00:00
Richard Cox 7e4ee6acbc Merge remote-tracking branch 'upstream/master' into pagination-cluster-explorer 2024-12-18 18:17:27 +00:00
Neil MacDougall 6fd149c8d2
Fix top-level burger menu keyboard navigation (#12876)
* Fix top-level burger menu keyboard navigation

* Ensure we can differentiate between focus and focus-visited

* Revert change to focus style
2024-12-18 15:34:54 +00:00
Richard Cox 096d290627 Testing new indexed fields with dev image 2024-12-18 14:38:50 +00:00
Richard Cox 182eded1b3 Merge remote-tracking branch 'upstream/master' into pagination-cluster-explorer 2024-12-18 08:50:08 +00:00
Richard Cox 4ddf08a94b e2e fixes 2024-12-17 18:23:31 +00:00
Richard Cox 3844e8f468 Test for check-plugin-gates pkg build from shell 2024-12-17 13:12:15 +00:00
Richard Cox 958e9d00d8 Fixes after small review 2024-12-17 11:45:35 +00:00
Richard Cox 95c693f850 Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-12-16 15:44:18 +00:00
Richard Cox 39c2cd7599 Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881
2024-12-16 13:42:33 +00:00
Yonas Berhe 1799bc58be automation: assign cluster to fleet workspace 2024-12-11 13:31:33 -08:00
Richard Cox 9b5d420b77 Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....
2024-12-11 17:27:56 +00:00
Richard Cox 439f223d27 Fix lint and test 2024-12-10 16:49:47 +00:00
Richard Cox 9d01007320 Updates following new indexed files 2024-12-10 16:12:36 +00:00
Richard Cox c18fd7a134 Fix after merge from master 2024-12-10 15:02:27 +00:00
Richard Cox c2c96a53df Merge remote-tracking branch 'upstream/master' into pagination-home-page 2024-12-10 14:14:42 +00:00
Richard Cox 28135a19e7 Changes after review 2024-12-09 11:55:51 +00:00
Phillip Rak 56fe8bf168
Merge pull request #12800 from rak-phillip/bugfix/11226-yaml-editor-comments
Remove `onChanges()` method in `ResourceYaml.vue`
2024-12-05 12:15:54 -07:00
Evgeniya Vashkevich 92d77386dc
[FIX] Fixed app icon aligntment for extensions with image icon (#12827) 2024-12-05 11:14:04 -08:00
Richard Cox 559e33e7c5 test fixes 2024-12-05 16:44:13 +00:00
Richard Cox 0cc6ba3320 remove comment, backport fix 2024-12-05 14:53:11 +00:00
Phillip Rak b9909b835f Remove `onChanges()` method in `ResourceYaml.vue`
This removes the `onChanges()` method from `ResourceYaml.vue` because the intent of the code is not clear and appears to provide no benefit in testing. This is a source of frustration for some users, making it impossible to add comments to YAML. 

It appears that this function exists to automatically adjust the indentation of comment lines; it has failed to accomplish this task during testing, so it appears to be meaningless. If users wish to format yaml, we should support this with an explicit action in the YAML editor, not something that is performed on every keypress.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-04 16:53:31 -07:00
codyrancher 6c170fc01a
Merge pull request #12746 from codyrancher/lint-fix-2
Fixing an issue with eslint not working in vscode
2024-12-04 15:27:55 -07:00
Cody Jackson c77ee88b01 Adding `emits` to all rancher-components to fix linting rules 2024-12-04 09:04:19 -07:00
Phillip Rak 4653a0f660
Merge pull request #12744 from rak-phillip/bugfix/10840-pod-shell
Improve logging for errors in `ContainerShell.vue`
2024-12-04 08:32:00 -07:00
Richard Cox 66f73dab5b fixes / updates 2024-12-04 11:54:28 +00:00
Richard Cox 0054f40948 Merge remote-tracking branch 'origin/pagination-home-page' into pagination-cluster-explorer 2024-12-04 11:06:59 +00:00
Richard Cox cb18993b7a Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)
2024-12-04 11:04:43 +00:00
codyrancher 20be22a0aa
Merge pull request #12672 from codyrancher/error-template
Removing the unused `templates/error.vue` and `popstate` references
2024-12-03 15:30:48 -07:00
Evgeniya Vashkevich bb1f8c2097
fixed some console errors for standard user (#12479) 2024-12-03 11:14:59 -08:00
Richard Cox 442d85c2c8 Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)
2024-12-03 12:10:24 +00:00