Commit Graph

58 Commits

Author SHA1 Message Date
momesgin 6f251c8bf9
Extensions page design changes (#15522)
* update extensions tabs

* update version on cards + display date + update tooltips

* taking care of actions

* taking care of PluginInfoPanel

* update unit test file format

* unit tests

* add icon to the action button on the modals

* fix the modal's title and subtitle messages

* display tags on the info panel

* capitalize built-in

* remove unused code + update comments

* minor refactor

* keep active tab on refresh + rename

* fix spinning icon on the modal

* fix uninstalling icon

* update extensions po and e2e tests

* fix test

* fix import

* fix test

* fix flickering

* update installed tooltip

* fix test

* add back tests and fix warnings

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-10-03 09:09:52 -07:00
momesgin 9f87df2386
Charts actions on detail/wizard/tools pages (#15351)
* separate edit and upgrade on chart detail page

* separate edit and upgrade on tools page + fix tests + lint

* unit tests

* fix e2e test

* downgrade action + selected version on header + statuses order + banners position

* update actions

* wizard header

* actions on tools page

* unit tests

* fix header items click issue

* update downgrade icon

* rename property

* update selector

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-09-18 14:20:43 -07:00
momesgin 61af7ee162
fix mistakenly removed default icon (#15385)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-09-10 10:15:09 -07:00
momesgin 6e18b11a97
make extensions progress statuses consistent (#15357)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-09-09 09:07:33 -07:00
momesgin ef6d0a8ffb
15200 extensions page (#15224)
* update uiplugins page to use rc-item-card

* update tests

* fix tests

* fix selector

* fix visibility checks

* fix tests

* hide banner when loading

* remove wrong v-once

* styling

* fix import

* fix header actions alignment

* styling

* minor refactor

* unit tests

* minor refactor

* fix error statuses

* replace non-working useAttrs with a prop

* fix panel getting closed immediately

* consider footerItem type being optional when it's used

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-08-29 17:59:32 -07:00
Jiri Tomasek c5b4d8114e
Handle UI plugins with chart version and appVersion not matching (#14207)
* Handle UI plugins with chart version and appVersion not matching

This change adds handling for UIPlugins which are installed from charts
where chart version and chart appVersion don't match.

- Determine plugin upgradability by comparing UIPlugin version with chart appVersion
with a fallback to chart version if appVersion is not available
- Update PluginInfoPanel to handle plugin version not matching chart version by checking
appVersion first
- Update InstallDialog to handle plugin version not matching chart version by checking
appVersion first
- Display plugin versions in `appVersion (chart version)` format if appVersion differs
from chart version

Fixes issue https://github.com/rancher/dashboard/issues/14204

* Add tests for uiplugins chartversion utils
2025-07-31 14:52:21 +01:00
Alexandre Alves d269e5fd34
refactor catalog install and uninstall extension modals as a prompt modals (#14192)
* refactor catalog install and uninstall extension modals as a prompt modal + add unit tests

* remove todos

* address merge conflicts + revert change to structuredClone + update unit test
2025-05-08 17:11:11 +01:00
Alexandre Alves c9225d0632
refactor add repos and developer load extension modals as a prompt modals (#14191)
* refactor add repos and developer load  extension modals as a prompt modal + add unit tests

* fix broken unit test

* remove unused prop

* remove todos

* code cleanup
2025-05-07 08:39:40 +01:00
Alexandre Alves c37239ca13
refactor install and uninstall extension modals as a prompt modals (#14190)
* refactor install and uninstall extension  modals as a prompt modal + add unit tests

* remove old modals

* remove unused prop

* remove todos
2025-05-06 19:09:41 +01:00
Nancy Butler 4aaad3128b label installed extensions experimental or certified only if the installed version of the extension has the right metadata 2025-04-30 13:32:12 -07:00
Nancy Butler eb00164a6d only show experimental or certified labels on extensions if the latest compatible version of the extension has the labels 2025-04-30 08:39:26 -07:00
Phillip Rak 920243fae9
Merge pull request #13505 from rak-phillip/task/13504-extensions-menu
Replace extension menu with `ActionMenuShell.vue`
2025-02-28 09:07:50 -07:00
Neil MacDougall e8e806a24d
Never show built-in extensions on the 'installed' tab (#13548) 2025-02-28 15:37:59 +00:00
Phillip Rak a123530d20 Replace extensions menu with ActionMenuShell
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-27 09:18:36 -07:00
Neil MacDougall 3665e77a1c
Don't show built-in extensions by default (#13469)
* Don't show built-in extensions by default

* Fix e2e tests and add tests for builtin tab

* Address PR feedback

* Address PR e2e test feedback

* Fix lint
2025-02-26 18:06:46 +00:00
Alexandre Alves e9d17074a5
add missing alt to image elements (#13384) 2025-02-13 11:32:38 +00:00
Alexandre Alves 0c411e96d3
Keyboard nav for extensions main screen (#13176)
* 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
2025-02-11 10:47:55 +00:00
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 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
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
cnotv ff08d80e0e Lint: Manually fixed issues related to vueApp variable added by 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
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
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
Cody Jackson 36a31a397e More informative page titles 2024-02-12 20:11:45 -07:00
Cody Jackson 48e1b0b3bb Layout removal
fixes #10059
2024-01-22 06:30:17 -07: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 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
Alexandre Alves 44f238330c
add logic around limiting extensions to a specific ui-version (#8200)
* add logic around limiting extensions to a specific ui-version

* fix semver version comparison to use rancher version

* fix version fetching for ui-rancher annotation on extensions

* ignore checks for head versions (hash) on ui-version annotation for extensions

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-02-21 14:02:28 +00:00
Neil MacDougall 4bb0168444
Improve presentation of Harvester Manager Built-in Extension (#8004)
* Improve presentation of VM Built-in Extension

* Update description following PR feedback
2023-02-09 20:15:34 +00:00
Alexandre Alves 6516e094b8
Extensions enhancements (#7777)
* add extensions API methods
---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-09 10:58:29 +00:00