* 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>
* Simplify spacebar prevent behavior when focusing LabeledSelect
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Fix unit test
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* Simplify spacebar prevent behavior when focusing Select
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
---------
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* 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>
* 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
* 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
* 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
* 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>
* Changes for new design
- New visuals
- Pagination controls --> load more
- finished testing of label select with pagination off
# Conflicts:
# shell/edit/provisioning.cattle.io.cluster/__tests__/Basics.tests.ts
* Changes following review
* Update Node list to support server-side pagination
- Setup pagination headers for the node type
- Define a pattern for fetching custom list secondary resources
- Major improvements to the way pagination settings are defined and created
- Lots of docs improvements
- Handle calling fetch again once fetch is in progress (nuxt caches running request)
- Validate filter fields (not all are supported by the vai cache
- General pagination fixes
* Lint / test / fixes
* Improvements to configmap e2e test & Improve pagination disabled
* Beef up validation
* Fix missing name column in non-server-side paginated node list
* Fix PR automation actions
- fix syntax
- catch scenario where a pr has no fixed issue
> There's duplication between files, see https://github.com/rancher/dashboard/pull/10534
* CI bump
* Fixes post merge
* Wire in 2.9.0 settings for server-side pagination
- Everything is gated on `on-disk-steve-cache` feature flag
- There's a backend in progress item to resolve a `revision` issue, until then disable watching a resource given it
- Global Settings - Performance
- Added new setting to enable server side pagination
- this is incompatible with two other performance settings
* Integrate pagination with configmaps in cis clusterscanbenchmark edit form
Also
- improved labeled select pagination
- gate label select pagination functinality on steve cache being enabled
* TODOs and TEST
* Paginate Secret selection for logging providers
- Allow `None` option in Paginationed LabelSelect
- Optionally classify pagination response
* WIP
* fixes arfter merge
* Don't suggest container names, not practical
- previously all pods were fetched... and we scrapped all container names from them
- this is a scaling nightmare, user now must just enter the name/s to match
* Avoid findAll secrets in SimpleSecretSelector
* tidying up
* Move LabeledSelect/index.vue back to LabeledSelect.vue to not break extensions
* changes after self review... 1
* changes after self review... 2
* changes after self review... 3
* Link new paginated label select with pagination setting
* Work around failing kubewarden unit tests in check-plugins gate
* Fix backup.spec e2e test
* Create a convienence wrapper called ResourceLabelSelector that hides most of the complexity
* fix unit test
* remove labeledselect ability to detect stale option labels in order to improve performance
* add key rerender hack to fix psa dropdown option labels not refreshing
* fix lint
Adds a built-in AKS provisioning extension to replace the embedded ember pages, as well as modifications to the provisioning UI to support other non-rke2 provisioning extensions
* imrpove labeledSelect getOptionLabel performance when options are strings
* refactor labeledselect getOptionLabel and write test
* remove redundant if block in ls getOPtionLabel
* refactor getUpdatedOption
* Added blue color only to creation action
* Removed test code
* Revert some changes without dummy text
* Fixed names for attribute, color variables for dark and light theme, removed a tag
* Allow /rancherversion endpoint override (#7088)
* Fix KeyValue Component. (#7093)
* Fix KeyValue Component.
* Refactor solution.
* Fix PR comment.
* Adds new logos without Manager to bettr represent all sub-brands and improve readability
* Updates error of HSB colour to HSL
* Remove uneeded check - add custom check for old endpoints (#7058) (#7074)
* Allow to reset ui-brand global setting (#7110)
* Remove negative margin for Tabbed component, causing issues in Network policies (#7108)
* Update script to use newer version of Rancher Docker (#7114)
* Removed files from featured-carousel PR that should not be there at top-level (#7092)
* Allow wildcards in ingress hostnames (#7025)
Wildcards are allowed in ingress hostnames since Kubernetes 1.18: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#support-for-hostname-wildcards
Fixes https://github.com/rancher/dashboard/issues/6957
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
* Improve PSP deprecated banner
Fixes#7096
Previously...
- a new request for PSPs was made on each page visit
- the request would fail for users without access to the PSP
- failed requests equated to white page dev error (fine in prod)
Now...
- use the `counts` resource to determine if the user can see any PSPs
- move logic to a computed property
* Hide experimental charts from Cluster Tools
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Shavindra <Shavindra@users.noreply.github.com>
Co-authored-by: Kenneth Wimer <wimer@suse.com>
Co-authored-by: Jordon Leach <40806497+jordojordo@users.noreply.github.com>
Co-authored-by: Giuseppe Leo <giuseppe.leo@suse.com>
Co-authored-by: Bastian Hofmann <bashofmann@gmail.com>
Co-authored-by: Richard Cox <richard.cox@suse.com>
* Prevent ESLint to format generated paths
* Add HTML ESLint Rules
* Format all the Vue HTML templates except Harvester
* Exclude Harvester package from linting HTML, keeping old formatting rules
Fixes#4575 Add in validator injection to form-validation mixin, add in "allTabsExtraContent" slot to "tabbed" for messaging that should span all tabs, Error component optionally displays as banner, InputWithSelect can now show validationMessage on text-box without a label, LabeledSelect can now show tooltip and validationMessage at the same time, Select component can now show validation message, adding and removing rules and rulepaths displays correct content, removing does not reload page (fixes#6319), ingress form shows proper validation messages for the following states: invalid "name" field, invalid request host, invalid rule path, invalid rule target service, invalid rule port, invalid default backend target service, invalid default backend port, either rules or default backend must be present. Ingress form is validated and "Create" button is disabled if payload is not validated as correct.