Commit Graph

53 Commits

Author SHA1 Message Date
Francesco Torchia 805251727b
Fleet: hide advanced info bannerin view mode and vue3 errors fix
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-27 17:22:53 +01:00
Francesco Torchia 5131092561
Fleet: fix graph zoomFit function in case of root node is null
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-25 16:47:15 +01:00
Francesco Torchia a25b27907c
Fleet: fix createBy user location; fix duplicated bundles and add null checks
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:21 +01:00
Francesco Torchia ac64ba081b
Fix Bundles deployments column format
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 13:19:24 +01:00
Alejandro Ruiz 23e53a99f3 Attempt to fix unit tests 2025-02-07 10:02:07 +01:00
Alejandro Ruiz 2d2809bb65 Fix FleetSummary resource counts in GitRepo detail page 2025-02-07 10:02:06 +01:00
Alejandro Ruiz 41a92158c8 Remove Age from FleetResources table 2025-02-06 16:48:00 +01: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 df1aab576f
Fleet: Add cluster labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-28 12:16:44 +01:00
Alejandro Ruiz e54c936a87 Calculate cluster state within gitrepo without iterating on all clusters 2025-01-23 18:41:01 +01:00
Alejandro Ruiz 04cde0f6fd Use clusterId instead of clusterLabel 2025-01-23 18:41:01 +01:00
Richard Cox 7a4b3d1b57 Fix gitrepo bundle list and bundle list when there's a gitrepo that does not target any clusters 2025-01-16 11:42:35 +00:00
Alejandro Ruiz 046eb46009 Use BundleDeployment status to calculate GitRepo resources 2024-11-06 16:31:53 +01: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
Nancy ab7308ef91
fix fleet summary tooltip styling (#12101) 2024-10-07 09:14:05 -07:00
Mo Mesgin 682a09cae5 replace trigger with triggers 2024-09-11 10:56:45 -07:00
Mo Mesgin 296f1a4cc5 replace old names/props from v-tooltip with new ones from floating-vue 2024-09-10 14:48:52 -07:00
Alexandre Alves 60026587c3 fixing tooltips and metions of tooltips and dropdowns wherever I could find them 2024-08-30 15:49:34 +01:00
Phillip Rak 7874da578f Fix slot syntax
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
cnotv 78d70353c5 Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
Phillip Rak 399696ae73 Upgrade `v-tooltip` to `floating-vue`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:05:37 -07:00
Cody Jackson 9b829c55ea Ran `yarn lint --fix` 2024-08-22 16:05:36 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Cody Jackson 48e0901d1c Fixing the Add Repository button on the fleet cluster detail page
rancher/dashboard#11198
2024-06-27 10:25:28 -07:00
Francesco Torchia 29f83a4d86
]e2e] - Add gitrepo graph check
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-06-17 17:32:59 +02:00
Francesco Torchia ef04423c53
Fix watcher
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-06-14 18:01:46 +02:00
Alexandre Alves 9b811c58ab
Replace Fleet Cluster `Nodes Ready` column (#11041)
* replace nodeInfo with bundleInfo in fleet cluster model + update fleet cluster table to display bundles ready instead of nodes ready

* address pr comments
2024-05-27 09:39:21 +01:00
Neil MacDougall f5431cbbaf
Add i18n string usage checker script (#10805)
* Add i18n string usage checker script

* Fix lint issues

* Add i18n check to GH Action workflow

* Update to node 16

* Update workflow to run script properly

* Allow script to return okay if when there are errors

* Add documentation

* Remove commented code
2024-05-02 20:52:15 +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
Shavindra 2e69430808
Fix fleet cluster state (#10162)
* Display cluster state.

* Display cluster repo status badge.

* Fix typo.

* Fix typo.

* Fix linting.

* Fix linting.

* Removed type from request.

* Reverted change.
2023-12-18 10:52:11 +01:00
Nancy 80762b5d06
Fix gitrepo detail view bundle count (#9867)
* use bundle repoName getter to filter bundles in repo

* fleetsummary unit test
2023-11-27 08:13:48 -08:00
LiuYan 97b137268f
fix(FleetStatus): fix reduce of empty array error (#9985) 2023-11-14 15:32:37 +01:00
Shavindra f9a954a263
#4683 - Add fleet gitrepo resource age per cluster. (#9299)
* Add fleet gitrepo resource age per cluster.
2023-07-20 14:24:20 +02: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
Phillip Rak adcecee78d Update `v-tooltip.bottom` instances
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-05-18 16:02:00 -07:00
Nancy d3cdc48b90
fix config/types import path in fleetintro (#8570) 2023-03-30 08:25:24 -07:00
Nancy 6b15851e63
hide create repo button if user does not have permission to do so (#8500) 2023-03-29 14:13:26 -07: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
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
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00
Alexandre Alves 649d300e83
add query param to url for simple table filtering on SortableTable (#7368)
* add query param to url for simple table filtering on SortableTable

* enable query param for simple filtering for only default and custom single tabled list pages

* enable query param for simple filtering for workloads list + other minor updates

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-11-14 09:31:38 +00:00
Giuseppe Leo d2d4122bc0
Review HTML formatting rules (#6805)
* Prevent ESLint to format generated paths

* Add HTML ESLint Rules

* Format all the Vue HTML templates except Harvester

* Exclude Harvester package from linting HTML, keeping old formatting rules
2022-11-11 17:04:22 +01:00
Alexandre Alves 866f4d8032
Add manual refresh + incremental loading to all list views (#6908)
* removing check for restriction of types on incremental+manual + update masthead to incorportate directly the ResourceLoadingIndicator so that it can used by list views with custom mastheads + move catalog.clusterrepo typedescription to its rightful component and delete custom list view + updating custom list views to use resource-fetch mixin

* continue updating custom list views to use resource-fetch mixin

* finish updating custom list views to use resource-fetch mixin + prevent error on loadAdd mutation where type is not set in store yet + code cleanup

* address PR comments

* update all custom list views to use loading prop on ResourceTable rather than Loading component + use getter to get incremental updates propagated from the store into the table itself + other minor fixes

* revert changes to mutation loadAdd as check is not needed

* revert all changes to shell/list/harvesterhci.io.management.cluster.vue

* revert deletion of clusterrepo due to CI/CD validation of plugin

* add manual + refresh to namespaces list + fix issue where switching between workspaces results in the manual refresh button continually spinning

* move rows and loading flag to resource-fetch and do necessary changes to custom lists to minimize code changes for the future

* Minor fixes
- Match existing loading check in projectnamespace list (had a check for currentCluster, probably not needed but added just in case)
- Fixed masthead loading indicator for management users and features

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2022-10-09 10:37:38 +01:00
Shavindra f4ce24754e
Check status.conditions exists before getting bundle lastUpdateTime (#6818)
* Check status.conditions exists before getting bundle lastUpdateTime - #6771 

* Check property existance when returning lastUpdateTime.

* Fix the conditions for row.status

* Fix status undefined.
2022-09-23 17:37:01 +01:00
Richard Cox 43d338fac2
Harvester Plugin (#6729)
* routing maybe

* remove nested edit views

* harvester custom routes

* fix loading imported dev cluster

* move harvester-manager hci.cluster type out of harvester pkg

* fixes for build-pkg

* fix harvester custom dialogs

* fix harvester pkg routing

* generateDynamicTypeImport hyphenated dirs

rename cloud_credential and machine_config back to cloud-credential and machine-config

* Appease linting

* Fix epinio pkg build
- Includes fixes for some dashboard component references

* Revert "Receiver credential secrets are deleted when secret is set to none"

This reverts commit 836460e2998959bcda0b14a9f6511f248980b7b5.

* Fix plugin modal cancel button in dark mode

* Ensure correct components loaded when a new version of a plugin is loaded
- The route matcher was never updated with new route-->component values
- This was due to `this.router.options.routes` not containing the result of `router.add`
- See https://github.com/vuejs/vue-router/issues/2280

* Revert "Revert "Receiver credential secrets are deleted when secret is set to none""

This reverts commit e524bb3d40ea7adfe35c38ec7870560625965d25.

* fix harvester manager->harvester routing

* rename dialogs

* move harvester-manager files out of harvester pkg

* Revert "remove nested edit views"

This reverts commit e835835943d63e74c50942884fec3706f8703047.

* plugin validators dynamic import - not working

* fix merge conflict

* fix harvester members

* fix conflict

* custom validators

* harvester table formatters

* members routing

* import path fixes

* harvester mutli load

* Port across tweaks made during dynamic plugin work
- harvester plugin can be bundled with the dashboard until dynamic work has been completed
- Nav directly to virt cluster dashboard instead of via /harvester-c-cluster
- Fix missing bottom border on virt cluster list, hide actions (as they're never populated)

* move config/settings and config/harvester-map

fix hci setting custom components

* fix harvester setting import path

* Move over SerialConsole and Novnc, remove harvester.notifications
- These components were so 1-1 with harvester in the end i moved them over
- Also removed the like-for-like generic.notification `harvester.notification` strings

* Remove isSingleVirtualCluster, most of isMultiVirtualCluster

* Fix two nav issues
- harv cluster members --> prefs --> click on-screen back
- dashboard --> prefs --> click on-screen back

Both of these would be better fixed by an incoming change to the default layout (don't show old content before switching page)

* Fix reload of project/namespace page

* Split out project namespace into it's own component (1 or 2)

* Split out project namespace into it's own component (2 or 2)

* use product hideSystemResources opt instead of isVirtual/product===virtual

* fix missing prop in header

* Move FilterLabel and CloudInitType to harv pkg + two other references

* Move Harvester Upgrade components to harv pkg
- Needs a review with Neil regarding generics

* rebase build+load not working

* fix harvester route in authenticated

* Experimental Changes

* Fix merge conflicts

* WIP Fix routing
- includes project/namespace and namespace pages

* Tidying up

* Move harvester core store to plugin, remove harvester code from authenticated flow
- harvester store is a steve store that now lives in the plugin
- harvester `loadVirtual` replaced with a shortened `loadCluster` in it's own store
- Also fix xterm css import

* Fix three routing related bugs
- Fix project/namespace create/edit/cancel/done flows
- Update harvester's loadCluster to better match loadCluster
- Make edit namespace page project resource agnostic

* Build fixes

* Fix create namespace button and other tweaks

* fix two issues with nav out of imported harvester cluster

* Fix alignment of action menu button
- Used in many places
  - all generic table action menus
  - global settings --> settings
  - rke1 cluster detail page machine pool group actions
  - project/namespace list project group actions
  - resource detail page action menu

* Revert changes to app and pkg creators
- This should fix `check-plugins-build` gate
- It does hide the underlying issue, but that won't have been brought in by this PR?

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2022-09-01 08:57:05 -07:00
Neil MacDougall c614af2173
Plugins fixes and check GitHub action (#6370)
* Plugins fixes and check GitHub action

* Update check-plugins.yaml

* Update check-plugins.yaml

* Debug script

* Debug script

* Make sure verdaccio check does not fail script

* Allow errors when checking

* Fixes for CI

* Fix directory cleanup

* Debug

* Add yarn install for in-tree check

* Fix lint issues
2022-07-20 13:07:38 +01:00
Richard Cox 540581436b Revert "Display node IPs in cluster management list view. (#6320)"
This reverts commit aec4949b4f.
2022-07-15 10:15:38 +01:00
Alexandre Alves 94e260b84c
change parsing of statuses for resources on gitrepo details for fleet (#6357)
* change parsing of statuses for resources on gitrepo details for fleet

* add ENUM to status unknown

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2022-07-14 15:51:47 +01:00
Shavindra aec4949b4f
Display node IPs in cluster management list view. (#6320) 2022-07-14 10:40:01 +01:00
Phillip Rak 72b36cb360
Create Rancher Component Library (#5504)
This adds a new project for Rancher Components under `pkg/rancher-components` and replaces components used throughout dashboard with the versions used here. All imports for the following components have been updated:

```
  |- BadgeState.vue
  |- Banner.vue
  |- Card.vue
  |- Form
    |- Checkbox.vue
    |- LabeledInput.vue
    |- LabeledTooltip.vue
    |- RadioButton.vue
    |- RadioGroup.vue
    |- TextAreaAutoGrow.vue
```
2022-05-24 15:09:53 -07:00