Commit Graph

12 Commits

Author SHA1 Message Date
Cody Jackson 7847d5cd07 Fix FixedBanner so that we can show the appropriate stylized text also fix multi-line functionality
Fixes https://github.com/rancher/dashboard/issues/11951
2025-03-17 14:41:53 -07:00
Richard Cox b614082ce1
Add server-side pagination to home page cluster list (#11663)
* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* Iteration

Note - prov clusters is broken (only fetches local) due to blocking pr. breals
- notPinned list

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)

* remove comment, backport fix

* test fixes

* E2E: Ensure we wait for cluster entries to exist before clicking on them

* backport fix for local/api filtering

* Remove debug code

* Changes after review

* e2e fixes / debugging

* More e2e fixes

* More e2e fixes

* More e2e fixes

* Fix generic pages that filter on pagination

* Attempt to fix flaky vai test

* Fix after merge from master

* Updates following new indexed files

* Fix lint and test

* Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....

* Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881

* Fix unit tests
2025-01-03 15:34:28 +00:00
Richard Cox daf98a56e1 Merge pull request #12050 from richard-cox/home-page-local-pag-2.9
Improve performance of home page when there are lots of clusters
2024-10-04 15:00:18 +01:00
cnotv 78d70353c5 Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
Neil MacDougall bb02892585
Add support for Individual banner settings (#11200)
* Add support for individual banners

* Fixes

* Add tags to e2e tests

* Update e2e tests

* Revert changed

* Fix lint issues with trailing spaces

* Update e2e tests for login consent banner

* Update test for re-factor

* Fix lint

* Fix e2e banner tests

* Don't run individual banner tests for the standard user

* Ensure after hook runs after the standard tests, not the individual banner tests

* Fix updating existing ui-banners setting
2024-06-12 15:05:11 +01:00
Alexandre Alves 3bbf0cafbc
Local cluster does not appear at the top of the app bar (#11058)
* Update shell/components/nav/TopLevelMenu.vue

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>

* fix lint error with Trailing spaces not allowed in TopLevelMenu + add sneaky fix for cluster and project members side nav item not being highlighted

* make sure local cluster appears always on top of pinned and unpinned cluster lists in main nav menu + add unit tests

---------

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2024-05-22 10:12:35 +01:00
Alexandre Alves 7be2f2e81a
add mgmt cluster description to prov cluster description as fallback in home cluster list and main side nav clusters (#10782)
* add mgmt cluster description to prov cluster description as fallbacks in home cluster list and main side nav clusters

* address pr comments

* add e2e to test description for rke1 cluster in home page

* address pr comments
2024-04-20 10:03:18 +01:00
Phillip Rak 7e703b4c74 Replace `nuxt-link` & `n-link` with `router-link`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-27 14:04:17 -07:00
Alexandre Alves 319a0a0af6
Add cluster description to cluster side menu and main menu (#10487)
* add cluster description to home page cluster list and side menu clusters

* working on tooltip for long descriptions

* add tooltip to description on side menu

* remove console logs

* add tooltip to description on side menu + fine tune tooltip position

* finish tests

* fix e2e

* address test flakiness of repeated use of toggling main nav menu and not waiting for transitions

* address failing e2e tests + add missing array brackets to tests that only had tag as string (were not running)

* fix bug where clicking on home link wouldn't close the main nav + fix e2e

* update home link e2e getter with correct structure

* address #8854

* break long strings to next line

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-03-01 16:39:59 +00:00
Sorin 8052619f61
APP Bar fixes (#10074)
* feat: app-bar fixes
2024-02-05 11:04:29 +01:00
Alexandre Alves a35ebb2c2b
Fix for custom banner header without fontSize breaks top navigation (old obj structure) (#10242)
* support old ui-banner setting structure + update unit test to cover this scenario

* fix lint issue

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-01-24 09:55:28 +00:00
Giuseppe Leo 50aac73712
Automation: No matching clusters msg fix (#9864)
* Remove conditional chaining in template

* Prevent app to break if no setting available

* Prevent to break if no mgmt cluster

* Prevent sidebar to break if no kube cluster

* Prevent breaking if no product available

* Prevent sort utils to break if no value is provided

* Add markup comments

* Replace getter mapping

* Prevent error if missing label for the inspected cluster

* Add tests for sidebar
2023-10-11 11:03:39 +02:00