Commit Graph

447 Commits

Author SHA1 Message Date
Richard Cox a985e97469
Merge pull request #13208 from richard-cox/fix-monitoring-install
Fix failure to fetch workload resources in monitoring chart install
2025-06-04 17:57:23 +01:00
Alexandre Alves 387891f61f
improve a11y in some of our most used components in Rancher Dashboard (#14343)
* improve a11y in some of our most used components in Rancher Dashboard

* revert changes to roles on keyvalue component
2025-06-04 08:50:48 +01:00
Richard Cox d870c07cf1 Finish testing, fix search services, reference new rancher/rancher issues 2025-06-03 13:20:25 +01:00
Richard Cox 2a518c33f8 Update given BE progress 2025-06-03 09:58:47 +01:00
Neil MacDougall 0ababdda45
Add support for HTML page banners (#14356)
* Add support for HTML banners

* Add support for HTML banners

* Updates test so it runs okay after the text banner tests

* Fix for html tests running after others

* Improve e2e test reliability

* Add aria-labels
2025-05-29 17:15:21 +01:00
Richard Cox 980d4b06d9
Integrate new label select filtering (#12919)
* Test / Wire in new label filtering to limited places

- Wired in to
  - Workload detail page - pods and services (broken due to reverse selector)
  - Service Detail - Pods List
  - Service create/edit - Pod selector tab
- Also
  - Fix showPodRestarts in random location
- TODOs
  - Lots of testing / validation required
  - reverse deployment --> service selector (not services given deployment, but for each service contains pods from deployment)
  - workload model usages of pods getter
  - services model usages of pods getter
  - many many more....

* wired in, NOT tested

* improvement

* sdfdsf

* ryrty

* werer

* The great test off begins

* testing and tidying

* testing and tidying

* First good run

* tests, fixes and improvements

* updates

* Tidying up

* Fixes (namespace orientated), tweaks, updates

* Fix unit test

* Fixes for vai off

* Re-write `matching`
- handle namespaces better (given if the resource is namespaced
- better align with legacy matching fn (given specific scenarios that should return none or all)

* Lots of fixes, but mainly vai off --> pods list --> deployment detail --> pods list updates correctly

* fix lint, unit test

* e2e fix

* Fix weird plugins build validation failure (TS error on expected param for JS method with a default)

* Fix workload services

* changes following mini code review

* Only show pods tab if workload type supports it, always show pod resource table if tab is shown
2025-05-28 11:17:25 +01:00
Alexandre Alves 20827a1943
fix problem with space key on searchable selects (#14362)
* fix problem with space key on searchable selects + add unit tests

* fix lint issue
2025-05-19 11:49:44 +01:00
Alexandre Alves 904cf072c8
reconnect resource to Tabbed component via resourceTabs (#14357) 2025-05-16 17:17:19 +01:00
Evgeniya Vashkevich 89dbe1ad2b
Made name optional in NameNSDescription component (#14337) 2025-05-12 14:08:44 -07:00
Alexandre Alves 809c9d0301
add aria-required attribute to LabeledSelect and LabeledInput components (#14256) 2025-05-07 08:44:58 +01:00
Phillip Rak dc30093509
Replace container logs actions with new dropdown menu component (#14172)
* Create new `useDropdownItem` composable

This composable defines common methods that can be shared across different dropdown menu item types.

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

* Create new `RcDropdownMenuItemCheckbox` component

`RcDropdownMenuItemCheckbox` specifies the styles and behaviors for a menu items that acts as a checkbox.

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

* Create a select item dropdown component

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

* Move container actions into dedicated component

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

* Toggle container logs actions based on environment

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

* Fix type for labeledSelect component ref

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

* Replace trigger mixin data with event.stop

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

* Fix typo: LocaleSelector

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

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-05-06 10:50:09 -07:00
Alexandre Alves 6e568be938
refactor known hosts edit modal as a prompt modal (#14196)
* refactor disable known host edit modal as a prompt modal + add unit tests

* fix broken unit test

* remove unused prop
2025-05-06 18:32:06 +01:00
Siva Kanakala 7c44cb9feb
trim nodeselector keys to prevent backend rejection (#13678) 2025-05-06 07:49:10 -07:00
Alexandre Alves fd14379936
Improve Banners settings screen reader output (#14093)
* fix a few components for a11y + add unit tests related to a11y

* fix issues with sr output for banners settings with ColorInput and RadioGroup + update unit tests + fix lint issues

* fix lint issue
2025-05-05 09:25:53 +01:00
Alexandre Alves cb7cb52dbe
add role 'none' to hr elements in TopLevelMenu (#14121)
* add role 'none' to hr elements in TopLevelMenu

* add missing role and label to SideNav

* add aria-label to show/hide button in the Password component

* add role 'none' to hr elements

* add missing alt to user avatar image
2025-04-16 10:23:38 +01:00
Cody Jackson 33de80c385 Removing some some extra `toRef` usages that seemed to be causing some issues for our deployment EnvVars component. 2025-04-14 15:25:49 -07:00
Evgeniya Vashkevich 0715f04712
Added data-testid prefix prop to ArrayList (#14085) 2025-04-14 09:12:37 -07:00
Alexandre Alves 9fbd70f2ee
fix focus trap in various modals (#13925)
* fix focus trap in various modals

* disable focus trap for unit tests

* remove disableFocusTrapForUnitTests + mock focus-trap on affected unit tests
2025-04-11 09:51:46 +01:00
Alexandre Alves e8e05df687
fix missing labels on form fields (#13957)
* fix missing labels on form fields

* update Select to match wiring work done in another PR for aria attributes + add a11y unit test
2025-04-11 09:51:15 +01:00
Siva Kanakala 3429323fb2 fix-EnvVars-removal 2025-04-09 17:59:07 +05:30
Alexandre Alves 4af23f6d6a
working on issues reported in the a11y tests (#13609) 2025-04-02 09:57:46 +01:00
Phillip Rak c7b2e2e605 NameNsDescription: write unit tests for the name input
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-01 09:37:28 -07:00
Phillip Rak cc02045dfb NameNsDescription: Set the name using the nameKey prop
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-01 09:36:26 -07:00
Phillip Rak 021cfac4f8
Merge pull request #13703 from rak-phillip/task/13702-form-components-data
Refactor form components so data prop no longer contains init logic
2025-03-28 15:10:44 -07:00
Phillip Rak 431022e174 Fix mutation of rows during initialization of ArrayList
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-26 15:39:28 -07:00
Phillip Rak 8a1ecddf11 Refactor Probe to use `setup()`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-26 15:36:47 -07:00
Alexandre Alves 42efc9d3c5
fix some a11y items on ArrayList and KeyValue (#13832) 2025-03-25 09:28:51 +00:00
Phillip Rak 89eaa7b107 Refactor ValueFromResource to use `setup()`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak 594570d37a Fix unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak 68e046e5ed Use `setup()` to init data in `NameNsDescription.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak bfa9c6c354 Use `setup()` to init data in `ArrayList.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak bb10d31196 Fix unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak 2a1d334b44 Init component data in `created()` hook
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak 593e38abd4 Assign default values inline with data prop declaration
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Alexandre Alves a3e4a80ef0
add missing lang HTML attribute to locale selector2 (#13817) 2025-03-21 09:20:20 +00:00
Evgeniya Vashkevich b2c13c9457
Merge pull request #13776 from eva-vashkevich/iss12699
[FIX] Adjusted HPA to handle non-resource metrics
2025-03-19 10:55:26 -07:00
Alexandre Alves 88cbee575b
fix bug with Unit Input component not updating correctly (#13780)
* test fix

* working on unit tests

* remove console log

* bump shell version

* fix broken unit inputs

* fix unit test
2025-03-18 18:17:29 +00:00
Evgeniya Vashkevich 70be8838cd [FIX] Adjusted HPA to handle non-resource metrics 2025-03-14 13:49:02 -07:00
Evgeniya Vashkevich a524c65170
Last Project Member removal in Rancher Dashboard 2025-03-11 13:18:05 -07:00
cnotv 484070f562 Fix issue with Principal 2025-03-11 10:46:33 +01:00
Evgeniya Vashkevich 2812b1d180 Fixed some of th ecomments and #13630 2025-03-10 12:41:45 -07:00
Evgeniya Vashkevich c54619a73f [FIX] Scheduling customization adjustments 2025-03-10 12:41:44 -07:00
cnotv 3687744d78 Update tests to check user removal 2025-03-10 10:35:09 +01:00
cnotv 35893941ab Correct data-testid definition 2025-03-07 15:59:50 +01:00
cnotv c23675c176 Add data-testid to markup 2025-03-06 21:24:23 +01:00
cnotv 1accb1e131 Add unlisted required prop 2025-03-06 21:20:52 +01:00
cnotv d67bbb8e06 Add missing import for Principal component 2025-03-06 20:43:26 +01:00
cnotv 6881f21bc1 Add tests 2025-03-06 17:32:40 +01:00
cnotv ecd8322322 Update tests for ArrayList component 2025-03-06 17:32:40 +01:00
Cody Jackson 41bf230225 Resolving a reference to an undefined `lockedExist` and adding tests for project memberships with custom permissions
Fixes https://github.com/rancher/dashboard/issues/12828
2025-03-06 01:54:29 -07:00