Commit Graph

77 Commits

Author SHA1 Message Date
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
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
Neil MacDougall 9f3922424a
Add support for svg icons (#7769)
* Fix lint

* Fix bad merge

* Fix bad merge

* Fix issue with custom color
2023-01-13 12:59:59 +00:00
Bastian Hofmann d6bbae46a6
Fix multi select styling (#7843)
* Fix multi select styling so that the form field expands if not all items fit into a single line anymore.

Fixes https://github.com/rancher/dashboard/issues/7842

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Remove duplication in _select.scss

* Fix select heights in ContainerLogs, ContainerShell, ApplicationLogs and ApplicationShell components

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-01-12 23:01:07 +00: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
Richard Cox 2a779a8873
Merge pull request #7797 from richard-cox/improve-ns-filter
Improve performance of NamespaceFilter when there are thousands of entries
2023-01-10 16:49:46 +00:00
Nancy Butler d4a9bef75c move stuff again 2023-01-09 10:48:42 -07:00
Nancy Butler 53774ce38c move harvester-mgr stuff 2023-01-09 10:48:42 -07:00
Francesco Torchia d2de096f14
xterm, align theme properties to version 5.x
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-01-03 17:12:42 +01:00
Richard Cox a39e40c2c1 Improve performance of NamespaceFilter when there are thousands of entries
- When there are thousands of entries certain actions (drop down opened, selection changed, etc) take a long time to complete (upwards of 5 seconds)
- This is caused by churn of the filtered and options computed properties causing multiple renders for each action.
- To break this multiple-render per cycle behaviour detatch `filtered` from the value used in `v-for`.
2022-12-22 11:20:20 +00:00
Nancy 106fd7e789
Fix dropdown styles for custom link and primary colors (#6898)
* update dropdown styles for custom link and primary colors

* use link css var instead of link scss var for dropdown highlighted opts
2022-12-19 10:29:10 -07:00
Francesco Torchia 411c8b49e2
Merge pull request #7665 from torchiaf/feature/7048
Namespaces filter, select on keydown Enter
2022-12-19 11:27:52 +01:00
Francesco Torchia ae27f57eeb
Terminal, restrict drag&drop to tabs bar
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-16 17:10:27 +01:00
Francesco Torchia 9a093baa6c
Merge pull request #7666 from torchiaf/fix/7148
fix terminal crash
2022-12-14 11:10:49 +01:00
Francesco Torchia db363c900a
Merge pull request #7667 from torchiaf/fix/4733-2
Window Manager, fix bottom actions layout
2022-12-14 11:03:39 +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
Francesco Torchia 53f9282841
Window Manager, fix bottom actions layout
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-09 16:24:58 +01:00
Francesco Torchia 4b12313b0d
fix terminal crash
- Bump version, xterm.js
- adapt new version to the Dashboard

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-09 11:48:59 +01:00
Francesco Torchia 7043d260cc
Namespaces filter, select on keydown Enter
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2022-12-09 10:07:30 +01: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
Richard Cox c78a5c451d
Merge pull request #7329 from richard-cox/ns-filter
Enforce Namespace Filter
2022-12-05 13:16:05 +00:00
Nancy 215d2466ed
Improve performance of pod logs (#7511)
* use a virtual list to render fewer log lines; restrict total number of lines kept when user has selected a 'show the last n lines' opt
2022-12-02 15:27:59 -07:00
Richard Cox 6b35b54bf4 Changes following review
- Add info icon to ns filter when in singleton mode
- Fix clear ns filter cross icon size
- Fix keyboard navigation
- Remove empty comment
2022-12-02 17:54:55 +00:00
Richard Cox 762b3e4163 Updates following review
- Tweak settings text
- Use new filter icon
- Tweak "too many" text
- Allow only selecting a single namespace when in 'too many' mode
2022-12-02 12:37:35 +00:00
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