Commit Graph

519 Commits

Author SHA1 Message Date
Francesco Torchia affdb539bb
Add multiple attribute to ResourceLabeledSelect
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-10-15 17:33:34 +02:00
Phillip Rak 58cb85c31a
Merge pull request #15589 from rak-phillip/bugfix/15572-file-upload-buttons
Allow for custom class attrs in selector buttons
2025-10-10 11:12:13 -07:00
Andy Lee 83f6e96e4a
Merge pull request #15544 from a110605/harvester_issue_6107 2025-10-07 23:28:27 +08: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
Phillip Rak d09662cc22 Allow for custom class attrs in selector buttons
This change allows a class of `role-primary` for the default in `shell/components/form/FileImageSelector.vue`. The `btn` class is dropped because it is redundant; `btn` is already defined in the child `FileSelector` component.

The previous implementation would merge classes in such a way that both `role-primary` and `role-secondary` classes would be present on a button.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-10-06 16:00:15 -07:00
Richard Cox 3020112282
Merge pull request #15290 from skanakal/fix-events-in-namespace
fix namespace recent events page
2025-10-06 12:29:26 +01:00
Andy Lee 649fcac21c
refactor: put validInStore in compute
Signed-off-by: Andy Lee <andy.lee@suse.com>
2025-10-03 09:53:29 +08:00
Andy Lee 7f7367c1e2
fix: send GET secret API when creating Flow 2025-10-03 09:51:41 +08:00
codyrancher cfc5230124
Merge pull request #15466 from codyrancher/checkbox-mode
Ensuring Checkbox components have the `mode` prop where appropriate
2025-09-24 06:48:09 -07:00
Cody Jackson 9d13262038 Ensuring Checkbox components have the `mode` prop where appropriate
Fixes #14481
2025-09-17 13:45:39 -07:00
Cody Jackson 42bd75e1e5 Updating some of our unit tests and fixing a warning 2025-09-16 12:32:23 -07:00
Siva Kanakala 87faeeb904 fix namespace recent events page 2025-09-16 15:39:27 +05:30
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
Francesco Torchia baa2c9fd60
Fix dropdown behavior in Select component when removing tagged elements
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-10 15:16:40 +02:00
Francesco Torchia 6fa45c1fec
Remove onClickOption to avoid duplicate update:value emit from LabeledSelect.vue and Select.vue
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-09 18:51:31 +02:00
Francesco Torchia 2cad3bf6c3
Fix dropdown behavior in LabeledSelect component when removing tagged elements
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-09 16:43:35 +02:00
Cody Jackson eeef60ba2a An alternative narrower scope implementation 2025-08-21 01:43:41 -07:00
Cody Jackson 63eafb9fe7 Adding tab counts to our detail page resource tabs
Addresses a part of #13328
2025-08-21 01:43:41 -07:00
Richard Cox a7a4f6f8c7
Merge pull request #14947 from richard-cox/improve-resource-labeled-default-store
Use a more sensible default for ResourceLabeledSelect inStore
2025-08-18 16:54:00 +01:00
Neil MacDougall cbc94e3f8e
Remove icon-fw and other unused icon classes (#15158) 2025-08-14 21:39:23 +01:00
Alexandre Alves 42dae38972
fix keyboard focus being trapped in cluster appearance modal (#15094)
* fix keyboard focus being trapped in cluster appearance modal + fixes cluster appearance modal not being activated by enter key

* fix outline cluster appearance toggle btn
2025-08-12 15:29:10 +01:00
codyrancher e4836ea690
Update the styling of our detail page tables (#14986)
Targets #13328
2025-08-05 10:38:43 -07:00
Richard Cox 2b83765067 Ensure SecretSelector resets on namespace change
- re-render the core controls, reset the selected values
- also
  - fixed typing in labeled-select-pagination. something over the versions broke this
  - removed empty comment root output edit page
  - removed debug line in awsElasticsearch
2025-08-01 15:23:18 +01:00
Richard Cox 621ed9dc79 Use a more sensible default for ResourceLabeledSelect inStore 2025-07-29 10:26:26 +01:00
codyrancher b2bd266039
Reverted the color of the loading background while maintaining the new color for the rest of overlays (#14871)
fixes #14856
2025-07-24 13:15:49 -07:00
LiuYan c7798fb8cf
fix(Networking): fix unable to edit Host Aliases configuration of a workload pod (#12992) 2025-07-15 09:34:41 -07: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
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
Richard Cox 3f086247e2 Revert "Project scoped secrets (#13979)"
This reverts commit a35b81cbd3.
2025-07-09 11:16:16 +01:00
Richard Cox 01dbbd6897
Merge pull request #14719 from richard-cox/pagination-fix-receiver-config
Ensure correct syntax is used with SSP and the secret selectors
2025-07-09 08:26:27 +01:00
Phillip Rak 81071b5027
Revert: Add an id to track members of ArrayList.vue (#14742)
This reverts commit 6ee27db90d.
2025-07-08 18:46:56 -07:00
Francesco Torchia e765334cb5
Add showErrors prop in ResourceYaml and make errors closable
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-08 17:07:50 +02:00
Richard Cox bd7341aae4 Ensure correct syntax is used with SSP and the secret selectors
- two fixes, two places
- Fix - ensure filter=x=1,x=2 format is used and not filter=x=1,2
  - this must have worked at some point...
- Fix - ensure partial filter is used when searching secrets by name
  - same here...
- SimpleSecretSelector is only used in monitoring alertmanager receive config
  - See issue for repro steps
  - whoever created it should have used SecretSelector instead
- SecretSelector is only used in logging output providers
  - Logging --> Outputs --> Create --> Outputs tab --> Access secret fields
2025-07-07 20:17:31 +01:00
Francesco Torchia 311aeca2f3
Merge pull request #14655 from torchiaf/fleet-cosmetics-2
Fleet cosmetic fixes
2025-07-07 12:15:21 +02:00
Francesco Torchia cd20c86597
Fix labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:14 +02:00
Francesco Torchia a7db4d17dd
Fleet Target Clusters assign focus on add MatchExpression rule
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:12 +02:00
Francesco Torchia 7d30fa86a7
Fleet Target Clusters assign focus on add MatchExpression
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:11 +02:00
Francesco Torchia 787de58e97
Fleet fix GitRepo Paths layout
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:10 +02:00
Francesco Torchia f2a25a7ba1
Fleet fix Target clusters layout
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:09 +02:00
Francesco Torchia 18a8607426
Extend Show System labels to cattle.io/
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 09:45:18 +02:00
Francesco Torchia 76374d8fd8
Merge pull request #14667 from torchiaf/11229-system-labels
Fix protected Labels
2025-07-03 20:20:18 +02:00
Francesco Torchia ceb318cf52
Implement Labels unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-03 18:01:32 +02:00
Francesco Torchia 9452f01946
Fix Labels component
- display errors when adding protected labels/annotations
- discard new labels/annotations when keys are protected and preserve old protected keys
- show protected labels/annotations toggler only in view mode and for EVERY models having custom protected labels/annotations

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-03 16:38:40 +02:00
Francesco Torchia 788b26a664
KeyValue clean-up
- remove protectedKeys and toggleFilter
- add keyErrors for key field

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-03 16:35:37 +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
Neil MacDougall f8a6ddf25d
Fix select controls do not close when clicking on arrow (#14217)
* Fix select controls do not close when clicking on arrow

* Rebase

* Control vue-select state via labeledSelect

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Control vue-select state via Select.vue

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Set isOpen to false when select closes

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Move focus back to select wrapper on close

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Defer more select open state logic to wrapper

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Close when no selection is made

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Allow for multiselect

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Fix failing e2e test

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-02 13:33:43 -07:00
Siva Kanakala 5192b2501f
fix-onPaste-Keyvalue (#13071) 2025-07-02 08:50:37 +01:00
Phillip Rak 6ee27db90d
Add an id to track members of ArrayList.vue (#14568)
* Add an id to track members of ArrayList.vue

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Fix unit tests

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Revert change to input

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Fix for e2e test failures

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-01 15:16:12 -07:00
edenhernandez-suse c7ee08f825 Lint fix 2025-06-27 14:10:05 +02:00
edenhernandez-suse bcc638d818 Fleet settings minor issues - headings, button sizes 2025-06-27 13:53:31 +02:00