Commit Graph

188 Commits

Author SHA1 Message Date
Mo Mesgin a134c2e486 Merge branch 'master' of github.com:rancher/dashboard into 13284-rke1-deprecation-banner 2025-02-19 11:22:52 -08:00
Phillip Rak 07289b9f81
Merge pull request #13357 from rak-phillip/task/12776-table-actions
Replace ActionMenu usage for Table actions and Global Settings
2025-02-19 11:24:25 -07:00
Phillip Rak ea176eb358 Fix data-testid usage in RcDropdownMenu
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

Fix

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-18 17:18:36 -07:00
Francesco Torchia 0b764f88f4
Merge pull request #13244 from aruiz14/fleet-resources-rework
Simplify handling of GitRepo status resources
2025-02-17 16:33:55 +01:00
Francesco Torchia ac64ba081b
Fix Bundles deployments column format
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 13:19:24 +01:00
Phillip Rak fcfc7d26d7 Add missing aria label
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-14 09:08:17 -07:00
Phillip Rak fe7b958627 Expose DropdownMenu props to ActionMenuShell
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-14 09:08:17 -07:00
Phillip Rak 5b415c1a5d Create ActionMenuShell component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-14 09:08:17 -07:00
Phillip Rak 4e514e4707 Replace global settings options with dropdown menu
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-14 08:03:07 -07:00
Alexandre Alves 8f9913c5ad
fix missing textual description on image buttons (#13382) 2025-02-13 12:05:32 +00:00
Mo Mesgin 32f17e66a4 lint 2025-02-12 10:52:53 -08:00
Mo Mesgin 8c0be5bcd6 Merge branch 'master' of github.com:rancher/dashboard into 13284-rke1-deprecation-banner 2025-02-12 10:49:14 -08:00
Mo Mesgin 2f03409d5d minor refactor 2025-02-12 10:49:06 -08:00
Mo Mesgin b319b4fe55 rke1 deprecation banner on cluster management page 2025-02-11 15:04:24 -08:00
Nancy 49664eaf01
Fix issue loading cluster provisioning ui from extensions on edit; fix provisioning cluster table grouping label (#13347)
* wip refactor emberLink

* wip edit non-rke2 clusters with ui from extension

* refactor emberLink to account for isImported isCustom and provider annoation

* clean up

* lint
2025-02-11 12:34:04 -08:00
Richard Cox fc890eb273 Fix workload list header text
- this normally comes from the schema
- there's an override in the resource list though that looks at the custom list's object typeDisplay param
- typeDisplay is a method outside of the vue method param and was removed in one of the pagination PRs
2025-01-30 16:22:59 +00:00
Francesco Torchia b3de83c2f8
Add workload typeDisplay
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-28 16:34:18 +01:00
Richard Cox c19aabe62c Move PaginatedResourceTable and ResourceLabeledSelect to type file, improving naming 2025-01-23 17:06:08 +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 c6db1b70df
fix keyboard nav on settings list page + settings edit page (#13123) 2025-01-23 09:48:57 +00:00
Neil MacDougall 54e2cbdd41
Fix state is not reset when feature flag API request fails (#13090) 2025-01-20 14:26:35 +00: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
Neil MacDougall 5ab53f370e
Improve feature flag restart terminology (#13024)
* Feature Flags: Make it clearer of impact for features that cause a restart

* Make column wider, improve and make the table header consistent with the modal prompt message

* Fix e2e test
2025-01-13 17:28:47 +00:00
Richard Cox 09194418bf finish off functional stuff 2025-01-09 16:50:41 +00:00
Richard Cox fb203f945f tidying up ready for review 2025-01-09 11:26:18 +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
Richard Cox 11eda663bf WIP 2025-01-07 13:34:18 +00:00
Richard Cox dc5a5a3591 fix lint, comment updated 2025-01-06 15:59:47 +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 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
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 aa73f3d570 tidyuing up imports in hope to fix ts error in check-plugins gate 2024-12-18 15:27:52 +00:00
Richard Cox 958e9d00d8 Fixes after small review 2024-12-17 11:45:35 +00:00
Richard Cox 8f02e8ab30 lint fixes 2024-12-16 16:58:33 +00:00
Richard Cox f837f889b7 Running through new indexed fields 2024-12-16 16:34:43 +00:00
Richard Cox 95c693f850 Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-12-16 15:44:18 +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 850721b7e2 tidying up 2024-12-05 14:34:59 +00:00
Richard Cox 6f5657363b WIP - Rest of workload lists 2024-12-04 19:04:48 +00:00
Richard Cox a6810c18df testing/tidying 2024-12-04 15:07:01 +00:00
Richard Cox 66f73dab5b fixes / updates 2024-12-04 11:54:28 +00:00
Evgeniya Vashkevich bb1f8c2097
fixed some console errors for standard user (#12479) 2024-12-03 11:14:59 -08:00
Richard Cox 475aaef2eb Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-12-02 17:45:16 +00:00
Richard Cox 419cc30fd1 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 ???
2024-12-02 15:48:23 +00:00
Richard Cox 1f61ce53cf - Fix issue where list components containing PaginatedResourceTables would incorrectly fetch all resources anyway
- convert reminaing storage lists
2024-11-15 15:40:00 +00:00
Richard Cox 6bfc45d978 fixes after merge. apply PagResTable to node list, vue3 fixes 2024-11-14 17:05:34 +00:00
Richard Cox bbf4bcd929 Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-11-14 16:16:17 +00:00