Commit Graph

52 Commits

Author SHA1 Message Date
Alexandre Alves 42efc9d3c5
fix some a11y items on ArrayList and KeyValue (#13832) 2025-03-25 09:28:51 +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
Mo Mesgin 60ac57d278 hide filtered items in KeyValue 2025-02-26 15:31:30 -08: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
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
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
Yonas Berhe 23ba8dde87 automation: services tests 2025-01-31 15:26:56 -08:00
Francesco Torchia eac3deaa4b
Add harvester features
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:36 +01: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
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
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
Cody Jackson 909affa02f Replacing $emit('input' with $emit('update:value'
This should've been done in the migration script and will be fixed for the next run.
2024-08-22 16:07:03 -07:00
Cody Jackson 9b829c55ea Ran `yarn lint --fix` 2024-08-22 16:05:36 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Cody Jackson 7f1536d9cf Refactoring the plain element <input> data bindings
Performing this change so the vue3 migration script can modify all @input, @v-model of components without changing plain elements. This will reduce the number of vue3 compiler errors.
2024-08-22 16:04:52 -07:00
Nancy f4fbf0068c
GKE: fix node pool taint effect options (#11339)
* update gke node pools to use NO_SCHEDULE PREFER_NO_SCHEDULE and NO_EXECUTE as taint effect options

* fix gke node pool test

* fix taints default add value and tests
2024-07-03 07:20:37 -07:00
andy.lee 677b1f1b24 fix: support colon as separator when onPaste context in label key field
Signed-off-by: andy.lee <andy.lee@suse.com>
2024-05-07 16:20:49 +08:00
Giuseppe Leo c298d64d95
Replace default values of props using global variables with computed case (#10848)
* Replace store global var with i18n global var for props default value

* Replace props default values using i18n from state to computed values

* Added empty default value

* Add linting corrections not automatically triggered on save

* Fix typo
2024-04-22 11:03:07 +02:00
Nancy 86001e4532
Fix KeyValue behaviour when parent component updates value prop (#10643)
* remove legacy items except for project config-maps and secrets

* add kv test

* add a watcher to keyvalue to ensure that it updates when the parent component changes the value being displayed

* add keyvalue unit tests to cover add and remove buttons

* remove testing code

* remove more test code

* use isequal instead of json stringify

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-03-26 10:52:41 -07:00
yonasberhe23 3099aefcab
ui automation: global settings (#9458)
* ui automation: global settings

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2024-02-01 15:06:03 -08:00
Nancy 4cca5faf81
AKS provisioning extension (#9669)
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
2024-01-11 07:52:45 -08:00
Phillip Rak a6b3c1c927 Create e2e test for `configmap`
This test allows us to assert that blocks containing long lines (over 80 characters) entered into a configmap value field will output the correct value upon saving. The intent of this test is to assert that the regression described in #10044 is resolved and will not be reintroduced if further changes are made to `create-yaml`.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-12-12 10:57:05 -07:00
Richard Cox 0245a8cb93 Merge remote-tracking branch 'upstream/master' into epinio/resolve-conflicts-with-master 2023-06-23 18:00:14 +01:00
Giuseppe Leo 01eeb0548f
Add recommended lint rules globally (#8997)
* Update configuration

* Create default config for eslint

* Restore plugin:vue/recommended

* Add exceptions and overrides

* Correct manually remaining issues

* Adding further picked exceptions groupped up

* Fix or disable specific cases manually and singularly

* Add naming linting exception

* Remove unused variable in component

* Move rules to default

* Autocorrect rancher/components linting issues

* Configure VSCode to use multiple files, to display linting for rancher components

* Disable jest lint hook restriction for string list component

* Autofix
2023-06-23 17:02:55 +02:00
Francesco Torchia b2bf86bb08
Merge remote-tracking branch 'upstream/master' into merge-master-to-epinio-dev 2023-06-22 12:58:57 +02:00
richa e7fbf0dfcd
Onenter newline textarea (#9116)
* Added test for preventDefault

* Added test for prevent default event on keypress Enter in CruResource component

* Removed test console log

* Fixed lint

* Added data-testid to form

* Fixed lint

* Add new line on pressing enter

* Test enter new line

* Test textarea Enter button in CruResource form

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>

---------

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Co-authored-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 15:43:34 +02:00
Francesco Torchia 55fd701fca
Fix Upload button position in case of scroll
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:36 +02:00
Francesco Torchia 55f023bb9c
Assign file name as key field when unddefined
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:36 +02:00
Francesco Torchia c5860f82e8
Make upload button always visible
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:35 +02:00
Francesco Torchia 9049a25f77
Fix upload label translation
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:35 +02:00
Francesco Torchia d3f8100ef9
Add upload button to values field of KeyValue component
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:35 +02:00
Neil MacDougall 3db04f1e9a
Changes to support custom node driver UI extensions (#8735)
* Changes to support custom node driver UI extensions

* Fix bad merge

* Fix merge

* Fix bad merge

* Revert changes that are more impactful for now

* Add mock for $plugin

* Fix lint issue

* Address PR feedback

* Fix bad rebase

* Fix merge issues

* Removed unused import

* Fix merge issue

* Add back in missing validation for roles

* Fix unit test
2023-05-25 15:37:16 +01:00
Phillip Rak ade3c9f4e7 Replace all instances of `v-tooltip` with `v-clean-tooltip`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-05-18 15:39:14 -07:00
Francesco Torchia 7653bc3ca6
[KeyValue] test multiline field
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-11 17:13:13 +02:00
Francesco Torchia 98c91ce5a3
improve code comments
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-04-28 09:48:13 +02:00
Francesco Torchia d91e79b5b4
move text area css into CodeMirror component
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-04-28 09:22:08 +02:00
Francesco Torchia b326ee6369
move text-area options to codeMirror component
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-04-28 09:02:48 +02:00
Francesco Torchia f86e303246
rename "cm" for codeMirrors variables
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-04-28 08:57:01 +02:00
Francesco Torchia e2c58c8c61
KeyValue, fix value field indexing
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-04-28 08:22:12 +02:00
Francesco Torchia ae8b606e64
KeyValue, fix text font in value multiline fields
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-29 15:59:58 +02:00
Francesco Torchia c05b7879ca
KeyValue, add codemirror value field
- add 'valueMarkdownMultiline' option;
  a complex value field is needed to display inline markdowns.

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-29 15:59:33 +02:00
Francesco Torchia 204b20a007
Secrets, remove empty rows after a file upload
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-16 18:39:00 +01:00
Giuseppe Leo 669474f1c3
Allow KeyValue component to disable defined keys and conditionally filter from the view (#7587)
* Allow KeyValue to disable and hide protected keys

* Add KeyValue stories to the style guide
2022-12-01 02:07:04 +01:00
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00
Giuseppe Leo d2d4122bc0
Review HTML formatting rules (#6805)
* 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
2022-11-11 17:04:22 +01:00
Shavindra 7fa9b74d62
Fix KeyValue Component. (#7093)
* Fix KeyValue Component.

* Refactor solution.

* Fix PR comment.
2022-10-06 13:20:52 +01:00
Shavindra 6ddc4d4c0b
Update support page and enable custom links. #6493 (#6720)
* Update support page and enable custom links.

* Update brand page.

* Fix links.

* Add docs.

* Fix PR Comments.

* Removed cancel button.

* Fix PR comments.

* Fix issues.

* Fix PR Comments.

* removed unused var.

* Fiux PR comments.

* Fix comment.

* Fix translations.

* Fix PR Comments.

* Fix links in homepage.

* Fix PR Comments.

* Update support page and enable custom links.

* Update brand page.

* Fix links.

* Add docs.

* Fix PR Comments.

* Removed cancel button.

* Fix PR comments.

* Fix issues.

* Fix PR Comments.

* removed unused var.

* Fiux PR comments.

* Fix comment.

* Fix translations.

* Fix PR Comments.

* Fix links in homepage.

* Fix PR Comments.

* Fixed margins.

* remove redundant code.

* Fix PR comments.

* Fix PR comments.

* Fix PR comments.

* Fix build.
2022-09-28 08:50:37 +01:00
Phillip Rak 72b36cb360
Create Rancher Component Library (#5504)
This adds a new project for Rancher Components under `pkg/rancher-components` and replaces components used throughout dashboard with the versions used here. All imports for the following components have been updated:

```
  |- BadgeState.vue
  |- Banner.vue
  |- Card.vue
  |- Form
    |- Checkbox.vue
    |- LabeledInput.vue
    |- LabeledTooltip.vue
    |- RadioButton.vue
    |- RadioGroup.vue
    |- TextAreaAutoGrow.vue
```
2022-05-24 15:09:53 -07:00
Alexandre Alves 55ce0a9da3
Can't create an Opaque secret using plain text as value (#5918)
* fix issue where user could not create opaque secret from edit config interface

* Add `canEncode` to cover c&p

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-05-11 14:03:10 +01:00