Commit Graph

224 Commits

Author SHA1 Message Date
Richard Cox 3b336dad67
Merge pull request #8288 from ly5156/secretSelector-bug
fix(RegistryConfigs): fix missing TLS Secret options issue
2023-02-28 10:55:50 +00:00
Shavindra ca67df2d7f
Namespace changes on workload creation are not kept (#8279)
* Ensure namespace is set when creating a workload.
2023-02-28 09:49:30 +00:00
LiuYan 4c6e0ba116 fix(RegistryConfigs): fix missing TLS Secret options issue 2023-02-28 16:35:24 +08:00
Shavindra e12939115e
Allow basic fleet user to manage fleet without cluster permissions. (#7446)
* Allow basic fleet user to manage fleet without cluster permissions.

* Handle no workspaces.

* Add Fleet bundle namespace mapping - fleet.cattle.io.bundlenamespacemapping

* Add git repo restrictions.

* Handle auth errors for checkSchemasForFindAllHash.

* Fix workspace switcher and handle fleetworkspaces 401 issues.

* Update workspace switcher.

* Fix Gitrepo restriction creation from the Workspace create

* Disable workspace creation
* Fix workspace loading after creation

* Fix Bundle creation error.

* Remove redudant FLEET.TOKEN request.
2023-02-23 14:15:32 +00:00
Nancy 21167e1dc9
fix labeledselect getOptionLabel to use reduce prop when labels change (#8176)
* fix labeledselect getOptionLabel to use reduce prop when labels change

* Add unit tests

---------

Co-authored-by: cnotv <giuseppe.leo@suse.com>
2023-02-15 09:19:48 -07:00
Giuseppe Leo f3f7a2a022
PSA: Update PSA default (#8133)
* Change inputs order for PSP/PSA/CIS; Code cleanup

* Add CIS override input; add and correct i18n for CIS

* Change label and input status, based on criteria

* Prevent issues for missing CIS profile args

* Disable logs to avoid code pollution

* Fix test issue

* Update PSA template default label

* Change PSACT on CIS changes if above 1.25

* Add banner for CIS cases

* Remove duplicated logic

* Correct issue after rebase
2023-02-14 18:03:38 +01:00
Giuseppe Leo fb590d2539
LabeledSelect: Displayed label does not update with options (#8154)
* Update displayed value in labeled select inputs if option labe changes but not the value

* Replace generic label and key with props

* Add i18n
2023-02-14 10:42:30 +01:00
wujun dce47f6d4a
polish namespace (#7915)
* polish namespace

* fix no getter.filterNamespace case

* add notFilterNamespace document

* HARVESTER: fix review comment

* add changeAllNamespaces comment
2023-02-13 16:52:06 -07:00
Sorin 00e389d6da
Persistent deployment data (#6852)
* Persists Github deployment data
* Moves GitHub Deployment card to own component
* Fixes/Tweaks
- Add indicator to app detail commits list to show deployed commit
- Add l10n
- hide github description field if there's no description (phantom icon)
- add typing for app env var
- Fix application of app env var (add/remove as appropriate)

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-10 15:14:20 +01:00
Sorin 638eaa10ba
UI/pasting content (#7888)
* Pasting into the input will not replace the initial text but append it

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-10 11:06:23 +01:00
Shavindra 26cf8c6872
Allow user to select Fleet repo protocol select. (#7648)
* Allow user to select Fleet repo protocol select.

* Fix protoccol select.

* Fix PR comments.

* Fix translations.
2023-02-10 09:31:37 +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 fe58a9075c
Merge pull request #7990 from catherineluse/ingress-service-text
Add text to help with Services and Ingresses
2023-01-27 15:45:10 -07:00
Giuseppe Leo 0768d82f16
PSA minor changes (#8022)
* Add missing and correct i18n PSA labels

* Correct description size by removing helper

* Add title to Namespace list tooltip if any PSA

* Allow to disable use of checkbox for PSA form

* Change timeout for growl to 5s on Pod warning due PSA

* Add type label for PSA

* Move PSA menu under Advanced

* Replace toggling system label with extending the value within the same

* Emit initial PSA form values con creation if no checkboxes due lack of interactions
2023-01-25 14:02:26 +01:00
Catherine Luse 1d885b8588 Add text to help with Services and Ingresses 2023-01-21 22:51:28 -07:00
Nancy Butler 53774ce38c move harvester-mgr stuff 2023-01-09 10:48:42 -07:00
Giuseppe Leo 3e31e9f138
Add support for Pod Security Admission in the Namespace resource (#7619)
* Create models, config and utils for PSA

* Create PSA tab form view

* Create custom labels for Namespace

* Add icon option for Namespace detail view

* Add icon for Namespace list

* Add PSA tab for Namespace edit view

* Add i18n for all the PSA parts

* Separate PSA labels between mode and versions

* Filter DetailTop Namespace labels from PSA versions

* Correct unit test

* Correct Namespace tooltips for details, to be created after fetching the resources

* Remove unnecessary model

* Add todo for PSA implementation

* Add TODO for tests with checkbox and select

* Correct namespace list link with model method

* Add TODO

* Move i18n key for PSA

* Align Namespace detail view chips icon to the top

* Restore labels and annotation to the Namespace view

* Merge LabelsPSA features to existing Labels component

* Move all the PSA logic from the view to the model

* Tweaks following review

DetailTop
- Remove PSA specific code from generic component

ResourceDetail
- Remove PSA specific code from generic component
- Remove plumbing for descriptions and icons from parent component to DetailTop

Labels&Annotations component
- Default `show system labels` to off
- Ensure size of `Labels` and `Annotations` titles are the same
- Improve padding
- Remove PSA specific code from generic component
- Removed un-needed margin-bottom

Project/Namespace List
- Improve padlock icon alignment
- Improve spacing around PSA list in tooltip (this will pop up often)

PodSecurtyAdmission settings component
- Improved alignment on PSA checkbox

General Improvements
- Always show Labels&Annotations on Namespace config (view) page

* Changes following testing
- Fix display of show/hide system labels when there are no system labels
- Ensure PSA order shown in project/namespaces list PSA tooltip matches PSA controls in Namespace edit/config page
- Remove two usages of lodash
  - pickBy --> new common pickBy
  - values --> Object.values

* Fix unit tests

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-01-06 16:01:40 +01:00
Phillip Rak b17cffc7a1 Update probe labels and placeholders
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-01-03 09:02:01 -07:00
Shavindra 8072146758
Remove initial-empty-row from ArrayListGrouped. (#7669)
* Remove initial-empty-row from ArrayListGrouped.

* Fix merge conflicts.

* Fix tests.

* Fix tests.

* Fix linting.
2022-12-20 12:13:06 +01:00
Francesco Torchia 84b187eea4
Merge pull request #7742 from torchiaf/fix/7638
Secrets, remove empty rows after a file upload
2022-12-19 10:26:19 +01:00
Catherine Luse b41d734054
Merge pull request #6688 from bashofmann/logging-flow-match-namespaces
Add additional namespaces match field to logging ClusterFlow page
2022-12-16 18:19:58 -07: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
Francesco Torchia bd07f9551a
SelectPrincipal, add tooltip when retainSelection is true
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-16 10:58:14 +01:00
Francesco Torchia 93aafffe88
Select Member, add tooltip
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-15 17:15:33 +01:00
Catherine Luse 1b71ccf8e7
Merge pull request #7508 from catherineluse/cluster-registry
Improve UX for cluster scoped private registry config
2022-12-08 15:26:50 -07:00
Catherine Luse 02a55137ae Adjust columns, X button padding in registry form 2022-12-08 14:55:37 -07:00
richa c792d21dd9
Fixed icon size (#7557)
* Fixed icon size

* Add node inactive warning indicator (#7548)

* StringList, delete item on editing

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

* Bump @rancher/components version

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

* Add manage button to home page (#7546)

* Add manage button to home page

* Fix button spacing

* Make buttons smaller - looks better with extra button

* Fixed icon size in simplebox

* icon fix in GrowlManager.vue

* Add node inactive warning indicator (#7548)

* StringList, delete item on editing

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

* Bump @rancher/components version

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

* Add manage button to home page (#7546)

* Add manage button to home page

* Fix button spacing

* Make buttons smaller - looks better with extra button

* Fixed close icon size

* Fixed more icons sizes

* Fixed icon size in namespaces filter

* Reverd css changes in LabeledSelect component

* Fix on Header

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Francesco Torchia <francesco.torchia@suse.com>
Co-authored-by: Richa Bisht <RBISHT@Richas-MacBook-Pro.local>
2022-12-08 16:52:53 +01:00
Nancy 002c984e0f
refactor promptModal component props (#7435)
* use modalData.componentProps to pass props to custom modal components

* linting errors
2022-12-06 09:41:17 -07:00
Catherine Luse 327f080f48 Respond to feedback on private registry changes 2022-12-05 10:24:30 -07:00
Catherine Luse cdefd0d6fc Resolve merge conflict 2022-12-05 10:23:35 -07:00
Catherine Luse f315c9e8e4 Respond to feedback on ArrayList 2022-12-04 18:47:48 -07:00
Catherine Luse 6b73767d74 Add value to ArrayList 2022-12-04 17:12:31 -07:00
Catherine Luse f0591407ef Refactor ArrayList to avoid queueUpdate 2022-12-04 17:12:31 -07:00
Catherine Luse a279d22fc7 Put ArrayList in component library and storybook, add unit tests 2022-12-04 17:12:30 -07: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
Nancy 6f8ade5765
set default container securityContext (#7539) 2022-11-30 14:15:55 -07:00
Giuseppe Leo 398dd308d4
Add icon option to Banner and Error component (#7586)
* Add icon option for the Banner

* Add icon option for the Error

* Fix CruResource tests

* Apply @rancher/components linting rules
2022-11-30 18:10:39 +01:00
Nancy bc17dea8d5
Fix role form input event handling (#7562)
* allow cloning roles; fix unlabaled taggable select style

* fix role edit/view config style inconsistency

* fix role form input event handling
2022-11-30 08:57:31 -07:00
Nancy ac4f997a51
do not attempt to hide recent events tab when there are no events (#7540) 2022-11-29 08:53:37 -07:00
Richard Cox 33561db8e0 Merge remote-tracking branch 'upstream/master' into epinio-dev 2022-11-29 12:32:10 +00:00
Nancy 8a0f8211bd
allow cloning roles; fix unlabeled multi-select style (#7258)
* allow cloning roles; fix unlabaled taggable select style

* fix role edit/view config style inconsistency
2022-11-22 08:29:47 -07:00
Bastian Hofmann 60ebcaff7f Add additional namespaces match field to logging ClusterFlow page
This also fixes a styling issue in the select fields on the Flow and ClusterFlow page

Fixes
2022-11-21 09:45:08 +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
Shavindra 91d1e64a39
Fix project name editable. (#7223)
* Fix project name editable.
* Added component name.
2022-11-15 17:26:07 +00:00
richa f2e1ae8ac8
Added blue color only to creation action (#7118)
* 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>
2022-11-15 14:31:08 +01:00
richa b39bb589a8
Bug fix namespace value (#7170)
* Fixed namespance clear value bug

* Removed if condition

* Removed extra code

* Corrected the label for create namespace option
2022-11-15 14:17:10 +01:00
Bastian Hofmann cf8bab6b60
Clean up ResourceSelector 2022-11-14 15:21:08 +01:00
Bastian Hofmann d7a969d366
Add UI for PodDisruptionBudgets
This also adds a new menu group "Policy" which includes all policy related resources
* LimitRange
* NetworkPolicy
* PodDisruptionBudget
* ResourceQuota

Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
2022-11-14 15:21:02 +01: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
Alexandre Alves 1e2baae84d
remove @input event from v-select (#7360)
* remove @input event from v-select as event is already sent by default by v-select

* adjust unit tests

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-11-09 17:40:43 +00:00
Richard Cox ceb38156e8
Add basic tests for some settings in the Branding Page (#6713)
* Set data test id and allow complex component to have default and inherited values for all the actions

* Create cluster tests with steps; Create cluster E2E test

* Extend command to use selector matchers

* Create test for cluster navigation and deletion

* Extend commands to find by id as in get method

* Extend documentation with guidelines and info about E2E

* Correct cluster delete and details tests to get menu within speciftc cluster row

* Add remaining E2E tests for the cluster

* Add baseUrl to the paths

* Add RKE2 selection on cluster creation for CI

* Add E2E debugging information

* Rename clluster manager E2E for consistency

* Correct data test ID after rebase

* Prevent cluster provider errors if no management parameter is provided

* Prevent accessing objects in mutation if none is provided

* Remove imported cluster sample due discarded logic

* Reset RKE2 switch on cluster creation

* Adjust test naming for cluster manager

* Replace static data test ID with a variable

* Groupped tests under different common types

* Add POs for pages and componets used in the cluster tests
- fixes #6627
- provides common POs and page POs
- covers a lot of the basic list features

* Remove testid from generic create page
- this is a page at the top level of vue
- any custom test id would need to come from params (cluster, product and/or resource)

* Fix application of branding, color and theme from settings
- The watchers for settings apply them
- This was not happening as they never changed from the initial value
- Caused by 771f168a5b
- Revert to the initial way. This may break epinio but that can be fixed later on

* Add basic tests for some settings in the Branding Page
- Add PO to easier test pages that have a cluster id in their path
- Skip some tests (either liable to change, or hard to validate change)
- There's issues getting values from shadow dom, see value() from labeled-input

Co-authored-by: cnotv <giuseppe.leo@suse.com>
2022-11-09 14:22:02 +00:00
Alexandre Alves 48da4a3ed0
Remaining shell items for Elemental in 2.7.0 (#7168)
* add file changes needed for remaining shell files to enter 2.7.0

* add missing model prop canScaleUpPool

* manually merging the translations string to fix PR merging issue

* address PR comments

* fix issue with expression

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-10-18 11:31:37 +01:00
scures 5be03a9a26 Persists fetched data and user selection between pages 2022-10-17 15:17:40 +01:00
Richard Cox 3674f1d2b6 Merge remote-tracking branch 'upstream/master' into HEAD 2022-10-17 15:09:50 +01:00
Nancy b92d49df66
move harvester service add on translations back into shell (#7189) 2022-10-13 12:56:16 -07:00
Shavindra e94b5a26ba
Prevent blocking effect secondary resources on workloads (#6860)
* move secondary data requests to a non-blocking ui method + pass loading props to the correct labeled selects

* main data loading procedure for secondary data done

* use pvcs from secondary resource fetch on storage component

* rename loading props to asyncDataLoading for better context

* cleanup

* move secondary resources data loading logic to a mixin

* cleaning up resource-manager mixin

* fix issue where namespace  wasnt being updated on secondary requests

* add doc description for data structure for resourceData

* minor change

* add plural option to resource-manager + remove loading var from workloads for sec resources + optimise persistentvolume edit view

* improve persistentvolumeclaim edit view

* add loading flag

* addressing PR comments

* fix latest PR comments

* doc on classify option for resourceManagerFetchSecondaryResources param

* Ensure reponse for namespace resources mimics non-namespaced
- The resources returned when requesting namespaced types do not contain id, type and links properties.
- This isn't perfect, or universally applicable, but will work for the current set of use cases

* working on merge conflicts

* Remove files from bad merge

* Handle new namespaces
- The secondary resource manager fetches some resources by namespace
- The user however can supply a new namespace
- When in `new namespace` mode we need to
  - avoid trying to fetch namespaced resource
  - clear any cached namespaced resource
- this only currently applies to workloads, PV and PVC pages don't fetch namespaced resources

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-10-09 10:40:32 +01:00
Shavindra 7fa9b74d62
Fix KeyValue Component. (#7093)
* Fix KeyValue Component.

* Refactor solution.

* Fix PR comment.
2022-10-06 13:20:52 +01:00
Jordon Leach 7297b8553f
Plugin updates for custom charts within pkg (#7077)
* Plugin updates for custom charts within pkg

* Remove unnecessary valuesComponent set
2022-10-05 10:01:10 -04:00
Nancy 29e666c7a7
Revert "HARVESTER: fix select style (#7055)" (#7064)
This reverts commit 8909903e44.
2022-10-03 15:58:03 +01:00
wujun 8909903e44
HARVESTER: fix select style (#7055) 2022-09-30 14:09:19 -07:00
Qingyang Nong 0d5c0c0050
HARVESTER: Fix namespace filter error (#7053) 2022-09-30 12:50:17 -07: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
Qingyang Nong ae5a5ca614
HARVESTER: Hide read only namespaces (#6997) 2022-09-27 13:49:21 -07:00
Sorin C b48d0b2d90
Closes apps logs on namespace removal (#6669)
* Closes apps logs on namespace removal
* Small tweaks
- ensure we close only apps in the deleted namespace
- sneak in a fix for the default sort order of the commit table

Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-09-02 11:55:27 +02:00
Richard Cox 43d338fac2
Harvester Plugin (#6729)
* routing maybe

* remove nested edit views

* harvester custom routes

* fix loading imported dev cluster

* move harvester-manager hci.cluster type out of harvester pkg

* fixes for build-pkg

* fix harvester custom dialogs

* fix harvester pkg routing

* generateDynamicTypeImport hyphenated dirs

rename cloud_credential and machine_config back to cloud-credential and machine-config

* Appease linting

* Fix epinio pkg build
- Includes fixes for some dashboard component references

* Revert "Receiver credential secrets are deleted when secret is set to none"

This reverts commit 836460e2998959bcda0b14a9f6511f248980b7b5.

* Fix plugin modal cancel button in dark mode

* Ensure correct components loaded when a new version of a plugin is loaded
- The route matcher was never updated with new route-->component values
- This was due to `this.router.options.routes` not containing the result of `router.add`
- See https://github.com/vuejs/vue-router/issues/2280

* Revert "Revert "Receiver credential secrets are deleted when secret is set to none""

This reverts commit e524bb3d40ea7adfe35c38ec7870560625965d25.

* fix harvester manager->harvester routing

* rename dialogs

* move harvester-manager files out of harvester pkg

* Revert "remove nested edit views"

This reverts commit e835835943d63e74c50942884fec3706f8703047.

* plugin validators dynamic import - not working

* fix merge conflict

* fix harvester members

* fix conflict

* custom validators

* harvester table formatters

* members routing

* import path fixes

* harvester mutli load

* Port across tweaks made during dynamic plugin work
- harvester plugin can be bundled with the dashboard until dynamic work has been completed
- Nav directly to virt cluster dashboard instead of via /harvester-c-cluster
- Fix missing bottom border on virt cluster list, hide actions (as they're never populated)

* move config/settings and config/harvester-map

fix hci setting custom components

* fix harvester setting import path

* Move over SerialConsole and Novnc, remove harvester.notifications
- These components were so 1-1 with harvester in the end i moved them over
- Also removed the like-for-like generic.notification `harvester.notification` strings

* Remove isSingleVirtualCluster, most of isMultiVirtualCluster

* Fix two nav issues
- harv cluster members --> prefs --> click on-screen back
- dashboard --> prefs --> click on-screen back

Both of these would be better fixed by an incoming change to the default layout (don't show old content before switching page)

* Fix reload of project/namespace page

* Split out project namespace into it's own component (1 or 2)

* Split out project namespace into it's own component (2 or 2)

* use product hideSystemResources opt instead of isVirtual/product===virtual

* fix missing prop in header

* Move FilterLabel and CloudInitType to harv pkg + two other references

* Move Harvester Upgrade components to harv pkg
- Needs a review with Neil regarding generics

* rebase build+load not working

* fix harvester route in authenticated

* Experimental Changes

* Fix merge conflicts

* WIP Fix routing
- includes project/namespace and namespace pages

* Tidying up

* Move harvester core store to plugin, remove harvester code from authenticated flow
- harvester store is a steve store that now lives in the plugin
- harvester `loadVirtual` replaced with a shortened `loadCluster` in it's own store
- Also fix xterm css import

* Fix three routing related bugs
- Fix project/namespace create/edit/cancel/done flows
- Update harvester's loadCluster to better match loadCluster
- Make edit namespace page project resource agnostic

* Build fixes

* Fix create namespace button and other tweaks

* fix two issues with nav out of imported harvester cluster

* Fix alignment of action menu button
- Used in many places
  - all generic table action menus
  - global settings --> settings
  - rke1 cluster detail page machine pool group actions
  - project/namespace list project group actions
  - resource detail page action menu

* Revert changes to app and pkg creators
- This should fix `check-plugins-build` gate
- It does hide the underlying issue, but that won't have been brought in by this PR?

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2022-09-01 08:57:05 -07:00
Phillip Rak be087fe6e9
Merge branch 'master' into feature/toggle-switch 2022-08-19 09:34:01 -07:00
Neil MacDougall 684bdc93ff
On Resource Tab, only fetch events when events tab is active (#6683) 2022-08-19 09:46:32 +01:00
Giuseppe Leo 698194fea3
Create E2E tests for cluster CRUD operations (#6284)
* Set data test id and allow complex component to have default and inherited values for all the actions

* Create cluster tests with steps; Create cluster E2E test

* Extend command to use selector matchers

* Create test for cluster navigation and deletion

* Extend commands to find by id as in get method

* Extend documentation with guidelines and info about E2E

* Correct cluster delete and details tests to get menu within speciftc cluster row

* Add remaining E2E tests for the cluster

* Add baseUrl to the paths

* Add RKE2 selection on cluster creation for CI

* Add E2E debugging information

* Rename clluster manager E2E for consistency

* Correct data test ID after rebase

* Prevent cluster provider errors if no management parameter is provided

* Prevent accessing objects in mutation if none is provided

* Remove imported cluster sample due discarded logic

* Reset RKE2 switch on cluster creation

* Adjust test naming for cluster manager

* Group tests under scoped cases
2022-08-17 20:48:20 +02:00
Phillip Rak 5d5e38a251 Move ToggleSwitch to @rancher/components
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-08-16 15:49:56 -07:00
Sorin C 67d5e653b7
[Epinio] Ops/GitHub deployment (#6469)
* Refactos `github` store
* Refactor `GithubPicker` to allow us to fetch users/orgs, repos, branches, and commits. 

Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-08-15 16:02:19 +02:00
scures 1910f0f9f0 Limits the files format of the file allowed to be uploaded 2022-08-08 15:27:30 +01:00
Richard Cox d97d94c477 Fix create epinio ns inline 2022-08-08 13:43:35 +01:00
Richard Cox 60baeedbfc Fix simplified create namespace
- NameNsDecsription showed divider even if we weren't creating a namespace
2022-08-08 13:43:26 +01:00
Richard Cox 6ceae93a75 For certain roles hide concept of namespace outside of groups
Users who have no overaching view of the cluster (non-rancher admins, non-cluster owners)
- shouldn't see namespaces outside of their projects
- shouldn't be able to create namespaces outside of their projects (specifically not in a project)
2022-08-04 12:39:03 +01:00
Nancy Butler f0e16d7f78 default podaffinity namespaces prop to null instead of empty array 2022-08-03 10:29:14 -07:00
yuzeng 3ad5318d94 Harvester: move harvester specific code out of PodAffinity 2022-08-03 18:17:08 +08:00
yuzeng 542ca71216 Harvester: typology field is inputable if get nodes failed 2022-08-03 00:37:45 +08:00
Neil MacDougall b5e89f49ba
Improve presentation of add Member dialog (#6500)
* Improve presentation of add Member dialog

* Updated for PR feedback
2022-07-29 17:07:33 +01:00
Sean 1917b0c3cd Passes rules to certificate host field, extends arraylist to use rules 2022-07-25 19:10:49 -04:00
Shavindra 340e2af8d3
Deployment creation view - fix health check - #5734 (#6470) 2022-07-25 17:50:49 +02:00
Sean 21f424814c Resolves issues with ServicePort validation 2022-07-21 14:33:08 -04:00
Sean 41ba49b6c2 Adds in UI-side validation for Ingress Form plus additional fixes.
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.
2022-07-21 13:55:38 -04:00
Nancy 7618bb5fb8
Merge pull request #6398 from n313893254/pr
HARVESTER: Fixes v1.0.3 issues
2022-07-20 13:19:03 -07:00
Nancy Butler 75010054cf harvester: update podaffinity from pr feedback 2022-07-20 12:51:45 -07:00
Neil MacDougall 379c573830
Fix imports that break plugins (#6427) 2022-07-20 17:22:04 +01:00
yuzeng c3666c61fb Harvester: Use random string to trigger pod/node affinity re-render 2022-07-20 17:27:03 +08:00
yuzeng 3784ddece9 Harvester: Harvester node driver with external credentials enhancement 2022-07-20 17:26:54 +08:00
yuzeng c40439aee6 Harvester: add the configuration of node/pod scheduling on Harvester node driver(RKE2) 2022-07-19 15:46:04 +08:00
yuzeng 20ff3550c9 Remove pod/node scheduling correctly 2022-07-19 15:46:04 +08:00
Shavindra 33bc3d6449
Fleet add repository form update - #5197 (#5625)
* Fleet add repository form update.

* Refactor CruResoruce.
2022-07-18 17:55:18 +01:00
wujun 15f5065392 HARVESTER: filter labels 2022-07-15 09:16:07 -07:00
n313893254 c76750936d HARVESTER: VM template is not working with Node scheduling 2022-07-15 09:15:53 -07:00
Alexandre Alves af1df2c660
add tooltip to fleet cluster labels editor title with appropriate copy (#6355)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-07-14 10:54:29 +01:00
Catherine Luse 89a55389ed
Merge pull request #6302 from catherineluse/amc
Can select secrets for receivers in AlertmanagerConfig
2022-07-10 06:39:01 -07:00
Catherine Luse f81d0d9876 Can select secrets for receivers in AlertmanagerConfig 2022-07-07 20:35:57 -07:00
Sean ddab180ecc Adds in form validation mixin, error reporting on inputs, a few examples 2022-07-07 13:18:43 -04:00
Bastian Hofmann d9ccb3a673 Add more details to auth secret dropdown
This makes it easier to pick the right secret if there are multiple ones. These are used for example in the GitRepo Continuous Delivery UI.

Adresses https://github.com/rancher/dashboard/issues/6239
2022-06-28 14:32:39 +02:00
Richard Cox 94e15d3e52 Merge remote-tracking branch 'upstream/epinio-dev' 2022-06-22 13:13:51 +01:00
Neil MacDougall 01cf6dcd46
Fix shell package with rancher components (#6200)
* Fix shell package with rancher components

* Fix tsconfig so it is parsable
2022-06-22 10:29:49 +01:00
Giuseppe Leo 6422c1de77
Fix issue with inputs not updating data inside multiple forms while typing (#6070)
* Use plugins globally in Jest configuration over single statements

* Add checkspell terms

* Add test id and cleanup code for Upgrading

* Create test for Upgrading input actually updating values while typing

* Handle missing terminationGracePeriodSeconds value in the spec qhile hanfling Upgrade value

* Replace Deployment Upgrading input event strategy with blur

* Remove container input listener, over single input emitters, to avoid issues in case of blur

* Extend tests to all the inputs to update the data in the Upgrading tab

* Removed deprecated components

* Correct vue-select import in Vue within Jest setup

* Add vue-select type

* Create form tests sample for input with custom select component

* Create unit tests for all the forms

* Create test for Upgrading without verify value

* Changed from component to query selectors in select input unit tests

* Prevent multiple events due inconsistent event input pattern in network update for Harvester

* Correct TS complain about Vue logic

* Add issue number to TODO
2022-06-20 11:25:49 +02:00
Richard Cox 73f611686e Fix white page error when there are no ns, user enters text and hits return
- there's still an underlying issue with the NameNsDescription component to resolve when there are no ns, but nothing severe
2022-06-17 15:09:27 +01:00
Richard Cox ac43cc5b45 When choosing to create a namespace set focus to new input field 2022-06-13 12:17:56 +01:00
Richard Cox 7f54c0d274 Align cross button with drop down arrow 2022-06-13 11:50:38 +01:00
Richard Cox 750256a0f5 NameNsDescription Updates
- Cancel cross should be a standard colour rather than red
- Ensure CruResource `namespaceKey` works for paths
  - align CruResource `namespaceKey` with NameNsDescription `namespaceKey`
  - reduce complexity
  - This follows on from the conversation in https://github.com/rancher/dashboard/pull/6084
2022-06-13 11:42:58 +01:00
Catherine Luse b0abe0761a
Merge branch 'master' into create-edit-namespace 2022-06-10 13:41:53 -07:00
Phillip Rak 3c23d90b0d
Port rancher components to TypeScript (#6073)
Summary

This ports the components under pkg/rancher-components to TypeScript. Take note that this change also touches some areas outside of pkg/rancher-components, including

    shell/mixins/labeled-form-element.ts
    shell/mixins/compact-input.ts
    shell/components/form/LabeledSelect.vue
    shell/components/form/Select.vue

Making changes to these components was required to properly work with the mixins used for pkg/rancher-components/src/components/Form/LabeledInput/LabeledInput.vue. Perhaps these would be good candidates to port to Rancher Components next..

Fixes #5932
Areas or cases that should be tested

We'll need to review a good range of usages for the modified components to check for regressions. I'm mostly concerned about type errors or warnings that might be raised during runtime.
2022-06-07 10:36:37 -07:00
Neil MacDougall 6d015116e2
Workload events tab (#6058) 2022-06-06 13:20:23 +01:00
Neil MacDougall 362579eeea
Fix PVC expansion and add to action menu (#6072)
* Fix PVC expansion and add to action menu

* Localize action name
2022-06-06 13:19:30 +01:00
Catherine Luse 8709f99ba7 Can select or create a namespace in create resource forms 2022-06-02 19:49:16 -07: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
Catherine Luse 3a8be3a1d1 Change name of event emitted for secret selector 2022-05-19 22:57:29 -07:00
Giuseppe Leo 281d6a2b74
Feature/5186 unitinput blur (#5965)
* Remove delay to unitinput due issue with form/vuex binding

* Pass event on label input blur

* Emit unit input value on blur only
2022-05-18 11:12:07 +02:00
Neill Somerville 48666791bb ns reserved value update 2022-05-16 16:33:56 -07:00
Neill Somerville 6752fe2952 add tooltip for Project Namespace Resource Quotas 2022-05-16 16:33:55 -07:00
Richard Cox a75342566a
Merge pull request #5940 from richard-cox/initial-services-support
Initial support for epinio services
2022-05-16 13:40:58 +01:00
Alexandre Alves d59743d5ee
Project is created with resource quota even after the quota is removed (#5841)
* clear up resource quota if removed individually from UI

* finish logic to clear project resourceQuotas

* fix issue where data was not being captured corretly from remove event coming from ArrayList in ResourceQuota component

* PR review changes

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-05-12 15:05:16 +01:00
Richard Cox bf465a7666 Initial support for epinio services
- includes fix to NameNsDescription `namespacesOverride`
- Implements basic fetch, models and lists
- Everythhing else blocked on UX decisions / backend changes (see https://github.com/epinio/ui/issues/97)
2022-05-12 13:47:19 +01: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
Richard Cox 5c67334dcd Fix unit tests 2022-05-10 11:59:13 +01:00
Richard Cox cd45d46102 Fix colour picker 2022-05-10 10:04:04 +01:00
Richard Cox 95166ae3dc Fixes after rebase 2022-05-10 10:04:04 +01:00
Richard Cox eb9d827e04 Fix epinio app deploy by folder, improve wm app log messaging 2022-05-10 10:04:04 +01:00
Richard Cox 50aed3eb9e New Epinio pkg, and updates to dashboard (core, pkg process) (#5637)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* disable consent banner text overflow wrap

* add additional metadata to workload detail view

* minor css tweak

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Add annotation to stop upgrades for managed charts

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Use correct name for Network Attachment Definition Resource (#5579)

* Fix heading levels in Account and API keys page (#5563)

* SortableTable Performance: Optimise row mouse over/leave handlers (#5550)

Co-authored-by: Richard Cox <richard.cox@suse.com>

* Keep the check for fleet bundle ID

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* warn on adding windows node to cutom cluster

* Display custom error message when login fails. (#5582)

* change rke2 upgradeStrategy to 1 concurrent controlplane and worker (#5580)

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* update endpoint display, fix ready status for daemonset type

* Fix Sortable Tble SSR (#5599)

* Sortable Table: Fix broken props to slot (#5600)

* expanded error check to include simple type

* fixed error check logic

* Fix async buton wobble with spinner (#5586)

* Add Pod restart count to workload detail page

* Can scale workload from workload detail page

* Enable source map in Nuxt/Webpack configuration for debugging (#5590)

* Move hardcoded values for roles in his own config file

* Allow to set default values also for Clusters and Namespaces

* Allow local cluster to be hidden

* Initialize always auth errors as empty list

* Add translation for snapshot group

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Enable s3 storage in rke2 cluster config

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Group by snapshot location

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* After rejig

* Prevent injection of malformed errors in the generic resource form component

* New Epinio pkg, and updates to dashboard (core, pkg process)

* Remove epinio-select

* correct @shell// reference

* Fix filtering issue
- store/index suffered a bad merge

* Add hide-local-cluster to the settings page

* Fix node table column sorting (#5611)

* Fix issue where private registry auth can be changed in view mode (#5617)

* Change title of support block on home page when custom link set (#5547)

* Tidying up

* Add feedback to the copy kubeconfig header button (#5628)

* Add feedback to the copy kubeconfig header button

* Minor improvement

* Get rke3 and k3s latest versions from settings (#5608)

* Revert previous change and avoid watching spoofed types

* Move the group-by string to computed prop

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Use computed instead of method, use Array.isArray instead of lodash isArray

* Ensure auth provider note appears consistently within form instead of new floating button section
- some auth providers already had this
- possibly better ux to add to top, but that area is already busy

* Fix bug where delay loading only worked on scroll with live columns (#5635)

* Inconsistencies with Cluster metrics across the UI (#5542)

* fix num pods being displayed on the homepage cluster list + set mem to gib for ram on homepage cluster list

* show total number of nodes rather that useful nodes in cluster dashboard view + remove reserved info for CPU and MEM in cluster table in homepage + fix pods usage in nodes list view + clear console logs

* cleanup

* correctly wire PodsUsage as a formatter + display N/A when usage is zero in nodes list values for CPU, MEM, PODS

* add loader icon to PodsUsage formatter

* add string translation to n/a in percentageBar formatter

* add delayedLoading to PodsUsage formatter

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>
Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* Enable filtering by project name on project/namespaces paeg (#5636)

* Fixes post merge

* Rename core-store to dashboard-store
- contains TODO: RCs to resolve

* Tidy up/imporve nav hooks

* Fix some todo's, epinio routing product

* refactor detailtop

* Hide NeuVector product if `cattle-neuvector-system` does not exist
- As per request at https://github.com/rancher/dashboard/issues/5556#issuecomment-1098270110
- fixes #5556
- alternative to #5604

* Fix a number of areas where the sticky footer consumes large amounts of space
- Fixes #5643
- Mostly caused by non-standard ways the CruResource was being used

Effected Areas / Places to test
Note - Only need to visit pages, shouldn't need to make any changes to resources
- Cluster create/import screens (types, credentials (create new / existing), import, rke2)
- Auth providers (shortest form is keycloak saml)
- Create/Edit resource types - project, namespace, some random others
- Create/Edit resource types that have sub-types (secrets, workloads, OPA Gateway / Constraints)

Also Addressed
- Only show top border of the footer if CruResource is in edit view
- Fixed hide of errors

* Fix conditional showing of Group `Assign To` and `Refresh` buttons

Buttons should only show if
- There is a non-local auth provider enabled
- The user has the correct permissions for the relevent action

Fixes #4897

* Fix live expiry badge used on api keys table

* Hide local cluster in LandingPagePreference and api key (token) list

* HARVESTER: Fix Grafana metrics reload failure

* Address some TODOs

* minor fixes

* Rename i18n to l10n, make use of default folders

* Improve adding multiple routes

* Config map view inconsistent for binary data (#5602)

* Fix Config map view inconsistent for binary data

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>

* check for existance of limit prop so that deleting a project doesnt silently fail (#5661)

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>

* Changes following review

* Fix CruResource `Edit as Yaml` feature
- ensure sticky buttons are stuck at bottom
- doesn't apply sticky buttons to direct `Edit as Yaml` feature outside of CruResource

* Fix navigation & ns filter bugs
- nav from explorer to epinio cluster (errors in console)
- nav from epinio cluster to explorer (ns filter broken)

* Remove epinio ns and config validation
- this was the process that will be replaced with Sean's work
- it's suffered bit rot and was broken after the merge
  - not running in places
  - it visually broke the labelled select (in multiple places)

* remaining todos

* fixes following validation change

* fix bad yarn lock file

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Neill Somerville <neill.somerville@gmail.com>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
Co-authored-by: Shavin Fonseka <Shavindra@users.noreply.github.com>
Co-authored-by: Alexandre Alves <97888974+aalves08@users.noreply.github.com>
Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Catherine Luse <catherine.luse@gmail.com>
Co-authored-by: Giuseppe Leo <giuseppe.leo@suse.com>
Co-authored-by: cnotv <giuseppe.leo@suse.de>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro-2.local>
Co-authored-by: n313893254 <n313893254@126.com>
# Conflicts:
#	shell/assets/translations/en-us.yaml
#	shell/components/CruResource.vue
#	shell/components/ResourceDetail/Masthead.vue
#	shell/components/ResourceList/Masthead.vue
#	shell/components/SortableTable/index.vue
#	shell/components/form/KeyValue.vue
#	shell/components/form/LabeledInput.vue
#	shell/components/form/NameNsDescription.vue
#	shell/components/form/NotificationSettings.vue
#	shell/components/formatter/PodsUsage.vue
#	shell/components/nav/Header.vue
#	shell/config/product/neuvector.js
#	shell/detail/workload/index.vue
#	shell/edit/provisioning.cattle.io.cluster/CustomCommand.vue
#	shell/models/cluster.x-k8s.io.machinedeployment.js
#	shell/models/harvester/kubevirt.io.virtualmachineinstance.js
#	shell/models/workload.js
#	shell/pages/c/_cluster/settings/banners.vue
#	shell/plugins/steve/actions.js
#	shell/store/type-map.js
2022-05-10 10:04:04 +01:00
Richard Cox 25acc1f8eb Plugins: Rejig files to new shell locations (#5623)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* After rejig

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
2022-05-10 10:04:02 +01:00