Commit Graph

62 Commits

Author SHA1 Message Date
Richard Cox bd3b44dd88 Sort Improvements + Fix Events SSP sort - Apply SSP sort order with generic `:desc` notation, - Allow headers to provide default sort order - Ensure SSP first seen and last seen column sorts behave the same 2025-09-24 10:25:58 +00:00
Richard Cox eb1c08032f
Project Scoped Secrets (#14772)
* rename variables

* change button names + fix import

* apply pagination to secrets

* Major Changes

- secrets and project scoped secrets are now two pages
  - this fixes the issue where resource-fetch and associated mixins just fail with two of the same type on page
    - incremental loading would have been broken for both
- project scoped secrets
  - now correct lists upstream secrets that a project scoped based and on the target cluster
    - lots of work to get CRUD for management secrets in explore/cluster world
    - also includes a specific page to override the store for create/edit/view
  - these are now correctly grouped by project
  - updated to work with SSP enabled
- secrets list
  - shows if the secrets comes from a project
  - shows if the secret is a project scoped secret (only used on upstream cluster)
  - updated to work with SSP enabled
  - disabled update/delete of secrets created from project scoped (these just reset when sync runs again)
- disabled new detail view
  - this is broken, it ignores both storeOverride and currentStore, always going to `cluster` store


TODO:
- mostly testing
- blocked on some BE issues (bugs, additional indexed field)

* ... progress. will update commit message

* Revert "Merge pull request #14748 from richard-cox/revert-project-secrets"

This reverts commit be3962261d, reversing
changes made to 62d80084d9.

* tidy, and remove e2e

* test fixes

* fix vai group by

* Fix for grouping (secrets --> group by namespace --> pss --> table is incorrectly grouped but toggle is correct

* fix warning

* fix clone/yaml, fix default/system pss

* don't fetch projects, it wipes out header. this means in upstream we won't show project names for pss downstream

* fix lint

* fix ts complain

* Tweak column tooltips

* Add cypress logs for failing tests

* pipe in `inStore`

* tweaks to cypress logs process
- better name
- log http requests
- only create logs if run failed

* Secret selector improvements and test fixes
- don't cache or watch secrets if we're showing multiple selectors on a page
- ensure we classify secrets (make it into an instance of a model)

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
Co-authored-by: momesgin <mo.mesgin@suse.com>
2025-07-15 08:27:26 +01:00
Francesco Torchia b8dde4d8ca
Fleet fix tagetInfo column to be consistent with the new targets rules; add getTargetMode util
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 15:46:42 +02:00
Francesco Torchia 6aa7130fd7
Fleet fix appSourceName label in Bundles model
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:42 +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 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
Richard Cox 51f21ab6f3 Merge remote-tracking branch 'upstream/master' into pagination-remove-findall-2 2025-01-23 15:57:51 +00: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 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 96e30e285c Tidy up event headers
- opens up to event header e2e failures again...
2025-01-13 14:47:33 +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 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 096d290627 Testing new indexed fields with dev image 2024-12-18 14:38:50 +00:00
Richard Cox 8f02e8ab30 lint fixes 2024-12-16 16:58:33 +00:00
Richard Cox 66f73dab5b fixes / updates 2024-12-04 11:54:28 +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
Francesco Torchia eac3deaa4b
Add harvester features
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:36 +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 9a91a2cc7e Limit width for enabled column
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-27 16:29:25 -07:00
Phillip Rak f3e9977f38 Use an icon to display user state
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-27 16:29:23 -07:00
Phillip Rak dfc555fb5b Add a suffix to Last Login
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak c746601593 Don't display a value for `Disable After` for disabled users
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak f404873ffe Stop displaying relative time when date has lapsed
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak e4d6f3e653 Sort by raw value instead of string value
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:48 -07:00
Phillip Rak 2554be09a3 Add translation strings for new user fields
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:47 -07:00
Phillip Rak 630d96ca5b Add User Disabled In & Deleted In columns
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:47 -07:00
Phillip Rak 75cbdda5ba Add Last Login to users table
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-21 16:27:47 -07:00
Richard Cox f0c397c001 Update Node list to support server-side pagination
- Setup pagination headers for the node type
- Define a pattern for fetching custom list secondary resources
- Major improvements to the way pagination settings are defined and created
- Lots of docs improvements
- Handle calling fetch again once fetch is in progress (nuxt caches running request)
- Validate filter fields (not all are supported by the vai cache
- General pagination fixes
2024-04-30 11:04:06 +01:00
Richard Cox 0862b80433 Changes following review
- General changes following review comments
- Fix issue where in local cluster the systen classed namespace associated with a project would get muddled with selecting user resources in mathing project
  - Part of this is a big refacture, most of the code to create pag filter params is now in a helper filer
  - Added much improved typing
- Fixed issue where the dynamic namespaces (c-, p-, etc) weren't correctly hidden
- Move user to previous page if last entry on last page deleted (and there is a previous page)
- Fix confusing preference to hide dynamic namespaces (c-, p-, etc)
2024-04-02 14:22:24 +01:00
Shavindra 2e69430808
Fix fleet cluster state (#10162)
* Display cluster state.

* Display cluster repo status badge.

* Fix typo.

* Fix typo.

* Fix linting.

* Fix linting.

* Removed type from request.

* Reverted change.
2023-12-18 10:52:11 +01:00
Jordon Leach e97712503f
Reconfigure extension catalog deployment - remove UIPlugin resource (#9695) 2023-09-14 08:40:07 -04:00
Mo Mesgin 1ff850f33d changed formatter name 2023-07-12 07:52:09 -07:00
momesgin afa9c06d5c
Add wrap styling to image column (#9257)
* add wrap styling to image column

* add Image formatter and  apply styling

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-10 21:48:41 -07:00
Giuseppe Leo 01eeb0548f
Add recommended lint rules globally (#8997)
* Update configuration

* Create default config for eslint

* Restore plugin:vue/recommended

* Add exceptions and overrides

* Correct manually remaining issues

* Adding further picked exceptions groupped up

* Fix or disable specific cases manually and singularly

* Add naming linting exception

* Remove unused variable in component

* Move rules to default

* Autocorrect rancher/components linting issues

* Configure VSCode to use multiple files, to display linting for rancher components

* Disable jest lint hook restriction for string list component

* Autofix
2023-06-23 17:02:55 +02:00
Jordon Leach d94e78c24a
Add extension image load dialog (#9010)
Update dialog with repo creation - update docs

Add uninstall for custom images

Add extension images list view

Add image load dialog and uninstall within extension image view

Update publish and bundle scripts for image load - move image page to tab

Add extension container build workflow file to pkg creator

Move plugin server template into extension build scripts

Fix publish script for multiple asset packages

Move ImageList view to separate page - add crd metadata for custom images

Update docs - fix references to images with catalog

Fix wording, cache state badge, masthead breadcrumb, when deleteing resources check for namespaces

Update docs - fix delete repo resource - default cache state

Trim image whitespace - populate extensionUrl

Add experimental badge
2023-06-02 08:28:47 -04:00
Richard Cox e10351733c Cluster and Project Members page fixes, Add back `Role` column to ClusterRoleBindings list
- Cluster tab
  - Remove prompt - Improved type name (Cluster Member --> Cluster Membership removes confusion with Cluster Member role)
- Projects tab
  - Fixed delete of membership to group. This would just delete the first binding that didn't have a user and was of the correct role
  - Remove prompt - Added name for projectroletemplatebinding type
  - Use same padding on right of Add button as on the left of the table
- CRB List
  - Removed custom header definition so native schema headers are used (with role)
2023-05-25 12:20:18 +01:00
Bastian Hofmann 3c955e6f52
Improve OPA Gatekeeper constraint detail page (#8586)
This adds the following functionality to the violations list on the OPA Gatekeeper constraint detail page:

* Add a namespace column to the violations
* Make the violations list searchable
* Allow to download the violations as a CSV, similar to CIS scanner violations

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-04-27 09:27:37 +01:00
Shavindra 54e084f8fd
Fix clusterrolebindings (#8330)
* Fix ClusterRoleBindings listing.
* Update cluster members list view.
* Fix RBAC project users.
* Add role-binding icon.
2023-04-14 09:47:45 +01:00
Neil MacDougall 2859ad0214
Fix OPA Gatekeeper constraint inconsistencies (#7979) 2023-03-09 21:24:36 +00:00
Bastian Hofmann e2cf3e0e10
Add links to object resource to cluster events tables (#7947)
This adds an additional column to the cluster explorer events table, so that there is one column with the object, one with the message and one with event name.

The object column is linked to the object resource. The event name column is linked to the event detail page.

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-02-21 13:42:33 +00:00
Francesco Torchia 5895859a2b
Events tab, restore tooltips
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-01-25 10:01:49 +01:00
Francesco Torchia 441722ab8c
Events tab
- define header
- set "Last Seen" column as default sort

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-01-12 16:53:42 +01:00
Francesco Torchia 6701ed11a3
Jobs view, Duration field live refresh
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-15 12:17:36 +01:00
Catherine Luse aaf65b60c6 Show both internal and external IPs in list of nodes 2022-12-07 09:53:50 -07:00
richa f6d6e34cc3
Fixed table alignment in Age column (#7577) 2022-12-07 14:32:51 +01:00
Francesco Torchia 84dd46c9e1
ui:Job List, fix Duration field sorting
- fix sorting
- code refactoring

- Jobs view: fix duration field in case of Pod never starts

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-11-18 15:01:16 +01:00
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00
Richard Cox 7d90720fe0 Don't fix the width of the feature flag table description column
- the feature flag names are small compared to the description
2022-09-09 17:45:30 +01:00