Commit Graph

335 Commits

Author SHA1 Message Date
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
Cody Jackson 154fcb5b69 Fixing how we set values in NameNsDescription
We weren't calling set anymore which meant we weren't using the correct key when setting the values in some places.
2024-08-22 16:09:55 -07:00
Cody Jackson f52d9cf26a Updating LabeledSelect to support the selected and update events 2024-08-22 16:09:54 -07:00
Cody Jackson 1f82c9c642 Fixing the usage of :value to be :modelValue in regards to Consumption Gauge 2024-08-22 16:09:54 -07:00
Cody Jackson 60d5998800 Fixing how we forward classes to the select element. 2024-08-22 16:09:54 -07:00
Cody Jackson 66a61da1d8 Fixing value binding in the <Select> component 2024-08-22 16:09:54 -07:00
Phillip Rak 9793716efd Unit test updates
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Phillip Rak 97b58ca4f0 Update unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Phillip Rak e39ce7899f Resolve a batch of unit test failures
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Phillip Rak 7874da578f Fix slot syntax
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Cody Jackson d47ce13f28 Fixed the remaining lint warnings and errors
The chart.test.ts is likely more broken now than it was. This can be fixed later.
2024-08-22 16:07:04 -07:00