@shinnodua/agent-workflows 0.0.0-stage → 0.2.8
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
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1.5rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.summaryCard {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 1rem;
|
|
12
|
+
padding: 1.5rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.summaryHeader {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
gap: 1rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.summaryTitleGroup {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.75rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.summaryIcon {
|
|
30
|
+
width: 2rem;
|
|
31
|
+
height: 2rem;
|
|
32
|
+
color: #0f172a;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.summaryMetrics {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 1.5rem;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.metricBadge {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: flex-end;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.metricValue {
|
|
49
|
+
font-size: 1.75rem;
|
|
50
|
+
font-weight: 800;
|
|
51
|
+
line-height: 1;
|
|
52
|
+
color: #0f172a;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.metricLabel {
|
|
56
|
+
font-size: 0.75rem;
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
text-transform: uppercase;
|
|
59
|
+
letter-spacing: 0.05em;
|
|
60
|
+
color: #475569;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.progressBar {
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 0.75rem;
|
|
66
|
+
background-color: #e2e8f0;
|
|
67
|
+
border-radius: 9999px;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
border: 2px solid #0f172a;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.progressFill {
|
|
73
|
+
height: 100%;
|
|
74
|
+
background-color: #10b981;
|
|
75
|
+
transition: width 0.3s ease;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.filterBar {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
gap: 1rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.searchBox {
|
|
85
|
+
width: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.tabsGroup {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
gap: 1rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.categoryTabs {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 0.5rem;
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.statusTabs {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 0.5rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.tabButton {
|
|
110
|
+
padding: 0.4rem 0.8rem;
|
|
111
|
+
font-size: 0.8125rem;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
border-radius: 0.375rem;
|
|
114
|
+
border: 2px solid #0f172a;
|
|
115
|
+
background-color: #ffffff;
|
|
116
|
+
color: #0f172a;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
transition: all 0.15s ease;
|
|
119
|
+
box-shadow: 2px 2px 0px #0f172a;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.tabButton:hover {
|
|
123
|
+
transform: translate(-1px, -1px);
|
|
124
|
+
box-shadow: 3px 3px 0px #0f172a;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.tabActive {
|
|
128
|
+
background-color: #fef08a;
|
|
129
|
+
color: #0f172a;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.itemList {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
gap: 1rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.itemCard {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
gap: 1rem;
|
|
142
|
+
padding: 1.25rem;
|
|
143
|
+
transition: border-color 0.2s ease;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.itemHeader {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: flex-start;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
gap: 1rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.itemTitleRow {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
gap: 0.75rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.checkBadge {
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
width: 1.75rem;
|
|
164
|
+
height: 1.75rem;
|
|
165
|
+
border-radius: 0.375rem;
|
|
166
|
+
border: 2px solid #0f172a;
|
|
167
|
+
flex-shrink: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.checkBadgeApplied {
|
|
171
|
+
background-color: #10b981;
|
|
172
|
+
color: #ffffff;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.checkBadgePending {
|
|
176
|
+
background-color: #f59e0b;
|
|
177
|
+
color: #ffffff;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.itemMeta {
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
gap: 0.5rem;
|
|
184
|
+
margin-top: 0.25rem;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.categoryTag {
|
|
188
|
+
font-size: 0.75rem;
|
|
189
|
+
font-weight: 700;
|
|
190
|
+
padding: 0.15rem 0.5rem;
|
|
191
|
+
border-radius: 0.25rem;
|
|
192
|
+
border: 1.5px solid #0f172a;
|
|
193
|
+
background-color: #e2e8f0;
|
|
194
|
+
color: #0f172a;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.scoreTag {
|
|
198
|
+
font-size: 0.75rem;
|
|
199
|
+
font-weight: 700;
|
|
200
|
+
padding: 0.15rem 0.5rem;
|
|
201
|
+
border-radius: 0.25rem;
|
|
202
|
+
border: 1.5px solid #0f172a;
|
|
203
|
+
background-color: #bbf7d0;
|
|
204
|
+
color: #065f46;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.scoreTagPartial {
|
|
208
|
+
background-color: #fef08a;
|
|
209
|
+
color: #854d0e;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.itemDescription {
|
|
213
|
+
font-size: 0.875rem;
|
|
214
|
+
line-height: 1.5;
|
|
215
|
+
color: #334155;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.sectionsGrid {
|
|
219
|
+
display: grid;
|
|
220
|
+
grid-template-columns: 1fr 1fr;
|
|
221
|
+
gap: 1rem;
|
|
222
|
+
margin-top: 0.5rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@media (max-width: 768px) {
|
|
226
|
+
.sectionsGrid {
|
|
227
|
+
grid-template-columns: 1fr;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.sectionBox {
|
|
232
|
+
display: flex;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
gap: 0.5rem;
|
|
235
|
+
padding: 1rem;
|
|
236
|
+
border-radius: 0.375rem;
|
|
237
|
+
border: 2px solid #0f172a;
|
|
238
|
+
box-shadow: 2px 2px 0px #0f172a;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.sectionDone {
|
|
242
|
+
background-color: #f0fdf4;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.sectionTodo {
|
|
246
|
+
background-color: #eff6ff;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.sectionTitle {
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: 0.5rem;
|
|
253
|
+
font-size: 0.875rem;
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
color: #0f172a;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.sectionText {
|
|
259
|
+
font-size: 0.8125rem;
|
|
260
|
+
line-height: 1.5;
|
|
261
|
+
color: #334155;
|
|
262
|
+
white-space: pre-line;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.evidenceSection {
|
|
266
|
+
display: flex;
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
gap: 0.5rem;
|
|
269
|
+
margin-top: 0.5rem;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.evidenceToggle {
|
|
273
|
+
display: inline-flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
gap: 0.375rem;
|
|
276
|
+
font-size: 0.8125rem;
|
|
277
|
+
font-weight: 700;
|
|
278
|
+
color: #0f172a;
|
|
279
|
+
background: none;
|
|
280
|
+
border: none;
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
padding: 0;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.evidenceList {
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
gap: 0.25rem;
|
|
289
|
+
max-height: 12rem;
|
|
290
|
+
overflow-y: auto;
|
|
291
|
+
padding: 0.5rem;
|
|
292
|
+
border: 1.5px solid #0f172a;
|
|
293
|
+
border-radius: 0.375rem;
|
|
294
|
+
background-color: #f8fafc;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.evidenceItem {
|
|
298
|
+
display: flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
justify-content: space-between;
|
|
301
|
+
font-size: 0.75rem;
|
|
302
|
+
padding: 0.25rem 0.5rem;
|
|
303
|
+
border-radius: 0.25rem;
|
|
304
|
+
background-color: #ffffff;
|
|
305
|
+
border: 1px solid #cbd5e1;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.evidencePath {
|
|
309
|
+
font-family: monospace;
|
|
310
|
+
color: #0f172a;
|
|
311
|
+
word-break: break-all;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.evidenceDetail {
|
|
315
|
+
font-weight: 600;
|
|
316
|
+
color: #10b981;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.evidenceDetailViolation {
|
|
320
|
+
color: #ef4444;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.emptyState {
|
|
324
|
+
text-align: center;
|
|
325
|
+
padding: 3rem 1.5rem;
|
|
326
|
+
background-color: #ffffff;
|
|
327
|
+
border: 2px solid #0f172a;
|
|
328
|
+
border-radius: 0.5rem;
|
|
329
|
+
box-shadow: 3px 3px 0px #0f172a;
|
|
330
|
+
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Check,
|
|
3
|
+
CheckCircle2,
|
|
4
|
+
ChevronDown,
|
|
5
|
+
ChevronRight,
|
|
6
|
+
Clock,
|
|
7
|
+
ShieldCheck,
|
|
8
|
+
Wrench,
|
|
9
|
+
} from "lucide-react";
|
|
10
|
+
import { useState } from "react";
|
|
11
|
+
import { Card, Input } from "../../../../shared/design-system";
|
|
12
|
+
import type { HardnessCategory, HardnessScanReport } from "../../../../types";
|
|
13
|
+
import styles from "./HardnessEngineeringPanel.module.css";
|
|
14
|
+
|
|
15
|
+
type HardnessEngineeringPanelProps = {
|
|
16
|
+
report: HardnessScanReport;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const categories: Array<HardnessCategory | "All"> = [
|
|
20
|
+
"All",
|
|
21
|
+
"Code Architecture",
|
|
22
|
+
"Component Primitives",
|
|
23
|
+
"Code Quality",
|
|
24
|
+
"React Hooks",
|
|
25
|
+
"API & Platform",
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
export function HardnessEngineeringPanel(props: HardnessEngineeringPanelProps) {
|
|
29
|
+
const { report } = props;
|
|
30
|
+
const [activeCategory, setActiveCategory] = useState<
|
|
31
|
+
HardnessCategory | "All"
|
|
32
|
+
>("All");
|
|
33
|
+
const [activeStatusFilter, setActiveStatusFilter] = useState<
|
|
34
|
+
"all" | "checked" | "violation" | "not-scanned"
|
|
35
|
+
>("all");
|
|
36
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
37
|
+
const [expandedItemIds, setExpandedItemIds] = useState<Set<string>>(
|
|
38
|
+
new Set(),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
const { items, totalChecked, totalItems, healthScore, notScanned } = report;
|
|
42
|
+
const violations = items.filter((item) => item.state === "violation").length;
|
|
43
|
+
|
|
44
|
+
const filteredItems = items.filter((item) => {
|
|
45
|
+
const matchesCategory =
|
|
46
|
+
activeCategory === "All" || item.category === activeCategory;
|
|
47
|
+
const matchesStatus =
|
|
48
|
+
activeStatusFilter === "all" ||
|
|
49
|
+
(activeStatusFilter === "checked" && item.checked) ||
|
|
50
|
+
(activeStatusFilter === "violation" && item.state === "violation") ||
|
|
51
|
+
(activeStatusFilter === "not-scanned" && item.state === "not-scanned");
|
|
52
|
+
const matchesQuery =
|
|
53
|
+
!searchQuery ||
|
|
54
|
+
item.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
|
55
|
+
item.description.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
|
56
|
+
item.category.toLowerCase().includes(searchQuery.toLowerCase());
|
|
57
|
+
|
|
58
|
+
return matchesCategory && matchesStatus && matchesQuery;
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
function toggleExpand(id: string) {
|
|
62
|
+
setExpandedItemIds((prev) => {
|
|
63
|
+
const next = new Set(prev);
|
|
64
|
+
if (next.has(id)) {
|
|
65
|
+
next.delete(id);
|
|
66
|
+
} else {
|
|
67
|
+
next.add(id);
|
|
68
|
+
}
|
|
69
|
+
return next;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div className={styles.container}>
|
|
75
|
+
<Card className={styles.summaryCard} variant="yellow">
|
|
76
|
+
<div className={styles.summaryHeader}>
|
|
77
|
+
<div className={styles.summaryTitleGroup}>
|
|
78
|
+
<ShieldCheck className={styles.summaryIcon} />
|
|
79
|
+
<div>
|
|
80
|
+
<h2 className="text-xl font-bold text-slate-900">
|
|
81
|
+
Code Quality Checklist
|
|
82
|
+
</h2>
|
|
83
|
+
<p className="text-sm font-medium text-slate-700">
|
|
84
|
+
Workspace scan of applied engineering principles & code
|
|
85
|
+
conventions
|
|
86
|
+
</p>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div className={styles.summaryMetrics}>
|
|
91
|
+
<div className={styles.metricBadge}>
|
|
92
|
+
<span className={styles.metricValue}>{healthScore}</span>
|
|
93
|
+
<span className={styles.metricLabel}>Applied Score</span>
|
|
94
|
+
</div>
|
|
95
|
+
<div className={styles.metricBadge}>
|
|
96
|
+
<span className={styles.metricValue}>
|
|
97
|
+
{totalChecked} / {totalItems}
|
|
98
|
+
</span>
|
|
99
|
+
<span className={styles.metricLabel}>Items Checked</span>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div className={styles.progressBar}>
|
|
105
|
+
<div className={styles.progressFill} style={{ width: healthScore }} />
|
|
106
|
+
</div>
|
|
107
|
+
</Card>
|
|
108
|
+
|
|
109
|
+
<div className={styles.filterBar}>
|
|
110
|
+
<div className={styles.searchBox}>
|
|
111
|
+
<Input
|
|
112
|
+
label="Search checklist items"
|
|
113
|
+
placeholder="Search rule title, category, description..."
|
|
114
|
+
value={searchQuery}
|
|
115
|
+
onChange={(e) => setSearchQuery(e.currentTarget.value)}
|
|
116
|
+
/>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<div className={styles.tabsGroup}>
|
|
120
|
+
<div className={styles.categoryTabs}>
|
|
121
|
+
{categories.map((cat) => (
|
|
122
|
+
<button
|
|
123
|
+
className={`${styles.tabButton} ${
|
|
124
|
+
activeCategory === cat ? styles.tabActive : ""
|
|
125
|
+
}`}
|
|
126
|
+
key={cat}
|
|
127
|
+
onClick={() => setActiveCategory(cat)}
|
|
128
|
+
type="button"
|
|
129
|
+
>
|
|
130
|
+
{cat}
|
|
131
|
+
</button>
|
|
132
|
+
))}
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div className={styles.statusTabs}>
|
|
136
|
+
<button
|
|
137
|
+
className={`${styles.tabButton} ${
|
|
138
|
+
activeStatusFilter === "all" ? styles.tabActive : ""
|
|
139
|
+
}`}
|
|
140
|
+
onClick={() => setActiveStatusFilter("all")}
|
|
141
|
+
type="button"
|
|
142
|
+
>
|
|
143
|
+
All ({items.length})
|
|
144
|
+
</button>
|
|
145
|
+
<button
|
|
146
|
+
className={`${styles.tabButton} ${
|
|
147
|
+
activeStatusFilter === "checked" ? styles.tabActive : ""
|
|
148
|
+
}`}
|
|
149
|
+
onClick={() => setActiveStatusFilter("checked")}
|
|
150
|
+
type="button"
|
|
151
|
+
>
|
|
152
|
+
Checked ({totalChecked})
|
|
153
|
+
</button>
|
|
154
|
+
<button
|
|
155
|
+
className={`${styles.tabButton} ${
|
|
156
|
+
activeStatusFilter === "violation" ? styles.tabActive : ""
|
|
157
|
+
}`}
|
|
158
|
+
onClick={() => setActiveStatusFilter("violation")}
|
|
159
|
+
type="button"
|
|
160
|
+
>
|
|
161
|
+
Violations ({violations})
|
|
162
|
+
</button>
|
|
163
|
+
<button
|
|
164
|
+
className={`${styles.tabButton} ${
|
|
165
|
+
activeStatusFilter === "not-scanned" ? styles.tabActive : ""
|
|
166
|
+
}`}
|
|
167
|
+
onClick={() => setActiveStatusFilter("not-scanned")}
|
|
168
|
+
type="button"
|
|
169
|
+
>
|
|
170
|
+
Not scanned ({notScanned})
|
|
171
|
+
</button>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<div className={styles.itemList}>
|
|
177
|
+
{filteredItems.length === 0 ? (
|
|
178
|
+
<div className={styles.emptyState}>
|
|
179
|
+
<p className="font-bold text-slate-800">
|
|
180
|
+
No hardness checklist items match your current filter.
|
|
181
|
+
</p>
|
|
182
|
+
</div>
|
|
183
|
+
) : (
|
|
184
|
+
filteredItems.map((item) => {
|
|
185
|
+
const isExpanded = expandedItemIds.has(item.id);
|
|
186
|
+
|
|
187
|
+
return (
|
|
188
|
+
<Card
|
|
189
|
+
className={styles.itemCard}
|
|
190
|
+
key={item.id}
|
|
191
|
+
variant={item.state === "pass" ? "white" : "pink"}
|
|
192
|
+
>
|
|
193
|
+
<div className={styles.itemHeader}>
|
|
194
|
+
<div className={styles.itemTitleRow}>
|
|
195
|
+
<span
|
|
196
|
+
className={`${styles.checkBadge} ${
|
|
197
|
+
item.state === "pass"
|
|
198
|
+
? styles.checkBadgeApplied
|
|
199
|
+
: styles.checkBadgePending
|
|
200
|
+
}`}
|
|
201
|
+
>
|
|
202
|
+
{item.state === "pass" ? (
|
|
203
|
+
<Check size={18} strokeWidth={3} />
|
|
204
|
+
) : (
|
|
205
|
+
<Clock size={16} strokeWidth={2.5} />
|
|
206
|
+
)}
|
|
207
|
+
</span>
|
|
208
|
+
<div>
|
|
209
|
+
<h3 className="text-base font-bold text-slate-900">
|
|
210
|
+
{item.title}
|
|
211
|
+
</h3>
|
|
212
|
+
<div className={styles.itemMeta}>
|
|
213
|
+
<span className={styles.categoryTag}>
|
|
214
|
+
{item.category}
|
|
215
|
+
</span>
|
|
216
|
+
<span
|
|
217
|
+
className={`${styles.scoreTag} ${
|
|
218
|
+
item.state !== "pass" ? styles.scoreTagPartial : ""
|
|
219
|
+
}`}
|
|
220
|
+
>
|
|
221
|
+
{item.state === "not-scanned"
|
|
222
|
+
? "Not scanned"
|
|
223
|
+
: `${item.score} (${item.passCount}/${item.totalCount} passing)`}
|
|
224
|
+
</span>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<p className={styles.itemDescription}>{item.description}</p>
|
|
231
|
+
|
|
232
|
+
<div className={styles.sectionsGrid}>
|
|
233
|
+
<div className={`${styles.sectionBox} ${styles.sectionDone}`}>
|
|
234
|
+
<div className={styles.sectionTitle}>
|
|
235
|
+
<CheckCircle2 size={16} className="text-emerald-600" />
|
|
236
|
+
<span>What Was Done (Applied Details)</span>
|
|
237
|
+
</div>
|
|
238
|
+
<p className={styles.sectionText}>{item.whatWasDone}</p>
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
<div className={`${styles.sectionBox} ${styles.sectionTodo}`}>
|
|
242
|
+
<div className={styles.sectionTitle}>
|
|
243
|
+
<Wrench size={16} className="text-blue-600" />
|
|
244
|
+
<span>What Needs To Be Done (Action Items)</span>
|
|
245
|
+
</div>
|
|
246
|
+
<p className={styles.sectionText}>
|
|
247
|
+
{item.whatNeedsToBeDone}
|
|
248
|
+
</p>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
{item.evidence.length > 0 ? (
|
|
253
|
+
<div className={styles.evidenceSection}>
|
|
254
|
+
<button
|
|
255
|
+
className={styles.evidenceToggle}
|
|
256
|
+
onClick={() => toggleExpand(item.id)}
|
|
257
|
+
type="button"
|
|
258
|
+
>
|
|
259
|
+
{isExpanded ? (
|
|
260
|
+
<ChevronDown size={16} />
|
|
261
|
+
) : (
|
|
262
|
+
<ChevronRight size={16} />
|
|
263
|
+
)}
|
|
264
|
+
<span>
|
|
265
|
+
Inspect Scanned Workspace Files ({item.evidence.length}{" "}
|
|
266
|
+
audited)
|
|
267
|
+
</span>
|
|
268
|
+
</button>
|
|
269
|
+
|
|
270
|
+
{isExpanded ? (
|
|
271
|
+
<div className={styles.evidenceList}>
|
|
272
|
+
{item.evidence.map((ev) => (
|
|
273
|
+
<div className={styles.evidenceItem} key={ev.file}>
|
|
274
|
+
<span className={styles.evidencePath}>
|
|
275
|
+
{ev.file}
|
|
276
|
+
</span>
|
|
277
|
+
<span
|
|
278
|
+
className={
|
|
279
|
+
ev.status === "pass"
|
|
280
|
+
? styles.evidenceDetail
|
|
281
|
+
: styles.evidenceDetailViolation
|
|
282
|
+
}
|
|
283
|
+
>
|
|
284
|
+
{ev.detail ?? ev.status}
|
|
285
|
+
</span>
|
|
286
|
+
</div>
|
|
287
|
+
))}
|
|
288
|
+
</div>
|
|
289
|
+
) : null}
|
|
290
|
+
</div>
|
|
291
|
+
) : null}
|
|
292
|
+
</Card>
|
|
293
|
+
);
|
|
294
|
+
})
|
|
295
|
+
)}
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
);
|
|
299
|
+
}
|
package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@reference "../../../../styles.css";
|
|
2
|
+
|
|
3
|
+
.section,
|
|
4
|
+
.list {
|
|
5
|
+
@apply grid min-w-0 gap-4;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.eyebrow,
|
|
9
|
+
.taskLabel {
|
|
10
|
+
@apply m-0 text-xs font-black uppercase tracking-[0.14em] text-black/60;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.title,
|
|
14
|
+
.taskTitle {
|
|
15
|
+
@apply m-0 font-black;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.title {
|
|
19
|
+
@apply text-3xl;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.description {
|
|
23
|
+
@apply m-0 mt-1 text-sm font-semibold text-black/60;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.empty,
|
|
27
|
+
.card {
|
|
28
|
+
@apply min-w-0 max-w-full p-4;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cardHeader {
|
|
32
|
+
@apply flex items-start justify-between gap-3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.taskStatus {
|
|
36
|
+
@apply rounded-lg border-[2px] border-black bg-neo-yellow px-2 py-1 text-xs font-black uppercase;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.stageScroller {
|
|
40
|
+
@apply min-w-0 max-w-full overflow-x-auto pb-1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stageGrid {
|
|
44
|
+
@apply mt-4 grid min-w-[720px] grid-cols-7 gap-2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.stage {
|
|
48
|
+
@apply grid min-h-24 content-center justify-items-center gap-1 rounded-lg border-[3px] border-black px-2 py-2 text-center font-black transition-transform hover:-translate-y-0.5;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.stage small {
|
|
52
|
+
@apply text-[10px] uppercase tracking-wide;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.complete {
|
|
56
|
+
@apply bg-neo-lime;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.current {
|
|
60
|
+
@apply bg-neo-yellow;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.blocked,
|
|
64
|
+
.missing {
|
|
65
|
+
@apply bg-neo-pink;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.not-verified {
|
|
69
|
+
@apply bg-surface;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.icon {
|
|
73
|
+
@apply size-5;
|
|
74
|
+
}
|