Commit Graph

161 Commits

Author SHA1 Message Date
richa 38ad49d2f5
Fixed link alignment in home page whats new section (#7887)
* Fixed link alignment in home page whats new section

* Removed extra new added css properties
2023-01-13 11:53:50 +01:00
Neil MacDougall 25876b49ea
Fix stuck loading indicator (auth) (#7903) 2023-01-13 10:03:35 +00:00
Catherine Luse ff974034aa
Merge pull request #7847 from catherineluse/registry
Allow configuring system image registry only for charts that support it
2023-01-12 11:27:04 -07:00
richa b89bcb595f
Prompt node pool (#7772)
* Added prompt in machinedeployment

* Save users promptConfirmation in cookies

* Changed pormpt size

* Added comments to the code, replace mounted function with create

* Fixed review comments

* Removed cookies added scale pool promt variable in prefs file

* Corrected pref variable name format and update comments

* Added confirmation prompt option in pref page
2023-01-11 15:51:47 +01:00
Richard Cox d4b9840d28
Merge pull request #7207 from mantis-toboggan-md/plugins-harvester-manager
Create a Harvester Manager plugin
2023-01-11 10:19:57 +00:00
Nancy 14afb83a72
Revert "get docs base url version from getVersionInfo (#7436)" (#7863)
This reverts commit 129568d991.
2023-01-10 11:12:13 -07:00
Nancy Butler 53774ce38c move harvester-mgr stuff 2023-01-09 10:48:42 -07:00
Catherine Luse c3b82c3594 Allow configuring system image registry only for charts that support it 2023-01-05 06:26:16 -07:00
Nancy 129568d991
get docs base url version from getVersionInfo (#7436)
*update docs links in translation file

*update chinese translation doc links

* fetch latest rancher version tag to determine doc url versioning

* fix hardcoded links to 2.6-only documentation

* update doc base url
2023-01-04 09:09:26 -07:00
Alexandre Alves 191faf2e0c
capitalise extension titles (#7709)
* capitalise extension titles

* add white bg to extension icons on dark mode

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-12-19 09:54:16 +00:00
Francesco Torchia 9b4af328f7
Charts, handle chart-mode as a preference
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-16 17:35:42 +01:00
Alexandre Alves 3bd4ccc6c2
Add rancher dashboard version to "About" page (#7516)
* display dashboard version on about page

* add space between commit branch and commit hash

* address PR comments

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-12-14 09:48:46 +00:00
codyrancher 5d75ccf83d
Merge pull request #7672 from codyrancher/catalog
This fixes an issue where catalog/charts were stale after a repo was updated
2022-12-09 13:50:47 -07:00
Cody Jackson 90ca1209f4 This fixes an issue where catalog/charts were stale after a repo was updated
The catalog.cattle.io.clusterrepos/{repo} resource doesn't subscribe to updates. We now force a full request in the areas where it's appropriate to do so.

fixes #7668
2022-12-09 08:38:28 -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
Richard Cox 75aa51fab9 Enforce Namespace Filter
- When there are over a configurable amount of resources to display in a list force the user to select a single namespace and use it to fetch resources related to the list
- Disabled by default, this can be enabled via the usual Global Settings --> Performance setting as usual

Functional Comments
- Gates for forcing the filter (count, resource type is namespaced, etc) apply only to the resources shown in the list.
  - For example PV's aren't namespaced, so no enforced filtering. However they fetch PVC's which are namespaced
  - For example we could have 10 resources to show in the list, but the resource types list component fetches 10000 other resources. The secondary resources are not taken in to account
- If we're under the threshold and have fetched all resources, if in that session we go over the threshold we won't fetch NS specific resources (because we have them all already)
- If we're over the threshold and have fetched namespaced resources, if in that session we go under the threshold we will fetch all resources
- If we're over the threshold and have fetched namespaced resources, going to a page that needs them all will result in us fetching them all (for instance from `events` to `cluster dashboard`)
- Deselecting a namespace and selecting it again should not kick off another http request

General Commit Comments
- The threshold to enforce the filter is set at 1500 as per manual fresh and incremental loading
- Optimised some code in ResourceList, resource-fetch and $loadingResources
2022-12-02 12:30:13 +00:00
Neil MacDougall de1c8739d8
Add manage button to home page (#7546)
* Add manage button to home page

* Fix button spacing

* Make buttons smaller - looks better with extra button
2022-11-30 21:45:19 +00:00
Alexandre Alves 0e43fed35c
fix issue with compare changes (#7538)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-11-29 11:56:07 +00:00
LiuYan de360a5700
fix(explorer/index): add cpu unit to the cores capacity section (#6328) 2022-11-28 10:51:42 +00:00
Neil MacDougall f0df19764f
Add node inactive warning indicator (#7548) 2022-11-28 09:15:15 +00:00
richa b0a6ec0834
Fixed bug Rancher Changes names in the About Section when providing a private label (#7200) 2022-11-24 11:31:51 +01:00
Alexandre Alves cc70669671
fix issue where ldap active directory errors arent being displayed (#7497)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-11-23 11:11:34 +00:00
Ilya Artamonov 3ebf308a60
Fixed top offset if header banner is enabled (#7499)
* fix: Fixed top offset if header banner is enabled
2022-11-23 09:54:05 +01: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
Richard Cox 0a73249153 Improve spacing/wiggle on Login Page
- After logging out / timeout and then entering bad creds there's no vertical wiggle
  - I gave a quick look at resolving the wiggle when there's no intial error, but it left too much space to look pleasing
- Improved the general vertical spacing
2022-11-21 13:58:43 +00:00
Phillip Rak a54c91d73d
Merge pull request #7475 from rak-phillip/chore/eslint-key-spacing
Update key-spacing eslint rule
2022-11-17 13:39:05 -07: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
Sorin b3ff2179d5
Scopes the SCSS where we globally style the header, main, footer and … (#7409)
* Moves the global style to its own SCSS file & adds an `element-layout` class.
2022-11-16 13:10:58 +01:00
Shavindra b8d83d5d3e
Fix UI not refreshing when cluster members are added or removed. (#7245)
* Fix UI not refreshing when cluster members are added or removed.
* Fix the undefined issue.
2022-11-15 17:25:19 +00:00
Giuseppe Leo 75c01c7ab7
Validation for the minimum length requirement for user password setting (#6897)
* Convert Rancher settings into Typescript and add interface

* Allow Rancher settings to be validated

* Add Rancher Settings min password length validation

* Replace settings number input with labeled input of type number for validation; Added missing required, focus, locale and labels attributes

* Add min/max/between value/length cases to global validation cases

* Correct validation syntax

* Add tests for the global settings

* Correct naming and assign directly rules to the inputs

* Create initial tests for CreateEditView

* Prevent Settings view to break if no setting is found for given ID

* Add max password length validation

* Add i18n to settings validation

* Add form validation to the CRUD component

* Prevent form to fail for resource types without validation

* Add test for no validation cases

* Remove form validation in favor of local view logic, due complexity issues

* Correct validator linting issue

* Correct i18n; Add types; Correct min/max/between validations i18n and combine the last

* Add translation type

* Correct validation translation types and definitions

* Replace custom validations with predefined rules

* Reintroduce form validation in abstracted configuration to pass settings through

* Add tests for new generic form validations

* Correct between values and length validation

* Split tests to use pre-existing rulesets due complexity and different cases

* Cleanup jsdoc in form validation

* Cleanup form validation mixin

* Add global settings test for generating rules from config

* Replace value.value with value for validating the resource

* Correct validation call and test instantiation

* Add note about value.value exception

* Disable faulty test due lacks of information

* Replace min/max value validation with between

* Add missing type for settings getter

* Move type folder within shell

* Move settings logic from config to utils
2022-11-15 15:32:02 +01:00
richa bb1aacb5ce
Removed btn-sm class to make button size nomal (#7135) 2022-11-15 14:16:38 +01:00
Neil MacDougall 5add7a0dbe
Fix vertical alignment of fail-whale page (#7433) 2022-11-15 09:16:55 +00: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
Richard Cox d8171e7de4
Merge pull request #7386 from richard-cox/fix-select-principal
Two Select Principal Fixes
2022-11-10 09:43:01 +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
Richard Cox d9771afc3f Two Select Principal Fixes
- Ensure invalid principals aren't selected on press of `return`
- On Users & Authentication --> Groups --> Create page ensure page doesn't reload on press of `return`
2022-11-09 10:42:43 +00:00
Nancy 345772f35e
account for no currentCluster on chart install (#7378) 2022-11-08 17:34:27 -07:00
Jordon Leach e8269d603f
Use display name of cluster for diagnostic page (#7304) 2022-10-31 08:04:10 -04:00
Alexandre Alves 0209e52295
add mode to inputs in order to disable ui elements if user doesnt have permissions to change preferences (#7284)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-10-26 10:56:25 +01:00
Richard Cox e2f9f36a8f Always write out the `systemDefaultRegistry` values when installing helm charts
- This was the default behaviour from before, we switched to conditionally write them out if the values weren't specified in their charts
- Seems a lot of rancher charts don't manually specify
- fixes https://github.com/rancher/dashboard/issues/7260
2022-10-24 17:47:17 +01:00
Neil MacDougall cb789ae4ff
Extensions: Don't show version when installing (#7240)
* Don't show version when installing

* Address PR feedback
2022-10-21 11:20:18 +01:00
Richard Cox b95377a055 Remove override for chart container registry when it matches the global container registry
- fixes https://github.com/rancher/dashboard/issues/7246
- an empty string does not mean it uses the global registry, but the fallback docker.io
- so always pass through the registry if one exists (cluster > global)
2022-10-20 18:11:26 +01:00
Richard Cox 49085715ca Fix rke1 clusters without a custom registry 2022-10-20 15:30:05 +01:00
Catherine Luse 8e4049c793 Can use RKE1 cluster scoped registry for Helm chart installs 2022-10-20 15:30:05 +01:00
Richard Cox c4614a036f Bug fix and Improvements to Carousel
- Ensure scroll timer is cleared when we leave the page
- Don't scroll on return to charts page of same cluster
  - flat stored in session storage (lost on tab/window close, retained on refresh)
- Increase time spent on each carousel section from 2 to 5 seconds
- l10n for header
2022-10-20 14:31:07 +01:00
Neil MacDougall 81857afb76
Fix minor issues (#7229) 2022-10-20 12:41:35 +01:00
Richard Cox 83b2c9029c
Merge pull request #7117 from catherineluse/registry-setting
Can pull Helm chart app images from cluster registry or custom registry
2022-10-13 14:30:51 +01: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
Richard Cox cb28c5781e Remove concept of registry from YAML (handled entirely by input field in first step) 2022-10-12 14:16:56 +01:00