From db60b026e95ab350f8b546d9131563632a106f9e Mon Sep 17 00:00:00 2001 From: Norman Niati Date: Wed, 10 Jun 2026 12:50:12 +0200 Subject: [PATCH 1/5] feat(home): convert dashboard view to v-cards with mini-table and tool color --- ui/src/i18n/en.js | 2 + ui/src/i18n/fr.js | 2 + ui/src/views/HomeView.vue | 294 +++++++++++++++++++++++++++++++------- 3 files changed, 244 insertions(+), 54 deletions(-) diff --git a/ui/src/i18n/en.js b/ui/src/i18n/en.js index 5926150..7200cc0 100644 --- a/ui/src/i18n/en.js +++ b/ui/src/i18n/en.js @@ -296,6 +296,8 @@ export default { 'wizard.rule.nodeId': 'Use the colon-separated form, e.g. service:scm:git:internal', // 2026 redesign: project/system/api view keys + 'common.collapseAll': "Collapse all", + 'common.expandAll': "Expand all", 'api.collapseAll': "Collapse all", 'api.deprecated': "deprecated", 'api.downloadOpenapi': "Download OpenAPI", diff --git a/ui/src/i18n/fr.js b/ui/src/i18n/fr.js index 8336550..e729290 100644 --- a/ui/src/i18n/fr.js +++ b/ui/src/i18n/fr.js @@ -295,6 +295,8 @@ export default { 'wizard.rule.nodeId': 'Utilisez la forme séparée par des deux-points, ex. service:scm:git:internal', // 2026 redesign: project/system/api view keys + 'common.collapseAll': "Tout réduire", + 'common.expandAll': "Tout déplier", 'api.collapseAll': "Tout replier", 'api.deprecated': "déprécié", 'api.downloadOpenapi': "Télécharger OpenAPI", diff --git a/ui/src/views/HomeView.vue b/ui/src/views/HomeView.vue index 472fb7a..37c57a3 100644 --- a/ui/src/views/HomeView.vue +++ b/ui/src/views/HomeView.vue @@ -1,13 +1,15 @@ @@ -30,6 +32,10 @@
+ {{ filtered.length }} outils · {{ activeSum.toLocaleString('fr-FR') }} souscriptions{{ isDemo ? ' actives' : '' }} @@ -37,27 +43,46 @@
-
+
- - - + + + -
{{ t.name }}
{{ t.kind }}
-
{{ t.total.toLocaleString('fr-FR') }} / {{ t.active }}
+
{{ tool.name }}
{{ tool.kind }}
+ {{ Math.round(tool.health * 100) }}% +
{{ tool.total.toLocaleString('fr-FR') }} / {{ tool.active }}
+
-
-
- - {{ r.n }} - {{ p }} + +
+ +
+
+ + {{ t('common.name') }} + {{ t('common.status') }} +
+
+ + {{ r.label }} + + {{ p }} + +
+
{{ t('common.noData') }}
+
+{{ tool.extra }} {{ t('project.detail.more') }}
+
+
+ mdi-folder-multiple-outline{{ tool.rows.length }} +
-
-
- {{ isDemo ? `Voir les ${t.total.toLocaleString('fr-FR')} →` : 'Ouvrir →' }} - {{ Math.round(t.health * 100) }}% - mdi-folder-multiple-outline{{ t.rows.length }} -
+
@@ -83,12 +108,16 @@