Commit Graph

620 Commits

Author SHA1 Message Date
Francesco Torchia 74d18e776f
Fleex fix dashboard cards focus trap
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:13 +02:00
Francesco Torchia 85dfc423d1
Fleet remove HelmOps enabling from dashboard
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:12 +02:00
Francesco Torchia c9216b3e70
Fleet dashboard add create btn, add type filters in table mode
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:10 +02:00
Francesco Torchia 6b1a208152
Use ItemCard in Fleet Dashboard
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:09 +02:00
Francesco Torchia 155ca36614
Fleet dashboard code refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:06 +02:00
Francesco Torchia b640fcea90
Fleet group dashboard states to improve performances
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:05 +02:00
Francesco Torchia 9e637184a3
Fix unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:04 +02:00
Francesco Torchia f0fd555c45
Fleet add showWorkspaceSwitcher store action and wire it in dashboard page to hide the selector
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:04 +02:00
Francesco Torchia 80722ae045
Fleet dashboard css revist
- add secondary label class
- fix borders
- fix charts style and tooltips
- fix errors overflows and add tooltips to display errors
- fix cards grid
- fix badge colors

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:03 +02:00
Francesco Torchia 14de949017
Fleet add dashboard cards - show less button
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:01 +02:00
Francesco Torchia 60f1cf5d35
Fleet fix dashboard unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:01 +02:00
Francesco Torchia de5599e5a3
Fleet fix models and shell package.json
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:22:00 +02:00
Francesco Torchia c0cef992aa
Fleet dashboard state utils refactoring 2025-06-10 18:21:59 +02:00
Francesco Torchia 93dd27386c
Presets switch from cookies to local storage 2025-06-10 18:21:58 +02:00
Francesco Torchia 7d7cf98e4c
Fleet implement cards load moore
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:57 +02:00
Francesco Torchia 6617ee5e37
Fleet dashboard Presets; presents mixins
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:57 +02:00
Francesco Torchia d65e0f5969
Fleet dashboard improve layout
- add table view
- move mode-view button on top
- merge gitrepos and helm charts
- fix charts style
- clickable charts
- add cluster charts

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:56 +02:00
Francesco Torchia 701ea98a2e
Fleet fix dashboard css
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:55 +02:00
Francesco Torchia 59e7e98d02
Fleet dashboard unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:54 +02:00
Francesco Torchia 20782572a9
Implement Fleet dashboard a11y and SlideInPanel focus-trap
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:53 +02:00
Francesco Torchia 272a94903c
Fleet dashboard e2e tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:52 +02:00
Francesco Torchia 9ca39ba11b
Fleet fix dashboard resources states
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:52 +02:00
Francesco Torchia 7653f1b42d
Fleet fix slideInOpen raise condition + minor fixes
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:50 +02:00
Francesco Torchia 78407de932
Fleet fix various css in dashboard components
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:48 +02:00
Francesco Torchia 8717b9caf5
Remove vue-chart-3
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:48 +02:00
Francesco Torchia 6c8ba4b8e8
Fleet implement Dashboard SlideInPanel
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:47 +02:00
Francesco Torchia 76dc282a75
Fleet implement Dashboard Resource Card
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:46 +02:00
Francesco Torchia 69e6030de0
Fleet implement Dashboard Resource Panel and Empty component
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:45 +02:00
Francesco Torchia ff3afa1df4
Fleet Implement Dashboard main panel
- Add HelmOps model
- Implment dashboard functionalities
- Change workspace when navigating to GitRepo details page

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:44 +02:00
momesgin 93d8290fae
Item Card (#14330)
* app card component

* cover upgradable and installed statuses

* support tags

* comment out handle clicks

* add matching chart logic

* add unit tests

* add unit tests for chart model

* fix e2e tests

* fix e2e test

* add secondary text link in css

* change AppCard to a generic ItemCard

* continue making itemcard more generic

* fix reference issue

* title slot + variant styling

* code cleanup + minor refactor

* new icons

* update icon lib + minor refactor and styling

* unit tests

* more unit tests for chart model

* refactor some slots + finishing touches

* some accessibility updates

* minor styling

* move image div inside slot

* uncomment e2e tests

* fix charts selector

* fix test

* fix statuses alignment

* more robust header styling

* remove PropType

* updated translation key

* update key

* rename

* improve aria labels + minor cleanup

* fix import

* replace deep targetting lazyimage css with style attr

* remove deep for actions + fix small header alignment

* rename component

* remove extra check

* add comments

* add comments to model

* use id instead of chartName

* remove todos

* fix matching app logic not including the latest version

* wrapper styling

* imporve performance

* debounce search query

* update e2e tests

* support actions as prop

* dynamic card layout when variant is not set

* fixed unit tests + lint

* removed unnecessary default props

* fix e2e test

* improve aria label message + remove unnecessary ones

* move component

* fix export component

* Only calc variant twice

* lint

* fix unset debouncedSearchQuery

* add requestAnimationFrame to optimize observer

* update card po and its usage

* rename

* replace .no-card-click with RcItemCardAction component

* Revert ResizeObserver, also cache filteredCharts map result

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
Co-authored-by: Richard Cox <ricox@suse.com>
2025-06-09 08:59:54 -07:00
Neil MacDougall 0ababdda45
Add support for HTML page banners (#14356)
* Add support for HTML banners

* Add support for HTML banners

* Updates test so it runs okay after the text banner tests

* Fix for html tests running after others

* Improve e2e test reliability

* Add aria-labels
2025-05-29 17:15:21 +01:00
Neil MacDougall 17233d82f8
Don't show agent status when API calls fail (#14396)
* Don't show agent status when API calls fail

* Fix lint issues
2025-05-29 13:06:49 +01:00
Richard Cox 980d4b06d9
Integrate new label select filtering (#12919)
* Test / Wire in new label filtering to limited places

- Wired in to
  - Workload detail page - pods and services (broken due to reverse selector)
  - Service Detail - Pods List
  - Service create/edit - Pod selector tab
- Also
  - Fix showPodRestarts in random location
- TODOs
  - Lots of testing / validation required
  - reverse deployment --> service selector (not services given deployment, but for each service contains pods from deployment)
  - workload model usages of pods getter
  - services model usages of pods getter
  - many many more....

* wired in, NOT tested

* improvement

* sdfdsf

* ryrty

* werer

* The great test off begins

* testing and tidying

* testing and tidying

* First good run

* tests, fixes and improvements

* updates

* Tidying up

* Fixes (namespace orientated), tweaks, updates

* Fix unit test

* Fixes for vai off

* Re-write `matching`
- handle namespaces better (given if the resource is namespaced
- better align with legacy matching fn (given specific scenarios that should return none or all)

* Lots of fixes, but mainly vai off --> pods list --> deployment detail --> pods list updates correctly

* fix lint, unit test

* e2e fix

* Fix weird plugins build validation failure (TS error on expected param for JS method with a default)

* Fix workload services

* changes following mini code review

* Only show pods tab if workload type supports it, always show pod resource table if tab is shown
2025-05-28 11:17:25 +01:00
Richard Cox 5e547cab31
Merge pull request #14086 from richard-cox/pagination-with-incremental
Make vai cache FF sole switch for SSP, make `Incremental Loading` and `Manual Refresh` compatible
2025-05-16 10:48:10 +01:00
Phillip Rak c4bf19ec88
Revert custom object merge behavior (#14352)
Revert changes to object merge behavior because the existing behavior is destructive when merging deeply nested user values. For example, a default object contains the value:

```js
a: {
  b: true,
  c: true,
  d: {
    e: true,
    f: {
      g: true,
      e: { },
      f: [ ],
    },
  },
}
```

and a user value modifies `g`, which is stored as:

```js
a: {
  d: {
    f: {
      g: false,
    },
  },
}
```

When the object is merged, deeply nested values will only be taken from the user values, causing properties to be lost. Furthermore, default properties for `f` can also be dropped. This operation is too destructive, and it's better to merge user-supplied properties with defaults than to drastically alter YAML altogether.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-05-14 15:05:54 -07:00
Richard Cox 75c0515a80 Merge remote-tracking branch 'upstream/master' into pagination-with-incremental 2025-05-12 13:58:43 +01:00
Alexandre Alves d269e5fd34
refactor catalog install and uninstall extension modals as a prompt modals (#14192)
* refactor catalog install and uninstall extension modals as a prompt modal + add unit tests

* remove todos

* address merge conflicts + revert change to structuredClone + update unit test
2025-05-08 17:11:11 +01:00
Richard Cox 5b59f0edec Merge remote-tracking branch 'upstream/master' into pagination-with-incremental 2025-05-07 14:44:12 +01:00
Alexandre Alves c9225d0632
refactor add repos and developer load extension modals as a prompt modals (#14191)
* refactor add repos and developer load  extension modals as a prompt modal + add unit tests

* fix broken unit test

* remove unused prop

* remove todos

* code cleanup
2025-05-07 08:39:40 +01:00
Alexandre Alves c37239ca13
refactor install and uninstall extension modals as a prompt modals (#14190)
* refactor install and uninstall extension  modals as a prompt modal + add unit tests

* remove old modals

* remove unused prop

* remove todos
2025-05-06 19:09:41 +01:00
Alexandre Alves fd14379936
Improve Banners settings screen reader output (#14093)
* fix a few components for a11y + add unit tests related to a11y

* fix issues with sr output for banners settings with ColorInput and RadioGroup + update unit tests + fix lint issues

* fix lint issue
2025-05-05 09:25:53 +01:00
Nancy Butler 4aaad3128b label installed extensions experimental or certified only if the installed version of the extension has the right metadata 2025-04-30 13:32:12 -07:00
Nancy Butler eb00164a6d only show experimental or certified labels on extensions if the latest compatible version of the extension has the labels 2025-04-30 08:39:26 -07:00
Phillip Rak 22633ef3eb
Overwrite default chart values with user supplied values (#14200)
* Overwrite default chart values with user supplied values

Changes to merge behavior so that user supplied values overwrite default values when merging. The lodash merge operation merges object properties recursively, meaning that any keys in the left-most object will remain present. The customizer function works to overwrite any duplicate properties present in the user values.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Add ability to handle objects to `mergeWithReplaceArrays`

This renames `mergeWithReplaceArrays` to `mergeWithReplace` and adds functionality for working with objects. I'm opting to extend the existing util after I found that objects are not the only concern In reviewing prior work #14165 that dealt with arrays. Defaulting `replaceObjectProps` to `false` keeps the existing behavior in  place for other usages of `mergeWithReplace`, limiting the chance for regressions in rke2 yaml.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Unit test object merging behavior

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-29 10:15:40 -07:00
Alexandre Alves cb7cb52dbe
add role 'none' to hr elements in TopLevelMenu (#14121)
* 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
2025-04-16 10:23:38 +01:00
Phillip Rak 784a7410ad
Refactor pages so data prop no longer contains init logic (#13672)
* Assign route resources in `created()` hook

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Move init logic go `created()` hook

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Remove constants from data props

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Move init logic to `fetch()` hook

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Move vuex getters into computed props

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-15 10:33:47 -07:00
Mo Mesgin df28603120 footer css variable 2025-04-11 12:31:56 -07:00
Richard Cox 760bf41d3f tweaks 2025-04-10 10:35:34 +01:00
Richard Cox 64590dfc2c Remove SSP performance setting enabled/disabled flag, only use FF 2025-04-10 10:29:15 +01:00
Richard Cox f0638e8aab Initial commit 2025-04-09 17:06:16 +01:00
Neil MacDougall 8d29b65874
Fix chart maintainer link to work with urls and emails (#13912) 2025-03-27 18:11:20 +00:00
Francesco Torchia a679cdf119
Rename Fleet agent resources
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-03-04 11:57:58 +01:00
Francesco Torchia be6eada459
Change Fleet agent StatefulSet to Deployment type
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-03-04 11:57:57 +01:00
Phillip Rak 920243fae9
Merge pull request #13505 from rak-phillip/task/13504-extensions-menu
Replace extension menu with `ActionMenuShell.vue`
2025-02-28 09:07:50 -07:00
Alexandre Alves 3970a9ff63
fix misc issues for a11y (#13519)
* fix misc issues for a11y

* fix prop + fix issue with white area not resizing as whole shell window

* improve aria labels for shell resize
2025-02-28 15:56:18 +00:00
Neil MacDougall e8e806a24d
Never show built-in extensions on the 'installed' tab (#13548) 2025-02-28 15:37:59 +00:00
Phillip Rak a123530d20 Replace extensions menu with ActionMenuShell
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-27 09:18:36 -07:00
Richard Cox 18788f4192 Update settings given SSP isn't on by default
- bring back 'liable to change' notice and add 'not in prod'
- move location down below long term settings
2025-02-27 11:47:52 +00:00
Richard Cox dcea7c6847 Remove advanced settings, neaten up vertical spacing 2025-02-27 09:00:38 +00:00
Richard Cox 896214cef1 Improve wording / layout 2025-02-27 09:00:38 +00:00
Richard Cox 7d154b1ec8 Updates 2025-02-27 09:00:38 +00:00
Richard Cox e8bfb2f580 Fix e2e + lint 2025-02-27 09:00:38 +00:00
Richard Cox ef05aab4f4 Update pagination settings (almost) ready for production
- 'almost' applies to enabling SSP by default
- Previously the ui-performance object contained a required set of resources to apply SSP to
- This isn't workable going forward where the available resources will be updated between versions
- Now the default is to use a set of default resources which can change between versions
- Users can override if they wish
2025-02-27 09:00:38 +00:00
Neil MacDougall 3665e77a1c
Don't show built-in extensions by default (#13469)
* Don't show built-in extensions by default

* Fix e2e tests and add tests for builtin tab

* Address PR feedback

* Address PR e2e test feedback

* Fix lint
2025-02-26 18:06:46 +00:00
Francesco Torchia 753469fe09
Merge pull request #13478 from torchiaf/13477-event-schema
Add Event schema null checks
2025-02-26 15:15:03 +01:00
momesgin 190e377494
Merge pull request #13086 from momesgin/11679-apps-upgrade-restriction
Restrict installed apps upgrade
2025-02-25 10:00:56 -08:00
Neil MacDougall ffe0996790
Fix legacy projects redirect (#13488) 2025-02-24 19:46:12 +00:00
Francesco Torchia 3471b49832
Add Event schema null checks
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:05:17 +01:00
Alexandre Alves 84c234383a
Fix textual descriptions for cluster appearance in multiple places (#13416)
* Fix textual descriptions for cluster appearance in multiple places

* address pr comments

* address pr comments
2025-02-24 09:00:54 +00:00
Mo Mesgin 219636df7e Merge branch 'master' of github.com:rancher/dashboard into 11679-apps-upgrade-restriction 2025-02-19 15:07:18 -08:00
Francesco Torchia 0b764f88f4
Merge pull request #13244 from aruiz14/fleet-resources-rework
Simplify handling of GitRepo status resources
2025-02-17 16:33:55 +01:00
Alexandre Alves e9d17074a5
add missing alt to image elements (#13384) 2025-02-13 11:32:38 +00:00
Mo Mesgin 56db4cab43 Merge branch 'master' of github.com:rancher/dashboard into 11679-apps-upgrade-restriction 2025-02-12 13:30:33 -08:00
Alexandre Alves 0c411e96d3
Keyboard nav for extensions main screen (#13176)
* working on focus trap composable

* working on slide in panel refactor

* add change so that we dont have a change on the component diff

* fix slidein extension details panel key nav

* fine tune cluster badge trigger btn

* finish work on extensions page

* fix lint errors

* address pr comments

* fix problems of propagation

* update return focus for some modals in the extensions main screen

* remove dead code + fix focus selector return for add extensions repo and developer install modals
2025-02-11 10:47:55 +00:00
Neil MacDougall 202b768f67
Change SUSE Collective link (#13298) 2025-02-06 20:32:21 +00:00
Alejandro Ruiz bdc0162307 Stop fetching bundleDeployments 2025-02-06 16:48:00 +01:00
Alejandro Ruiz c793641518 Calculate bundle state counts from bundle statuses 2025-02-06 16:48:00 +01:00
Mo Mesgin 18e7e51614 merge master and resolve conflicts 2025-02-05 09:38:08 -08:00
Francesco Torchia 7e2e0f374b
Replace clusterId with cluster Name in Fleet Graphs links
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-03 16:36:48 +01:00
Francesco Torchia fe3f545319
Merge pull request #12896 from aruiz14/perf-improvements
Improve Fleet performance
2025-01-24 17:48:45 +01:00
Alexandre Alves 3b0418f9f3
fix key nav on charts page (#13139)
* fix key nav on charts page in cluster

* minor fixes to Select
2025-01-24 12:54:55 +00:00
Alexandre Alves 13496483fe
keyboard navigation for cluster badge appearance modal (#13021)
* working on key nav for cluster badge appearance

* color input is now key nav friendly + tooltip works on focus + trying to get focus trap to work properly

* remove console logs + add focus trap to card component with prop control + fix element for config badge button

* fix lint problem

* fix TS errors on pkg build

* remove step of building the skeleton app in the check-plugins-build step, which imo doesnt serve any purpose whatsoever

* add focus-trap as a shell dependency + revert publish script change

* remove focus-trap directive + improve chaining event handler modifiers

* pin focus-trap to 7.6.2 + replace link for button on cluster explorer main page + remove unused ev

* address pr comments
2025-01-24 09:33:00 +00:00
Mo Mesgin 15b7001da5 fix typo 2025-01-23 11:15:44 -08:00
Alejandro Ruiz 2266b02644 Reuse gitRepoCounts 2025-01-23 18:41:02 +01:00
Alejandro Ruiz 69abbf8263 Misc changes 2025-01-23 18:41:02 +01:00
Alejandro Ruiz db7f9b52d6 Use BundleDeployments to calculate Bundles summary 2025-01-23 18:41:02 +01:00
Alejandro Ruiz cfaee91878 Fetch bundles from the Dashboard page in the background 2025-01-23 18:41:02 +01:00
Alejandro Ruiz f687440368 Rework dashboard calculation
Preprocessing counts for every gitrepo to avoid recalculating every time
2025-01-23 18:41:01 +01:00
Mo Mesgin dfc0865a40 check version compatibility when there are multiple matchings + refactor 2025-01-22 17:29:22 -08:00
Mo Mesgin 2e5af0e964 Merge branch 'master' of github.com:rancher/dashboard into 11679-apps-upgrade-restriction 2025-01-19 12:21:24 -08:00
Cody Jackson 91f6dcff24 Adding deprecated messaging to the performance settings page
Fixes #12873
2025-01-15 09:54:30 -07:00
Mo Mesgin 68829b8439 restrict installed apps upgrade 2025-01-13 16:04:42 -08: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
Francesco Torchia 76bffa79c0
Add clickable routes for agents and tooltips for all components
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-16 16:21:57 +01:00
Francesco Torchia 9a0cac6e06
Code refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-13 11:46:37 +01:00
Alexandre Alves 6bc972ad7c
fix issue with display of fleet and cattle agent status on cluster dashboard view with very limited user permissions (#12717) 2024-11-29 15:28:10 +00:00
Alexandre Alves 6facd60a9f
remove all mentions for the restricted admin role (#12708) 2024-11-28 17:57:59 +00:00
Richard Cox 24249f9cc1
Merge pull request #12521 from aruiz14/rework-gitrepo-status-resources
Use BundleDeployment status to calculate GitRepo resources
2024-11-14 15:54:11 +01:00
Francesco Torchia 17a81aaede
Merge pull request #12350 from torchiaf/feature/harvester-shell-integration-3
Harvester shell integration - features
2024-11-14 09:25:05 +01:00
andy.lee f88c7ae5a0
live change example-link color
Signed-off-by: andy.lee <andy.lee@suse.com>
2024-11-13 15:38:37 +01:00
Mo Mesgin 21e2077484 fix fleet dashboard page's scroll bar 2024-11-08 12:20:47 -08:00
Alejandro Ruiz 046eb46009 Use BundleDeployment status to calculate GitRepo resources 2024-11-06 16:31:53 +01:00
Evgeniya Vashkevich 190f486e09
Fixed UnitInput value not updating (#12420) 2024-10-30 14:05:47 +00:00
Alexandre Alves 34c74b8cc9
fix issue banner extensions prime users not being displayed (#12381)
* fix issue banner extensions prime users not being displayed

* add undefined condition

* add code comment

* fix e2e test
2024-10-30 10:20:26 +00:00
momesgin dca3f029fe
Merge pull request #12392 from momesgin/12205-apps-basics-namespace-create-banner
Fix namespace create banner in basics step
2024-10-29 09:01:14 -07:00
Richard Cox df953cd07d
Merge pull request #12375 from richard-cox/fleet-improvements
[2.10] Fleet Improvements
2024-10-29 13:43:06 +01:00
Richard Cox 0aa96329ed
Merge pull request #12317 from richard-cox/helm-app-values
[2.10] Update Helm App Values Approach
2024-10-29 09:51:57 +01:00
Mo Mesgin e84abedb21 fix styling issue with namespace create banner in basics step 2024-10-28 21:50:28 -07:00
Richard Cox 965833d12d Update following review
- avoid 0 showing as `?` - e.g. `0 || ?`
2024-10-28 16:19:56 +00:00
Richard Cox df9c7ad684 Fleet Improvements
- Performance Fix
  - go back to using git repo status cluster ready / desired stats instead of costly clusterResourceStatus (churn can call this a LOT)
  - Improve load time of fleet cluster detail page
- Bug Fix
  - Using targetClustersReady and targetClusters doesn't seem to work in some cases, revert back to previous
- General Fixes
  - Fix weird fleet cluster list column alignment
2024-10-28 14:05:45 +00:00
Richard Cox a61f832a36 Fix issue where socket updates to helm app wiped cached values
- socket updates remove all properties from an object on update, this included `_values`
- switch to more solit / response secrets getter instead

Top notes
- Helm app references secret by owner refs
- helm repo update action supplies helm app update and receives references to helm operationin response
  - This creates a new secret and updates the helm app's secret owner reference
- ui receives socket up to helm app containing new secret owner ref
2024-10-28 12:03:45 +00:00
Francesco Torchia 96668a0ca9
Merge pull request #12252 from torchiaf/12221-architecture-labels
Lowercase architecture labels
2024-10-23 12:32:00 +02:00
Richard Cox cf7ac08522 Changes after review
- force fetch of secrets on visit on install app/chart detail/app detail page
- add somre jsdoc


Note
This shouldn't break extensions UNLESS extension developers have implemented
custom chart install/upgrade processes. Existing extensions like kubewarden
or elemental are fine (they redirect to actual chart install process rather
than have their own)
2024-10-22 16:54:55 +01:00
Richard Cox 55bbc2ddac Helm App Values Change 2024-10-22 10:09:55 +01:00
Nancy adcf0c2cfe
Fix fleet cattle healthcheck (#12288)
* fix cluster dashboard cattle and fleet agent healthchecks when user has limited permissions

* add test for standard uesr cluster dashboard

* clean up commented code

* fix cluster dashboard unit test

* fix cluster dashboard e2e test
2024-10-21 09:01:45 -07:00
Richard Cox 69e1b2608e
Merge pull request #12157 from richard-cox/harv-creds-2.10
[2.10] Show Cloud Credential Expiration information for Harvester Creds, add actions to renew
2024-10-18 18:15:00 +02:00
Nancy 73bff036c5
remove references to window.c (#12281) 2024-10-17 11:03:15 -07:00
Francesco Torchia 8c248f59aa
Lowercase architecture labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-10-16 10:55:37 +02:00
Richard Cox 94c86f4a0c Split out banner text, fix cluster banner text 2024-10-07 10:40:27 +01:00
Richard Cox 96172607b3 Show Cloud Credential Expiration information for Harvester Creds, add actions to renew 2024-10-07 10:40:09 +01:00
Richard Cox aedaca5b11 Add ui-extension-version annotation to dev loaded extensions to ensure it loads 2024-10-02 17:51:29 +01:00
Richard Cox a80c921018 Singleton versions fetcher to reduce changes and fix dup versions request on log in 2024-10-02 12:49:39 +01:00
Alexandre Alves f55eadc734 minor fixes 2024-10-01 12:10:54 +01:00
Jordon Leach 772be295bc
Refactor incompatibility check 2024-09-30 14:23:56 -04:00
Alexandre Alves bc51a79005 apply some fixes for extensions logic in light of Vue3 migration 2024-09-30 18:11:13 +01:00
Alexandre Alves eb426680dd
forward-port PRs 11997 and 12018 (#12046) 2024-09-30 18:10:36 +01:00
Phillip Rak 1b6e64ed09
Merge pull request #12044 from rak-phillip/bugfix/11898-remove-chart-steps
Remove custom chart steps feature
2024-09-26 18:53:47 -07:00
Phillip Rak 4d63a2aaa9 Use `markRaw()` on the dynamic component
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-26 14:23:25 -07:00
Phillip Rak 0d56cf6b2a Remove custom steps from chart install
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-26 14:22:56 -07:00
Alexandre Alves 76147e00e8
remove v-bind of attrs that was wrongfully propagating an outlet class (#11949) 2024-09-25 16:46:32 +01:00
Jordon Leach 31519daa6b
Ensure fetch is not called when navigating backwards (#11986)
* Ensure fetch is not called when navigating backwards
2024-09-25 11:11:28 -04:00
Richard Cox 929f5f6624
Merge pull request #11919 from richard-cox/fix-arraylist-input-height
Fix humongous height of inputs in array list
2024-09-24 12:02:17 +01:00
Nancy 5607114e5d
update all instances of LabeledInput using v-model.number to use v-model:value.number (#11902)
* update all instances of LabeledInput using v-model.number

* add probe http headers unit test

* add hookoption test

* remove codemirror focus change
2024-09-19 14:46:37 -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 7bbcf9c480
Merge pull request #11916 from rak-phillip/bugfix/11910-empty-content
Remove extra `<template>` tags from components
2024-09-17 08:27:18 -07:00
Richard Cox b5729a2194 Fix humungous height of inputs in array list 2024-09-16 15:18:06 +01:00
Phillip Rak b8af4da149 Remove extra `<template>` tags from components
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-12 15:19:41 -07:00
Phillip Rak 0e0a980f8b Replace `useStore` composable with vuex implementation
The `useStore` composable was implemented for Vue2 because vuex did not provide anything for the composition api. Now that we have migrated to Vue3, we have `useStore` exposed to us via Vuex.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-09-11 09:21:22 -07:00
Nancy 85c5c28c22
Vue3 fix unit tests (#11776)
* remove $set from AKS validators

* fix cruGKE not rendering

* fix most aks unit tests

* fix crueks and eks config unit tests

* fix eks networking and nodegroup unit tests

* fix gke unit tests

* fix consumption gauge test

* fix namespacefilter tests

* fix command and taints unit tests

* fix questions unit tests

* fix hpa and service unit tests

* fix registryconfigs unit tests

* fix job unit tests

* fix longhorn unit tests

* fix addextensionsrepos unit tests

* fix rke2 basics unit tests

* fix container shell unit tests

* fix last aks pool test

* fix mount tests

* fix namespace and pv unit tests

* fix codemirror unit tests

* clean up aks, boolean, namespacefilter unit tests

* fix namespacefilter test

* remove redundant test case
2024-09-10 08:07:21 -07:00
Mo Mesgin de1b543095 fix problematic boolean attributes 2024-09-04 09:47:01 -07:00
Alexandre Alves e9ef8ce7e9
add missing class outlet to outermost element of the page (#11750) 2024-08-29 09:22:34 +01:00
Jordon Leach 3c5e6f8a1c
Remove unnecessary template wrapping extension tabs (#11704)
Enable tests

Replace "Rancher -" in title check
2024-08-27 08:28:37 -04:00
Cody Jackson 8d59cd5914 Skipping all failing unit tests for the Vue3 merge. 2024-08-22 21:12:40 -07:00
Phillip Rak a71857ce7d Unit test updates - partially fixed
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Phillip Rak 0fb02f5b2d Unit test updates
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Cody Jackson 39b5e35ce0 Refactoring tabbed values in chart installation
We had this `hasTabs` api which implicitly allowed a chart install override component to implicitly define tabs instead of just having the component define them explicitly.

This required prop drilling to work and it doesn't appear to work any longer with dynamic components. Since this was only used in two places I removed support for this and simplified the implementation.
2024-08-22 16:09:55 -07:00
Cody Jackson f8029bb51f Fixing databinding where v-model.trim needed to instead be v-model:value.trim 2024-08-22 16:09:55 -07:00
Cody Jackson f8c102643b Fix how we load the values component when installing charts
We may want to investigate changing how we resolve this issue. It seems some interface has changed with dynamic importing.
2024-08-22 16:09:55 -07:00
Cody Jackson 54b0404b32 Fixing data binding for chart text filtering 2024-08-22 16:09:55 -07:00
Cody Jackson b1356af0fe Fixing a handful of errors around vue3 templates and data binding in banners.vue 2024-08-22 16:09:54 -07:00