@shinnodua/agent-workflows 0.0.0-stage → 0.2.6
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/.agents/agents/backend-developer/agent.md +39 -0
- package/.agents/agents/frontend-developer/agent.md +42 -0
- package/.agents/agents/project-manager/agent.md +37 -0
- package/.agents/agents/tech-lead/agent.md +41 -0
- package/.agents/agents/ui-ux-designer/agent.md +41 -0
- package/.agents/skills/add-project/SKILL.md +90 -0
- package/.agents/skills/add-project/agents/openai.yaml +4 -0
- package/.agents/skills/add-project/references/save-protocol.md +90 -0
- package/.agents/skills/approve-plan/SKILL.md +86 -0
- package/.agents/skills/approve-plan/agents/openai.yaml +4 -0
- package/.agents/skills/approve-prd/SKILL.md +59 -0
- package/.agents/skills/approve-prd/agents/openai.yaml +4 -0
- package/.agents/skills/auto-mode/SKILL.md +103 -0
- package/.agents/skills/auto-mode/agents/openai.yaml +4 -0
- package/.agents/skills/create-design/SKILL.md +197 -0
- package/.agents/skills/create-design/agents/openai.yaml +4 -0
- package/.agents/skills/create-diagram/SKILL.md +83 -0
- package/.agents/skills/create-diagram/agents/openai.yaml +4 -0
- package/.agents/skills/create-plan/SKILL.md +104 -0
- package/.agents/skills/create-plan/agents/openai.yaml +4 -0
- package/.agents/skills/create-prd/SKILL.md +82 -0
- package/.agents/skills/create-prd/agents/openai.yaml +4 -0
- package/.agents/skills/griling-plan/SKILL.md +114 -0
- package/.agents/skills/griling-plan/agents/openai.yaml +4 -0
- package/.agents/skills/griling-prd/SKILL.md +91 -0
- package/.agents/skills/griling-prd/agents/openai.yaml +4 -0
- package/.agents/skills/package-installation/SKILL.md +67 -0
- package/.agents/skills/package-installation/agents/openai.yaml +4 -0
- package/.agents/skills/project-setup/SKILL.md +104 -0
- package/.agents/skills/project-setup/agents/openai.yaml +3 -0
- package/.agents/skills/research/SKILL.md +61 -0
- package/.agents/skills/research/agents/openai.yaml +4 -0
- package/.agents/skills/sprint-meeting/SKILL.md +230 -0
- package/.agents/skills/sprint-meeting/agents/openai.yaml +4 -0
- package/.claude/agents/backend-developer.md +7 -0
- package/.claude/agents/frontend-developer.md +7 -0
- package/.claude/agents/project-manager.md +7 -0
- package/.claude/agents/tech-lead.md +7 -0
- package/.claude/agents/ui-ux-designer.md +7 -0
- package/.claude/skills/add-project/SKILL.md +10 -0
- package/.claude/skills/approve-plan/SKILL.md +8 -0
- package/.claude/skills/approve-prd/SKILL.md +8 -0
- package/.claude/skills/auto-mode/SKILL.md +8 -0
- package/.claude/skills/create-design/SKILL.md +8 -0
- package/.claude/skills/create-diagram/SKILL.md +8 -0
- package/.claude/skills/create-plan/SKILL.md +8 -0
- package/.claude/skills/create-prd/SKILL.md +8 -0
- package/.claude/skills/griling-plan/SKILL.md +8 -0
- package/.claude/skills/griling-prd/SKILL.md +8 -0
- package/.claude/skills/package-installation/SKILL.md +8 -0
- package/.claude/skills/project-setup/SKILL.md +8 -0
- package/.claude/skills/research/SKILL.md +8 -0
- package/.claude/skills/sprint-meeting/SKILL.md +8 -0
- package/.codex/prompts/add-project.md +3 -0
- package/.codex/prompts/approve-plan.md +3 -0
- package/.codex/prompts/approve-prd.md +3 -0
- package/.codex/prompts/auto-mode.md +3 -0
- package/.codex/prompts/create-design.md +3 -0
- package/.codex/prompts/create-diagram.md +3 -0
- package/.codex/prompts/create-plan.md +3 -0
- package/.codex/prompts/create-prd.md +3 -0
- package/.codex/prompts/griling-plan.md +3 -0
- package/.codex/prompts/griling-prd.md +3 -0
- package/.codex/prompts/grilling-plan.md +3 -0
- package/.codex/prompts/project-setup.md +3 -0
- package/.codex/prompts/research.md +3 -0
- package/.codex/prompts/sprint-meeting.md +3 -0
- package/.gitmodules.example +9 -0
- package/AGENTS.md +84 -0
- package/CLAUDE.md +1 -0
- package/INSTALL.md +284 -0
- package/LICENSE +21 -0
- package/README.md +342 -2
- package/bin/postinstall.js +57 -0
- package/bin/workflows.js +1172 -0
- package/bin/workflows.test.mjs +682 -0
- package/commands/add-project.md +20 -0
- package/commands/approve-plan.md +25 -0
- package/commands/approve-prd.md +24 -0
- package/commands/auto-mode.md +15 -0
- package/commands/create-design.md +20 -0
- package/commands/create-diagram.md +16 -0
- package/commands/create-plan.md +22 -0
- package/commands/create-prd.md +16 -0
- package/commands/griling-plan.md +16 -0
- package/commands/griling-prd.md +16 -0
- package/commands/grilling-plan.md +16 -0
- package/commands/project-setup.md +16 -0
- package/commands/research.md +16 -0
- package/commands/sprint-meeting.md +16 -0
- package/dashboard/.agents/skills/coding-conventions/SKILL.md +76 -0
- package/dashboard/.agents/skills/coding-conventions/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/design-system-guideline/SKILL.md +51 -0
- package/dashboard/.agents/skills/design-system-guideline/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/lint-and-fix/SKILL.md +55 -0
- package/dashboard/.agents/skills/lint-and-fix/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/taste-ui/SKILL.md +45 -0
- package/dashboard/.agents/skills/taste-ui/agents/openai.yaml +4 -0
- package/dashboard/AGENTS.md +43 -0
- package/dashboard/bun.lock +352 -0
- package/dashboard/index.html +12 -0
- package/dashboard/package.json +32 -0
- package/dashboard/src/App.tsx +5 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.tsx +80 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css +25 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.tsx +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.module.css +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx +35 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.tsx +150 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css +41 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.tsx +41 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.module.css +25 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.tsx +40 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.module.css +330 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.tsx +299 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css +74 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.tsx +79 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.module.css +133 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.tsx +233 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.module.css +53 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.tsx +163 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.module.css +41 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.tsx +48 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.module.css +97 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.tsx +128 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.module.css +9 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.tsx +318 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.module.css +221 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.tsx +344 -0
- package/dashboard/src/features/task-status/taskStatusConfig.ts +100 -0
- package/dashboard/src/features/task-status/utils/actionItems.ts +247 -0
- package/dashboard/src/features/task-status/utils/artifactGrouping.ts +328 -0
- package/dashboard/src/features/task-status/utils/hardnessScanner.ts +406 -0
- package/dashboard/src/features/task-status/utils/lifecycle.ts +73 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.module.css +11 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.tsx +104 -0
- package/dashboard/src/features/task-status/utils/markdownLinks.ts +83 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.module.css +74 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.tsx +326 -0
- package/dashboard/src/features/task-status/utils/status.ts +7 -0
- package/dashboard/src/features/task-status/utils/test/actionItems.test.ts +134 -0
- package/dashboard/src/features/task-status/utils/test/artifactGrouping.test.ts +294 -0
- package/dashboard/src/features/task-status/utils/test/hardnessScanner.test.ts +138 -0
- package/dashboard/src/features/task-status/utils/test/lifecycle.test.ts +49 -0
- package/dashboard/src/features/task-status/utils/test/markdownInline.test.ts +41 -0
- package/dashboard/src/features/task-status/utils/test/markdownLinks.test.ts +158 -0
- package/dashboard/src/features/task-status/utils/test/workspaceMetadata.test.ts +37 -0
- package/dashboard/src/features/task-status/utils/workspaceMetadata.ts +175 -0
- package/dashboard/src/main.tsx +16 -0
- package/dashboard/src/shared/design-system.css +134 -0
- package/dashboard/src/shared/design-system.tsx +84 -0
- package/dashboard/src/styles.css +41 -0
- package/dashboard/src/types.ts +133 -0
- package/dashboard/src/workspace-artifacts.d.ts +9 -0
- package/dashboard/tsconfig.json +22 -0
- package/dashboard/vite.config.ts +579 -0
- package/designs/.gitkeep +1 -0
- package/docs/add-project-command-completion.md +117 -0
- package/docs/public-npm-registry-completion.md +104 -0
- package/docs/workflows.png +0 -0
- package/docs/workspace-template-setup.md +229 -0
- package/meeting-logs/.gitkeep +1 -0
- package/modules/.gitkeep +1 -0
- package/package.json +96 -5
- package/plans/.gitkeep +1 -0
- package/prds/.gitkeep +1 -0
- package/project/PROJECT.md +26 -0
- package/project/repositories.json +72 -0
- package/project/validation.json +9 -0
- package/project/workflows.json +20 -0
- package/research/.gitkeep +1 -0
- package/roles/backend-developer.md +26 -0
- package/roles/frontend-developer.md +25 -0
- package/roles/project-manager.md +42 -0
- package/roles/tech-lead.md +42 -0
- package/roles/ui-ux-designer.md +43 -0
- package/scripts/add-project.mjs +990 -0
- package/scripts/add-project.test.mjs +804 -0
- package/scripts/check-staged-security.mjs +97 -0
- package/scripts/check-staged-security.test.mjs +68 -0
- package/scripts/workspace-integrity.ts +220 -0
- package/templates/auto-mode-completion-summary-template.md +78 -0
- package/templates/meeting-log-template.md +177 -0
- package/templates/plan-template.md +219 -0
- package/templates/prd-template.md +106 -0
- package/templates/research-template.md +119 -0
- package/workflows.md +590 -0
- package/workspace.config.json +43 -0
package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@reference "../../../../styles.css";
|
|
2
|
+
|
|
3
|
+
.button {
|
|
4
|
+
@apply w-full rounded-xl border-[3px] border-black p-3 text-left transition-transform hover:-translate-y-0.5 focus-visible:outline focus-visible:outline-[4px] focus-visible:outline-offset-2 focus-visible:outline-neo-blue;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.selected {
|
|
8
|
+
@apply bg-neo-yellow shadow-neo-active;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.default {
|
|
12
|
+
@apply bg-white;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.header {
|
|
16
|
+
@apply flex items-center justify-between gap-2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.title {
|
|
20
|
+
@apply min-w-0 truncate text-sm font-black;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.path {
|
|
24
|
+
@apply mt-1 block break-all text-xs font-black text-black/60;
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Artifact } from "../../../../types";
|
|
2
|
+
import { StatusBadge } from "../StatusBadge/StatusBadge";
|
|
3
|
+
import styles from "./ArtifactButton.module.css";
|
|
4
|
+
|
|
5
|
+
type ArtifactButtonProps = {
|
|
6
|
+
artifact: Artifact;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export function ArtifactButton(props: ArtifactButtonProps) {
|
|
12
|
+
const { artifact, isSelected, onSelect } = props;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<button
|
|
16
|
+
className={`${styles.button} ${
|
|
17
|
+
isSelected ? styles.selected : styles.default
|
|
18
|
+
}`}
|
|
19
|
+
onClick={onSelect}
|
|
20
|
+
type="button"
|
|
21
|
+
>
|
|
22
|
+
<span className={styles.header}>
|
|
23
|
+
<span className={styles.title}>{artifact.title}</span>
|
|
24
|
+
<StatusBadge status={artifact.status} />
|
|
25
|
+
</span>
|
|
26
|
+
<span className={styles.path}>{artifact.relativePath}</span>
|
|
27
|
+
</button>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@reference "../../../../styles.css";
|
|
2
|
+
|
|
3
|
+
.grid {
|
|
4
|
+
@apply grid gap-3 md:grid-cols-5;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.card {
|
|
8
|
+
@apply p-4;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.row {
|
|
12
|
+
@apply flex items-center justify-between gap-3;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.labelWrap {
|
|
16
|
+
@apply flex min-w-0 items-center gap-2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.icon {
|
|
20
|
+
@apply size-5 shrink-0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.label {
|
|
24
|
+
@apply truncate text-sm font-black uppercase;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.count {
|
|
28
|
+
@apply text-3xl font-black;
|
|
29
|
+
}
|
package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Card } from "../../../../shared/design-system";
|
|
2
|
+
import type { Artifact } from "../../../../types";
|
|
3
|
+
import { artifactTypes } from "../../taskStatusConfig";
|
|
4
|
+
import { countArtifactsByType } from "../../utils/artifactGrouping";
|
|
5
|
+
import styles from "./ArtifactSummaryCards.module.css";
|
|
6
|
+
|
|
7
|
+
type ArtifactSummaryCardsProps = {
|
|
8
|
+
artifacts: Artifact[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export function ArtifactSummaryCards(props: ArtifactSummaryCardsProps) {
|
|
12
|
+
const { artifacts } = props;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<section className={styles.grid}>
|
|
16
|
+
{artifactTypes.map((artifactType) => (
|
|
17
|
+
<Card
|
|
18
|
+
className={styles.card}
|
|
19
|
+
key={artifactType.type}
|
|
20
|
+
variant={artifactType.accent}
|
|
21
|
+
>
|
|
22
|
+
<div className={styles.row}>
|
|
23
|
+
<div className={styles.labelWrap}>
|
|
24
|
+
<artifactType.icon className={styles.icon} />
|
|
25
|
+
<span className={styles.label}>{artifactType.label}</span>
|
|
26
|
+
</div>
|
|
27
|
+
<span className={styles.count}>
|
|
28
|
+
{countArtifactsByType(artifacts, artifactType.type)}
|
|
29
|
+
</span>
|
|
30
|
+
</div>
|
|
31
|
+
</Card>
|
|
32
|
+
))}
|
|
33
|
+
</section>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@reference "../../../../styles.css";
|
|
2
|
+
|
|
3
|
+
.header {
|
|
4
|
+
@apply mb-3 flex items-center justify-between gap-3;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.titleWrap {
|
|
8
|
+
@apply flex items-center gap-2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.icon {
|
|
12
|
+
@apply size-5;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.title {
|
|
16
|
+
@apply text-2xl font-black;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.countBadge {
|
|
20
|
+
@apply rounded-full border-[3px] border-black bg-white px-3 py-1 text-xs font-black uppercase;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.list {
|
|
24
|
+
@apply grid gap-3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tabs {
|
|
28
|
+
@apply mb-4 flex flex-wrap gap-2 border-b-[3px] border-black pb-3;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tab {
|
|
32
|
+
@apply rounded-xl border-[3px] border-black px-3 py-2 text-sm font-black transition-transform hover:-translate-y-0.5;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tabActive {
|
|
36
|
+
@apply bg-neo-yellow shadow-neo-active;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tabInactive {
|
|
40
|
+
@apply bg-white;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tabCount {
|
|
44
|
+
@apply ml-2 text-xs text-black/60;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.card {
|
|
48
|
+
@apply p-4;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cardInner {
|
|
52
|
+
@apply flex flex-col gap-3 md:flex-row md:items-start md:justify-between;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cardText {
|
|
56
|
+
@apply min-w-0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.meta {
|
|
60
|
+
@apply flex flex-wrap items-center gap-2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.singular {
|
|
64
|
+
@apply text-sm font-black uppercase;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.artifactTitle {
|
|
68
|
+
@apply mt-2 text-xl font-black leading-tight;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.path {
|
|
72
|
+
@apply mt-1 break-all text-xs font-black text-black/60;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.emptyCard {
|
|
76
|
+
@apply p-5;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.emptyTitle {
|
|
80
|
+
@apply font-black;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.emptyCopy {
|
|
84
|
+
@apply mt-1 text-sm font-bold text-black/60;
|
|
85
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { Button, Card } from "../../../../shared/design-system";
|
|
2
|
+
import type {
|
|
3
|
+
Artifact,
|
|
4
|
+
DocumentModuleFilter,
|
|
5
|
+
DocumentModuleTab,
|
|
6
|
+
} from "../../../../types";
|
|
7
|
+
import type { artifactTypes } from "../../taskStatusConfig";
|
|
8
|
+
import { StatusBadge } from "../StatusBadge/StatusBadge";
|
|
9
|
+
import styles from "./CategoryPanel.module.css";
|
|
10
|
+
|
|
11
|
+
type CategoryPanelProps = {
|
|
12
|
+
activeDocumentModule?: DocumentModuleFilter;
|
|
13
|
+
artifactsForType: Artifact[];
|
|
14
|
+
documentModuleTabs?: DocumentModuleTab[];
|
|
15
|
+
documentModuleCounts?: Record<DocumentModuleFilter, number>;
|
|
16
|
+
onSelectArtifact: (artifact: Artifact) => void;
|
|
17
|
+
onSelectDocumentModule?: (module: DocumentModuleFilter) => void;
|
|
18
|
+
type: (typeof artifactTypes)[number];
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export function CategoryPanel(props: CategoryPanelProps) {
|
|
22
|
+
const {
|
|
23
|
+
activeDocumentModule,
|
|
24
|
+
artifactsForType,
|
|
25
|
+
documentModuleTabs,
|
|
26
|
+
documentModuleCounts,
|
|
27
|
+
onSelectArtifact,
|
|
28
|
+
onSelectDocumentModule,
|
|
29
|
+
type,
|
|
30
|
+
} = props;
|
|
31
|
+
const Icon = type.icon;
|
|
32
|
+
const shouldShowDocumentTabs =
|
|
33
|
+
type.type === "document" &&
|
|
34
|
+
activeDocumentModule &&
|
|
35
|
+
documentModuleTabs &&
|
|
36
|
+
documentModuleCounts &&
|
|
37
|
+
onSelectDocumentModule;
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<section>
|
|
41
|
+
<div className={styles.header}>
|
|
42
|
+
<div className={styles.titleWrap}>
|
|
43
|
+
<Icon className={styles.icon} />
|
|
44
|
+
<h2 className={styles.title}>{type.label}</h2>
|
|
45
|
+
</div>
|
|
46
|
+
<span className={styles.countBadge}>
|
|
47
|
+
{artifactsForType.length} found
|
|
48
|
+
</span>
|
|
49
|
+
</div>
|
|
50
|
+
{shouldShowDocumentTabs ? (
|
|
51
|
+
<DocumentModuleTabs
|
|
52
|
+
activeModule={activeDocumentModule}
|
|
53
|
+
counts={documentModuleCounts}
|
|
54
|
+
tabs={documentModuleTabs}
|
|
55
|
+
onSelectModule={onSelectDocumentModule}
|
|
56
|
+
/>
|
|
57
|
+
) : null}
|
|
58
|
+
|
|
59
|
+
{artifactsForType.length > 0 ? (
|
|
60
|
+
<div className={styles.list}>
|
|
61
|
+
{artifactsForType.map((artifact) => (
|
|
62
|
+
<CategoryArtifactCard
|
|
63
|
+
artifact={artifact}
|
|
64
|
+
key={artifact.relativePath}
|
|
65
|
+
onSelectArtifact={onSelectArtifact}
|
|
66
|
+
type={type}
|
|
67
|
+
/>
|
|
68
|
+
))}
|
|
69
|
+
</div>
|
|
70
|
+
) : (
|
|
71
|
+
<CategoryEmptyState label={type.label} />
|
|
72
|
+
)}
|
|
73
|
+
</section>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function DocumentModuleTabs(props: {
|
|
78
|
+
activeModule: DocumentModuleFilter;
|
|
79
|
+
counts: Record<DocumentModuleFilter, number>;
|
|
80
|
+
tabs: DocumentModuleTab[];
|
|
81
|
+
onSelectModule: (module: DocumentModuleFilter) => void;
|
|
82
|
+
}) {
|
|
83
|
+
const { activeModule, counts, tabs, onSelectModule } = props;
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<div className={styles.tabs}>
|
|
87
|
+
{tabs.map((tab) => {
|
|
88
|
+
const isActive = activeModule === tab.module;
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<button
|
|
92
|
+
className={`${styles.tab} ${
|
|
93
|
+
isActive ? styles.tabActive : styles.tabInactive
|
|
94
|
+
}`}
|
|
95
|
+
key={tab.module}
|
|
96
|
+
onClick={() => onSelectModule(tab.module)}
|
|
97
|
+
type="button"
|
|
98
|
+
>
|
|
99
|
+
{tab.label}
|
|
100
|
+
<span className={styles.tabCount}>{counts[tab.module]}</span>
|
|
101
|
+
</button>
|
|
102
|
+
);
|
|
103
|
+
})}
|
|
104
|
+
</div>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function CategoryArtifactCard(props: {
|
|
109
|
+
artifact: Artifact;
|
|
110
|
+
onSelectArtifact: (artifact: Artifact) => void;
|
|
111
|
+
type: (typeof artifactTypes)[number];
|
|
112
|
+
}) {
|
|
113
|
+
const { artifact, onSelectArtifact, type } = props;
|
|
114
|
+
|
|
115
|
+
return (
|
|
116
|
+
<Card className={styles.card} variant={type.accent}>
|
|
117
|
+
<div className={styles.cardInner}>
|
|
118
|
+
<div className={styles.cardText}>
|
|
119
|
+
<div className={styles.meta}>
|
|
120
|
+
<span className={styles.singular}>{type.singular}</span>
|
|
121
|
+
<StatusBadge status={artifact.status} />
|
|
122
|
+
</div>
|
|
123
|
+
<h3 className={styles.artifactTitle}>{artifact.title}</h3>
|
|
124
|
+
<p className={styles.path}>{artifact.relativePath}</p>
|
|
125
|
+
</div>
|
|
126
|
+
<Button
|
|
127
|
+
onClick={() => onSelectArtifact(artifact)}
|
|
128
|
+
size="sm"
|
|
129
|
+
variant="white"
|
|
130
|
+
>
|
|
131
|
+
Read
|
|
132
|
+
</Button>
|
|
133
|
+
</div>
|
|
134
|
+
</Card>
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function CategoryEmptyState(props: { label: string }) {
|
|
139
|
+
const { label } = props;
|
|
140
|
+
|
|
141
|
+
return (
|
|
142
|
+
<Card className={styles.emptyCard} variant="white">
|
|
143
|
+
<p className={styles.emptyTitle}>No {label.toLowerCase()} found.</p>
|
|
144
|
+
<p className={styles.emptyCopy}>
|
|
145
|
+
The dashboard is watching the approved workspace folder for this
|
|
146
|
+
artifact type.
|
|
147
|
+
</p>
|
|
148
|
+
</Card>
|
|
149
|
+
);
|
|
150
|
+
}
|
package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@reference "../../../../styles.css";
|
|
2
|
+
|
|
3
|
+
.header {
|
|
4
|
+
@apply grid gap-5 xl:grid-cols-[1fr_320px] xl:items-end;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.eyebrow {
|
|
8
|
+
@apply mb-3 inline-flex items-center gap-2 rounded-full border-[3px] border-black bg-neo-blue px-4 py-2 font-black;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.icon {
|
|
12
|
+
@apply size-5;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.title {
|
|
16
|
+
@apply max-w-4xl text-4xl font-black leading-none sm:text-5xl;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.copy {
|
|
20
|
+
@apply mt-3 max-w-3xl text-base font-bold text-black/70 sm:text-lg;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.summaryCard {
|
|
24
|
+
@apply p-4;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.summaryLabel {
|
|
28
|
+
@apply text-sm font-black uppercase;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.summaryCount {
|
|
32
|
+
@apply mt-2 text-2xl font-black;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.summaryTime {
|
|
36
|
+
@apply mt-1 text-sm font-bold;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.summaryWarning {
|
|
40
|
+
@apply m-0 text-xs font-black text-neo-pink;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LayoutDashboard } from "lucide-react";
|
|
2
|
+
import { Card } from "../../../../shared/design-system";
|
|
3
|
+
import styles from "./DashboardHeader.module.css";
|
|
4
|
+
|
|
5
|
+
type DashboardHeaderProps = {
|
|
6
|
+
artifactCount: number;
|
|
7
|
+
generatedAt: string;
|
|
8
|
+
markdownMetadataCount: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export function DashboardHeader(props: DashboardHeaderProps) {
|
|
12
|
+
const { artifactCount, generatedAt, markdownMetadataCount } = props;
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<section className={styles.header}>
|
|
16
|
+
<div>
|
|
17
|
+
<div className={styles.eyebrow}>
|
|
18
|
+
<LayoutDashboard className={styles.icon} />
|
|
19
|
+
Agent Workflow Workspace
|
|
20
|
+
</div>
|
|
21
|
+
<h1 className={styles.title}>Task Status Page</h1>
|
|
22
|
+
<p className={styles.copy}>
|
|
23
|
+
Local task tracking with a readable Markdown view for PRDs, research,
|
|
24
|
+
designs, plans, and documents.
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
27
|
+
<Card variant="yellow" className={styles.summaryCard}>
|
|
28
|
+
<p className={styles.summaryLabel}>Generated from files</p>
|
|
29
|
+
<p className={styles.summaryCount}>{artifactCount} artifacts</p>
|
|
30
|
+
<p className={styles.summaryTime}>
|
|
31
|
+
{new Date(generatedAt).toLocaleString()}
|
|
32
|
+
</p>
|
|
33
|
+
{markdownMetadataCount > 0 ? (
|
|
34
|
+
<p className={styles.summaryWarning}>
|
|
35
|
+
{markdownMetadataCount} Markdown metadata files
|
|
36
|
+
</p>
|
|
37
|
+
) : null}
|
|
38
|
+
</Card>
|
|
39
|
+
</section>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@reference "../../../../styles.css";
|
|
2
|
+
|
|
3
|
+
.card {
|
|
4
|
+
@apply p-4;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.header {
|
|
8
|
+
@apply mb-3 flex items-center justify-between gap-3;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.title {
|
|
12
|
+
@apply text-2xl font-black;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.countBadge {
|
|
16
|
+
@apply rounded-full border-[3px] border-black bg-neo-lime px-3 py-1 text-xs font-black uppercase;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.grid {
|
|
20
|
+
@apply grid gap-2 md:grid-cols-2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.empty {
|
|
24
|
+
@apply rounded-xl border-[3px] border-black bg-background p-3 text-sm font-bold;
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Card } from "../../../../shared/design-system";
|
|
2
|
+
import type { Artifact } from "../../../../types";
|
|
3
|
+
import { ArtifactButton } from "../ArtifactButton/ArtifactButton";
|
|
4
|
+
import styles from "./FilesPanel.module.css";
|
|
5
|
+
|
|
6
|
+
type FilesPanelProps = {
|
|
7
|
+
activeArtifact: Artifact | null;
|
|
8
|
+
files: Artifact[];
|
|
9
|
+
onSelectArtifact: (artifact: Artifact) => void;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export function FilesPanel(props: FilesPanelProps) {
|
|
14
|
+
const { activeArtifact, files, onSelectArtifact, title } = props;
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<Card className={styles.card} variant="white">
|
|
18
|
+
<div className={styles.header}>
|
|
19
|
+
<h2 className={styles.title}>{title}</h2>
|
|
20
|
+
<span className={styles.countBadge}>{files.length} files</span>
|
|
21
|
+
</div>
|
|
22
|
+
<div className={styles.grid}>
|
|
23
|
+
{files.length > 0 ? (
|
|
24
|
+
files.map((artifact) => (
|
|
25
|
+
<ArtifactButton
|
|
26
|
+
artifact={artifact}
|
|
27
|
+
isSelected={
|
|
28
|
+
activeArtifact?.relativePath === artifact.relativePath
|
|
29
|
+
}
|
|
30
|
+
key={artifact.relativePath}
|
|
31
|
+
onSelect={() => onSelectArtifact(artifact)}
|
|
32
|
+
/>
|
|
33
|
+
))
|
|
34
|
+
) : (
|
|
35
|
+
<p className={styles.empty}>No files match the current filter.</p>
|
|
36
|
+
)}
|
|
37
|
+
</div>
|
|
38
|
+
</Card>
|
|
39
|
+
);
|
|
40
|
+
}
|