popilot 0.2.0
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/README.md +372 -0
- package/adapters/claude-code/.claude/commands/_domain.md.hbs +32 -0
- package/adapters/claude-code/.claude/commands/analytics.md.hbs +55 -0
- package/adapters/claude-code/.claude/commands/daily.md.hbs +301 -0
- package/adapters/claude-code/.claude/commands/dev.md.hbs +62 -0
- package/adapters/claude-code/.claude/commands/handoff.md +258 -0
- package/adapters/claude-code/.claude/commands/market.md +120 -0
- package/adapters/claude-code/.claude/commands/metrics.md +123 -0
- package/adapters/claude-code/.claude/commands/oscar-loop.md +436 -0
- package/adapters/claude-code/.claude/commands/party.md +85 -0
- package/adapters/claude-code/.claude/commands/plan.md +43 -0
- package/adapters/claude-code/.claude/commands/research.md +203 -0
- package/adapters/claude-code/.claude/commands/retro.md +68 -0
- package/adapters/claude-code/.claude/commands/save.md +440 -0
- package/adapters/claude-code/.claude/commands/sessions.md +139 -0
- package/adapters/claude-code/.claude/commands/sprint.md +106 -0
- package/adapters/claude-code/.claude/commands/start.md +368 -0
- package/adapters/claude-code/.claude/commands/strategy.md +41 -0
- package/adapters/claude-code/.claude/commands/task.md +220 -0
- package/adapters/claude-code/.claude/commands/tracking.md +116 -0
- package/adapters/claude-code/.claude/commands/validate.md +58 -0
- package/adapters/claude-code/CLAUDE.md.hbs +208 -0
- package/adapters/claude-code/manifest.yaml +36 -0
- package/bin/cli.mjs +218 -0
- package/lib/adapter.mjs +68 -0
- package/lib/doctor.mjs +161 -0
- package/lib/hydrate.mjs +421 -0
- package/lib/prompt.mjs +78 -0
- package/lib/scaffold.mjs +155 -0
- package/lib/setup-wizard.mjs +331 -0
- package/lib/template-engine.mjs +164 -0
- package/lib/yaml-lite.mjs +476 -0
- package/package.json +30 -0
- package/scaffold/.context/.secrets.yaml.example +20 -0
- package/scaffold/.context/WORKFLOW.md.hbs +332 -0
- package/scaffold/.context/agents/TEMPLATE.md +115 -0
- package/scaffold/.context/agents/analyst.md.hbs +362 -0
- package/scaffold/.context/agents/developer.md.hbs +390 -0
- package/scaffold/.context/agents/handoff-specialist.md.hbs +292 -0
- package/scaffold/.context/agents/market-researcher.md.hbs +288 -0
- package/scaffold/.context/agents/ollie.md +323 -0
- package/scaffold/.context/agents/operations.md.hbs +293 -0
- package/scaffold/.context/agents/orchestrator.md.hbs +434 -0
- package/scaffold/.context/agents/planner.md.hbs +405 -0
- package/scaffold/.context/agents/qa.md.hbs +409 -0
- package/scaffold/.context/agents/researcher.md.hbs +330 -0
- package/scaffold/.context/agents/sage.md +349 -0
- package/scaffold/.context/agents/strategist.md.hbs +339 -0
- package/scaffold/.context/agents/tracking-governor.md.hbs +291 -0
- package/scaffold/.context/agents/validator.md.hbs +365 -0
- package/scaffold/.context/integrations/_registry.yaml +38 -0
- package/scaffold/.context/integrations/providers/channel_io.yaml +38 -0
- package/scaffold/.context/integrations/providers/corti.yaml +203 -0
- package/scaffold/.context/integrations/providers/ga4.yaml +116 -0
- package/scaffold/.context/integrations/providers/intercom.yaml +47 -0
- package/scaffold/.context/integrations/providers/linear.yaml +46 -0
- package/scaffold/.context/integrations/providers/mixpanel.yaml +73 -0
- package/scaffold/.context/integrations/providers/notebooklm.yaml +74 -0
- package/scaffold/.context/integrations/providers/notion.yaml +129 -0
- package/scaffold/.context/integrations/providers/prod_db.yaml +183 -0
- package/scaffold/.context/oscar/workflows/multi-agent.md +82 -0
- package/scaffold/.context/oscar/workflows/ollie-sage.md +128 -0
- package/scaffold/.context/oscar/workflows/session-git.md +71 -0
- package/scaffold/.context/oscar/workflows/setup.md +663 -0
- package/scaffold/.context/oscar/workflows/tracking.md +118 -0
- package/scaffold/.context/project.yaml.example +102 -0
- package/scaffold/.context/templates/dev-guide.md +217 -0
- package/scaffold/.context/templates/epic-spec.md +225 -0
- package/scaffold/.context/templates/guardrail.md +94 -0
- package/scaffold/.context/templates/handoff-checklist.md +197 -0
- package/scaffold/.context/templates/prd.md +80 -0
- package/scaffold/.context/templates/retrospective.md +78 -0
- package/scaffold/.context/templates/screen-spec.md +714 -0
- package/scaffold/.context/templates/sprint-plan.md +72 -0
- package/scaffold/.context/templates/sprint-status.yaml +109 -0
- package/scaffold/.context/templates/story-v2.md +228 -0
- package/scaffold/.context/templates/validation-report.md +99 -0
- package/scaffold/.gitignore.append +7 -0
- package/scaffold/spec-site/env.d.ts +7 -0
- package/scaffold/spec-site/index.html +14 -0
- package/scaffold/spec-site/package.json +20 -0
- package/scaffold/spec-site/src/App.vue +27 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_ads.svg +10 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_ads_on.svg +10 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_board.svg +14 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_board_on.svg +14 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_dashboard.svg +21 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_dashboard_on.svg +21 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_pricing.svg +20 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_pricing_on.svg +20 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_store.svg +11 -0
- package/scaffold/spec-site/src/assets/icons/menu/ic_store_on.svg +11 -0
- package/scaffold/spec-site/src/components/Accordion.vue +108 -0
- package/scaffold/spec-site/src/components/AppHeader.vue +304 -0
- package/scaffold/spec-site/src/components/Badge.vue +25 -0
- package/scaffold/spec-site/src/components/CoachingCard.vue +112 -0
- package/scaffold/spec-site/src/components/MemoSidebar.vue +239 -0
- package/scaffold/spec-site/src/components/MockupShell.vue +100 -0
- package/scaffold/spec-site/src/components/RuleTable.vue +99 -0
- package/scaffold/spec-site/src/components/ScenarioSwitcher.vue +103 -0
- package/scaffold/spec-site/src/components/SpecNav.vue +26 -0
- package/scaffold/spec-site/src/components/SpecSection.vue +59 -0
- package/scaffold/spec-site/src/components/SummaryGrid.vue +39 -0
- package/scaffold/spec-site/src/components/VersionBadge.vue +38 -0
- package/scaffold/spec-site/src/composables/useActiveSection.ts +53 -0
- package/scaffold/spec-site/src/composables/useMemo.ts +138 -0
- package/scaffold/spec-site/src/composables/useRetro.ts +313 -0
- package/scaffold/spec-site/src/composables/useScenario.ts +43 -0
- package/scaffold/spec-site/src/composables/useScenarioStore.ts +102 -0
- package/scaffold/spec-site/src/composables/useTurso.ts +160 -0
- package/scaffold/spec-site/src/composables/useUser.ts +25 -0
- package/scaffold/spec-site/src/data/navigation.ts +59 -0
- package/scaffold/spec-site/src/data/types.ts +90 -0
- package/scaffold/spec-site/src/data/wireframeRegistry.ts +25 -0
- package/scaffold/spec-site/src/layouts/SplitPaneLayout.vue +79 -0
- package/scaffold/spec-site/src/main.ts +10 -0
- package/scaffold/spec-site/src/pages/IndexPage.vue +66 -0
- package/scaffold/spec-site/src/pages/PolicyDetail.vue +215 -0
- package/scaffold/spec-site/src/pages/PolicyIndex.vue +74 -0
- package/scaffold/spec-site/src/pages/retro/RetroActions.vue +191 -0
- package/scaffold/spec-site/src/pages/retro/RetroBoard.vue +192 -0
- package/scaffold/spec-site/src/pages/retro/RetroCard.vue +131 -0
- package/scaffold/spec-site/src/pages/retro/RetroHeader.vue +287 -0
- package/scaffold/spec-site/src/pages/retro/RetroPage.vue +178 -0
- package/scaffold/spec-site/src/pages/shared/NoContentPlaceholder.vue +34 -0
- package/scaffold/spec-site/src/pages/shared/PlaceholderContent.vue +22 -0
- package/scaffold/spec-site/src/pages/shared/PlaceholderSpecPanel.vue +16 -0
- package/scaffold/spec-site/src/pages/shared/PolicyFallback.vue +145 -0
- package/scaffold/spec-site/src/pages/wireframe/WireframeShell.vue +151 -0
- package/scaffold/spec-site/src/router.ts +85 -0
- package/scaffold/spec-site/src/styles/base.css +21 -0
- package/scaffold/spec-site/src/styles/split-pane.css +143 -0
- package/scaffold/spec-site/src/styles/variables.css +47 -0
- package/scaffold/spec-site/src/utils/markdown.ts +197 -0
- package/scaffold/spec-site/tsconfig.json +20 -0
- package/scaffold/spec-site/vite.config.ts +18 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#bbtoyt3ika)">
|
|
3
|
+
<path d="M7.779 22H6c-.86 0-1.556.696-1.556 1.556v5.777c0 .86.697 1.556 1.556 1.556h1.778c.859 0 1.555-.697 1.555-1.556v-5.777c0-.86-.696-1.556-1.555-1.556z" fill="#fff"/>
|
|
4
|
+
<path d="M7.777 21.778c.49 0 .89.4.89.889v5.777c0 .49-.4.89-.89.89H6a.892.892 0 0 1-.89-.89v-5.777c0-.49.4-.89.89-.89h1.777zm0-1.334H6a2.223 2.223 0 0 0-2.223 2.223v5.777c0 1.227.996 2.223 2.223 2.223h1.777A2.223 2.223 0 0 0 10 28.444v-5.777a2.223 2.223 0 0 0-2.223-2.223z" fill="#3C3C3C"/>
|
|
5
|
+
<path d="M17.11 12.667h-1.777c-.86 0-1.556.696-1.556 1.555v14.223c0 .859.697 1.555 1.556 1.555h1.778c.859 0 1.555-.696 1.555-1.555V14.222c0-.859-.696-1.555-1.555-1.555z" fill="#fff"/>
|
|
6
|
+
<path d="M17.11 13.333c.488 0 .888.4.888.89v14.221c0 .49-.4.89-.889.89h-1.777a.892.892 0 0 1-.89-.89V14.222c0-.489.4-.889.89-.889h1.777zm0-1.333h-1.778a2.223 2.223 0 0 0-2.223 2.222v14.222c0 1.227.996 2.223 2.223 2.223h1.777a2.223 2.223 0 0 0 2.223-2.223V14.222A2.223 2.223 0 0 0 17.109 12zM26 18.222c.489 0 .889.4.889.89v9.333c0 .488-.4.888-.889.888h-1.778a.892.892 0 0 1-.889-.888V19.11c0-.489.4-.889.89-.889H26zm0-1.333h-1.778A2.223 2.223 0 0 0 22 19.11v9.334c0 1.226.996 2.222 2.222 2.222H26a2.223 2.223 0 0 0 2.222-2.223v-9.333A2.223 2.223 0 0 0 26 16.89z" fill="#3C3C3C"/>
|
|
7
|
+
<path d="M24.89 11.778a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334z" fill="#fff"/>
|
|
8
|
+
<path d="M24.888 7.111c1.107 0 2 .894 2 2 0 1.107-.893 2-2 2s-2-.893-2-2 .893-2 2-2zm0-1.333a3.335 3.335 0 0 0 0 6.667 3.335 3.335 0 0 0 0-6.667z" fill="#3C3C3C"/>
|
|
9
|
+
<path d="M15.999 8.222a2.667 2.667 0 1 0 0-5.333 2.667 2.667 0 0 0 0 5.333z" fill="#D8E5F9"/>
|
|
10
|
+
<path d="M16.001 3.555c1.107 0 2 .894 2 2 0 1.107-.893 2-2 2-1.106 0-2-.893-2-2 0-1.106.894-2 2-2zm0-1.333a3.335 3.335 0 0 0 0 6.667 3.335 3.335 0 0 0 0-6.667z" fill="#3C3C3C"/>
|
|
11
|
+
<path d="M7.112 15.333a2.667 2.667 0 1 0 0-5.333 2.667 2.667 0 0 0 0 5.333z" fill="#fff"/>
|
|
12
|
+
<path d="M7.11 10.667c1.107 0 2 .893 2 2 0 1.106-.893 2-2 2-1.106 0-2-.894-2-2 0-1.107.894-2 2-2zm0-1.334a3.335 3.335 0 0 0 0 6.667 3.335 3.335 0 0 0 0-6.667z" fill="#3C3C3C"/>
|
|
13
|
+
<path d="m18.746 6.698 3.493 1.311M9.426 10.925l4.253-3.627" stroke="#3C3C3C" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
+
<path d="M5.11 24h3.555v4.444c0 .49-.4.89-.889.89H5.998a.891.891 0 0 1-.889-.89V24zM14.445 19.556h3.556v8.889c0 .488-.4.888-.889.888h-1.778a.891.891 0 0 1-.889-.888v-8.89zM26.888 28.445c0 .488-.4.888-.89.888h-1.777a.892.892 0 0 1-.889-.888v-6.667h3.556v6.667z" fill="#D8E5F9"/>
|
|
15
|
+
</g>
|
|
16
|
+
<defs>
|
|
17
|
+
<clipPath id="bbtoyt3ika">
|
|
18
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
19
|
+
</clipPath>
|
|
20
|
+
</defs>
|
|
21
|
+
</svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#5vf6lili1a)">
|
|
3
|
+
<path d="M7.779 21.111H6c-.86 0-1.556.697-1.556 1.556v5.777c0 .86.697 1.556 1.556 1.556h1.778c.859 0 1.555-.697 1.555-1.556v-5.777c0-.86-.696-1.556-1.555-1.556z" fill="#fff"/>
|
|
4
|
+
<path d="M7.777 21.778c.49 0 .89.4.89.889v5.777c0 .49-.4.89-.89.89H6a.892.892 0 0 1-.89-.89v-5.777c0-.49.4-.89.89-.89h1.777zm0-1.334H6a2.223 2.223 0 0 0-2.223 2.223v5.777c0 1.227.996 2.223 2.223 2.223h1.777A2.223 2.223 0 0 0 10 28.444v-5.777a2.223 2.223 0 0 0-2.223-2.223z" fill="#0049B9"/>
|
|
5
|
+
<path d="M17.11 12.667h-1.777c-.86 0-1.556.696-1.556 1.555v14.223c0 .859.697 1.555 1.556 1.555h1.778c.859 0 1.555-.696 1.555-1.555V14.222c0-.859-.696-1.555-1.555-1.555z" fill="#fff"/>
|
|
6
|
+
<path d="M17.11 13.333c.488 0 .888.4.888.89v14.221c0 .49-.4.89-.889.89h-1.777a.892.892 0 0 1-.89-.89V14.222c0-.489.4-.889.89-.889h1.777zm0-1.333h-1.778a2.223 2.223 0 0 0-2.223 2.222v14.222c0 1.227.996 2.223 2.223 2.223h1.777a2.223 2.223 0 0 0 2.223-2.223V14.222A2.223 2.223 0 0 0 17.109 12zM26 18.222c.489 0 .889.4.889.89v9.333c0 .488-.4.888-.889.888h-1.778a.892.892 0 0 1-.889-.888V19.11c0-.489.4-.889.89-.889H26zm0-1.333h-1.778A2.223 2.223 0 0 0 22 19.11v9.334c0 1.226.996 2.222 2.222 2.222H26a2.223 2.223 0 0 0 2.222-2.223v-9.333A2.223 2.223 0 0 0 26 16.89z" fill="#0049B9"/>
|
|
7
|
+
<path d="M24.89 11.778a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334z" fill="#fff"/>
|
|
8
|
+
<path d="M24.888 7.111c1.107 0 2 .894 2 2 0 1.107-.893 2-2 2s-2-.893-2-2 .893-2 2-2zm0-1.333a3.335 3.335 0 0 0 0 6.667 3.335 3.335 0 0 0 0-6.667z" fill="#0049B9"/>
|
|
9
|
+
<path d="M15.999 8.222a2.667 2.667 0 1 0 0-5.333 2.667 2.667 0 0 0 0 5.333z" fill="#59B9FF"/>
|
|
10
|
+
<path d="M16.001 3.555c1.107 0 2 .894 2 2 0 1.107-.893 2-2 2-1.106 0-2-.893-2-2 0-1.106.894-2 2-2zm0-1.333a3.335 3.335 0 0 0 0 6.667 3.335 3.335 0 0 0 0-6.667z" fill="#0049B9"/>
|
|
11
|
+
<path d="M7.112 15.333a2.667 2.667 0 1 0 0-5.333 2.667 2.667 0 0 0 0 5.333z" fill="#fff"/>
|
|
12
|
+
<path d="M7.11 10.667c1.107 0 2 .893 2 2 0 1.106-.893 2-2 2-1.106 0-2-.894-2-2 0-1.107.894-2 2-2zm0-1.334a3.335 3.335 0 0 0 0 6.667 3.335 3.335 0 0 0 0-6.667z" fill="#0049B9"/>
|
|
13
|
+
<path d="m18.746 6.698 3.493 1.311M9.426 10.925l4.253-3.627" stroke="#0049B9" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
+
<path d="M5.11 24h3.555v4.444c0 .49-.4.89-.889.89H5.998a.891.891 0 0 1-.889-.89V24zM14.445 19.556h3.556v8.889c0 .488-.4.888-.889.888h-1.778a.891.891 0 0 1-.889-.888v-8.89zM23.332 28.445c0 .488.4.888.889.888h1.778c.489 0 .889-.4.889-.888v-6.667h-3.556v6.667z" fill="#59B9FF"/>
|
|
15
|
+
</g>
|
|
16
|
+
<defs>
|
|
17
|
+
<clipPath id="5vf6lili1a">
|
|
18
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
19
|
+
</clipPath>
|
|
20
|
+
</defs>
|
|
21
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#85p085awba)">
|
|
3
|
+
<g clip-path="url(#sr56ekclnb)">
|
|
4
|
+
<path d="M26.51 3.898H8.155a3.489 3.489 0 0 0-3.489 3.489v11.79a3.489 3.489 0 0 0 3.489 3.49H26.51a3.489 3.489 0 0 0 3.488-3.49V7.388a3.489 3.489 0 0 0-3.488-3.489z" fill="#fff" stroke="#3C3C3C" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M23.844 9.676H5.49A3.489 3.489 0 0 0 2 13.165v11.79a3.489 3.489 0 0 0 3.489 3.49h18.355a3.489 3.489 0 0 0 3.49-3.49v-11.79a3.489 3.489 0 0 0-3.49-3.49z" fill="#D8E5F9" stroke="#3C3C3C" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M27.333 14.476H2v3.044h25.333v-3.044z" fill="#3C3C3C"/>
|
|
7
|
+
<path d="M21.832 24.893a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" fill="#fff" stroke="#3C3C3C" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M18.764 21.164a1.997 1.997 0 0 0-3.004 1.729 1.997 1.997 0 0 0 3.066 1.689" fill="#fff"/>
|
|
9
|
+
<path d="M18.764 21.164a1.997 1.997 0 0 0-3.004 1.729 1.997 1.997 0 0 0 3.066 1.689" stroke="#3C3C3C" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
<defs>
|
|
13
|
+
<clipPath id="85p085awba">
|
|
14
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
15
|
+
</clipPath>
|
|
16
|
+
<clipPath id="sr56ekclnb">
|
|
17
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
18
|
+
</clipPath>
|
|
19
|
+
</defs>
|
|
20
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#1c4f11tvpa)">
|
|
3
|
+
<g clip-path="url(#alsslr2q2b)">
|
|
4
|
+
<path d="M26.51 3.898H8.155a3.489 3.489 0 0 0-3.489 3.489v11.79a3.489 3.489 0 0 0 3.489 3.49H26.51a3.489 3.489 0 0 0 3.488-3.49V7.388a3.489 3.489 0 0 0-3.488-3.489z" fill="#fff" stroke="#0049B9" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M23.844 9.676H5.49A3.489 3.489 0 0 0 2 13.165v11.79a3.489 3.489 0 0 0 3.489 3.49h18.355a3.489 3.489 0 0 0 3.49-3.49v-11.79a3.489 3.489 0 0 0-3.49-3.49z" fill="#59B9FF" stroke="#0049B9" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M27.333 14.476H2v3.044h25.333v-3.044z" fill="#0049B9"/>
|
|
7
|
+
<path d="M21.832 24.893a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" fill="#fff" stroke="#0049B9" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M18.764 21.164a1.997 1.997 0 0 0-3.004 1.729 1.997 1.997 0 0 0 3.066 1.689" fill="#fff"/>
|
|
9
|
+
<path d="M18.764 21.164a1.997 1.997 0 0 0-3.004 1.729 1.997 1.997 0 0 0 3.066 1.689" stroke="#0049B9" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
<defs>
|
|
13
|
+
<clipPath id="1c4f11tvpa">
|
|
14
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
15
|
+
</clipPath>
|
|
16
|
+
<clipPath id="alsslr2q2b">
|
|
17
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
18
|
+
</clipPath>
|
|
19
|
+
</defs>
|
|
20
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#c6mhelxnoa)" stroke="#3C3C3C" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round">
|
|
3
|
+
<path d="M18.822 19.471a2.154 2.154 0 0 1-1.72-3.244c.168-.285.288-.596.364-.93.262-1.155-.076-2.408-.907-3.355L13.173 8.09c-1.36-1.547-3.61-1.796-5.014-.56l-.417.364c-1.338 1.178-1.445 3.307-.25 4.85.73.937.56 2.293-.377 3.021a2.155 2.155 0 0 1-3.022-.377c-2.591-3.338-2.24-8.05.804-10.725l.418-.369c3.191-2.804 8.164-2.378 11.093.947l3.387 3.853c1.742 1.982 2.44 4.654 1.875 7.156a7.635 7.635 0 0 1-.853 2.16 2.155 2.155 0 0 1-1.995 1.058v.004z" fill="#fff"/>
|
|
4
|
+
<path d="M21.333 29.538c-2.13-.138-4.254-1.125-5.823-2.907l-3.106-3.533c-2.231-2.538-2.796-6.04-1.44-8.925a2.155 2.155 0 0 1 3.897 1.836c-.617 1.306-.302 3.009.778 4.24l3.111 3.533c1.436 1.631 3.747 1.956 5.151.716l.418-.365c1.307-1.15 1.383-3.315.17-4.929a2.155 2.155 0 1 1 3.444-2.59c2.56 3.4 2.222 8.124-.77 10.755l-.417.364c-1.524 1.338-3.467 1.93-5.413 1.8v.005z" fill="#D8E5F9"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="c6mhelxnoa">
|
|
8
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#cz5dntpaja)" stroke="#0049B9" stroke-width="1.333" stroke-linecap="round" stroke-linejoin="round">
|
|
3
|
+
<path d="M18.822 19.471a2.154 2.154 0 0 1-1.72-3.244c.168-.285.288-.596.364-.93.262-1.155-.076-2.408-.907-3.355L13.173 8.09c-1.36-1.547-3.61-1.796-5.014-.56l-.417.364c-1.338 1.178-1.445 3.307-.25 4.85.73.937.56 2.293-.377 3.021a2.155 2.155 0 0 1-3.022-.377c-2.591-3.338-2.24-8.05.804-10.725l.418-.369c3.191-2.804 8.164-2.378 11.093.947l3.387 3.853c1.742 1.982 2.44 4.654 1.875 7.156a7.635 7.635 0 0 1-.853 2.16 2.155 2.155 0 0 1-1.995 1.058v.004z" fill="#fff"/>
|
|
4
|
+
<path d="M21.333 29.538c-2.13-.138-4.254-1.125-5.823-2.907l-3.106-3.533c-2.231-2.538-2.796-6.04-1.44-8.924a2.155 2.155 0 0 1 3.897 1.835c-.617 1.307-.302 3.009.778 4.24l3.111 3.533c1.436 1.631 3.747 1.956 5.151.716l.418-.364c1.307-1.152 1.383-3.316.17-4.93a2.155 2.155 0 1 1 3.444-2.59c2.56 3.4 2.222 8.124-.77 10.755l-.417.364c-1.524 1.338-3.467 1.93-5.413 1.8v.005z" fill="#59B9FF"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="cz5dntpaja">
|
|
8
|
+
<path fill="#fff" d="M0 0h32v32H0z"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
icon: string
|
|
6
|
+
title: string
|
|
7
|
+
badge?: string
|
|
8
|
+
badgeVariant?: 'red' | 'yellow' | 'green' | 'blue'
|
|
9
|
+
summary?: string
|
|
10
|
+
defaultOpen?: boolean
|
|
11
|
+
}>()
|
|
12
|
+
|
|
13
|
+
const isOpen = ref(props.defaultOpen ?? false)
|
|
14
|
+
|
|
15
|
+
function toggle() {
|
|
16
|
+
isOpen.value = !isOpen.value
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<div class="accordion" :class="{ open: isOpen }">
|
|
22
|
+
<button class="accordion-trigger" @click="toggle">
|
|
23
|
+
<div class="trigger-left">
|
|
24
|
+
<span class="trigger-icon">{{ icon }}</span>
|
|
25
|
+
<span>{{ title }}</span>
|
|
26
|
+
<span v-if="badge" class="trigger-badge" :class="`badge-${badgeVariant ?? 'blue'}`">
|
|
27
|
+
{{ badge }}
|
|
28
|
+
</span>
|
|
29
|
+
<span v-if="summary" class="trigger-summary">{{ summary }}</span>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="trigger-right">
|
|
32
|
+
<span class="chevron">▼</span>
|
|
33
|
+
</div>
|
|
34
|
+
</button>
|
|
35
|
+
<div class="divider" />
|
|
36
|
+
<div class="accordion-body">
|
|
37
|
+
<div class="accordion-content">
|
|
38
|
+
<slot />
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<style scoped>
|
|
45
|
+
.accordion {
|
|
46
|
+
background: var(--card-bg);
|
|
47
|
+
border-radius: var(--radius);
|
|
48
|
+
box-shadow: var(--shadow);
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
border: 1px solid var(--border-light);
|
|
51
|
+
}
|
|
52
|
+
.accordion-trigger {
|
|
53
|
+
width: 100%;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
padding: 16px 20px;
|
|
58
|
+
background: none;
|
|
59
|
+
border: none;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
font-family: var(--font-kr);
|
|
62
|
+
font-size: 15px;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
color: var(--text-primary);
|
|
65
|
+
text-align: left;
|
|
66
|
+
transition: background 0.15s;
|
|
67
|
+
}
|
|
68
|
+
.accordion-trigger:hover { background: #fafafa; }
|
|
69
|
+
.trigger-left { display: flex; align-items: center; gap: 10px; }
|
|
70
|
+
.trigger-icon { font-size: 18px; }
|
|
71
|
+
.trigger-badge {
|
|
72
|
+
font-size: 11px;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
padding: 2px 8px;
|
|
75
|
+
border-radius: 10px;
|
|
76
|
+
margin-left: 4px;
|
|
77
|
+
}
|
|
78
|
+
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
|
|
79
|
+
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
|
|
80
|
+
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
|
|
81
|
+
.badge-blue { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
|
|
82
|
+
.trigger-summary {
|
|
83
|
+
font-size: 13px;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
color: var(--text-secondary);
|
|
86
|
+
margin-left: 8px;
|
|
87
|
+
}
|
|
88
|
+
.trigger-right { display: flex; align-items: center; gap: 8px; }
|
|
89
|
+
.chevron {
|
|
90
|
+
width: 20px;
|
|
91
|
+
height: 20px;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
transition: transform 0.2s ease;
|
|
96
|
+
color: var(--text-muted);
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
}
|
|
99
|
+
.accordion.open .chevron { transform: rotate(180deg); }
|
|
100
|
+
.accordion-body {
|
|
101
|
+
max-height: 0;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
transition: max-height 0.25s ease;
|
|
104
|
+
}
|
|
105
|
+
.accordion.open .accordion-body { max-height: 4000px; }
|
|
106
|
+
.accordion-content { padding: 0 20px 20px; }
|
|
107
|
+
.divider { height: 1px; background: var(--border-light); margin: 0 20px; }
|
|
108
|
+
</style>
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
|
3
|
+
import { useRoute, useRouter } from 'vue-router'
|
|
4
|
+
import { sprints, featurePages, type SprintConfig } from '../data/navigation'
|
|
5
|
+
|
|
6
|
+
const route = useRoute()
|
|
7
|
+
const router = useRouter()
|
|
8
|
+
|
|
9
|
+
const currentPageId = computed(() => (route.params.pageId as string) || '')
|
|
10
|
+
const currentSprint = computed(() => (route.params.sprint as string) || sprints[0]?.id || '')
|
|
11
|
+
|
|
12
|
+
const activeSprintLabel = computed(() => {
|
|
13
|
+
const s = sprints.find(s => s.id === currentSprint.value)
|
|
14
|
+
return s?.label ?? currentSprint.value.toUpperCase()
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const isPolicyPage = computed(() => route.path.startsWith('/policy'))
|
|
18
|
+
const isRetroPage = computed(() => route.path.startsWith('/retro'))
|
|
19
|
+
|
|
20
|
+
// Dropdown state
|
|
21
|
+
const sprintOpen = ref(false)
|
|
22
|
+
|
|
23
|
+
function toggleSprint() {
|
|
24
|
+
sprintOpen.value = !sprintOpen.value
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function selectSprint(s: SprintConfig) {
|
|
28
|
+
sprintOpen.value = false
|
|
29
|
+
if (isPolicyPage.value) {
|
|
30
|
+
router.push(`/policy/${s.id}`)
|
|
31
|
+
} else if (isRetroPage.value) {
|
|
32
|
+
router.push(`/retro/${s.id}`)
|
|
33
|
+
} else {
|
|
34
|
+
router.push(`/${currentPageId.value}/${s.id}`)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function goHome() {
|
|
39
|
+
router.push('/')
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Close dropdown on outside click
|
|
43
|
+
function onDocClick(e: MouseEvent) {
|
|
44
|
+
const target = e.target as HTMLElement
|
|
45
|
+
if (!target.closest('.dropdown')) {
|
|
46
|
+
sprintOpen.value = false
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
onMounted(() => document.addEventListener('click', onDocClick))
|
|
51
|
+
onUnmounted(() => document.removeEventListener('click', onDocClick))
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<template>
|
|
55
|
+
<header class="app-header">
|
|
56
|
+
<div class="header-left">
|
|
57
|
+
<!-- Logo -->
|
|
58
|
+
<div class="header-logo" @click="goHome">
|
|
59
|
+
<!-- TODO: Change logo text to your project name -->
|
|
60
|
+
<span class="logo-mark">SPEC</span>
|
|
61
|
+
<span class="logo-sub">SITE</span>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<!-- Feature page tabs -->
|
|
65
|
+
<nav class="page-tabs">
|
|
66
|
+
<router-link
|
|
67
|
+
v-for="fp in featurePages"
|
|
68
|
+
:key="fp.id"
|
|
69
|
+
:to="`/${fp.id}/${currentSprint}`"
|
|
70
|
+
class="page-tab"
|
|
71
|
+
:class="{ active: !isPolicyPage && !isRetroPage && currentPageId === fp.id }"
|
|
72
|
+
>
|
|
73
|
+
{{ fp.label }}
|
|
74
|
+
</router-link>
|
|
75
|
+
</nav>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div class="header-right">
|
|
79
|
+
<!-- Sprint version selector -->
|
|
80
|
+
<div class="dropdown" :class="{ open: sprintOpen }">
|
|
81
|
+
<button class="dropdown-trigger" @click.stop="toggleSprint">
|
|
82
|
+
{{ activeSprintLabel }}
|
|
83
|
+
<span class="chevron">▾</span>
|
|
84
|
+
</button>
|
|
85
|
+
<div v-if="sprintOpen" class="dropdown-menu">
|
|
86
|
+
<div
|
|
87
|
+
v-for="s in sprints"
|
|
88
|
+
:key="s.id"
|
|
89
|
+
class="dropdown-item"
|
|
90
|
+
:class="{ active: s.id === currentSprint }"
|
|
91
|
+
@click="selectSprint(s)"
|
|
92
|
+
>
|
|
93
|
+
{{ s.label }}
|
|
94
|
+
<span class="sprint-theme">{{ s.theme }}</span>
|
|
95
|
+
<span v-if="s.active" class="dot-active"></span>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<!-- Sprint-level links -->
|
|
101
|
+
<div class="sprint-links">
|
|
102
|
+
<router-link
|
|
103
|
+
:to="`/policy/${currentSprint}`"
|
|
104
|
+
class="sprint-link"
|
|
105
|
+
:class="{ active: isPolicyPage }"
|
|
106
|
+
>
|
|
107
|
+
Policy
|
|
108
|
+
</router-link>
|
|
109
|
+
<span class="sprint-link-sep">|</span>
|
|
110
|
+
<router-link
|
|
111
|
+
:to="`/retro/${currentSprint}`"
|
|
112
|
+
class="sprint-link"
|
|
113
|
+
:class="{ active: isRetroPage }"
|
|
114
|
+
>
|
|
115
|
+
Retro
|
|
116
|
+
</router-link>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</header>
|
|
120
|
+
</template>
|
|
121
|
+
|
|
122
|
+
<style scoped>
|
|
123
|
+
.app-header {
|
|
124
|
+
height: var(--header-height);
|
|
125
|
+
background: #fff;
|
|
126
|
+
border-bottom: 1px solid var(--border);
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
padding: 0 16px;
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
gap: 8px;
|
|
133
|
+
z-index: 500;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* ---- Left section ---- */
|
|
137
|
+
.header-left {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
gap: 4px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.header-logo {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: baseline;
|
|
146
|
+
gap: 5px;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
padding: 6px 10px;
|
|
149
|
+
border-radius: 6px;
|
|
150
|
+
transition: background 0.15s;
|
|
151
|
+
margin-right: 8px;
|
|
152
|
+
}
|
|
153
|
+
.header-logo:hover { background: var(--bg); }
|
|
154
|
+
|
|
155
|
+
.logo-mark {
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
font-weight: 800;
|
|
158
|
+
color: var(--primary);
|
|
159
|
+
letter-spacing: -0.5px;
|
|
160
|
+
}
|
|
161
|
+
.logo-sub {
|
|
162
|
+
font-size: 10px;
|
|
163
|
+
font-weight: 700;
|
|
164
|
+
color: var(--text-muted);
|
|
165
|
+
letter-spacing: 2px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ---- Page tabs ---- */
|
|
169
|
+
.page-tabs {
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
gap: 2px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.page-tab {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
padding: 6px 12px;
|
|
179
|
+
font-size: 13px;
|
|
180
|
+
font-weight: 500;
|
|
181
|
+
color: var(--text-secondary);
|
|
182
|
+
border-radius: 6px;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
transition: all 0.15s;
|
|
185
|
+
text-decoration: none;
|
|
186
|
+
white-space: nowrap;
|
|
187
|
+
}
|
|
188
|
+
.page-tab:hover { background: var(--bg); color: var(--text-primary); }
|
|
189
|
+
.page-tab.active {
|
|
190
|
+
background: var(--primary-light);
|
|
191
|
+
color: var(--primary);
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* ---- Right section ---- */
|
|
196
|
+
.header-right {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 4px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* ---- Dropdown ---- */
|
|
203
|
+
.dropdown { position: relative; }
|
|
204
|
+
|
|
205
|
+
.dropdown-trigger {
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: 4px;
|
|
209
|
+
padding: 6px 10px;
|
|
210
|
+
border-radius: 6px;
|
|
211
|
+
border: 1px solid transparent;
|
|
212
|
+
background: none;
|
|
213
|
+
font-size: 13px;
|
|
214
|
+
font-weight: 600;
|
|
215
|
+
font-family: var(--font-kr);
|
|
216
|
+
color: var(--text-primary);
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
transition: all 0.15s;
|
|
219
|
+
}
|
|
220
|
+
.dropdown-trigger:hover { background: var(--bg); }
|
|
221
|
+
.dropdown.open .dropdown-trigger {
|
|
222
|
+
background: var(--bg);
|
|
223
|
+
border-color: var(--border);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.chevron {
|
|
227
|
+
font-size: 10px;
|
|
228
|
+
color: var(--text-muted);
|
|
229
|
+
transition: transform 0.15s;
|
|
230
|
+
}
|
|
231
|
+
.dropdown.open .chevron { transform: rotate(180deg); }
|
|
232
|
+
|
|
233
|
+
.dropdown-menu {
|
|
234
|
+
position: absolute;
|
|
235
|
+
top: calc(100% + 4px);
|
|
236
|
+
right: 0;
|
|
237
|
+
min-width: 240px;
|
|
238
|
+
background: #fff;
|
|
239
|
+
border: 1px solid var(--border);
|
|
240
|
+
border-radius: 8px;
|
|
241
|
+
box-shadow: var(--shadow-md);
|
|
242
|
+
padding: 4px;
|
|
243
|
+
z-index: 1000;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.dropdown-item {
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
gap: 8px;
|
|
250
|
+
padding: 8px 12px;
|
|
251
|
+
font-size: 13px;
|
|
252
|
+
border-radius: 6px;
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
color: var(--text-secondary);
|
|
255
|
+
transition: all 0.1s;
|
|
256
|
+
}
|
|
257
|
+
.dropdown-item:hover { background: var(--bg); color: var(--text-primary); }
|
|
258
|
+
.dropdown-item.active { color: var(--primary); font-weight: 600; }
|
|
259
|
+
|
|
260
|
+
.sprint-theme {
|
|
261
|
+
font-size: 11px;
|
|
262
|
+
color: var(--text-muted);
|
|
263
|
+
margin-left: auto;
|
|
264
|
+
white-space: nowrap;
|
|
265
|
+
}
|
|
266
|
+
.dropdown-item.active .sprint-theme { color: var(--primary); opacity: 0.6; }
|
|
267
|
+
|
|
268
|
+
.dot-active {
|
|
269
|
+
width: 6px;
|
|
270
|
+
height: 6px;
|
|
271
|
+
border-radius: 50%;
|
|
272
|
+
background: var(--green);
|
|
273
|
+
flex-shrink: 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* ---- Sprint-level links ---- */
|
|
277
|
+
.sprint-links {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
gap: 2px;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.sprint-link {
|
|
284
|
+
padding: 6px 10px;
|
|
285
|
+
font-size: 13px;
|
|
286
|
+
font-weight: 500;
|
|
287
|
+
color: var(--text-secondary);
|
|
288
|
+
border-radius: 6px;
|
|
289
|
+
text-decoration: none;
|
|
290
|
+
transition: all 0.15s;
|
|
291
|
+
}
|
|
292
|
+
.sprint-link:hover { background: var(--bg); color: var(--text-primary); }
|
|
293
|
+
.sprint-link.active {
|
|
294
|
+
background: var(--primary-light);
|
|
295
|
+
color: var(--primary);
|
|
296
|
+
font-weight: 600;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.sprint-link-sep {
|
|
300
|
+
color: var(--border);
|
|
301
|
+
font-size: 12px;
|
|
302
|
+
user-select: none;
|
|
303
|
+
}
|
|
304
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineProps<{
|
|
3
|
+
variant: 'red' | 'yellow' | 'green' | 'blue'
|
|
4
|
+
label: string
|
|
5
|
+
}>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<span class="badge" :class="`badge-${variant}`">{{ label }}</span>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<style scoped>
|
|
13
|
+
.badge {
|
|
14
|
+
font-size: 11px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
padding: 2px 8px;
|
|
17
|
+
border-radius: 10px;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
|
|
22
|
+
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
|
|
23
|
+
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
|
|
24
|
+
.badge-blue { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
|
|
25
|
+
</style>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
defineProps<{
|
|
5
|
+
severity: 'red' | 'yellow' | 'green'
|
|
6
|
+
severityLabel: string
|
|
7
|
+
title: string
|
|
8
|
+
action: string
|
|
9
|
+
effect: string
|
|
10
|
+
buttons: { label: string; variant: 'primary' | 'outline' }[]
|
|
11
|
+
}>()
|
|
12
|
+
|
|
13
|
+
const checked = ref(false)
|
|
14
|
+
|
|
15
|
+
function toggleCheck() {
|
|
16
|
+
checked.value = !checked.value
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<div class="coaching-card" :class="[`severity-${severity}`, { done: checked }]">
|
|
22
|
+
<div class="coaching-card-top">
|
|
23
|
+
<div class="coaching-severity" :class="severity">
|
|
24
|
+
● {{ severityLabel }}
|
|
25
|
+
</div>
|
|
26
|
+
<div
|
|
27
|
+
class="coaching-check"
|
|
28
|
+
:class="{ checked }"
|
|
29
|
+
@click.stop="toggleCheck"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="coaching-title">{{ title }}</div>
|
|
33
|
+
<div class="coaching-action">{{ action }}</div>
|
|
34
|
+
<div class="coaching-effect">{{ effect }}</div>
|
|
35
|
+
<div class="coaching-buttons">
|
|
36
|
+
<button
|
|
37
|
+
v-for="(btn, i) in buttons"
|
|
38
|
+
:key="i"
|
|
39
|
+
class="btn"
|
|
40
|
+
:class="`btn-${btn.variant}`"
|
|
41
|
+
@click.stop="btn.variant === 'primary' ? toggleCheck() : undefined"
|
|
42
|
+
>
|
|
43
|
+
{{ btn.label }}
|
|
44
|
+
</button>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<style scoped>
|
|
50
|
+
.coaching-card {
|
|
51
|
+
border-radius: var(--radius-sm);
|
|
52
|
+
padding: 16px;
|
|
53
|
+
border: 1px solid;
|
|
54
|
+
position: relative;
|
|
55
|
+
transition: opacity 0.2s;
|
|
56
|
+
}
|
|
57
|
+
.coaching-card.severity-red { background: var(--red-bg); border-color: var(--red-border); }
|
|
58
|
+
.coaching-card.severity-yellow { background: var(--yellow-bg); border-color: var(--yellow-border); }
|
|
59
|
+
.coaching-card.severity-green { background: var(--green-bg); border-color: var(--green-border); }
|
|
60
|
+
.coaching-card.done { opacity: 0.5; }
|
|
61
|
+
.coaching-card.done .coaching-title { text-decoration: line-through; }
|
|
62
|
+
.coaching-card-top { display: flex; justify-content: space-between; align-items: center; }
|
|
63
|
+
.coaching-severity {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
gap: 4px;
|
|
67
|
+
font-size: 11px;
|
|
68
|
+
font-weight: 700;
|
|
69
|
+
text-transform: uppercase;
|
|
70
|
+
letter-spacing: 0.5px;
|
|
71
|
+
margin-bottom: 8px;
|
|
72
|
+
}
|
|
73
|
+
.coaching-severity.red { color: var(--red); }
|
|
74
|
+
.coaching-severity.yellow { color: #92400e; }
|
|
75
|
+
.coaching-severity.green { color: var(--green); }
|
|
76
|
+
.coaching-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
|
|
77
|
+
.coaching-action {
|
|
78
|
+
font-size: 13px;
|
|
79
|
+
color: var(--text-secondary);
|
|
80
|
+
line-height: 1.5;
|
|
81
|
+
margin-bottom: 4px;
|
|
82
|
+
white-space: pre-wrap;
|
|
83
|
+
}
|
|
84
|
+
.coaching-effect { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
|
|
85
|
+
.coaching-check {
|
|
86
|
+
width: 20px; height: 20px; border-radius: 50%;
|
|
87
|
+
border: 2px solid var(--border);
|
|
88
|
+
cursor: pointer; flex-shrink: 0;
|
|
89
|
+
transition: all 0.2s;
|
|
90
|
+
}
|
|
91
|
+
.coaching-check:hover { border-color: var(--primary); background: var(--primary-light); }
|
|
92
|
+
.coaching-check.checked {
|
|
93
|
+
border-color: var(--green); background: var(--green);
|
|
94
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
|
|
95
|
+
background-size: 14px; background-position: center; background-repeat: no-repeat;
|
|
96
|
+
}
|
|
97
|
+
.coaching-buttons { display: flex; gap: 8px; justify-content: flex-end; }
|
|
98
|
+
.btn {
|
|
99
|
+
padding: 7px 16px;
|
|
100
|
+
border-radius: 6px;
|
|
101
|
+
font-size: 13px;
|
|
102
|
+
font-family: var(--font-kr);
|
|
103
|
+
font-weight: 500;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
border: none;
|
|
106
|
+
transition: all 0.15s;
|
|
107
|
+
}
|
|
108
|
+
.btn-primary { background: var(--primary); color: #fff; }
|
|
109
|
+
.btn-primary:hover { background: var(--primary-dark); }
|
|
110
|
+
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text-primary); }
|
|
111
|
+
.btn-outline:hover { background: #f9fafb; }
|
|
112
|
+
</style>
|