Commit Graph

63 Commits

Author SHA1 Message Date
Alexandre Alves 34c74b8cc9
fix issue banner extensions prime users not being displayed (#12381)
* fix issue banner extensions prime users not being displayed

* add undefined condition

* add code comment

* fix e2e test
2024-10-30 10:20:26 +00:00
Richard Cox aedaca5b11 Add ui-extension-version annotation to dev loaded extensions to ensure it loads 2024-10-02 17:51:29 +01:00
Richard Cox a80c921018 Singleton versions fetcher to reduce changes and fix dup versions request on log in 2024-10-02 12:49:39 +01:00
Alexandre Alves f55eadc734 minor fixes 2024-10-01 12:10:54 +01:00
Jordon Leach 772be295bc
Refactor incompatibility check 2024-09-30 14:23:56 -04:00
Alexandre Alves bc51a79005 apply some fixes for extensions logic in light of Vue3 migration 2024-09-30 18:11:13 +01:00
Alexandre Alves eb426680dd
forward-port PRs 11997 and 12018 (#12046) 2024-09-30 18:10: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 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
Jordon Leach 3c5e6f8a1c
Remove unnecessary template wrapping extension tabs (#11704)
Enable tests

Replace "Rancher -" in title check
2024-08-27 08:28:37 -04: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
Cody Jackson f8029bb51f Fixing databinding where v-model.trim needed to instead be v-model:value.trim 2024-08-22 16:09:55 -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 987f89f872 Fix remaining modals
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:07:04 -07:00
cnotv ff08d80e0e Lint: Manually fixed issues related to vueApp variable added by the script 2024-08-22 16:07:03 -07:00
cnotv 78d70353c5 Unit test: Migrate unit tests with the script 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
Phillip Rak 15b373403b Replace settings strings with enums
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-06-28 13:43:13 -07:00
Alexandre Alves 30d9b43351
make workflows from creator pkg trigger only on tagged release + make developer load set UIPlugin as noAuth: true + remove serve catalog console log from serve-pkgs (#11216) 2024-06-13 10:26:20 +01:00
Jordon Leach 6e939ba4f8
Support built-in plugin operator with feature flag (#11036)
* Support built-in plugin operator with feature flag

Update unit tests to account for feature flag

* remove waitForPage from addExtensionsRepository

* adjust before and beforeEach hooks in kubewarden spec

* adjust beforeEach hook on KW spec so that it matches what is on the extension spec, which is working as expected

* Add catchTargetPageException

---------

Co-authored-by: Alexandre Alves <alexandre.alves@suse.com>
2024-05-30 12:50:16 -04:00
Neil MacDougall f5431cbbaf
Add i18n string usage checker script (#10805)
* Add i18n string usage checker script

* Fix lint issues

* Add i18n check to GH Action workflow

* Update to node 16

* Update workflow to run script properly

* Allow script to return okay if when there are errors

* Add documentation

* Remove commented code
2024-05-02 20:52:15 +01:00
Cody Jackson 292c57dd6c Adding a banner that notifies the user that the version they want to install or update will be loaded without auth 2024-04-22 13:04:00 -07:00
Phillip Rak 9d7a13f354 Add new cache states to determine plugin init
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-26 09:14:27 -07:00
Phillip Rak fe4b3e5d57 Replace modal in Dialog
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-12 15:37:44 -07:00
Phillip Rak bc36082391 Replace instances of `<modal>`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-12 15:37:44 -07:00
Cody Jackson 36a31a397e More informative page titles 2024-02-12 20:11:45 -07:00
Neil MacDougall a0547780ef
Only add Rancher UI Extension repository if prime (#10399)
* Only add Rancher UI Extension repository if prime

* minor changes to logic for rancher prime and display of rancher repos checkbox + add unit tests

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-02-06 15:36:53 +00:00
LiuYan 6d4a0c4a6a
fix(CatalogList): fix catalog action menu display error (#10293) 2024-01-22 12:15:01 -05:00
Cody Jackson 48e1b0b3bb Layout removal
fixes #10059
2024-01-22 06:30:17 -07:00
Richard Cox 1168fdb2c1 fix secret label 2024-01-02 17:29:31 +00:00
Richard Cox 5948588ffe Fix translation of Extension Import Catalog Secret
- translation previously used one from workloads, which had been changed via https://github.com/rancher/dashboard/pull/10028
- give this translation it's own entry... and use the same tooltip
2024-01-02 16:39:10 +00:00
Neil MacDougall c9341a9b8d
Kubectl explain (#9713)
* Initial Example

* Add toggle expand all

* Add panel resize

* Fix close and open after resize

* Fix expand all

* POC: Kubectl explain interface

* Fix some lint issues

* First version of the kubectl explain UI

* Improvements

* Fix lint

* Tidy up Open API data fetch

* Tidy up code for parsing OpenAPI

* Many tidy ups and simplifications

* Add error message if we can't load Open API Data

* Ensure action appears only when there is a resource

* Fix lint issue

* Test e2e

* e2e

* e2e

* USe canary browser

* Use firefox

* Try chrome version

* Auto accept prompt

* Accept

* Last try

* Install Chrome

* Run as root

* Fix paths

* Add quiet flag, fix paths

* Use browser path

* Try debugging port

* Further attempts

* Set path

* Add debug env var

* Try edge

* Use specific version

* Add allow downgrades

* Use Chrome

* Remove WIP

* Adderss PR feedback

* Fix for no cluster

* Address PR feedback

* Fix lint issue

* Fix position with banners enabled. Restrict products for which this is shown

* Fix lint issue

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-09-27 22:01:24 +01:00
Jordon Leach e97712503f
Reconfigure extension catalog deployment - remove UIPlugin resource (#9695) 2023-09-14 08:40:07 -04:00
Jordon Leach d0a0a4b72f
Fix extension displayName annotation conditions - add configuration docs (#9544) 2023-08-18 16:17:18 -04:00
Alexandre Alves 770a08bbe8
address misformatted banner on extensions por partners repo (#9359)
* address misformatted banner on extensions por partners repo

* 2

* adjust banner copy

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-07-18 14:18:51 +01:00
Alexandre Alves 582d28c56f
working on partners repo support for extensions (#9260)
* working on partners repo support for extensions

* update copy + fine tune charts update when adding/removing repos

* working on e2e tests

* updating e2e tests

* updating e2e tests

* address PR comments

* address PR comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-07-17 16:10:29 +01:00
Alexandre Alves 49b5cd356c
Handle extensions that are already installed and shouldn't run in a particular kube version (#9128)
* add logic to display message on installed extension card to warn user when kube version for installed extension is not met + add logic to disable version buttons on info side panel

* add code comment

* minor cleanup

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-07-10 10:13:35 +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
Alexandre Alves a4a2689a65
fix issue where extension versions appeared as duplicated (#9121)
* fix issue where extension versions appeared as duplicated

* remove force option

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-06-16 14:21:15 +01:00
Mo Mesgin 91b64bdbfe 8712 - fixed plugin icons alignment 2023-06-13 16:10:11 -07:00
Jordon Leach d94e78c24a
Add extension image load dialog (#9010)
Update dialog with repo creation - update docs

Add uninstall for custom images

Add extension images list view

Add image load dialog and uninstall within extension image view

Update publish and bundle scripts for image load - move image page to tab

Add extension container build workflow file to pkg creator

Move plugin server template into extension build scripts

Fix publish script for multiple asset packages

Move ImageList view to separate page - add crd metadata for custom images

Update docs - fix references to images with catalog

Fix wording, cache state badge, masthead breadcrumb, when deleteing resources check for namespaces

Update docs - fix delete repo resource - default cache state

Trim image whitespace - populate extensionUrl

Add experimental badge
2023-06-02 08:28:47 -04: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
richa 17da3a4b8c
Fixed empty available list issue immediately after enabling extensions (#8892) 2023-05-17 16:42:05 +02:00
Alexandre Alves 4bc77c467d
fix issue with extensions versions not availableg (#8333)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-03-03 12:16:33 +00:00
Alexandre Alves 3fa7f59b08
fix issue with plugins panel versions button wrap (#8320)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-03-02 11:06:53 +00:00
Alexandre Alves 96b823c391
update icon logic on extensions to show the icon of the latest compatible version and not the chart icon (#8307)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-03-02 10:06:14 +00:00
Alexandre Alves ed33257abe
fix small issue with extension developer load (#8230)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-02-22 11:35:33 +00:00