* port of wip
* asdassad
* Update vai / sql cache based api filtering to match latest changes
* Revert "Pin Rancher version to v2.11-2053ce644a31cd8053d1f58e2487154b0b8513b6-head for e2e tests"
This reverts commit 60f62107e7.
* sdfdsf
* dsfdsf
* asdsad
* fix dynamic hide local cluster changes
* improvements
* aaaa
* Working through todo's/tidys
* Remove debug / tidy up
* resolving todos
* remove some debug
* Tidying up #1
* Make manual refresh and auto-refresh visible on perf setting, disabled by default
* Remove dev stuff
* Fix some e2e tests
* Updated comment
* Wire in resource.changes debounce, clearer label for feature `listAutoRefreshToggle`
* Temporarily disable all watches when vai enable
- remove once rancher/rancher#40773 is resolved, which will then finally fix#12734
* Revert "Temporarily disable all watches when vai enable"
This reverts commit c708f468e4.
* Fix nextResourceVersion
- Ensure it handles resource revisions (in both LIST or individual resources) that are strings
- add unit tests
* Update after review
* add role 'none' to hr elements in TopLevelMenu
* add missing role and label to SideNav
* add aria-label to show/hide button in the Password component
* add role 'none' to hr elements
* add missing alt to user avatar image
This change removes warnings that were printed to the console when hovering over primary navigation items. The `popperOptions` props was removed from floating-vue[^1] and hasn't done anything since we migrated to Vue3.
[^1]: https://floating-vue.starpad.dev/migration/migration-from-v3#removed-props
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
* 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
- 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
* 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
* 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
Performing this change so the vue3 migration script can modify all @input, @v-model of components without changing plain elements. This will reduce the number of vue3 compiler errors.
* 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
* 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>
* fix issue with double active main menu items in app bar + add e2e test to prevent regression
* 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
---------
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
* fixes i18n and small UX
* new layout design for the modal
* enables edit badge from cluster explorer
---------
Signed-off-by: scures <scurescu@suse.com>
* 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
* add logic to handle key combos + add route change on key combo press
* fix issue with tooltip position + add correct icon for when key combo pressed + added all logic to make key combo capture and route change work
* final adjustments + bug fix with width of text in side nav which caused horizontal scroll
* add e2e test
* finish key combo logic + finish e2e tests
* fix icon in dark mode
---------
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
* 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>
* resource edit AS yaml
* fix cruresource (yaml from form)
- lazy load the schemaDefinitions when needed, avoids sync all to createYaml before we have an async chance to fetch schemaDefinitions
* Fix questions
- there are only four places we use questions, none of which use schema, this is just to be safe
* cluster scan, plugins/fieldsForDriver, defaultFor, validationErrors
* pathExistsInSchema
- used to optionally show conditions tab/list in resource detail view
- logs of things in ingress list/edit
* createPopulated / defaultFor
defaultFor requires resourceFields, it's only used by createPopulated in one place to support machine configs without components
* wip
* WIP MONITORING.SPOOFED
- these aren't spoofed types, but secondary schemas
- testing fix blocked, primary schema's have resourceFields
* Move steve specific (resourceField) code to steve models
- create models for steve schemas and apply to cluster and management stores
- move resoureField based validationto steve model
- move pathExistsInSchema to steve store getter
- don't fetch schemaDefinitions on start up when saving prefs (not needed and blocking)
* comments / improvements
* (untested) refactoring
* Fix alertmanager definitions, add retry definition fetch
* Fix pathExistsInSchema for path length > 2
* Fix questions that accept schemas
- tested by adding Questions to random page and the node schema
* Fix to saving configmap part 1
- the save works but doesn't show data. the yaml is the same as before. debug info added
* Validation by resourceFields is a norman specific thing, so make it such
* small refactor
* Tidying up
* Remove rebase junk
* fix linting and unit tests
* fix unit tests
* fix linting from fix for test....
* Tidying up, fix alertmanagerconfig
* Remove unit test todos
* add unit tests for resource fields
* sdssdf
* Add unit tests for pathExistsInSchema
* JS --> TS
* Store schemas in local singleton cache to avoid hitting store
* fix minor changes from review
* cruresource changes following review
- improvement - remove spurious canDiff
- createResourceYaml - pass in resource to use instead of calc in code
* WIP changes to parseType
* Fix generic cloud credential and node driver forms
* handle missing reactivity given schema definitions not in store
* fix and add unit tests for `parseType`
* Fix create-yaml test
* Changes following review
- improved comments
- SchemaDefinitionCache is now per store (and is reset as such)
- typeRef now uses parseType
* Fix dep loop by moving route based helps in auth out to utils file
* fix unit tests
* Changes following review
* 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>
* add method to add class to highlight main menu items based on current route + make fleet routes use 'blank' cluster
* update e2e tests to check for active class on main nav menu in strategic specs that cover the main nav
* fix merge conflicts
* fix lint issue
* move higlight check to burguer menu po + remove duplicate condition check
* address pr comments
---------
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
* 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
```
`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/