Commit Graph

53 Commits

Author SHA1 Message Date
Shavindra 0fc0de8386
Remove last item from navigation filter onMouseDown (#7310)
* Remove last item from navigation filter onMouseDown
2022-11-28 10:07:53 +00:00
Ilya Artamonov 4af80a442f
fix: Fixed typo in class name (#7449) 2022-11-22 12:12:09 -05:00
Sorin 1ff87c740f
Removes the extra style from nav/Header component (#7483)
Removes extra style from the navHeader component.
2022-11-21 15:40:33 +01:00
Catherine Luse 519d2dce9b
Merge pull request #7498 from catherineluse/namespacefilter
Cluster explorer no longer crashes
2022-11-18 09:58:01 -07:00
Catherine Luse e0a44da2fb Cluster explorer no longer crashes 2022-11-18 08:30:39 -07:00
Francesco Torchia 551ecc3afa
Merge pull request #7147 from torchiaf/fix/4733
Configure Shell/Terminal location
2022-11-18 15:39:22 +01:00
Francesco Torchia 6125371a43
Configure Shell/Terminal location
- add ability to pin the WindowManager component to Left/Right/Bottom
- add new component DraggableZone
- update yarn.lock, rancher/icons#v2.0.6
- adapt to light/dark theme

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-11-18 15:18:48 +01:00
Francesco Torchia 45a68c783f
NamespaceFilter: add Enter shortcut
- add Enter key shortcut in case of searching word returns exactly one result.
- fix css

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-11-18 15:02:44 +01:00
Giuseppe Leo cd947db43b
Add unit tests for Namespace filtering in resources (#7465)
* Prevent errors if no resource is retrieved for NamespaceFilter; Add data-testid attributes for testing purposes and ocmments for readability

* Add NamespaceFilter component tests

* Add Workload loading unit tests

* Restore mokcs globally after each test

* Add issue number to TODO comment
2022-11-18 00:05:42 +01:00
Catherine Luse 52bcdfe88c
Merge pull request #7351 from catherineluse/logs-container
Minor log styling fix
2022-11-17 16:03:16 -07: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
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
Catherine Luse 7df7fbf199 Minor log styling fix 2022-11-11 08:20:04 -07:00
Neil MacDougall 213d4e7500
Fix slide-in menu causes scroll bars (#7352) 2022-11-08 07:06:21 -08:00
Alexandre Alves 0b463f7165
add missing check to template part so that workspace switcher is show… (#7216)
* add missing check to template part so that workspace switcher is shown on an blank cluster

* Move complicated v-if in to computed property

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Richard Cox <ricox@suse.com>
2022-10-19 09:35:21 +01:00
Neil MacDougall 6481644579
Customisable links support (#7131)
* Implement Rancher Prime changes.

* Implement Rancher Prime endpoint.

* squash

* Implement Rancher Prime endpoint.

* squash

* fix proxy.

* Fix support page links.

* merge master.

* Fix nuxt config.

* test without /rancherversion

* Fix links.

* Merge tify up - rename back to hasSupport for less change

* Fix version metadata fetching

* Allow links to be edited

* Fix lint, revert changed to KeyValue

* Remove unused code

* Fix typo

* Add support for linkOptions

* Add name to component

* File an issue link should go to choose page

* Fix typo

* Fix issue with legacy settings

* Address PR feedback

* Remove todo that was done

Co-authored-by: Shavindra <shavindra@users.noreply.github.com>
2022-10-11 14:11:22 +01:00
Cody Jackson 06b6f358fb Disabling explorer links if the cluster is in an error state
rancher/dashboard#7036
2022-10-04 08:51:30 -07: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
Alexandre Alves 93fd50d807
'View in API' preference is not obvious (#6947)
* splitting up user settings belonging to DEV and updating references on rancher + update settings page to individually control each of the splitted settings

* move view in api to advanced features

* update copy of option in user prefs + update logic for inheriting value from another pref when one is not set on the server/api side + add toggleLocale shortcut to missing layouts + other minor changes

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-09-27 10:07:00 +01:00
Jordon Leach cec1bb8aff
Change side-nav cluster order to sort by name (#6942) 2022-09-26 08:12:37 -04:00
richa 6794bd7e97
Move locale user preferences (#6828)
* Created LocaleSelector component

* Updated backend on lacal changes

* Hide none option in language list

* Fixed hovered state and added down arrow to dropdown list

* Fixed preferences error on login screen

* Corrected order of check

* Added variable to stor value before login

* Fix locale saving when not logged in

* Removed commented code and add comments for variable

* Added local in user-preferences page

* Added loginc in commit for settign user Preference

* Changes local selector template as per the login and user preference page

* Removed extra class, fixed tags closing

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
2022-09-22 16:49:59 +02:00
richa 4134c1a9dd
Locale preference login page (#6597)
* Created LocaleSelector component

* Updated backend on lacal changes

* Hide none option in language list

* Fixed hovered state and added down arrow to dropdown list

* Fixed preferences error on login screen

* Corrected order of check

* Added variable to stor value before login

* Fix locale saving when not logged in

* Removed commented code and add comments for variable

* Added loginc in commit for settign user Preference

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
2022-09-07 18:01:09 +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
Richard Cox 7a03119c5c Revert "Merge pull request #6553 from mantis-toboggan-md/revert-6421"
This reverts commit c86abfae23, reversing
changes made to 57f9a3706c.
2022-08-01 12:04:41 +01:00
Nancy 46401c0ecd Revert "Use web worker to throttle counts and schema changes (#6421)"
This reverts commit 4687fbca17.
2022-07-29 16:23:54 -07:00
Neil MacDougall 4687fbca17
Use web worker to throttle counts and schema changes (#6421)
* Use web worker to throttle counts and schema changes

* Delete nodes.md

* Address PR feedback

* Small tidy up

* Fix dependencies for plugins

* Address PR feedback

* Fix lint issue
2022-07-29 17:06:56 +01:00
Richard Cox ef613493f3
Merge pull request #6524 from richard-cox/fix-workspace-filtering
Fix workspace filtering
2022-07-29 15:42:25 +01:00
Qingyang Nong 3bc48b38a6
HARVESTER: Fix namespace filter wrong on Harvester page (#6523) 2022-07-29 10:41:45 +01:00
Richard Cox 0fdfd1e7f6 Fix workspace filtering
- This was broken by https://github.com/rancher/dashboard/pull/6261
- The `activeNamespaceCache` depends on the product (fleet requires workspaces, everything else namespaces)
- This needs updating when going to or from fleet

NOTE - On `head` (but not `ui-dashboard-index` `latest`) refreshing on the explorer pods page does not show the correct namespace filtered pods

Small tidyup for `activeNamespaceCache` and `activeNamespaceFilters` getters
2022-07-27 16:14:49 +01:00
Catherine Luse c4a755ffa3 Namespace filtering logic in consistent in top nav and list 2022-07-23 16:35:20 -07:00
Catherine Luse bd966a061c Merge branch 'master' into cache 2022-07-21 02:40:14 -07:00
n313893254 c76750936d HARVESTER: VM template is not working with Node scheduling 2022-07-15 09:15:53 -07:00
Neil MacDougall daae81840c
Remove icons from the user drop down menu (#6280) 2022-07-07 10:02:30 +01:00
Catherine Luse ee4b639d8c Cache list of active namespaces 2022-07-03 15:04:52 -07:00
Richard Cox f4f1198409
Merge pull request #6215 from richard-cox/merge-epinio-dev
Merge latest changes from `epinio-dev`
2022-06-24 12:56:07 +01:00
Neil MacDougall e5f47de940
Only show none locale when dev pref is set and running in dev (#6229) 2022-06-24 12:49:41 +01:00
Richard Cox 7e4e165211 Merge remote-tracking branch 'upstream/master' into epinio-dev 2022-06-15 09:52:10 +01:00
Richard Cox c67cb943f1 Fix epinio namespace filter
- epinio standalone won't have a current cluster (a rancher mgmt cluster resource type)
- so take this into account with the same property using with NamespaceFilter
2022-06-13 14:18:32 +01:00
Richard Cox 7307a87b65 Address to container log streaming inssues
- No.1
  - validate and fix bad LOGS_RANGE preferences
  - at some point this became polluted and now breaks streaming of logs
  - fixes https://github.com/rancher/dashboard/issues/6122
- No.2
  - Ensure the `Everything` log range option is correctly selected when the value is `all`
  - Previously it would just show as an option underneath 'Everything`
2022-06-10 18:13:43 +01:00
Giuseppe Leo b068e4e12c
e2e Tests: CI: Setup test to run for PR pointing to master (#5451)
* Configure E2E tests for CI

* Add Github CI configuration for E2E

* Write welcome and first login tests

* Add Docker initialization script

* Sort tests

* Allow to trigger input checkboxes from labels

* Run setup script in a single test to avoid server requirement restrictions with authentication in a single session

* Trigger E2E tests on PR to master only

* Correct password for E2E; extend documentation about authentication

* Allow E2E jobs to be excluded if present tag in the title

* Build and start project for E2E using SPA flag and prod env for CI

* Assure link presence while navigating in E2E tests; Improve readability

* Allow to skip setup E2E tests for remote initialized instances

* Update Cypress related libraries

* Replace class to id selections for E2E tests

* Create Page Actions PO; Move navigation related tests; Ensure Home page tests to be reliable

* Correct login redirection to include local

* Reset cards for E2E changelog

* E2E: Add manual waiting while opening the side navigation

* Change CI E2E skip exception from title to label

* E2E: Increase waiting time for side navigation racing condition issue

* Remove bootstrap setup assertion

* Allow to manually trigger E2E tests

* Disabling all flaky tests which cause race condition random failure

* Remove setup scripts and commands due opted out solution

* Rename files, tests and PO

* Remove libraries added while rebasing

* Replace ID with data-testid for E2E element selection

* Skip entirely E2E test Job on label in favor of single steps condition

* Use run ID and number for artifacts names

* Updated documentation related to E2E selectors and added best practice link

* Remove passed tests video after each test

* Add getId command to select elements by attribute

* Correct all the selections of all the existing tests; Add related data id for testing purpose

* Add terms and ignore log issue with TS

* Add missing ID to data conversion

* Replace password cases with new PO

* Restore locale login check in E2E

* Enable artifacts upload only on failure

* Disable video artifacts upload from E2E runs

* Correct linting issue with a TODO note

* Correct script naming and docker command to avoid killing other containers

* Remove unnecessary --spa flag from existing scripts

* Correct tests to do not rely spcifically to the version while testing changelog text

* Adjust documentation definitions

* Reference issue in the TODOs

* Allow failing if no container found while stopping docker

* Rephrase E2E commands reference in docs

* Correct Docker stop command typo with image name
2022-06-10 13:31:49 +02:00
Richard Cox 3ed383c83e Merge remote-tracking branch 'upstream/epinio-dev' into merge-epinio-dev 2022-06-06 09:35:32 +01:00
Richard Cox a50b89d892 Avatar Menu: Align user avatar silhouette centrally 2022-06-01 15:44:32 +01:00
Neil MacDougall b099206b8f
Fix side-menu cluster list is empty (#6051) 2022-05-27 16:11:19 +01: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
Alexandre Alves 493dbdbf05 fix header z-index so it appears underneath the modal 2022-05-24 18:59:12 +01:00
Neil MacDougall ef3e26bb4a
Make side nav and home page cluster lists be consistent with provisioning list (#5833)
* Fix rebase issues

* Fix lint issues

* Address PR feedback
2022-05-24 11:58:31 +01:00
Neil MacDougall 69b81f2e36
Hide plugins nav unless running in dev mode (#6003) 2022-05-24 11:56:39 +01:00
Richard Cox d376207884 Fix position of header logo in single product mode 2022-05-10 10:04:04 +01:00