Commit Graph

454 Commits

Author SHA1 Message Date
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
Phillip Rak 182233dd5c
Merge pull request #13523 from rak-phillip/task/13522-focus-styles
Update focus styles for inputs
2025-03-04 10:33:33 -07:00
Evgeniya Vashkevich 3cc1313069
[FEAT] Added PDB AND PC support for cluster agent (#13521) 2025-03-03 16:27:24 -08:00
Phillip Rak ea7fafe8fc Fix focus ring styles for inputs and selects
`display: table` caused the outline border to always be square in Firefox. For the purpose of the inputs, `display: flex` makes more sense while consistently displaying across browsers.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-03 15:50:03 -07:00
Alexandre Alves 8e2071d82e
fix misc issues with codemirror and a11y (#13530) 2025-02-28 09:53:24 +00:00
Alexandre Alves 32796f1283
fix space scrolling page selecting radio inputs and color inputs (#13491)
* fix space scrolling page selecting radio inputs and color inputs + improve keyboard navigation in radio groups

* remove unused argument

* fix radio group value in user pref for landing page + fix e2e test on same area
2025-02-28 09:51:35 +00:00
Mo Mesgin 2a30d37567 Merge branch 'master' of github.com:rancher/dashboard into 13470-keyvalue 2025-02-27 08:32:26 -08:00
Mo Mesgin 4289c9e3da use global css class to hide elements 2025-02-27 08:31:39 -08:00
Francesco Torchia dc34dcc33c
Merge pull request #13437 from torchiaf/13402-wizard-steps
Fleet GitRepo wizard UX improvements, new steps, fields size and banners
2025-02-27 09:47:34 +01:00
Mo Mesgin 60ac57d278 hide filtered items in KeyValue 2025-02-26 15:31:30 -08:00
Francesco Torchia 3ffb694a1c
Fleet: fix knownHosts dialog height
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:16 +01:00
Francesco Torchia 340e342cae
Fleet: Add GitRepo known host e2e tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:13 +01:00
Francesco Torchia aa9ac4d60a
Fleet: add plus icons to buttons
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:11 +01:00
Francesco Torchia 3471b49832
Add Event schema null checks
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:05:17 +01:00
Alexandre Alves 46aa2851c0
prevent scroll when hitting arrow down key on selects (#13466) 2025-02-24 15:27:30 +00:00
Alexandre Alves d79c491e8b
Fix keyboard navigation and focus display issues on the combobox component (#13352)
* add label connection to dropdown on LabeledSelect + add missing roles and connections

* address pr comments
2025-02-24 15:12:31 +00: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
Francesco Torchia 5bca2af24c
[unit tests]: Add SelectOrCreateAuthSecret.test.ts
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 13:13:22 +01:00
Francesco Torchia 73f876c3ed
Hide SSHKnownHosts outside Fleet
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 10:48:34 +01:00
momesgin edc219693b
Merge pull request #13392 from momesgin/12885-project-members
Fix project members not showing up when switching projects
2025-02-19 13:58:09 -08:00
Francesco Torchia 04026144c7
Add LabeledSelect unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-18 14:45:56 +01:00
Francesco Torchia 8c0bc58743
Early return in focusSearch method when LabeledSelect is disabled
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-18 12:08:50 +01:00
Alexandre Alves dab97f7397
prevent scroll when hitting space key on selects (#13371) 2025-02-13 11:32:17 +00:00
Mo Mesgin de8a7d999f fix project members not showing up when switching projects 2025-02-12 12:38:49 -08:00
Francesco Torchia 31830df000
Add unit-tests: KnownHostsEditDialog.test.ts, SSHKnownHosts.test.ts
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-12 16:30:46 +01:00
Francesco Torchia c84264fa30
Implement Codemirror view for known_list dialog; add FileSelector action
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-12 16:30:45 +01:00
Neil MacDougall ba248c4ba0
Update SelectOrCreateAuthSecret.vue to fix lint 2025-02-12 16:30:44 +01:00
Neil MacDougall a244f7b0bb
Add support for known hosts on ssh secret in Fleet Git Repo 2025-02-12 16:30:43 +01:00
Alexandre Alves 0c411e96d3
Keyboard nav for extensions main screen (#13176)
* working on focus trap composable

* working on slide in panel refactor

* add change so that we dont have a change on the component diff

* fix slidein extension details panel key nav

* fine tune cluster badge trigger btn

* finish work on extensions page

* fix lint errors

* address pr comments

* fix problems of propagation

* update return focus for some modals in the extensions main screen

* remove dead code + fix focus selector return for add extensions repo and developer install modals
2025-02-11 10:47:55 +00:00
Phillip Rak a0f09abd11
Improve accessibility of `KeyValue.vue` (#13261)
* Add aria labels to KeyValue inputs

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

* Add button roles to KeyValue

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

* Add aria labels for grid structure

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

* Add rowgroup and row to KeyValue grid structure

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

* Add aria-labels to buttons

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

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-10 09:54:18 +00:00
Phillip Rak 68e964d324 Add alert role error messages in ChangePassword.vue
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-03 14:58:27 -07:00
Yonas Berhe 23ba8dde87 automation: services tests 2025-01-31 15:26:56 -08:00
Alexandre Alves 478e195431
fix workload health accessibility (#13220) 2025-01-31 09:32:27 +00:00
Alexandre Alves 13496483fe
keyboard navigation for cluster badge appearance modal (#13021)
* working on key nav for cluster badge appearance

* color input is now key nav friendly + tooltip works on focus + trying to get focus trap to work properly

* remove console logs + add focus trap to card component with prop control + fix element for config badge button

* fix lint problem

* fix TS errors on pkg build

* remove step of building the skeleton app in the check-plugins-build step, which imo doesnt serve any purpose whatsoever

* add focus-trap as a shell dependency + revert publish script change

* remove focus-trap directive + improve chaining event handler modifiers

* pin focus-trap to 7.6.2 + replace link for button on cluster explorer main page + remove unused ev

* address pr comments
2025-01-24 09:33:00 +00:00
Richard Cox c19aabe62c Move PaginatedResourceTable and ResourceLabeledSelect to type file, improving naming 2025-01-23 17:06:08 +00:00
Richard Cox 51f21ab6f3 Merge remote-tracking branch 'upstream/master' into pagination-remove-findall-2 2025-01-23 15:57:51 +00:00
Richard Cox 972e85e116 Changes following review
- fix and simplify FetchPageSecondaryResources
- ensure resource detail page events list doesn't add ns filters (not needed)
2025-01-23 15:56:47 +00:00
Alexandre Alves bc003d36a0
fix key nav on preferences page (#13161)
* fix key nav on preferences page

* address pr comments
2025-01-23 09:49:24 +00:00
Neil MacDougall 78c867ee6c
Add support for creation of registry secret using RKE auth config type (#13153)
* Add support for creation of registry secret using RKE auth config type

* Fix grammar in e2e test
2025-01-21 08:56:13 +00:00
Evgeniya Vashkevich beef20e10c
Fixed LabeledSelect not emitting search explicitly (#13142) 2025-01-17 15:04:43 -08:00
Richard Cox 898b9038ab Fix lint and unit test 2025-01-13 15:10:53 +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
Yi-Ya Chen 1ede584162
refactor: show tag prompts if isSearchable
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
2025-01-13 15:27:05 +08:00
Richard Cox fb203f945f tidying up ready for review 2025-01-09 11:26:18 +00:00
Richard Cox 92430b36fb Finish off questions/reference 2025-01-08 14:07:16 +00:00
Richard Cox 05eabe99be Merge remote-tracking branch 'upstream/master' into pagination-remove-findall-1 2025-01-08 11:47:54 +00:00
Richard Cox f589ccfd9b wip 2025-01-08 11:42:54 +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 cb87aa3b6e Remove ununused component, tweaks, update ResourceTabs events to be super ok 2025-01-07 15:31:15 +00:00
Richard Cox 11eda663bf WIP 2025-01-07 13:34:18 +00:00
Francesco Torchia 8715067f00
Merge pull request #12962 from torchiaf/12939-fix-node-selector
Fix Node Scheduling / Node Name option in Workloads page
2025-01-07 10:09:16 +01:00
Alexandre Alves 7632c5192b
fix keyboard nav on login screen (#12956)
* fix keyboard nav on login screen

* adjust for dark mode

* remove border radius from focus styles + dont open locale selector on focus

* add missing aria label

* minor fixes based on another PR comment

* remove tabbingindex from components + fix checkbox component disabled state

* remove tabbingindex from checkbox

* remove tabbingindex from LocaleSelector

* address pr comments
2025-01-06 19:03:04 +00:00
Richard Cox dca2c2e053 Merge remote-tracking branch 'upstream/master' into pagination-cluster-explorer 2025-01-03 15:42:59 +00:00
Richard Cox b614082ce1
Add server-side pagination to home page cluster list (#11663)
* 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)

* 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)

* 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
2025-01-03 15:34:28 +00:00
Francesco Torchia cd73a687a4
Lint
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-02 12:29:38 +01:00
Francesco Torchia 55cf3b3a7c
Implement NodeScheduling.test
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-02 12:04:15 +01:00
Francesco Torchia 289f638bae
Fix Node Selector value update
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-02 10:38:11 +01:00
Evgeniya Vashkevich 9fe1f4ad0d
Fixed not being able to update node taints (#12949) 2024-12-27 14:40:01 -08:00
Alexandre Alves 8698cb8dd1
Fix Unable to add extension tab to Edit Storage Class page (#12886)
* first iteration to improve extension point for tabs (missing default mode = VIEW)

* add default _DETAIL for the extension tabs extension point so that they are not added to EDIT views as well, unless specified otherwise

* revert harvester change
2024-12-26 12:08:12 +00:00
Richard Cox 95c693f850 Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-12-16 15:44:18 +00:00
Richard Cox c2c96a53df Merge remote-tracking branch 'upstream/master' into pagination-home-page 2024-12-10 14:14:42 +00:00
Cody Jackson c77ee88b01 Adding `emits` to all rancher-components to fix linting rules 2024-12-04 09:04:19 -07:00
Richard Cox 419cc30fd1 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 ???
2024-12-02 15:48:23 +00:00
Richard Cox bbf4bcd929 Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-11-14 16:16:17 +00:00
Richard Cox 8e0fabc8ed 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 ???
2024-11-14 16:01:32 +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
Mo Mesgin eac73976f5 fix tagging not working in creating a logging flow 2024-10-31 11:46:49 -07:00
Evgeniya Vashkevich 41cd75988a
Fixed httpget options not showing up (#12390) 2024-10-29 09:21:25 -07:00
Phillip Rak d63e3bd045 Add disabled prop to `ColorInput.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-17 10:21:52 -07:00
Nancy d23db14d7a
update vsphere machine config to use new networks endpoint (#12263)
* update vsphere machine config to use new networks endpoint

* update vapp options to reference network name not moid

* vapp wip

* clear out vapp config when switching to custom
2024-10-16 14:49:05 -07:00
Phillip Rak cf1341cd44 Replace remaining instances of `\$set` with assignment
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-14 10:33:01 -07:00
Alexandre Alves 24568dc109
fix bug with LabeledSelect with "multiple" attribute (#12129)
* fix issue with labeledSelect in mode multiple by allowing the binding of the attribute to the element v-select

* Add test for component to emit the correct value as array

---------

Co-authored-by: cnotv <giuseppe.leo@suse.com>
2024-10-04 16:33:32 +01:00
Neil MacDougall 3e89716a6e
Fix typo int he capabilities list (#12115) 2024-10-03 17:31:27 +01:00
Phillip Rak 1e2e62514b Filter `$attrs` applied to wrapper `div`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-27 14:45:58 -07:00
Cody Jackson dca7b20d8b Allow users to specify that an array list is required 2024-09-25 14:54:54 -07:00
Richard Cox 929f5f6624
Merge pull request #11919 from richard-cox/fix-arraylist-input-height
Fix humongous height of inputs in array list
2024-09-24 12:02:17 +01:00
Phillip Rak 437aef07d8
Merge pull request #11975 from rak-phillip/bugfix/11950-ingress
Fix event handlers for `InputWithSelect.vue`
2024-09-19 17:55:15 -07: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 1d75896e8a Define emits property for `InputWithSelect.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-19 14:22:35 -07:00
Cody Jackson 5052c2a8e8 Enabling `vue/require-explicit-emits` linting rule
https://github.com/rancher/dashboard/issues/11961
2024-09-19 09:58:53 -07:00
Giuseppe Leo 519e2e3ebd
Feature/11881 unit input type fix (#11939)
* Add container resource limit tests

Add real case scenario for unit input component

Add input test for container resource limit

Add base unit to unit input test

Add blur test for container resource limit and unit input

Extend input tests to all cases

Add test case with parent passing value and update on emission

Update tests

Update tests to match emitters

* Add emitters for unit input

* Accept ID pairing with data suggestion fix

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>

* Enable tests after fix

---------

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-18 17:02:28 +02:00
Richard Cox b5729a2194 Fix humungous height of inputs in array list 2024-09-16 15:18:06 +01: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
Nancy 85c5c28c22
Vue3 fix unit tests (#11776)
* remove $set from AKS validators

* fix cruGKE not rendering

* fix most aks unit tests

* fix crueks and eks config unit tests

* fix eks networking and nodegroup unit tests

* fix gke unit tests

* fix consumption gauge test

* fix namespacefilter tests

* fix command and taints unit tests

* fix questions unit tests

* fix hpa and service unit tests

* fix registryconfigs unit tests

* fix job unit tests

* fix longhorn unit tests

* fix addextensionsrepos unit tests

* fix rke2 basics unit tests

* fix container shell unit tests

* fix last aks pool test

* fix mount tests

* fix namespace and pv unit tests

* fix codemirror unit tests

* clean up aks, boolean, namespacefilter unit tests

* fix namespacefilter test

* remove redundant test case
2024-09-10 08:07:21 -07:00
Mo Mesgin 47217a4c4c fix duplicate bindings 2024-09-09 16:36:15 -07:00
Mo Mesgin 77b918790a fix issues related to select component after vue3 upgrade 2024-09-09 11:57:10 -07:00
Richard Cox fd515f29b4 Improve the height of Create Role Resource Tab's input fields
- Remove custom code, use new generic code that follows 'compact' concept
- Apply to all four fields in row
- Also fix a bug where selected verbs such that another row is shown would grow height of other inputs

Fix height of Create Project Resource Quotes input fields
- Vue2
  - Component would inherit attributes, such as class from owning element. For example classes applied to `<Select` would be applied to the first element within the Select component
  - $attrs property does not contain some properties from the parent, such as class
- Vue3
  - Component does not inherit attributes of owning element
  - $attrs property contains all propertiesof parrent, including class
- Bug
  - We fixed part one, but not part two
  - in Select we were applying class twice, manually to parent and then automatically to v-select
  - solution is to fix part two (chop out class)
2024-09-06 14:12:18 +01:00
Phillip Rak 74d93c94cf Fix unit test failure in `ArrayList.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-04 08:54:33 -07:00
Phillip Rak 11bdcfcb12 Add missing `value` prop in `ArrayListGrouped.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-04 08:54:33 -07:00
Phillip Rak 7ebfb1d940 Update slot syntax
Updates the slot syntax to be more consistent with `CruResource.vue`. This should help with accurately rendering slot content when we iterate over component slots.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-04 08:54:33 -07:00
Phillip Rak 8c0d31db3c
Merge pull request #11726 from rak-phillip/bugfix/11722-canPaginate-warning
Add `canPaginate` computed prop to components that use `LabeledFormElement` mixin
2024-08-28 08:57:01 -07:00
Phillip Rak b68adb3833 Revert "Refactoring the plain element <input> data bindings"
This reverts commit 7f1536d9cf.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-27 15:39:02 -07:00
Phillip Rak 84a617c424 Add unit tests for InputWithSelect, Select, & ServiceNameSelect
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-27 14:37:26 -07:00
Phillip Rak 52a51348fb Add `canPaginate()` computed prop to LabeledFormElement components
This defines the `canPaginate()` computed prop so that it can be accessed in the `labeled-form-element` mixin.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-27 14:10:52 -07:00