Commit Graph

27 Commits

Author SHA1 Message Date
Alexandre Alves 2feb239627 update paths in shouldNotLoadPlugin 2024-10-02 14:36:11 +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 bdb4283373 create tailor-made error messages and mechanism to check if mandatory extensions API annotation exists 2024-10-02 08:24:16 +01:00
Alexandre Alves 1b7fb19e1e address pr comments 2024-10-01 15:55:05 +01:00
Alexandre Alves d6af1a5aff remove unused const 2024-10-01 12:13:23 +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
Alexandre Alves 12ece91276
encompass 'head' string as condition to allow installation of extension (#11448) 2024-07-17 09:52:25 +01:00
Alexandre Alves 0092617300
improve shell api gating (#11164)
* improve shell api gating

* update logic

* minor update

* populate extensions API version as latest shell version

* remove semver dependency on creators/pkg

* update script

* change

* change

* add default shell API version if there is no annotation in the metadata for gating it

* remove default for shell API in uiplugins + fix creators/pkg init script to read shell version from node_modules

* add mechanism to prevent shell pkg folder check for creators/pkg in our pipelines

* cleanup comment

* bump shell version on master
2024-07-01 13:58:08 +01: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 5595aeebbf Adding noAuth extension loading
https://github.com/rancher/dashboard/issues/9814
2024-04-22 13:04:00 -07:00
Phillip Rak ad4cc41500 Bump `UI_PLUGIN_API_VERSION`
This bumps the `UI_PLUGIN_API_VERSION` to signal that upcoming changes to UI extensions will be incompatible with older versions of Dashboard. A version of 1.2.0 or higher will be required for extensions that utilize backported Vue 3 features that are available in Vue 2.7.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-04 12:25:24 -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
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
Richard Cox f98df23e7c fix linting 2023-06-26 11:25:54 +01:00
Alexandre Alves e84c8979b7
improve dev experience for extensions where builtin extensions will prevent external extension with the same name to load (#9147)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-06-23 17:27:51 +01: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
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 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
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
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00
Neil MacDougall 9d45f766ad
Minor plugin tweaks (#7161)
* Various fixes

* Error handling

* Fix lint

* Limit description length

* Only use system registry for Rancher images

* Change way we set defautl system registry

* Minor tweaks

* Fix bad rebase on this file

* Fix rebase issue

* Add link to manage repos
2022-10-13 14:22:02 +01:00
Neil MacDougall f18082c20f
Plugin tweaks (#7095)
* Minor improvements

* Various fixes

* Fix developer load of plugins with '-' character in name

* IImprove installation detecttion and extensions naming

* Fix one more string

* Update placeholder icon

* Change pref string to Extensions

* Change icon and error handlers

* Error handling

* Fix lint

* Limit description length

* Ensure info panel readme info scrolls vertically for content

* Fix lint

* Fix bug where plugins don't load on fresh login or a login after logout

* Add chart compatbility filtering

* PR feedback

* Add check for access to ui plugin schema

* Update string following PR feedback

* Fix GitHub auth

* Fix lint

* Write in default system registry when we are installing the operator

* Fix issue where stuck installing on upgrade/rollback

* Fix bugs and tidy up plugin install/uninstall feedback in UI

* Only use system registry for Rancher images

* One more tweak to fix status on upgrade operation

* Fix extensions page reloading plugins

* Add message to reload the browser

* Fix reload notice for uninstall

* Change way we set defautl system registry
2022-10-10 17:13:24 +01:00
Neil MacDougall 80eeacfb41
Plugins: Add UI to manage plugins (#6973)
* WIP: Working version

* Further refinement

* Working version

* Refactor to a product

* i18n

* Fix lint and tidy comments

* Empty-Commit

* Bump e2e

* Latest fixes, i18n

* Fix lint

* Fix lint issues

* Fix imports for standlone plugin build

* Only load plugins in dev

* Fix lint issue

* Fix template errors

* Fix operator setup

* Fix menu actions

* Address PR feedback

* Address PR feedback

* Add new preference for plugin developer

* Update icon support

* Add third-party and experimental banners to slide-in

* Add support for update/rollback of a plugin

* Address PR feedback - i18n

* i18n - one more string localised

* i18n - one more string localised

* Minor visual tidy ups

* Use banner for install warning

* Fix saefMode

* Fix lint

* Add some responsiveness to the cards page

* Fix lint

* Bump PR

* Add debug to list coverage reports
2022-10-04 13:16:54 +01:00