Commit Graph

125 Commits

Author SHA1 Message Date
Richard Cox 788db6edd7
Merge pull request #14468 from richard-cox/remove-cred-expiration
Reverts features that work around expiring harvester credentials
2025-07-28 09:04:11 +01:00
Richard Cox 0d21048c6b Reverts features that revolve and work around expiring harvester credentials
- Given harvester tokens will now not expire revert features around expiring tokens
  - https://github.com/SUSE/rancher-architecture/pull/4
- Warn users when creating harvester tokens that they expires
  - https://github.com/rancher/dashboard/pull/11313
- Warn users that an existing harvester token is about to/has expired and let them renew it
  - https://github.com/rancher/dashboard/pull/12157
2025-07-25 10:20:30 +01:00
Francesco Torchia 37489d9fec
Fleet show dash if source is empty
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-18 17:56:05 +02:00
Francesco Torchia f99574e402
Fleet fix missing HelmOps OCI sourceSub and clean-up code in the model
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-18 17:35:53 +02:00
Phillip Rak 8ca1783027 Use fake timers in LiveDate unit tests
This uses jest fake timers and sets a system time for the LiveDate unit tests.

While rare, there are scenarios where using the actual system time can fail the LiveDate unit test - these failures can occur if a test takes too long, or runs at an innoportune time. Making use of fake timers allows the LiveData tests to be deterministic.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-14 09:41:12 -07:00
codyrancher c617fff312
Putting together a smattering of style fixes that were pointed out during a design review (#14744) 2025-07-11 13:29:32 -07:00
Alexandre Alves faa7fe3b60
A11y report fixes (#14530)
* fix item 2: All page content should be contained by landmarks

* fix item 4. Elements must only use permitted ARIA attributes

* fix item 6. ARIA attributes must conform to valid values

* fix bug on item 6. and fix item 7. <ul> and <ol> must only directly contain <li>, <script> or <template> elements

* fix item 8. Interactive controls must not be nested

* fix item 10. ARIA toggle fields must have an accessible name

* fix item 11. autocomplete attribute must be used correctly

* fix item 12. Form elements must have labels

* fix item 14. ARIA input fields must have an accessible name

* fix item 15. Buttons must have discernible text

* fix item 16. Images must have alternative text

* working on item 17

* finish fix item 17. ARIA role should be appropriate for the element

* fix wrong role in hidden inputs

* address pr comments
2025-07-10 10:09:09 +01:00
Francesco Torchia 5b044a6508
Fleet fi slide-in resource details style
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-26 17:52:34 +02:00
Francesco Torchia 0ad2b9fd64
Fleet improve applications source field; remove link if URL is not HTTPS, OCI, SSH; cleanup code
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:57 +02:00
Francesco Torchia 0a4ffe8624
Fleet add application table headers
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:41 +02:00
Francesco Torchia 80722ae045
Fleet dashboard css revist
- add secondary label class
- fix borders
- fix charts style and tooltips
- fix errors overflows and add tooltips to display errors
- fix cards grid
- fix badge colors

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:03 +02:00
Francesco Torchia 20782572a9
Implement Fleet dashboard a11y and SlideInPanel focus-trap
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:53 +02:00
Francesco Torchia 61c31a61b4
Fleet Add source field in Dashboard Resource detail panel; Add no target clusters warning in Dashboard cards
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:51 +02:00
Andy Lee ee3eb32c6b
update placement to auto
Signed-off-by: Andy Lee <andy.lee@suse.com>
2025-06-03 15:16:02 +08:00
Andy Lee 58d80f177b
add description formatter
Signed-off-by: Andy Lee <andy.lee@suse.com>
2025-06-03 13:22:14 +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
Phillip Rak e6318b220d
Merge pull request #13669 from rak-phillip/bugfix/13667-formatters-data
Refactor formatters so data prop no longer contains init logic
2025-04-09 12:54:50 -07:00
Alexandre Alves 467139b939
fix aria-labels in copy to clipboard (#14014) 2025-04-08 08:45:57 +01:00
Phillip Rak 2da8c2b0e3 Replace translated data prop with computed prop in ServiceType
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-11 10:15:48 -07:00
Phillip Rak a1e78f5fd7 Replace `translated` data prop with computed prop in ServiceType
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-10 14:43:42 -07:00
Phillip Rak 5534a5744a Move init logic in SecretData to `beforeMount()` hook
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-10 14:42:35 -07:00
Phillip Rak 2c6b0e4692 Remove unused formatters
There's no sign that these formatters are actively used in Dashboard. Removing them to eliminate dead code.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-10 14:41:12 -07:00
Phillip Rak f75e23d5c2 `ServiceType.vue`: Make `headless` and `clusterIp` computed props
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-07 13:24:13 -07:00
Alexandre Alves 84c234383a
Fix textual descriptions for cluster appearance in multiple places (#13416)
* Fix textual descriptions for cluster appearance in multiple places

* address pr comments

* address pr comments
2025-02-24 09:00:54 +00:00
Alexandre Alves 9b92574199
fix space key triggering scroll on page (#13413) 2025-02-17 09:30:08 +00:00
Alexandre Alves 478e195431
fix workload health accessibility (#13220) 2025-01-31 09:32:27 +00: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
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
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
Francesco Torchia eac3deaa4b
Add harvester features
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:36 +01:00
Nancy 6f52e59b07
Fix editing local rke1 and eks clusters (#12583)
* rework isImported and provisionerDisplay cluster properties

* refactor cluster unti tests to account for isImport property refactor

* update CLI e2e test to expect successful download
2024-11-12 14:11:00 -08:00
codyrancher 001b6e922d
Resolving an issue where we don't check to see if unrepeatedSans exists before using it (#12417)
https://github.com/rancher/dashboard/issues/12255
2024-10-30 12:10:39 +00:00
Richard Cox ffa7bfce1e Tweaks 2024-10-07 10:40:16 +01:00
Richard Cox 96172607b3 Show Cloud Credential Expiration information for Harvester Creds, add actions to renew 2024-10-07 10:40:09 +01:00
Nancy 5607114e5d
update all instances of LabeledInput using v-model.number to use v-model:value.number (#11902)
* update all instances of LabeledInput using v-model.number

* add probe http headers unit test

* add hookoption test

* remove codemirror focus change
2024-09-19 14:46:37 -07:00
Phillip Rak 6e02fbbfa3
Merge pull request #11880 from momesgin/11763-floating-vue-fixes
Fix Tooltip and Dropdown issues
2024-09-17 08:41:22 -07:00
Phillip Rak b8af4da149 Remove extra `<template>` tags from components
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-12 15:19:41 -07:00
Mo Mesgin a0891d070e update open-group to show-group 2024-09-11 11:28:16 -07:00
Mo Mesgin 682a09cae5 replace trigger with triggers 2024-09-11 10:56:45 -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
Phillip Rak 0fb02f5b2d Unit test updates
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Cody Jackson f7254d2909 Resolving a inheritAttrs issues with LiveExpiryBadgeState.
Went with this solution because it's only used in one location. I'd prefer to fix the overloaded attributes when possible.
2024-08-22 16:09:55 -07:00
Cody Jackson 1f82c9c642 Fixing the usage of :value to be :modelValue in regards to Consumption Gauge 2024-08-22 16:09:54 -07:00
Phillip Rak 97b58ca4f0 Update unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Cody Jackson b3e35acf3f Fixing the remaining compiler errors.
- Moved key to be on the for loop
- Made the default template present conditionally
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
cnotv 78d70353c5 Unit test: Migrate unit tests with the script 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