@jaimevalasek/aioson 1.4.0 → 1.5.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/CHANGELOG.md +31 -1
- package/LICENSE +661 -21
- package/README.md +3 -1
- package/docs/en/squad-dashboard.md +372 -0
- package/docs/openclaw-bridge.md +308 -0
- package/docs/pt/agentes.md +124 -10
- package/docs/pt/cenarios.md +46 -2
- package/docs/pt/comandos-cli.md +60 -1
- package/docs/pt/inicio-rapido.md +18 -2
- package/docs/pt/squad-dashboard.md +373 -0
- package/docs/testing/genome-2.0-matrix.md +5 -5
- package/docs/testing/genome-2.0-rollout.md +9 -9
- package/package.json +2 -2
- package/src/backup-local.js +74 -0
- package/src/cli.js +98 -0
- package/src/commands/backup-local-cmd.js +25 -0
- package/src/commands/runtime.js +242 -0
- package/src/commands/setup-context.js +7 -2
- package/src/commands/squad-daemon.js +209 -0
- package/src/commands/squad-dashboard.js +39 -0
- package/src/commands/squad-deploy.js +64 -0
- package/src/commands/squad-doctor.js +52 -0
- package/src/commands/squad-mcp.js +270 -0
- package/src/commands/squad-processes.js +56 -0
- package/src/commands/squad-recovery.js +42 -0
- package/src/commands/squad-roi.js +291 -0
- package/src/commands/squad-score.js +250 -0
- package/src/commands/squad-status.js +37 -1
- package/src/commands/squad-validate.js +62 -1
- package/src/commands/squad-webhook.js +160 -0
- package/src/commands/squad-worker.js +191 -0
- package/src/commands/squad-worktrees.js +75 -0
- package/src/commands/web-map.js +70 -0
- package/src/commands/web-scrape.js +71 -0
- package/src/constants.js +8 -0
- package/src/context-writer.js +45 -1
- package/src/i18n/messages/en.js +127 -1
- package/src/i18n/messages/es.js +117 -0
- package/src/i18n/messages/fr.js +117 -0
- package/src/i18n/messages/pt-BR.js +126 -1
- package/src/lib/webhook-server.js +328 -0
- package/src/mcp-connectors/registry.js +602 -0
- package/src/runtime-store.js +259 -2
- package/src/squad/external-session.js +180 -0
- package/src/squad/inter-squad.js +74 -0
- package/src/squad/recovery-context.js +201 -0
- package/src/squad/worktree-manager.js +114 -0
- package/src/squad-daemon.js +490 -0
- package/src/squad-dashboard/api.js +223 -0
- package/src/squad-dashboard/attachment-handler.js +93 -0
- package/src/squad-dashboard/context-monitor.js +157 -0
- package/src/squad-dashboard/execution-logs.js +115 -0
- package/src/squad-dashboard/hunk-review.js +209 -0
- package/src/squad-dashboard/metrics.js +133 -0
- package/src/squad-dashboard/process-monitor.js +125 -0
- package/src/squad-dashboard/renderer.js +858 -0
- package/src/squad-dashboard/server.js +232 -0
- package/src/squad-dashboard/styles.js +525 -0
- package/src/squad-dashboard/token-tracker.js +99 -0
- package/src/web.js +284 -0
- package/src/worker-runner.js +339 -0
- package/template/.aioson/agents/analyst.md +4 -0
- package/template/.aioson/agents/architect.md +4 -0
- package/template/.aioson/agents/dev.md +120 -11
- package/template/.aioson/agents/deyvin.md +8 -0
- package/template/.aioson/agents/neo.md +152 -0
- package/template/.aioson/agents/orache.md +17 -0
- package/template/.aioson/agents/orchestrator.md +26 -0
- package/template/.aioson/agents/product.md +60 -12
- package/template/.aioson/agents/qa.md +1 -0
- package/template/.aioson/agents/setup.md +63 -19
- package/template/.aioson/agents/sheldon.md +603 -0
- package/template/.aioson/agents/squad.md +191 -0
- package/template/.aioson/agents/tester.md +254 -0
- package/template/.aioson/agents/ux-ui.md +12 -0
- package/template/.aioson/config.md +6 -0
- package/template/.aioson/locales/en/agents/analyst.md +8 -0
- package/template/.aioson/locales/en/agents/architect.md +8 -0
- package/template/.aioson/locales/en/agents/dev.md +66 -7
- package/template/.aioson/locales/en/agents/deyvin.md +8 -0
- package/template/.aioson/locales/en/agents/neo.md +8 -0
- package/template/.aioson/locales/en/agents/orchestrator.md +26 -0
- package/template/.aioson/locales/en/agents/qa.md +49 -0
- package/template/.aioson/locales/en/agents/setup.md +2 -1
- package/template/.aioson/locales/en/agents/sheldon.md +340 -0
- package/template/.aioson/locales/en/agents/ux-ui.md +8 -0
- package/template/.aioson/locales/es/agents/analyst.md +8 -0
- package/template/.aioson/locales/es/agents/architect.md +8 -0
- package/template/.aioson/locales/es/agents/dev.md +66 -7
- package/template/.aioson/locales/es/agents/deyvin.md +8 -0
- package/template/.aioson/locales/es/agents/neo.md +48 -0
- package/template/.aioson/locales/es/agents/orchestrator.md +26 -0
- package/template/.aioson/locales/es/agents/qa.md +26 -0
- package/template/.aioson/locales/es/agents/setup.md +2 -1
- package/template/.aioson/locales/es/agents/sheldon.md +192 -0
- package/template/.aioson/locales/es/agents/squad.md +63 -0
- package/template/.aioson/locales/es/agents/ux-ui.md +8 -0
- package/template/.aioson/locales/fr/agents/analyst.md +8 -0
- package/template/.aioson/locales/fr/agents/architect.md +8 -0
- package/template/.aioson/locales/fr/agents/dev.md +66 -7
- package/template/.aioson/locales/fr/agents/deyvin.md +8 -0
- package/template/.aioson/locales/fr/agents/neo.md +48 -0
- package/template/.aioson/locales/fr/agents/orchestrator.md +26 -0
- package/template/.aioson/locales/fr/agents/qa.md +26 -0
- package/template/.aioson/locales/fr/agents/setup.md +2 -1
- package/template/.aioson/locales/fr/agents/sheldon.md +192 -0
- package/template/.aioson/locales/fr/agents/squad.md +63 -0
- package/template/.aioson/locales/fr/agents/ux-ui.md +8 -0
- package/template/.aioson/locales/pt-BR/agents/analyst.md +19 -0
- package/template/.aioson/locales/pt-BR/agents/architect.md +19 -0
- package/template/.aioson/locales/pt-BR/agents/dev.md +75 -12
- package/template/.aioson/locales/pt-BR/agents/deyvin.md +8 -0
- package/template/.aioson/locales/pt-BR/agents/neo.md +147 -0
- package/template/.aioson/locales/pt-BR/agents/orchestrator.md +26 -0
- package/template/.aioson/locales/pt-BR/agents/product.md +8 -3
- package/template/.aioson/locales/pt-BR/agents/qa.md +60 -0
- package/template/.aioson/locales/pt-BR/agents/setup.md +2 -1
- package/template/.aioson/locales/pt-BR/agents/sheldon.md +192 -0
- package/template/.aioson/locales/pt-BR/agents/squad.md +105 -0
- package/template/.aioson/locales/pt-BR/agents/ux-ui.md +8 -0
- package/template/.aioson/schemas/squad-blueprint.schema.json +21 -0
- package/template/.aioson/schemas/squad-manifest.schema.json +178 -1
- package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +205 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -0
- package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +210 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -0
- package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +55 -9
- package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +1 -1
- package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +100 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +43 -9
- package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +40 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +1 -1
- package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +99 -12
- package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +209 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -0
- package/template/.aioson/skills/premium-visual-design/SKILL.md +83 -0
- package/template/.aioson/skills/premium-visual-design/components/agent-badge.md +92 -0
- package/template/.aioson/skills/premium-visual-design/components/dependency-node.md +102 -0
- package/template/.aioson/skills/premium-visual-design/components/mention-autocomplete.md +136 -0
- package/template/.aioson/skills/premium-visual-design/components/notification-center.md +136 -0
- package/template/.aioson/skills/premium-visual-design/components/review-action-bar.md +188 -0
- package/template/.aioson/skills/premium-visual-design/components/team-switcher.md +131 -0
- package/template/.aioson/skills/premium-visual-design/patterns/agent-message-thread.md +198 -0
- package/template/.aioson/skills/premium-visual-design/patterns/notification-panel.md +275 -0
- package/template/.aioson/skills/premium-visual-design/patterns/review-workflow-ui.md +234 -0
- package/template/.aioson/skills/premium-visual-design/patterns/task-dependency-graph.md +147 -0
- package/template/.aioson/skills/premium-visual-design/tokens/status-extended.md +142 -0
- package/template/.aioson/skills/squad/formats/catalog.json +15 -0
- package/template/.aioson/skills/squad/formats/content/blog-post.md +47 -0
- package/template/.aioson/skills/squad/formats/content/newsletter.md +47 -0
- package/template/.aioson/skills/squad/formats/creative/podcast-script.md +43 -0
- package/template/.aioson/skills/squad/formats/creative/video-script.md +41 -0
- package/template/.aioson/skills/squad/formats/social/instagram-feed.md +42 -0
- package/template/.aioson/skills/squad/formats/social/linkedin-post.md +42 -0
- package/template/.aioson/skills/squad/formats/social/tiktok.md +39 -0
- package/template/.aioson/skills/squad/formats/social/twitter-thread.md +39 -0
- package/template/.aioson/skills/squad/formats/social/youtube-long.md +47 -0
- package/template/.aioson/skills/squad/formats/social/youtube-shorts.md +39 -0
- package/template/.aioson/skills/squad/patterns/multi-platform-pattern.md +108 -0
- package/template/.aioson/skills/squad/patterns/persona-based-pattern.md +98 -0
- package/template/.aioson/skills/squad/patterns/pipeline-pattern.md +106 -0
- package/template/.aioson/skills/squad/patterns/review-loop-pattern.md +81 -0
- package/template/.aioson/skills/squad/references/checklist-templates.md +122 -0
- package/template/.aioson/skills/squad/references/executor-archetypes.md +123 -0
- package/template/.aioson/skills/squad/references/workflow-templates.md +169 -0
- package/template/.aioson/skills/static/debugging-protocol.md +42 -0
- package/template/.aioson/skills/static/git-worktrees.md +36 -0
- package/template/.aioson/tasks/implementation-plan.md +19 -0
- package/template/.aioson/tasks/squad-design.md +28 -0
- package/template/.aioson/tasks/squad-profile.md +48 -0
- package/template/.aioson/tasks/squad-review.md +61 -0
- package/template/.aioson/tasks/squad-task-decompose.md +66 -0
- package/template/.claude/commands/aioson/agent/neo.md +5 -0
- package/template/.claude/commands/aioson/agent/tester.md +5 -0
- package/template/.gemini/GEMINI.md +1 -0
- package/template/.gemini/commands/aios-neo.toml +4 -0
- package/template/.gemini/commands/aios-tester.toml +6 -0
- package/template/AGENTS.md +3 -0
- package/template/CLAUDE.md +5 -2
- package/template/OPENCODE.md +2 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
# Components — Clean SaaS UI
|
|
2
|
+
|
|
3
|
+
All components must use tokens from `design-tokens.md`. Never hardcode values. Never invent a new variant without a domain reason.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Table (first-class citizen)
|
|
8
|
+
|
|
9
|
+
Tables are the most important component in this skill. Treat them with the same care you would a hero section in a marketing page.
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
┌─────────────────────────────────────────────────────────┐
|
|
13
|
+
│ ☐ Column A ↕ Column B ↕ Status Actions │ ← sticky header
|
|
14
|
+
├─────────────────────────────────────────────────────────┤
|
|
15
|
+
│ ☐ Row data Row data ● Active [Edit][Delete] │ ← actions on hover
|
|
16
|
+
│ ☐ Row data Row data ○ Inactive │
|
|
17
|
+
│ ☐ Row data Row data ⚠ Warning │
|
|
18
|
+
├─────────────────────────────────────────────────────────┤
|
|
19
|
+
│ Showing 1–25 of 143 [← Prev] 1 2 3 ... [Next →] │ ← pagination footer
|
|
20
|
+
└─────────────────────────────────────────────────────────┘
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Anatomy:**
|
|
24
|
+
- Header: `bg-surface`, `border-bottom: 1px var(--border-medium)`, `position: sticky; top: 0`, `text-sm font-medium text-secondary uppercase tracking-wide`
|
|
25
|
+
- Row height: 48px (comfortable) or 40px (compact mode)
|
|
26
|
+
- Row hover: `bg-elevated`
|
|
27
|
+
- Striped variant: alternate rows `bg-void` / `bg-surface`
|
|
28
|
+
- Checkbox column: 40px, left-aligned
|
|
29
|
+
- Sort indicators: `↕` inactive, `↑`/`↓` active with accent color
|
|
30
|
+
- Inline actions: appear on row hover, right-aligned, `control-xs` height
|
|
31
|
+
- Bulk action bar: slides in below header when rows selected, `bg-accent-dim border-y border-accent`
|
|
32
|
+
- Pagination: `flex between`, `text-sm text-secondary`, page buttons `control-sm`
|
|
33
|
+
- Column resize handles: `4px drag zone` at column edge
|
|
34
|
+
- Expandable rows: `▸` toggle, expanded area uses `bg-elevated` with inner padding
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 2. Filter Bar
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
[ Search... 🔍 ] [ Status ▾ ] [ Date range ▾ ] [ Owner ▾ ] ×2 active [Clear all]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
- Container: `bg-surface border-b border-default px-6 py-3`
|
|
45
|
+
- Search input: `control-md`, left icon, `w-64`
|
|
46
|
+
- Filter dropdowns: `control-md`, label + chevron
|
|
47
|
+
- Active filter badges: `bg-accent-dim text-accent text-xs px-2 py-0.5 rounded-full` with `×` dismiss
|
|
48
|
+
- Clear all: `text-sm text-secondary hover:text-primary`
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 3. Sidebar
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
┌───────────────────┐
|
|
56
|
+
│ [Logo] Product │ ← 56px top bar
|
|
57
|
+
├───────────────────┤
|
|
58
|
+
│ ▸ Dashboard │
|
|
59
|
+
│ ▸ Contacts │ ← active item: blue left border 2px + bg-elevated
|
|
60
|
+
│ ├ Leads │
|
|
61
|
+
│ └ Accounts │ ← sub-items indented 16px
|
|
62
|
+
│ ▸ Reports │
|
|
63
|
+
│ ▸ Settings │
|
|
64
|
+
├───────────────────┤
|
|
65
|
+
│ [Avatar] J. Smith │ ← user footer
|
|
66
|
+
└───────────────────┘
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- Width: `256px` fixed, `bg-surface border-r border-default`
|
|
70
|
+
- Nav group label: `text-xs font-semibold text-muted uppercase tracking-wider mb-1 px-3`
|
|
71
|
+
- Nav item: `height: 36px px-3 flex items-center gap-2 text-sm text-primary rounded-md`
|
|
72
|
+
- Active item: `border-l-2 border-accent bg-elevated text-accent font-medium` (no pl adjustment needed if border is inside)
|
|
73
|
+
- Hover item: `bg-elevated`
|
|
74
|
+
- Sub-items: `pl-8` indent, `text-sm text-secondary`, same hover/active states
|
|
75
|
+
- Collapsible: toggle `▸`/`▾` with `150ms ease` transition
|
|
76
|
+
- User footer: `border-t border-default px-3 py-3 mt-auto`, avatar 32px + name + role
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 4. Page Header
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
[ Breadcrumb > Trail ]
|
|
84
|
+
|
|
85
|
+
Contacts [Export] [+ New Contact]
|
|
86
|
+
Active CRM contacts (secondary action) (primary action)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- Container: `px-6 py-5 border-b border-default`
|
|
90
|
+
- Breadcrumbs: `text-sm text-secondary` with `/` separator, active item `text-primary`
|
|
91
|
+
- Title: `text-2xl font-bold text-heading tracking-tight`
|
|
92
|
+
- Subtitle: `text-sm text-secondary mt-0.5`
|
|
93
|
+
- Actions: right-aligned, `gap-2`, secondary button + primary button
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 5. Stat Card
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
┌──────────────────────────┐
|
|
101
|
+
│ Monthly Revenue [⋯] │
|
|
102
|
+
│ $48,250 ↑ │
|
|
103
|
+
│ +12.3% │
|
|
104
|
+
│ ▁▂▃▄▅▆▇█ sparkline │
|
|
105
|
+
└──────────────────────────┘
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- Container: `bg-surface border border-default rounded-lg p-4 shadow-xs`
|
|
109
|
+
- Label: `text-sm text-secondary font-medium`
|
|
110
|
+
- Number: `text-3xl font-bold text-heading tracking-tight mt-1`
|
|
111
|
+
- Trend: `text-sm font-medium` — green for positive, red for negative, inline with icon `↑`/`↓`
|
|
112
|
+
- Sparkline: `height: 32px`, accent color, no axes, no labels
|
|
113
|
+
- Overflow menu: `control-xs` icon button, top-right
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 6. Badge
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
● Active ○ Inactive ⚠ Warning ✕ Cancelled ℹ Draft ● Custom
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- Height: `20px`
|
|
124
|
+
- Padding: `px-2`
|
|
125
|
+
- Font: `text-xs font-medium`
|
|
126
|
+
- Radius: `radius-full`
|
|
127
|
+
- 6 semantic variants:
|
|
128
|
+
- `success`: `bg-semantic-success-dim text-semantic-success`
|
|
129
|
+
- `warning`: `bg-semantic-warning-dim text-semantic-warning`
|
|
130
|
+
- `danger`: `bg-semantic-danger-dim text-semantic-danger`
|
|
131
|
+
- `info`: `bg-accent-dim text-accent`
|
|
132
|
+
- `neutral`: `bg-semantic-neutral-dim text-secondary`
|
|
133
|
+
- `default`: `bg-elevated text-primary border border-default`
|
|
134
|
+
- Optional leading dot `●` 6px with matching color
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 7. Button
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
[Primary] [Secondary] [Ghost] [Danger] [Icon only]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
- Height: `control-md` (36px) default, `control-sm` (32px) small, `control-lg` (40px) large
|
|
145
|
+
- Radius: `radius-md` (6px)
|
|
146
|
+
- Font: `text-sm font-medium`
|
|
147
|
+
- Padding: `px-4`
|
|
148
|
+
- **Primary**: `bg-accent text-accent-contrast hover:bg-accent-strong`
|
|
149
|
+
- **Secondary**: `bg-surface text-primary border border-medium hover:bg-elevated`
|
|
150
|
+
- **Ghost**: `text-primary hover:bg-elevated` (no border, no bg)
|
|
151
|
+
- **Danger**: `bg-semantic-danger text-white hover:bg-red-700`
|
|
152
|
+
- **Icon only**: `w-9 h-9 p-0 flex items-center justify-center` (for control-md)
|
|
153
|
+
- Disabled: `opacity-50 cursor-not-allowed`
|
|
154
|
+
- Loading: spinner replaces leading icon, text unchanged
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 8. Form Group
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
Label *
|
|
162
|
+
[___________________________] ← input control-md
|
|
163
|
+
Helper text or error message
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
- Label: `text-sm font-medium text-primary mb-1`
|
|
167
|
+
- Required marker: `text-semantic-danger ml-0.5`
|
|
168
|
+
- Input: `control-md w-full border border-medium rounded-md px-3 text-sm text-primary bg-surface`
|
|
169
|
+
- Input focus: `outline-none ring-2 ring-accent/20 border-accent`
|
|
170
|
+
- Helper text: `text-xs text-secondary mt-1`
|
|
171
|
+
- Error: `text-xs text-semantic-danger mt-1` — border becomes `border-semantic-danger`
|
|
172
|
+
- Select: same as input + trailing chevron icon
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 9. Dropdown Menu
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
┌──────────────────┐
|
|
180
|
+
│ ✏ Edit │
|
|
181
|
+
│ ⧉ Duplicate │
|
|
182
|
+
├──────────────────┤
|
|
183
|
+
│ 🗑 Delete │ ← destructive: text-semantic-danger
|
|
184
|
+
└──────────────────┘
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
- Container: `bg-surface border border-default rounded-lg shadow-md py-1 min-w-48`
|
|
188
|
+
- Item: `height: 36px px-3 flex items-center gap-2 text-sm text-primary hover:bg-elevated cursor-pointer`
|
|
189
|
+
- Divider: `border-t border-default my-1`
|
|
190
|
+
- Destructive item: `text-semantic-danger hover:bg-semantic-danger-dim`
|
|
191
|
+
- Leading icon: 16px, `text-secondary` (except destructive)
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## 10. Modal
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
┌────────────────────────────────────────┐
|
|
199
|
+
│ Modal Title ✕ │ ← header border-b
|
|
200
|
+
│────────────────────────────────────────│
|
|
201
|
+
│ │
|
|
202
|
+
│ Content area │
|
|
203
|
+
│ │
|
|
204
|
+
│────────────────────────────────────────│
|
|
205
|
+
│ [Cancel] [Confirm] │ ← footer border-t
|
|
206
|
+
└────────────────────────────────────────┘
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
- Container: `bg-surface rounded-xl shadow-lg max-w-[560px] w-full`
|
|
210
|
+
- Header: `px-6 py-4 border-b border-default flex justify-between items-center`
|
|
211
|
+
- Title: `text-lg font-semibold text-heading`
|
|
212
|
+
- Close button: `control-xs ghost`
|
|
213
|
+
- Body: `px-6 py-5`
|
|
214
|
+
- Footer: `px-6 py-4 border-t border-default flex justify-end gap-2`
|
|
215
|
+
- Backdrop: `bg-black/40 fixed inset-0`
|
|
216
|
+
- Max height: `80vh` with internal scroll
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## 11. Toast
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
┌──────────────────────────────────────────┐
|
|
224
|
+
│ ‖ Your changes were saved successfully. │ ← success: green left border 4px
|
|
225
|
+
└──────────────────────────────────────────┘
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
- Container: `bg-surface border border-default rounded-lg shadow-md px-4 py-3 max-w-sm`
|
|
229
|
+
- Left border: `4px solid` matching semantic color
|
|
230
|
+
- Icon: 16px semantic color
|
|
231
|
+
- Message: `text-sm text-primary`
|
|
232
|
+
- Auto-dismiss: 5s, progress bar optional
|
|
233
|
+
- Position: `fixed bottom-4 right-4`
|
|
234
|
+
- Variants: success / warning / danger / info (same structure, different border + icon color)
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## 12. Tabs
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
Overview Contacts Activity Documents
|
|
242
|
+
─────────────────────────────────────────────
|
|
243
|
+
‾‾‾‾‾‾‾‾ ← active tab: 2px accent bottom border
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
- Container: `border-b border-default`
|
|
247
|
+
- Tab item: `px-4 py-2 text-sm font-medium text-secondary hover:text-primary cursor-pointer`
|
|
248
|
+
- Active tab: `text-accent border-b-2 border-accent -mb-px`
|
|
249
|
+
- Count badge: `ml-1.5 bg-elevated text-xs px-1.5 rounded-full`
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## 13. Breadcrumbs
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
Contacts / Acme Corp / Overview
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
- Container: `flex items-center gap-1 text-sm`
|
|
260
|
+
- Item: `text-secondary hover:text-primary`
|
|
261
|
+
- Separator: `text-muted` — `/`
|
|
262
|
+
- Active (last): `text-primary font-medium` (not a link)
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## 14. Avatar
|
|
267
|
+
|
|
268
|
+
- Sizes: 24px / 32px / 40px / 48px
|
|
269
|
+
- Radius: `radius-full`
|
|
270
|
+
- Image: `object-cover`
|
|
271
|
+
- Fallback: initials, `bg-accent-dim text-accent font-semibold`
|
|
272
|
+
- Group: `-ml-2` overlap, `border-2 border-surface`
|
|
273
|
+
- Max visible in group: 4, then `+N` chip
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## 15. Tooltip
|
|
278
|
+
|
|
279
|
+
- Container: `bg-gray-900 text-white text-xs rounded-md px-2 py-1 shadow-sm`
|
|
280
|
+
- Max width: `200px`
|
|
281
|
+
- Delay: 400ms before showing
|
|
282
|
+
- Always appears above target unless obstructed
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 16. Progress Bar
|
|
287
|
+
|
|
288
|
+
```
|
|
289
|
+
[██████████░░░░░░░] 67%
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
- Container: `bg-elevated rounded-full h-1.5`
|
|
293
|
+
- Fill: `bg-accent rounded-full h-1.5`
|
|
294
|
+
- Semantic fill variants: success (green), warning (amber), danger (red)
|
|
295
|
+
- Label: `text-xs text-secondary ml-2` (optional)
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## 17. Toggle Switch
|
|
300
|
+
|
|
301
|
+
```
|
|
302
|
+
●── OFF ──● ON
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
- Container: `w-10 h-5` (40×20px), `rounded-full`
|
|
306
|
+
- Off state: `bg-border-strong`
|
|
307
|
+
- On state: `bg-accent`
|
|
308
|
+
- Thumb: `w-4 h-4 bg-white rounded-full shadow-xs` — translates `150ms ease`
|
|
309
|
+
- Label: `text-sm text-primary ml-2`
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## 18. Empty State
|
|
314
|
+
|
|
315
|
+
```
|
|
316
|
+
[geometric illustration]
|
|
317
|
+
|
|
318
|
+
No contacts yet
|
|
319
|
+
|
|
320
|
+
Start by importing your contacts
|
|
321
|
+
or adding them manually.
|
|
322
|
+
|
|
323
|
+
[+ Add Contact]
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
- Container: `flex flex-col items-center justify-center py-16 px-6`
|
|
327
|
+
- Illustration: simple geometric SVG — clean, not hand-drawn, not emoji
|
|
328
|
+
- Title: `text-lg font-semibold text-heading mt-4`
|
|
329
|
+
- Description: `text-sm text-secondary text-center max-w-xs mt-1`
|
|
330
|
+
- CTA: primary button `mt-6`
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## 19. Loading Spinner
|
|
335
|
+
|
|
336
|
+
- Size: `20px` circle
|
|
337
|
+
- Border: `2px solid var(--border-medium)`
|
|
338
|
+
- Active arc: `border-top-color: var(--accent)`
|
|
339
|
+
- Animation: `spin 0.8s linear infinite`
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## 20. Skeleton
|
|
344
|
+
|
|
345
|
+
- Container matches the real element's shape and size
|
|
346
|
+
- Background: `bg-elevated` with `animate-pulse`
|
|
347
|
+
- Text skeleton: `h-4 rounded-md` (varies)
|
|
348
|
+
- Card skeleton: full card shape with header + body regions
|
|
349
|
+
- Table skeleton: rows with alternating cell widths
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Component interaction states (all components)
|
|
354
|
+
|
|
355
|
+
Every interactive component must handle:
|
|
356
|
+
|
|
357
|
+
| State | Treatment |
|
|
358
|
+
|-------|-----------|
|
|
359
|
+
| Default | As specified above |
|
|
360
|
+
| Hover | `bg-elevated` or `border-medium` shift |
|
|
361
|
+
| Focus | `ring-2 ring-accent/20 border-accent` |
|
|
362
|
+
| Active/pressed | `scale(0.99)` 60ms |
|
|
363
|
+
| Disabled | `opacity-50 cursor-not-allowed` |
|
|
364
|
+
| Loading | Spinner + muted label |
|
|
365
|
+
| Error | `border-semantic-danger` + error text |
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# Dashboards — Clean SaaS UI
|
|
2
|
+
|
|
3
|
+
Dashboard presets for the most common B2B SaaS contexts. Each preset defines the dominant story, focal element, and composition.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## General rules
|
|
8
|
+
|
|
9
|
+
- **Stats are sans-serif (Inter bold)** — never serif (that is warm-craft), never display (that is bold-editorial)
|
|
10
|
+
- **Charts use the system palette (blue-first)** — never the charting library's default colors
|
|
11
|
+
- **Background is light by default** — dashboards in Clean SaaS are light, professional, and functional
|
|
12
|
+
- **No chart uses more than 6 colors** — simplicity over variety
|
|
13
|
+
- **One dominant focal element per page** — resist the 4-equal-card opener every time
|
|
14
|
+
- **Date range selector always visible** in the page header — not hidden in a settings drawer
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Chart palette
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
--chart-1: var(--accent); /* #2563EB — primary blue */
|
|
22
|
+
--chart-2: #8B5CF6; /* violet-500 */
|
|
23
|
+
--chart-3: #10B981; /* emerald-500 */
|
|
24
|
+
--chart-4: #F59E0B; /* amber-500 */
|
|
25
|
+
--chart-5: #EF4444; /* red-500 */
|
|
26
|
+
--chart-6: #6B7280; /* gray-500 — neutral/other */
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Use `--chart-1` (blue) for the most important data series. Use gray for secondary or "other" categories.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Preset 1 — SaaS Metrics Dashboard
|
|
34
|
+
|
|
35
|
+
**Domain:** B2B SaaS — founders, CEOs, VPs of Revenue, growth teams
|
|
36
|
+
**Dominant story:** Revenue health and growth trajectory
|
|
37
|
+
**Focal element:** MRR hero stat with trend sparkline
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
┌─────────────────────────────────────────────────────────┐
|
|
41
|
+
│ Business Overview [This month ▾] [Export] │
|
|
42
|
+
├─────────────────────────────────────────────────────────┤
|
|
43
|
+
│ │
|
|
44
|
+
│ MRR: $48,250 ↑ +12.3% │ ← hero stat, dominant
|
|
45
|
+
│ New: $5,200 Expansion: $2,800 Churn: -$1,200 │ ← breakdown row below
|
|
46
|
+
│ │
|
|
47
|
+
├────────────────────────────────┬────────────────────────┤
|
|
48
|
+
│ Revenue Over Time (12m) │ Top Plans │
|
|
49
|
+
│ [line chart, area fill] │ [horizontal bar chart] │
|
|
50
|
+
├────────────────────────────────┴────────────────────────┤
|
|
51
|
+
│ [ARR: $580K] [Subscribers: 1,240] [Churn: 1.2%] [NPS: 42] │
|
|
52
|
+
├─────────────────────────────────────────────────────────┤
|
|
53
|
+
│ Recent Signups [View all →] │
|
|
54
|
+
│ [table: name, plan, trial start, value, status — 5 rows]│
|
|
55
|
+
└─────────────────────────────────────────────────────────┘
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Composition notes:**
|
|
59
|
+
- MRR hero is bigger than everything else — `text-4xl font-bold`
|
|
60
|
+
- Revenue chart (2/3 width) + plan breakdown (1/3 width)
|
|
61
|
+
- Stat cards row below charts, not above (inverted from generic pattern)
|
|
62
|
+
- Trial conversion funnel can replace plan breakdown in growth-focused contexts
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Preset 2 — CRM Dashboard
|
|
67
|
+
|
|
68
|
+
**Domain:** Sales teams, account executives, sales managers
|
|
69
|
+
**Dominant story:** Pipeline health and deal risk
|
|
70
|
+
**Focal element:** Pipeline stage overview (horizontal funnel)
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
┌─────────────────────────────────────────────────────────┐
|
|
74
|
+
│ Sales Pipeline [This quarter ▾] [+ New Deal]│
|
|
75
|
+
├─────────────────────────────────────────────────────────┤
|
|
76
|
+
│ Lead → Qualified → Proposal → Negotiation → Closed Won │ ← pipeline stages
|
|
77
|
+
│ [42] [28] [15] [8] [12] │
|
|
78
|
+
│ $280K $540K $420K $380K $195K │
|
|
79
|
+
├────────────────────────────────┬────────────────────────┤
|
|
80
|
+
│ Win Rate: 38% ↑ vs last Q │ Activity Feed │
|
|
81
|
+
│ [donut chart] │ [timeline list] │
|
|
82
|
+
├────────────────────────────────┴────────────────────────┤
|
|
83
|
+
│ [Open: 247] [At Risk: 18] [Avg Close: 32d] [Quota: 67%] │
|
|
84
|
+
├─────────────────────────────────────────────────────────┤
|
|
85
|
+
│ Deals At Risk [View all →] │
|
|
86
|
+
│ [table: deal, account, stage, value, close date, owner] │
|
|
87
|
+
└─────────────────────────────────────────────────────────┘
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Composition notes:**
|
|
91
|
+
- Pipeline horizontal stage bar is the dominant element — no equal KPI grid opener
|
|
92
|
+
- Win rate donut (1/2) + activity feed (1/2) below
|
|
93
|
+
- "At Risk" table is the most actionable section — order it before general list
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Preset 3 — Project Management Dashboard
|
|
98
|
+
|
|
99
|
+
**Domain:** Project managers, team leads, operations
|
|
100
|
+
**Dominant story:** Team workload and upcoming deadlines
|
|
101
|
+
**Focal element:** Tasks by status (horizontal progress bars per status)
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
┌─────────────────────────────────────────────────────────┐
|
|
105
|
+
│ Team Overview [This week ▾] │
|
|
106
|
+
├─────────────────────────────────────────────────────────┤
|
|
107
|
+
│ [Todo: 34] [In Progress: 18] [Review: 7] [Done: 52] │ ← status summary cards
|
|
108
|
+
├────────────────────────────────┬────────────────────────┤
|
|
109
|
+
│ Workload by Member │ Upcoming Deadlines │
|
|
110
|
+
│ [horizontal bar — members] │ [list: task + due] │
|
|
111
|
+
├────────────────────────────────┴────────────────────────┤
|
|
112
|
+
│ Sprint Completion: 68% │
|
|
113
|
+
│ [progress bar full-width with milestone markers] │
|
|
114
|
+
├─────────────────────────────────────────────────────────┤
|
|
115
|
+
│ Recent Activity [View all →] │
|
|
116
|
+
│ [activity feed: avatar + action + timestamp] │
|
|
117
|
+
└─────────────────────────────────────────────────────────┘
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Composition notes:**
|
|
121
|
+
- Status cards are compact (not full stat cards) — a row of colored counters
|
|
122
|
+
- Workload bars show per-member capacity — visual scan instead of table
|
|
123
|
+
- Sprint progress full-width below the charts — unifying element
|
|
124
|
+
- No donut charts here — linear progress communicates urgency better
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Preset 4 — Support Dashboard
|
|
129
|
+
|
|
130
|
+
**Domain:** Customer support managers, ops teams
|
|
131
|
+
**Dominant story:** Queue health and response performance
|
|
132
|
+
**Focal element:** Open tickets stat + response time trend
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
┌─────────────────────────────────────────────────────────┐
|
|
136
|
+
│ Support Overview [Today ▾] [Refresh ↺] │
|
|
137
|
+
├─────────────────────────────────────────────────────────┤
|
|
138
|
+
│ [Open: 47] [Avg Response: 2.4h ↑] [CSAT: 94% ↑] [Resolved today: 23] │
|
|
139
|
+
├────────────────────────────────┬────────────────────────┤
|
|
140
|
+
│ Response Time (7d) │ Tickets by Category │
|
|
141
|
+
│ [line chart with SLA line] │ [horizontal bars] │
|
|
142
|
+
├────────────────────────────────┴────────────────────────┤
|
|
143
|
+
│ Ticket Queue [Assign] [Filter] │
|
|
144
|
+
│ [table: ID, subject, customer, priority, status, time] │
|
|
145
|
+
└─────────────────────────────────────────────────────────┘
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Composition notes:**
|
|
149
|
+
- Response time chart includes a horizontal SLA target line — critical for support
|
|
150
|
+
- Ticket queue is actionable — table with inline assignment and status update
|
|
151
|
+
- Priority badges use semantic colors (urgent = red, high = amber, normal = blue, low = gray)
|
|
152
|
+
- "Refresh" button because support data is live — manual or auto-refresh visible
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Preset 5 — Admin Overview
|
|
157
|
+
|
|
158
|
+
**Domain:** System administrators, infrastructure, ops
|
|
159
|
+
**Dominant story:** System health and user activity
|
|
160
|
+
**Focal element:** Health indicators (green/amber/red status grid)
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
┌─────────────────────────────────────────────────────────┐
|
|
164
|
+
│ System Administration [Settings ⚙]│
|
|
165
|
+
├─────────────────────────────────────────────────────────┤
|
|
166
|
+
│ System Health │
|
|
167
|
+
│ ● API ● Database ● Email ● Webhooks │ ← status indicator grid
|
|
168
|
+
│ Operational Operational Degraded Operational │
|
|
169
|
+
├────────────────────────────────┬────────────────────────┤
|
|
170
|
+
│ [Active Users: 1,240] [Storage: 68%] │ Alerts: 2 ⚠ │
|
|
171
|
+
├────────────────────────────────┴────────────────────────┤
|
|
172
|
+
│ Recent Signups [View all →] │
|
|
173
|
+
│ [table: name, email, plan, signed up, status] │
|
|
174
|
+
├─────────────────────────────────────────────────────────┤
|
|
175
|
+
│ Audit Log [View all →] │
|
|
176
|
+
│ [feed: user + action + timestamp + IP] │
|
|
177
|
+
└─────────────────────────────────────────────────────────┘
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Composition notes:**
|
|
181
|
+
- Health indicator grid uses colored dots with labels — not cards with shadows
|
|
182
|
+
- Storage usage shows as a progress bar (68%) — not just a number
|
|
183
|
+
- Audit log is a feed, not a table — time-first, chronological
|
|
184
|
+
- Alert count in header if any system is degraded — always visible
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Composition anti-patterns to avoid
|
|
189
|
+
|
|
190
|
+
1. Four equal KPI cards as the ONLY opening element — always have one focal element with more visual weight
|
|
191
|
+
2. Pie charts — use horizontal bars or donut charts instead (easier to scan)
|
|
192
|
+
3. Charts with 8+ colors — group into "Other" if needed
|
|
193
|
+
4. Dashboard without a date range selector
|
|
194
|
+
5. Stat numbers in serif font
|
|
195
|
+
6. Charts using library default colors (blues/reds/greens not from the system palette)
|
|
196
|
+
7. More than 3 chart types on one page — consistency over variety
|