@seta-labs/nuxt-foundation 0.6.1 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app/apps.ts CHANGED
@@ -4,15 +4,34 @@ import type { IconName } from '../design-system/vue/icons';
4
4
  // `--app-<id>` token and `app-<id>` glyph in the design system, a release.
5
5
  // `app`: a Nuxt UI that mounts the shell. `tool`: an external UI, opened in a
6
6
  // new tab without the shell. URLs are production only: there is no staging and
7
- // the other apps do not run locally.
7
+ // the other apps do not run locally. Third-party UIs go to `foundationTools`.
8
8
  export const foundationApps = [
9
9
  { id: 'agency', name: 'Agency', kind: 'app', url: 'https://agency.setalabs.app' },
10
10
  { id: 'proxy', name: 'Proxy', kind: 'app', url: 'https://proxy.setalabs.app' },
11
11
  { id: 'geo', name: 'Geo', kind: 'app', url: 'https://geo.setalabs.app' },
12
12
  { id: 'immo', name: 'Immo', kind: 'app', url: 'https://immo.setalabs.app' },
13
- { id: 'infra', name: 'Infra', kind: 'tool', url: 'https://argocd.setalabs.app' },
13
+ // The ops console of the cluster (repo seta-ops), on the design system's
14
+ // `infra` tile.
15
+ { id: 'infra', name: 'Ops', kind: 'app', url: 'https://ops.setalabs.app' },
14
16
  ] as const satisfies readonly FoundationAppEntry[];
15
17
 
18
+ // External tools of the whole suite, listed under the apps in the launcher and
19
+ // always opened in a new tab: they are not Seta apps, so no signature colour,
20
+ // only a service icon.
21
+ export const foundationTools = [
22
+ { id: 'argocd', name: 'Argo CD', icon: 'automazione', url: 'https://argocd.setalabs.app' },
23
+ { id: 'rancher', name: 'Rancher', icon: 'impostazioni', url: 'https://rancher.setalabs.app' },
24
+ { id: 'swagger', name: 'Swagger', icon: 'documento', url: 'https://swagger.setalabs.app' },
25
+ { id: 'grafana', name: 'Grafana', icon: 'crescita', url: 'https://setalabs.grafana.net' },
26
+ ] as const satisfies readonly FoundationTool[];
27
+
28
+ export interface FoundationTool {
29
+ id: string;
30
+ name: string;
31
+ icon: IconName;
32
+ url: string;
33
+ }
34
+
16
35
  export type FoundationAppKind = 'app' | 'tool';
17
36
 
