Commit Graph

587 Commits

Author SHA1 Message Date
Richard Cox 6cdde78200 Ensure Compliance --> Profile list loads
- vai can report profiles with `skipTests: []` as `skipTests: null`
  - this is a general bug for BE to fix
- we should make this null safe though
2025-10-16 18:00:28 +01:00
Phillip Rak 970a8df2a7
Add GitHub App auth provider (#15500)
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-10-15 00:29:50 -07:00
momesgin ba4b4726c4
Chart Card Updates (#15560)
* update installed tooltip

* fix tests

* display last updated on tools cards

* wrap subheader items on cards

* update data-testid and fix e2e test

* update type and add optional chaining

* add more optional chaining

* one more optional chaining

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-10-10 12:19:41 -07:00
Richard Cox d58e8182d0
Merge pull request #15392 from richard-cox/update-event-sort-order
Table Sort Improvements
2025-10-07 11:00:30 +01:00
Richard Cox a90029638a
Re-enable vai support for side nav and home page cluster lists (#15262)
* generic changes from https://github.com/rancher/dashboard/pull/14492/files

* VERY WIP
- move out watch event stuff into own file
- improve typing
- start resolving core unwatch & unwatchIncompatible of side nav cluster watches (not going to store) being seen as incompatible with find cluster action that does go into store

* very wip, vaguely working

* starting to tidy up

* more tidying

* wip - pre-pivot

* maybe...

instead of upfront unwatch with lots of complicated logic... only do it if we hit the issue (i.e. no page entry into page )

* tidying up

* asd

* Remove now uneeded sideNavCache

* big refactor, untested

* tidying up

* tidying

* more tidying

* more tidying

* add some super basic unit tests, fix another

* remove debug logger and last todos

* more unit test fixes

* Fix two bugs, and fix e2e tests
- we don't always have the mgmt cluster, so take this into account
  - i've checked all usages of `['management/byId'](MANAGEMENT.CLUSTER`

* more e2e fixes

* Tidying up following review
- more comments
- rename of method to something more sensisble

* Disable support for ssp in side bar and clusters
2025-10-06 09:47:58 +01:00
momesgin cba962d494
update icons lib and use new icon for downgrade (#15501)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-09-23 12:20:49 -07:00
Richard Cox a66864a89f Ensure side bar cluster list shows icons for clusters with no annotations 2025-09-22 09:10:43 +01:00
Richard Cox da2484b0cb 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-11 11:16:46 +01:00
Cody Jackson 9b44ce6c0b Handles the namespace glance when the namespace isn't in a project
Fixes #15377
2025-09-10 11:53:55 -07:00
codyrancher 9695f94373
Merge pull request #15159 from codyrancher/fleet-slot
Migrating fleet over to using the masthead slots to render custom buttons
2025-09-10 09:03:56 -07:00
Richard Cox 9746f63e05 Fix stateful set pods page
- normally workloads will fetch pods via the workloads podSelector
- however for stateful sets we ignore that and instead get pods that have an owner reference of the statefulset
- in a vai on world this was broken
  - pods are now fetched via workloads model fetchPods
  - pods are returned via `get pods`
  - the model statefulset overrode `get pods` and looked into podsByNamespace, which isn't populate in vai world
- fix is straightforward
  - start off with the pods that match the selector (agnostic of vai state)
  - as before filter down to the ones with the owner
2025-09-09 15:08:45 +01:00
codyrancher c3af0bda58
Merge pull request #15201 from codyrancher/resource-popover
Implements the resource popover as described in our design document
2025-09-05 10:16:45 -07:00
Francesco Torchia 134e5be330
Merge pull request #15312 from torchiaf/15265-remove-created-by
Fleet remove Created By label and fix missing user-id on Rancher init
2025-09-04 12:02:50 +02:00
momesgin 542f388f6d
fix cancel redirect + deprecated chart installation from tools (#15316)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-09-03 21:42:06 -07:00
Cody Jackson 26333ab3cc Modifying the glance for projects 2025-09-03 10:15:17 -07:00
Cody Jackson 8442803037 Popover 2025-09-03 10:15:17 -07:00
Francesco Torchia f593cca83a
Fleet add fallback getting user info before store init
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-03 15:33:22 +02:00
Francesco Torchia d9cd53a16c
Fleet remove CreatedBy section from App details
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-03 11:21:50 +02:00
Francesco Torchia a69e345241
Fleet fix missing resources from clusters details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-02 18:26:44 +02:00
Cody Jackson 331d801766 Migrating fleet over to using the masthead slots to render custom buttons 2025-08-15 09:17:20 -07:00
momesgin 3b978a2e7e
Handle charts zero date (#14820)
* hide date for appco charts

* handle charts zero time

* minor refactor + update translations

* fix tooltip overlapping with scrollbar

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-08-14 12:00:57 -07:00
Neil MacDougall 08041921a7
Remove icon-fw class in action menus (models) (#15131) 2025-08-14 14:09:53 +01:00
Cody Jackson 0462944a9e Adds support for for an additional actions slot in our titlebar/masthead
Fixes #14977
2025-08-12 18:13:57 -07:00
codyrancher bdb6a8d441
Remove the concept of legacy/latest detail pages (#15076)
* Remove the concept of legacy/latest detail pages

* Update the padding for explorer pages

* Fixing an issue found with the outlet padding change
2025-08-07 16:36:56 -07:00
momesgin 8192430a5a
charts filtering tooltips (#15102)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-08-07 15:53:03 -07:00
Alexandre Alves 9b78220790
fix issue with pods capacity on node list view (#15062)
* fix issue with pods capacity on node list view + add unit test + remove tests that are duplicated in a different model

* fix lint issues
2025-08-06 14:55:30 +01:00
Richard Cox acc8b77263
Merge pull request #15011 from richard-cox/fix-resource-detail-updates
Fix general and specific resource detail watch issues
2025-08-06 08:43:23 +01:00
Evgeniya Vashkevich 6db6ce7f1f
Fixed Harvester detail page through Cluster Management (#14982) 2025-08-05 09:19:37 -07:00
Richard Cox 0bcb054abe Make `get` replacement super safe 2025-08-05 14:40:37 +01:00
Richard Cox cdcefd1df9 Two improvements
- remove `get` function
- ensure that find action will watch if resource already in store
2025-08-05 14:39:32 +01:00
codyrancher 8b27a69afa
Adding the Show Configuration action to all resource availableActions (#14825)
fixes #14824
2025-07-29 17:56:19 -07:00
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
Francesco Torchia f64b8c8c92
Merge pull request #14850 from torchiaf/14808-helmop-version
Fleet fix HelmOps table - Source column
2025-07-28 09:30:43 +02: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 529b6b7705
Fleet add HelmOps model unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-18 17:39:36 +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
Francesco Torchia c295dbdd7c
Fleet add HelmOps installed version in Source column
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-18 16:40:04 +02:00
Francesco Torchia 23c75e3507
Fleet fix Polling Interval behavior in HelmOps wizard
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-17 14:27:18 +02:00
Francesco Torchia 05a8abfea1
Fleet remove Enable/Disable Polling actions from HelmOps
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-17 14:26:41 +02: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
Evgeniya Vashkevich 2e25bc83ae
Added back RKE1 removal, removed etcdbackup (#14786) 2025-07-14 08:29:27 -07:00
Francesco Torchia fb67679e28
Merge pull request #14698 from torchiaf/fix-yaml-conflicts
Fix YAML 409 conflict errors
2025-07-14 10:48:15 +02:00
Jordon Leach c51eb70e61
Add ability to configure commentFieldsOptions on resource model for createYaml (#10396)
* Add ability to configure commentFieldsOptions on resource model for createYaml

* Add commentFieldsOptions to createYamlWithOptions method

* Fix and extend commentFieldsOptions to cover array and object types

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>

* Fix typo

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>

* Clean up addCommentSubFieldsOptions fn

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>

---------

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Co-authored-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-11 09:19:49 -07:00
Francesco Torchia 4b52e3f877
Handle conflict errors in resource-class.js/saveYaml PUT requests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-11 17:10:43 +02:00
Francesco Torchia 9873120e9f
normalize/handleConflict refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-11 17:10:43 +02:00
Francesco Torchia f0617f4536
Fleet add HelmOps in cluster pages
- Add Helm Ops Ready column
- Change cluster columns order
- Fix Git Repos Ready col label
- Fix e2e tests

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-10 13:05:12 +02:00
Evgeniya Vashkevich 24f6c0bb12
Disabled editing Harvester cluster from Cluster management (#14526) 2025-07-09 21:24:40 -07:00
Francesco Torchia 462f26d126
Fleet add HelmOps count in Workspace details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-07 13:52:27 +02:00
Giuseppe Leo e10f19e54d
Implement CRD logic for SCC registration online (#14615)
* Create registration composable

* Add logic to create registration CRD schema and fetch resource with WS

* Convert Registration list to single element

* Updating logic with real case data

* Update UX to display also invalid registrations; Add Types; Update displayed values for the registration

* Update registration values given new specifications: expiration, product name

* Map condition errors from registration to banner

* Code cleanup, removed duplications

* Abstract date and time formatting as it's app standard; convert file to TS

* Add unit test for time

* Prevent logic to register without code; Reset values with null

* Corrent async button bug which has default error

* Move tests to isolate composable and ensure quality

* Abstract initialization

* Add tests and correct found issues

* Add loading status

* Separate data fetching and mapping; Pool registration till hash is changed

* Correct async button callback

* Add missing registration value assignment after refactoring

* Fix asyncbutton wordings and colors not matching standards

* Fix tests: import and fake times

* Fix issue with timezone testing in CI

* Catch namespace creation issue
2025-07-03 17:13:21 +02: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