Commit Graph

259 Commits

Author SHA1 Message Date
Phillip Rak 13fddf9ee8 Fix issue with displaying user info and associated separator
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 32f630d17e Update e2e tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 3f0ecd2cfd Add aria-label to dropdown menu
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 4798685f8f Remove extra padding around buttons in header
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 3e457f180e Add `btn-sm` class to the button component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 3b24ff9426 Replace user menu in header with RcDropdown component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 8283a8cee8 Rename popper slot to dropdownCollection
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 54f5de9c5f Remove dropdown collection component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 11edbc1787 Move RcDropdown to Rancher Components
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 7fedbda45d Clean up unused imports and console statements
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 21170cab29 Replace action menu with new component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:08 -07:00
Phillip Rak 679cca1c3a [POC] Add an accessible dropdown component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-04 09:43:07 -07:00
Alexandre Alves 51bdc529db
add key nav to sidenav (#13177) 2025-01-24 12:54:37 +00:00
Neil MacDougall 3ff358c401
Show badge color for local cluster (#13077) 2025-01-13 16:30:16 +00:00
Richard Cox f980283813
Add server-side pagination to cluster explorer lists (#11672)
* cluster list now uses resource table

* New PaginatedResourceTable

* WIP

* add context to pag setting

* tidying up

* Add server-side pagination to cluster explorer events and general events list

* Servier-side pagination for catalog apps, cluster repo and operation

* Servier-side pagination for Service --> HPA, inmgress, services

* 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 ???

* fixes after merge. apply PagResTable to node list, vue3 fixes

* - Fix issue where list components containing PaginatedResourceTables would incorrectly fetch all resources anyway
- convert reminaing storage lists

* policy section

* fix async button in manual refresh mode

* fgh

* aaaaa

* 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)

* 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)

* fixes / updates

* testing/tidying

* WIP - Rest of workload lists

* finish off workloads

* tidying up

* fix non-generic list filtering by namespace

* 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

* remove invalid sort/filter type

* Running through new indexed fields

* fix unit tests

* lint fixes

* Fixes after small review

* lint

* Test for check-plugin-gates pkg build from shell

* e2e fixes

* Testing new indexed fields with dev image

* tidyuing up imports in hope to fix ts error in check-plugins gate

* Fix failing check-plugin-gates
- caused by shell/scripts/test-plugins-build.sh importing list/catalog.cattle.io.clusterrepo.vue
- the component had been updated to a TS component
- check-plugin build outputs TS errors for a component file imports
- vs code shows no errors for imported file

* tidying up a smidge

* Many tweaks
- Remove final todo's
  - includes fix for service type clusterip/headless overlap
- Removed ununused ENDPOINT column (note ENDPOINT formatter used in other columns)
- Testing freshly added index fields

* Improve location of new place where componentWillFetch is set

* fix lint, comment updated

* Fix failing e2e tests
- fix cluster dashboard events test
- fix and greatly improve flaky events test
- fix hpa test
- functional fixes
  - fix sorting/filtering events by object type
  - fix hpa columns
2025-01-07 15:13:42 -07:00
Alexandre Alves 8a5cd702a4
fix keyboard nav for app bar (#12958)
* fix keyboard nav for app bar

* remove dones

* minor fixes based on another PR comment

* removed all space key for links + move floating-vue config to plugin definition

* rename tabbing-index to tab-order + add aria-label to main menu
2025-01-07 09:28:29 +00:00
Richard Cox 8dcc72299b Two side nav improvements
- Reduce the flicker of cluster icons when the top level menu component is recreated given a change to the page's layout
- Add finer changes and comments to reduce churn from user / system changes to resources
2025-01-06 13:48:43 +00: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
Neil MacDougall 6fd149c8d2
Fix top-level burger menu keyboard navigation (#12876)
* Fix top-level burger menu keyboard navigation

* Ensure we can differentiate between focus and focus-visited

* Revert change to focus style
2024-12-18 15:34:54 +00:00
Evgeniya Vashkevich 92d77386dc
[FIX] Fixed app icon aligntment for extensions with image icon (#12827) 2024-12-05 11:14:04 -08:00
Phillip Rak 0568efe051 Fix Container Shell unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-02 15:53:11 -07:00
Phillip Rak 0832160a54 Update ContainerShell error messages
This updates the error messages printed to provide clarity by adding:

1. a timestamp and log level to the messages
2. human-readable explanation when `/bin/sh` is missing from a container

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-02 14:54:06 -07:00
Phillip Rak 3099018762 Use `writeln` instead of `write`
This uses `writeln` instead of `write` so that logs can default to printing in the terminal on multiple lines.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-02 14:54:06 -07:00
Evgeniya Vashkevich 907875fbf9
Fixed cluster list in burger menu having unnecessary horizontal scroll (#12591) 2024-11-15 17:09:22 -08:00
Francesco Torchia 705bf22187
Fix imports
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:41 +01:00
Francesco Torchia e71adc7e9b
Fix BrandImage for Harvester product
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:40 +01:00
Francesco Torchia 14cef7e11c
Various fixes
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:40 +01:00
Francesco Torchia eac3deaa4b
Add harvester features
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:36 +01:00
Phillip Rak 479aa652d5 Replace all usages of `v-tooltip` with `v-clean-tooltip`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-11-11 08:59:47 -07:00
Alexandre Alves 55f7f47ad4
fix issue dropdown in ff (#12426) 2024-10-31 08:28:19 +00:00
Alexandre Alves 1ed167d2ab
Support standard user handling SAML SLO feature (#12360)
* fix styling issue for logout link on avatar menu

* adapt saml logout logic to rely on info from public authprovider for SLO feature
2024-10-29 16:33:00 +00:00
Neil MacDougall 1a4db954f3
Remove legacy global configuration (#12346)
* Remove embedded DNS pages under 'Global Configuration'

* Remove the top-level legacy pages

* Fix redirect for the legacy route on refresh

* Fix URl in test - alerts no longer exists anyway
2024-10-27 12:02:25 +00:00
Richard Cox 2c2de26f8c
Merge pull request #12138 from richard-cox/home-page-local-pag-2.10
Improve performance of home page when there are lots of clusters
2024-10-21 14:50:54 +02:00
Francesco Torchia 83d023dac8
Merge pull request #12208 from torchiaf/fix-harvester-4040
Fix nav-headers
2024-10-14 15:49:27 +02:00
Francesco Torchia 99f0dd6af2
Fix nav-headers
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-10-10 15:58:20 +02:00
Phillip Rak 1d58406933 Override popper content in `HeaderPageActionMenu.vue`
This creates a container for popper content so that styles can be easily overridden via deep selectors.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-08 13:55:51 -07:00
Phillip Rak 5d09fa0bcd Reintroduce missing styles to `Header.vue`
21050a3695 migrated styles used by `Header.vue` into 'HeaderPageActionMenu.vue`, when these styles should have remained in `Header.vue`.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-08 13:55:11 -07:00
Giuseppe Leo 5405402875
Correct typo in the tag of the component (#12172) 2024-10-08 21:16:51 +02: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
Phillip Rak e8d6f755c0 Fix style regression in header component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-02 21:02:41 -07:00
Phillip Rak 21050a3695 Create component `PageHeaderActionMenu.vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-02 10:09:39 -07:00
Richard Cox 190dffae21
Merge pull request #11940 from richard-cox/fix-nav-link-icon
Ensure the navlink icon is centrally aligned
2024-10-01 09:22:27 +01:00
Evgeniya Vashkevich c3566e03e0
Vue3: Fixed navigation active style not applied (#12015) 2024-09-27 11:58:42 -07:00
Jordon Leach 8e18f2e18c
ContainerShell window manager fixes (#11973)
* Remove border when terminal window is focused

Remove deep selector from non-scoped style

Migrate vue-resize library to vue3-resize

* Fix codeMirrorRef instance name

* Missing semicolon
2024-09-20 08:42:32 -04:00
Phillip Rak f9d6f31a60
Merge pull request #11966 from rak-phillip/bugfix/11928-focus-filter
Allow the namespace filter to be selected after making selection in the dropdown
2024-09-19 15:05:48 -07:00
Cody Jackson 5052c2a8e8 Enabling `vue/require-explicit-emits` linting rule
https://github.com/rancher/dashboard/issues/11961
2024-09-19 09:58:53 -07:00
Phillip Rak 59bd2095aa Add click handler to focus the Namespace filter
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-18 15:45:13 -07:00
Richard Cox cec77663a5 Ensure the navlink icon is centrally aligned 2024-09-17 17:19:33 +01:00
Mo Mesgin 567a1e4613 lint 2024-09-11 11:51:30 -07:00
Mo Mesgin a8340e46be Merge branch 'master' of github.com:rancher/dashboard into 11763-floating-vue-fixes 2024-09-11 10:56:51 -07:00