Commit Graph

115 Commits

Author SHA1 Message Date
Sorin 0e4e93a36b
fix: Adds margins to the app-bar when the global banner is enabled (#9768)
* fix: Adds margins to the app-bar when the global banner is enabled

* chore: reuses functionality

* chore: renames fn

* fix: initial feedback

* fix: dynamic height refactor

* chore: removes unused var

* chore: removes unused code
2023-09-28 09:08:07 +01:00
Neil MacDougall c9341a9b8d
Kubectl explain (#9713)
* Initial Example

* Add toggle expand all

* Add panel resize

* Fix close and open after resize

* Fix expand all

* POC: Kubectl explain interface

* Fix some lint issues

* First version of the kubectl explain UI

* Improvements

* Fix lint

* Tidy up Open API data fetch

* Tidy up code for parsing OpenAPI

* Many tidy ups and simplifications

* Add error message if we can't load Open API Data

* Ensure action appears only when there is a resource

* Fix lint issue

* Test e2e

* e2e

* e2e

* USe canary browser

* Use firefox

* Try chrome version

* Auto accept prompt

* Accept

* Last try

* Install Chrome

* Run as root

* Fix paths

* Add quiet flag, fix paths

* Use browser path

* Try debugging port

* Further attempts

* Set path

* Add debug env var

* Try edge

* Use specific version

* Add allow downgrades

* Use Chrome

* Remove WIP

* Adderss PR feedback

* Fix for no cluster

* Address PR feedback

* Fix lint issue

* Fix position with banners enabled. Restrict products for which this is shown

* Fix lint issue

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-09-27 22:01:24 +01:00
richa 4a2f55c664
Fixed navigation state (#9716) 2023-09-25 09:58:23 +02:00
richa b25c24baeb
Fixed header highlight issue when not expanded (#9710) 2023-09-15 13:39:57 +02:00
richa 1aa51c717d
No matching clusters msg fix (#9705)
* Fixed No matching clusters message condition

* Fix category line condition
2023-09-15 09:15:32 +02:00
Richard Cox 810369e741
Merge pull request #9681 from richard-cox/fix-preventOverflow-warn-spam
Fix issue where popperjs spammed console warnings
2023-09-14 11:14:57 +01:00
Richard Cox 6dbee8dab4 Fix the header icon alignment in Standalone mode 2023-09-13 15:44:25 +01:00
richa d1e8740548
Fix app bar overlaps issue (#9685)
* Fixed app bar overlaps issue and active group highlight bug in firefox

* Fix group highlight for Cluster Management and other section

* Fixed overlap issues in home and other pages

* Fixed lint and revert test changes

* Added getter for showTopLevelMenu

* Added a showTopLevelMenu getter

* Fixed lint
2023-09-13 15:46:33 +02:00
richa 2ffe8d3170
App bar pin cluster (#9674)
* feat: app-bar init implementation

* fix: users e2e test

* chore: removes extra code

* fix: adds the correct width for the app-bar

* fix: addressing feedback

* fix: cleans up max-items preference, layout improvements

* chore: removes extra file

* feedback

* fixes issue with extra padding in standalone

* fix: loading overlay

* fix: spaces

* fix: missing content

* Added pin clusetr list

* Removed commented code

* Fixed sorted list order

* fix: fedback

* removes the 2px top

* fix: brings back the local cluster icon

* fix: adds cluster filter badge & cluster count

* Fix pin cluster test

* Rename pinned-clusters in pref

* Added pin methoded in cluster model

* Added test for unpinning cluster

* Fixed test

* Fixed lint

* Clean up css

* Resolved feedback

* Fixed lint

* Removed local cluster badge test

* Removed model

---------

Co-authored-by: scures <scurescu@suse.com>
2023-09-13 15:45:39 +02:00
Richard Cox f729e001c7 Fix issue where popperjs spammed console warnings
```
`preventOverflow` modifier is required by `hide` modifier in order to work, be sure to include it before `hide`!
```

- Needed `hide` - https://popper.js.org/docs/v2/modifiers/hide/
2023-09-12 11:10:42 +01:00
richa 7e540bac0c
Side nav visual bugs (#9671)
* Fixed spcaing, margin and bg color issue

* Fixed font size of navlinks resource

* Fixed nav left alignments
2023-09-11 15:23:00 +02:00
Sorin bfe8d995c4
Feat/app bar init (#9560)
* feat: app-bar initial implementation (without pinning functionality)
2023-09-08 18:52:47 +02:00
richa b9180782e2
Highlight navigation groups (#9582)
* Added group highlight

* Made active group header bold

* Added active color variable

* Added namespace icon

* Added new spacing, style

* Fixed lint and cluster group highlight issue

* Fixed sub accordion style

* Change icon style

* Fixed icon alignment

* Fixed spacing issue

* Fixed spacing and lint

* Highlight active header when it is close
2023-09-06 13:24:20 +02:00
Shavindra 51b47c2af1
Disable local cluster workspace change (#9552)
* Disable fleet workspace change for local cluster.
* Add LOCAL_CLUSTER constant.
2023-08-31 10:58:46 +02:00
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