18
37
  export interface FoundationAppEntry {
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { foundationApps, type FoundationApp } from '../apps';
2
+ import { foundationApps, foundationTools, type FoundationApp } from '../apps';
3
3
 
4
4
  const current = useFoundationApp();
5
5
  const trigger = ref<HTMLElement | null>(null);
@@ -8,7 +8,6 @@ const { open, toggle } = usePopover(trigger, panel);
8
8
 
9
9
  // The current app links to its own root, so the launcher works locally too.
10
10
  const href = (app: FoundationApp): string => (app.id === current.value?.id ? '/' : app.url);
11
- const isTool = (app: FoundationApp): boolean => app.kind === 'tool';
12
11
  </script>
13
12
 
14
13
  <template>
@@ -43,13 +42,29 @@ const isTool = (app: FoundationApp): boolean => app.kind === 'tool';
43
42
  class="sf-launcher__app"
44
43
  :href="href(app)"
45
44
  :aria-current="app.id === current?.id ? 'page' : undefined"
46
- :target="isTool(app) ? '_blank' : undefined"
47
- :rel="isTool(app) ? 'noopener' : undefined"
48
45
  >
49
46
  <SfTessera :app="app.id" />
50
47
  {{ app.name }}
51
48
  </a>
52
49
  </div>
50
+ <div class="sf-targa__riga">
51
+ <b>Strumenti</b><span class="sf-targa__filetto" />
52
+ <span>{{ String(foundationTools.length).padStart(2, '0') }}</span>
53
+ </div>
54
+ <div class="sf-launcher__strumenti">
55
+ <a
56
+ v-for="tool in foundationTools"
57
+ :key="tool.id"
58
+ class="sf-launcher__strumento"
59
+ :href="tool.url"
60
+ target="_blank"
61
+ rel="noopener"
62
+ >
63
+ <SfIcona :name="tool.icon" />
64
+ {{ tool.name }}
65
+ <SfIcona name="freccia" :size="16" class="sf-launcher__esterno" />
66
+ </a>
67
+ </div>
53
68
  </div>
54
69
  </div>
55
70
  </template>
@@ -1,9 +1,10 @@
1
1
  # Launcher
2
2
 
3
- Il pannello che si apre dal pulsante launcher: la griglia delle app della suite.
3
+ Il pannello che si apre dal pulsante launcher: la griglia delle app della suite e, sotto, gli strumenti esterni.
4
4
 
5
5
  - La shell lo genera dal registro delle app (id, nome, tessera, URL per ambiente, ordine): aggiungere un'app = aggiungere una voce al registro.
6
6
  - Griglia 3 colonne di `sf-launcher__app` (tessera 56 + nome). L'app corrente ha `aria-current="page"`.
7
+ - Sotto la griglia, il blocco Strumenti (Argo CD, Rancher, Swagger, Grafana): interfacce esterne alla suite, dal loro registro (nome, icona di servizio, URL). Due colonne di `sf-launcher__strumento` (icona + nome + freccia `sf-launcher__esterno`), nessuna tessera né colore di firma; si aprono sempre in una nuova scheda.
7
8
  - Con meno di 10 app niente categorie; da 10 in su, titoli di sezione con lo stile di `sf-menu__titolo`.
8
9
  - È l'unico componente, con Dialog e Toast, che usa `ombra-sovrapposto`.
9
10
  - Si apre in `d-ampio` con `e-entrata`, si chiude in `d-rapido` con `e-uscita`; Esc lo chiude e riporta il focus sul pulsante.
@@ -1,4 +1,4 @@
1
- <!-- @dsCard group="Shell" height=330 subtitle="Pannello delle app" -->
1
+ <!-- @dsCard group="Shell" height=470 subtitle="Pannello delle app" -->
2
2
  <!doctype html>
3
3
  <html lang="it">
4
4
  <head><meta charset="utf-8"><title>Launcher</title>
@@ -6,7 +6,7 @@
6
6
  </head>
7
7
  <body>
8
8
  <div class="sf pv">
9
- <div class="sf-launcher" role="dialog" aria-label="App Seta Foundation"><div class="sf-targa__riga"><b>App</b><span>Seta Foundation</span><span class="sf-targa__filetto"></span><span>06</span></div><div class="sf-launcher__griglia"><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--agency"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="5" width="18" height="14"/><path d="M3 9h18"/><circle cx="12" cy="14" r="3"/><path d="M9 14h6"/></svg></span>Agency</a><a class="sf-launcher__app" href="#" aria-current="page"><span class="sf-tessera sf-tessera--proxy"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h6M15 12h6M12 3v6M12 15v6"/><path d="m18 9 3 3-3 3"/><rect x="9" y="9" width="6" height="6"/></svg></span>Proxy</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--geo"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21c-3.5-4-6-7.3-6-10.5a6 6 0 0 1 12 0C18 13.7 15.5 17 12 21z"/><rect x="10.5" y="9" width="3" height="3"/></svg></span>Geo</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--immo"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7V3h4M17 3h4v4M21 17v4h-4M7 21H3v-4"/><path d="M7 12.5 12 8l5 4.5"/><path d="M8.5 11.2V17h7v-5.8"/></svg></span>Immo</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--spid"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="6" width="18" height="12"/><circle cx="8.5" cy="11" r="2"/><path d="M5.5 16c.6-1.5 1.7-2.2 3-2.2s2.4.7 3 2.2"/><path d="M14 10h4M14 13h4"/></svg></span>SPID</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--infra"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="16" height="6"/><rect x="4" y="14" width="16" height="6"/><path d="M7 7h2M7 17h2M15 7h2M15 17h2M12 10v4"/></svg></span>Infra</a></div><div class="sf-launcher__piede"><a class="sf-btn sf-btn--testo sf-btn--compatto" href="#">Tutte le app <svg class="sf-icona sf-icona--16" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-btn sf-btn--testo sf-btn--compatto" href="#" style="color:var(--muted)">Stato servizi</a></div></div>
9
+ <div class="sf-launcher" role="dialog" aria-label="App Seta Foundation"><div class="sf-targa__riga"><b>App</b><span>Seta Foundation</span><span class="sf-targa__filetto"></span><span>05</span></div><div class="sf-launcher__griglia"><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--agency"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="5" width="18" height="14"/><path d="M3 9h18"/><circle cx="12" cy="14" r="3"/><path d="M9 14h6"/></svg></span>Agency</a><a class="sf-launcher__app" href="#" aria-current="page"><span class="sf-tessera sf-tessera--proxy"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h6M15 12h6M12 3v6M12 15v6"/><path d="m18 9 3 3-3 3"/><rect x="9" y="9" width="6" height="6"/></svg></span>Proxy</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--geo"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21c-3.5-4-6-7.3-6-10.5a6 6 0 0 1 12 0C18 13.7 15.5 17 12 21z"/><rect x="10.5" y="9" width="3" height="3"/></svg></span>Geo</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--immo"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 7V3h4M17 3h4v4M21 17v4h-4M7 21H3v-4"/><path d="M7 12.5 12 8l5 4.5"/><path d="M8.5 11.2V17h7v-5.8"/></svg></span>Immo</a><a class="sf-launcher__app" href="#"><span class="sf-tessera sf-tessera--spid"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="6" width="18" height="12"/><circle cx="8.5" cy="11" r="2"/><path d="M5.5 16c.6-1.5 1.7-2.2 3-2.2s2.4.7 3 2.2"/><path d="M14 10h4M14 13h4"/></svg></span>SPID</a></div><div class="sf-targa__riga"><b>Strumenti</b><span class="sf-targa__filetto"></span><span>04</span></div><div class="sf-launcher__strumenti"><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M4.5 12A7.5 7.5 0 0 1 12 4.5h5"/><path d="M14 2.5 16.5 4.5 14 6.5"/><path d="M19.5 12A7.5 7.5 0 0 1 12 19.5H7"/><path d="M10 21.5 7.5 19.5 10 17.5"/><rect x="10.5" y="10.5" width="3" height="3"/></svg>Argo CD<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8"/><rect x="14" y="5" width="4" height="4"/><rect x="8" y="15" width="4" height="4"/></svg>Rancher<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3h8l4 4v14H6z"/><path d="M14 3v4h4"/><path d="M9 12h6M9 15h6M9 18h3"/></svg>Swagger<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-launcher__strumento" href="#"><svg class="sf-icona" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 4v16h16"/><path d="M4 17h2M4 13h2M4 9h2M8 20v-2M12 20v-2M16 20v-2"/><path d="M7 16l4-4 3 3 6-6"/><path d="M20 9V6h-3"/></svg>Grafana<svg class="sf-icona sf-icona--16 sf-launcher__esterno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a></div><div class="sf-launcher__piede"><a class="sf-btn sf-btn--testo sf-btn--compatto" href="#">Tutte le app <svg class="sf-icona sf-icona--16" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12h16"/><path d="m14 7 5 5-5 5"/><path d="M3 9v6"/></svg></a><a class="sf-btn sf-btn--testo sf-btn--compatto" href="#" style="color:var(--muted)">Stato servizi</a></div></div>
10
10
  </div>
11
11
  </body>
12
12
  </html>
@@ -181,6 +181,10 @@
181
181
  .sf-launcher__app:hover { background: var(--surface-2); }
182
182
  .sf-launcher__app[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
183
183
  .sf-launcher__piede { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
184
+ .sf-launcher__strumenti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
185
+ .sf-launcher__strumento { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
186
+ .sf-launcher__strumento:hover { color: var(--fg); background: var(--surface-2); }
187
+ .sf-launcher__esterno { margin-left: auto; transform: rotate(-45deg); opacity: 0.6; }
184
188
 
185
189
  .sf-menu { width: var(--shell-menu); display: flex; flex-direction: column; gap: 20px; padding: 16px 12px; background: var(--bg); border-right: 1px solid var(--hud-tenue); }
186
190
  .sf-menu__gruppo { display: flex; flex-direction: column; gap: 2px; }
@@ -355,10 +355,10 @@
355
355
  "Icone"
356
356
  ],
357
357
  "lastChange": {
358
- "at": "2026-09-26T16:30:00Z",
358
+ "at": "2026-09-26T18:00:00Z",
359
359
  "by": "Andrea Moraglia",
360
360
  "via": "Claude Code",
361
- "note": "Nuova icona di servizio menu (tre tratti orizzontali): apre il menu laterale della shell su mobile."
361
+ "note": "Launcher: blocco Strumenti sotto le app (Argo CD, Rancher, Swagger, Grafana), righe discrete con freccia di link esterno; Infra esce dalle app."
362
362
  },
363
363
  "layout": "files",
364
364
  "libraries": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seta-labs/nuxt-foundation",
3
- "version": "0.6.1",
3
+ "version": "0.7.1",
4
4
  "description": "Seta Foundation: the Nuxt layer every internal Seta panel extends — design system mirror (tokens, sf- components, icons, brand) plus the shared shell (bar, app launcher, side menu, status bar)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "devDependencies": {
38
38
  "@nuxt/eslint": "^1.17.0",
39
39
  "nuxt": "^4.5.2",
40
- "typescript": "^5.9.3",
40
+ "typescript": "^6.0.3",
41
41
  "vitest": "^4.1.9",
42
42
  "vue": "^3.5.43",
43
43
  "vue-router": "^5.2.0",