Commit Graph

101 Commits

Author SHA1 Message Date
Shavindra 078317f022
Fleet gitrepo E2E (#9534)
* Fleet gitrepo E2E
* Update workspace switcher spec for fleet dashboard.
2023-08-23 11:18:48 +01:00
Sean-McQ 5c2f28b4dc
this was a older line that got relocated up into the getSocketUrl method (#9462)
* this was a older line that got relocated up into the getSocketUrl method

* Fixes compiler warnings
2023-08-02 11:04:18 -04:00
Alexandre Alves 9462c5a817
fix issue with height on containerShell (#9448)
* fix issue with height on containerShell

* fix issue properly

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-07-31 11:46:19 +01:00
Neil MacDougall 02e6e84f41
When execing into a container, try linux and windows commands when we can't determine if the node is windows (#9241)
* When execing into a container, try linux and windows commands when we can't determine if the node is windows

* Fix lint

* Lint: Remove trailing white space

* Use error message rather than last error

* extra failover, caching last working os against pod, errors, tests

* add __mocks__ folders to eslint ignore patterns

* standard user test fix

* removed unnecessary try/catch logic

* Revert "removed unnecessary try/catch logic"

This reverts commit c263131927.

---------

Co-authored-by: Sean <sean.mchugh@suse.com>
2023-07-28 21:28:03 -04:00
wujun 6be0862e82
HARVESTER: fix Visual Bug during the Harvester upgrade (#9050) 2023-07-07 10:52:36 -07:00
Giuseppe Leo 01eeb0548f
Add recommended lint rules globally (#8997)
* Update configuration

* Create default config for eslint

* Restore plugin:vue/recommended

* Add exceptions and overrides

* Correct manually remaining issues

* Adding further picked exceptions groupped up

* Fix or disable specific cases manually and singularly

* Add naming linting exception

* Remove unused variable in component

* Move rules to default

* Autocorrect rancher/components linting issues

* Configure VSCode to use multiple files, to display linting for rancher components

* Disable jest lint hook restriction for string list component

* Autofix
2023-06-23 17:02:55 +02:00
wujun 717a2b2c14
HARVESTER: add bare-metal container and mcm support (#8754)
* HARVESTER: add bare-metal container and mcm support

* Harvester: Fix re-render old route component

* HARVESTER: fix services and hide repositories

* HARVESTER: add svg icon

* HARVESTER: add harvester version in explorer page

* HARVESTER: change openRancherManagerSupport => isRancherInHarvester

* HARVESTER: move method to models type

* HARVESTER: enhancement TopLevelMenu when use embedded rancher

* HARVESTER: polish harvester mode judgment

* HARVESTER: Add namespace resource quota help text

* HARVESTER: remove service filter

* HARVESTER: set harvester-baremetal-container-workload to false

* HARVESTER: fix svg & namespace component

---------

Co-authored-by: n313893254 <n313893254@126.com>
2023-06-15 13:28:08 -07:00
Shavindra c1e3897792
Remove empty selector from prometheus. (#8889)
* Remove empty prometheus selector values from API request.
* Add E2E for Prometheus selector.
2023-06-01 20:13:33 +02:00
Shavindra 527abd91bd
Add pod clone E2E (#9007)
* Add E2E for cloning a pod.
2023-05-31 16:58:52 +02:00
codyrancher 8147edf9df Add the ability to execute a container shell command immediately after the shell connects. 2023-05-25 21:52:29 +03:00
Phillip Rak ade3c9f4e7 Replace all instances of `v-tooltip` with `v-clean-tooltip`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-05-18 15:39:14 -07:00
Richard Cox 5feb263fb5 Don't allow selection of `Not in a Project` 2023-05-18 14:28:28 +01:00
Richard Cox aa34bd3e29 Fix churn issue
- Moving the store setting to enable/disable filtering in the store to a function in a computed property caused havoc for churn
- Make this much neater by moving flag to the setup stage for both ns filter
2023-05-18 14:28:28 +01:00
Richard Cox 9fada7f0b6 Remove richards-logger 2023-05-18 14:28:28 +01:00
Richard Cox 6fffc0d36a Fix linting 2023-05-18 14:28:28 +01:00
Richard Cox 12f205b6bd Fix issue where no filter options are shown on refresh 2023-05-18 14:28:28 +01:00
Richard Cox 281fb6672c Simplify forced filtering setting
- Given forced filtering is now not resource dependent have a high level utils function to determine if enabled
- This should have opened up the door to setting a nicer default then ALL_USER, however it's actually initially applied somewhere other than ns filter
- Fixed a bug where the all option [] was valid
2023-05-18 14:28:28 +01:00
Richard Cox 15bc1cd036 Changes following BE update and testing 2023-05-18 14:28:28 +01:00
Richard Cox 7e5ad5de34 Expand enforced namespace filtering to multiple namespaces and projects
> This uses a new endpoint that has yet to merge. See https://github.com/rancher/rancher/issues/40140

WIP
- Contains console.warns (via custom logger, can be disabled)
- Waiting for final BE endpoint changes to merge
- Contains TODOs to resolve on final enpoint changes delivered

Pertinent Points
- Incompatible with incremental loading / manual refresh
  - Harder to get counts (need to sum up from different namespaces)
  - Requires use of new steve pagination
- Enforced NS threshold has been removed
  - The threshold only applies to the primary resource. This has issues when loading a low count primary (daemon sets) which depends on a very high count secondary (pods)
  - Fixing this would involve knowing all secondary resources a list uses, which isn't currently possible (each resource is requested individually, need to know them all first)
- There is no way to subscribe to multiple namespaces (one or all)
  - We mock this in subscribe by only persisting changes to resources from within target namespaces
- Everything should work with Advanced Worker enabled
2023-05-18 14:28:28 +01:00
yonasberhe23 84ff30ac5e
Preference page (#8705)
* performance page spec file

* performance page spec file: fixed linting errors

* modified checkbox and radio-group-input files

* added components to support preference page testing

* added class for clusterrepo resource list component

* preferences page objects file

* user menu page objects

* small change to preferences test

* cr updates for button-group functions

* PreferencePagePo inherit from PagePo updates to manage url etc

* update validation for table rows per page test

* accidentally removed line of code

* update validation for Number of clusters to show

* minor lint fixes

* update validation for time format test

* update validation for date format test

* banner class and lint issues fixed

* dropbox po refactor

* button-group  po refactor

* radiobutton po refactor

* checkbox po refactor

* updated comments in test file

* refactor dropdown pref page tests and listed box functionality folded into labeled-select.po

* ReposListPagePo class added and prefpage tests updated

* refactored ClusterManagerListPagePo to take clusterId as argument and updated spec files

* refactor user-menu.po and tests that use it

* update intercept logic to aliasing individual requests

* update data-testid to use kebab case (value has quotes inside selector)

* removed extra validation (causing flakiness)

* added scrollIntoView to checkVisible function

* consolidated files for ReposListPagePo and updated files which use the class

* made updates to pref page spec file: simplified intercept logic, added ckeckVisible, skip login landing page test, etc.

* fixed lint issues and updated intercept function

* fix waitForGoTo function and readded removed code

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2023-05-09 06:43:01 -07:00
richa a4ef17b981
Fixed focus state for namespace filter (#8306) 2023-04-20 13:27:42 +02:00
Phillip Rak 7cecbc0f62 Replace all instances of `v-html` with `v-clean-html`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-03-22 08:30:15 -07:00
Francesco Torchia e63bf29871
jquery from ButtonDropdown.vue, TopLevelMenu.vue
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-22 10:02:11 +01: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
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