Commit Graph

345 Commits

Author SHA1 Message Date
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
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
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
Cody Jackson 8d59cd5914 Skipping all failing unit tests for the Vue3 merge. 2024-08-22 21:12:40 -07:00
Phillip Rak a71857ce7d Unit test updates - partially fixed
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Phillip Rak 0fb02f5b2d Unit test updates
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Cody Jackson fe4fc0cd63 Rebase fixes 2024-08-22 16:09:56 -07:00
Cody Jackson 5abd0d5ce0 Fixing the binding for `Show custom login error` checkbox 2024-08-22 16:09:56 -07:00
Cody Jackson 0b2ebcf006 Resolving the remaining project-namespaces test errors
- updating selectors for the inputs
- adding another inheritAttrs: false
2024-08-22 16:09:56 -07:00
Cody Jackson 9f84d01024 Reverted a change to test-id and updated the monitoring test to property reference the old id 2024-08-22 16:09:55 -07:00
Cody Jackson cb6f75bba5 Make sure SelectOrCreateAuthSecret can update if :value changes 2024-08-22 16:09:55 -07:00
Cody Jackson 1036105654 Adding a custom data-test id to the add button of arraylist
I did this so I could change how that button is referenced in tests. I don't think we ever should've used the add-label attribute.
2024-08-22 16:09:55 -07:00