@polymorphism-tech/morph-spec 10.11.1 → 10.12.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 +2 -2
- package/bin/morph-spec.js +2 -0
- package/claude-plugin.json +1 -1
- package/docs/CHEATSHEET.md +1 -1
- package/docs/QUICKSTART.md +1 -1
- package/framework/CLAUDE.md +4 -3
- package/framework/MORPH.md +14 -12
- package/framework/commands/morph-review.md +1 -1
- package/framework/commands/morph-status.md +2 -6
- package/framework/docs/CLI.md +21 -6
- package/framework/hooks/claude-code/core/enforce-phase-writes.js +12 -11
- package/framework/hooks/claude-code/core/gate-guard.js +19 -14
- package/framework/hooks/claude-code/core/heavy-gate.js +4 -1
- package/framework/hooks/claude-code/core/loop-detect.js +8 -7
- package/framework/hooks/claude-code/core/masked-exit.js +5 -2
- package/framework/hooks/claude-code/core/protect-spec-files.js +13 -11
- package/framework/hooks/claude-code/core/state-sync.js +20 -12
- package/framework/hooks/claude-code/core/validate-completion.js +6 -5
- package/framework/hooks/claude-code/core/worktree-context.js +47 -43
- package/framework/hooks/shared/gate-question.js +8 -0
- package/framework/hooks/shared/next-step.js +54 -23
- package/framework/hooks/shared/owner-words.js +146 -0
- package/framework/hooks/shared/report-progress.js +84 -10
- package/framework/phases.json +7 -7
- package/framework/rules/implement-report.md +8 -7
- package/framework/rules/plan-grammar.md +4 -1
- package/framework/schemas/feature.schema.json +3 -2
- package/framework/skills/core/create-umbraco-lp/SKILL.md +1 -1
- package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +1 -1
- package/framework/skills/core/morph-apply/SKILL.md +6 -5
- package/framework/skills/core/morph-apply/references/hotfix.md +6 -2
- package/framework/skills/core/morph-apply/references/review.md +9 -5
- package/framework/skills/core/morph-plan/SKILL.md +5 -5
- package/framework/skills/core/morph-plan/references/interview.md +1 -1
- package/framework/skills/core/morph-uiux/SKILL.md +10 -6
- package/framework/templates/docs/plan.md +1 -1
- package/package.json +1 -1
- package/src/commands/e2e/e2e.js +31 -29
- package/src/commands/project/status.js +28 -184
- package/src/commands/state/advance.js +44 -20
- package/src/commands/state/approve.js +70 -59
- package/src/commands/state/archive.js +20 -15
- package/src/commands/state/auto-approval.js +25 -23
- package/src/commands/state/create.js +35 -32
- package/src/commands/state/finish.js +179 -58
- package/src/commands/state/gate-check.js +43 -31
- package/src/commands/state/gate-decision.js +18 -14
- package/src/commands/state/list.js +23 -14
- package/src/commands/state/next.js +4 -5
- package/src/commands/state/report-check.js +47 -23
- package/src/commands/validation/plan-check.js +30 -14
- package/src/commands/validation/verify.js +39 -18
- package/src/dashboard/app/components/ActivityFeed.jsx +8 -8
- package/src/dashboard/app/components/CommandPalette.jsx +1 -1
- package/src/dashboard/app/components/GatePauses.jsx +8 -8
- package/src/dashboard/app/components/PhaseRail.jsx +6 -6
- package/src/dashboard/app/components/SessionMap.jsx +7 -7
- package/src/dashboard/app/lib/format.js +6 -2
- package/src/dashboard/app/lib/phases.js +48 -16
- package/src/dashboard/app/pages/FeatureDetail.jsx +87 -59
- package/src/dashboard/app/pages/Features.jsx +18 -18
- package/src/dashboard/app/pages/Guide.jsx +4 -4
- package/src/dashboard/app/pages/PhasePipeline.jsx +7 -7
- package/src/dashboard/app/pages/Portfolio.jsx +3 -3
- package/src/dashboard/scanner/activity-scanner.js +20 -6
- package/src/dashboard/scanner/features-scanner.js +43 -8
- package/src/dashboard/scanner/project-api.js +2 -0
- package/src/dashboard/vite.config.js +2 -0
- package/src/lib/next-step.js +3 -2
- package/src/lib/plan/checks.js +30 -15
- package/src/lib/plan/critique.js +6 -4
- package/src/lib/recap/recap.js +46 -20
- package/src/lib/risk-detector.js +260 -98
- package/src/lib/view/feature-html.js +19 -25
- package/src/lib/view/feature-view.js +6 -6
- package/src/utils/audience.js +27 -0
- package/src/utils/refusal-line.js +2 -2
|
@@ -11,7 +11,10 @@ import { useMorphQuery } from '../hooks/useMorphQuery.js';
|
|
|
11
11
|
import { usePref, useNow } from '../hooks/usePref.js';
|
|
12
12
|
import { isWorking } from './Features.jsx';
|
|
13
13
|
import { apiBase, projectHref } from '../lib/project.js';
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
PHASES, GATE_LABEL, STATUS_LABEL, LOCATION_LABEL, phaseMeta, ROLE_NAME, STATUS_SAY, BLOCKER_SAY, VERIFY_STEP_SAY,
|
|
16
|
+
RESULT_SAY, CHECK_RESULT_SAY, PROOF_SAY, TRUST_SAY, workLabel, featureTitle, verdictWord, scenarioLabel,
|
|
17
|
+
} from '../lib/phases.js';
|
|
15
18
|
import { timeAgo, dateTime, num, bytes, verdictLabel } from '../lib/format.js';
|
|
16
19
|
|
|
17
20
|
const TABS = [
|
|
@@ -22,11 +25,13 @@ const TABS = [
|
|
|
22
25
|
];
|
|
23
26
|
|
|
24
27
|
const IMPLEMENT_STATUS = {
|
|
25
|
-
feito: { label:
|
|
26
|
-
bloqueado: { label:
|
|
27
|
-
pendente: { label:
|
|
28
|
+
feito: { label: STATUS_SAY.feito, tone: 'text-[var(--color-ok)]', icon: CheckCircle },
|
|
29
|
+
bloqueado: { label: STATUS_SAY.bloqueado, tone: 'text-[var(--color-warn)]', icon: PauseCircle },
|
|
30
|
+
pendente: { label: STATUS_SAY.pendente, tone: 'text-[var(--color-faint)]', icon: Circle },
|
|
28
31
|
};
|
|
29
32
|
|
|
33
|
+
const labelOf = (f, id) => f.checksList?.find((c) => c.id === id)?.label ?? scenarioLabel({ id });
|
|
34
|
+
|
|
30
35
|
export function editorLink(absPath) {
|
|
31
36
|
return `vscode://file/${encodeURI(String(absPath).replace(/\\/g, '/'))}`;
|
|
32
37
|
}
|
|
@@ -57,20 +62,20 @@ export function nextAction(f) {
|
|
|
57
62
|
if (f.status === 'completed') return `Concluída${f.archivedAt ? ` ${timeAgo(f.archivedAt)}` : ''}.`;
|
|
58
63
|
if (f.status === 'abandoned') return 'Abandonada.';
|
|
59
64
|
const paused = f.gates.find((g) => g.paused);
|
|
60
|
-
if (paused) return `
|
|
61
|
-
if (f.inEvaluation) return '
|
|
65
|
+
if (paused) return `A ${(GATE_LABEL[paused.gate] || paused.gate).toLowerCase()} está esperando você${paused.reason ? `: ${paused.reason}` : ''}. A decisão é sua, no Claude Code.`;
|
|
66
|
+
if (f.inEvaluation) return 'A revisão independente terminou. A decisão sai do que ela aprovou, dos problemas que achou e dos cenários conferidos.';
|
|
62
67
|
if (f.phase === 'implement' && f.checksList?.length) {
|
|
63
68
|
const blocked = f.checksList.find((c) => c.implement === 'bloqueado');
|
|
64
|
-
if (blocked) return `${blocked.
|
|
69
|
+
if (blocked) return `${blocked.label} está travado: há uma pergunta que só você responde, no Claude Code.${blocked.question ? ` ${blocked.question}` : ''}`;
|
|
65
70
|
const open = f.checksList.find((c) => c.implement !== 'feito');
|
|
66
|
-
if (open) return `${f.scenarios.done} de ${f.scenarios.total} cenários feitos. Próximo: ${open.
|
|
67
|
-
return 'Todos os cenários feitos.
|
|
71
|
+
if (open) return `${f.scenarios.done} de ${f.scenarios.total} cenários feitos. Próximo: ${open.label}.`;
|
|
72
|
+
return 'Todos os cenários feitos. Faltam os testes automáticos da entrega e a revisão independente.';
|
|
68
73
|
}
|
|
69
74
|
const text = {
|
|
70
|
-
plan: '
|
|
71
|
-
uiux: '
|
|
72
|
-
implement: '
|
|
73
|
-
review: 'Em revisão.',
|
|
75
|
+
plan: 'O plano está sendo escrito: os cenários que provam a entrega e as decisões. Depois vem a aprovação do plano.',
|
|
76
|
+
uiux: 'As telas estão sendo desenhadas.',
|
|
77
|
+
implement: 'A construção está em andamento.',
|
|
78
|
+
review: 'Em revisão independente.',
|
|
74
79
|
};
|
|
75
80
|
return text[f.phase] || '';
|
|
76
81
|
}
|
|
@@ -92,7 +97,8 @@ function GateList({ f }) {
|
|
|
92
97
|
<ol className="space-y-4">
|
|
93
98
|
{f.gates.map((g) => {
|
|
94
99
|
const decision = f.gateDecisions?.[g.gate];
|
|
95
|
-
const state = g.skipped || unused.has(g.gate) ? '
|
|
100
|
+
const state = g.skipped || unused.has(g.gate) ? 'etapa não usada' : g.approved ? 'aprovada' : g.paused ? 'esperando você' : 'ainda não chegou';
|
|
101
|
+
const by = g.approvedBy === 'auto' ? 'automaticamente' : g.approvedBy;
|
|
96
102
|
const Icon = g.approved ? CheckCircle : g.paused ? PauseCircle : Circle;
|
|
97
103
|
const tone = g.approved ? 'text-[var(--color-ok)]' : g.paused ? 'text-[var(--color-warn)]' : 'text-[var(--color-faint)]';
|
|
98
104
|
return (
|
|
@@ -101,11 +107,11 @@ function GateList({ f }) {
|
|
|
101
107
|
<div className="min-w-0">
|
|
102
108
|
<p className="text-sm">
|
|
103
109
|
<span className="text-[var(--color-fg)]">{GATE_LABEL[g.gate] || g.gate}</span>
|
|
104
|
-
<span className="ml-2 text-[var(--color-dim)]">{state}{
|
|
110
|
+
<span className="ml-2 text-[var(--color-dim)]">{state}{by ? (by === 'automaticamente' ? `, ${by}` : `, por ${by}`) : ''}</span>
|
|
105
111
|
</p>
|
|
106
112
|
{g.at && <p className="text-xs text-[var(--color-faint)]">{dateTime(g.at)}</p>}
|
|
107
113
|
{decision?.reason && <p className="mt-1 text-sm text-[var(--color-dim)]">{decision.reason}</p>}
|
|
108
|
-
{decision?.trust && <p className="text-xs text-[var(--color-faint)]">
|
|
114
|
+
{decision?.trust && <p className="text-xs text-[var(--color-faint)]">Regra do projeto: {TRUST_SAY[decision.trust] ?? decision.trust}</p>}
|
|
109
115
|
</div>
|
|
110
116
|
</li>
|
|
111
117
|
);
|
|
@@ -115,7 +121,7 @@ function GateList({ f }) {
|
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
function NodeChips({ nodes }) {
|
|
118
|
-
if (!nodes) return <p className="text-sm text-[var(--color-faint)]">
|
|
124
|
+
if (!nodes) return <p className="text-sm text-[var(--color-faint)]">Os testes automáticos ainda não rodaram.</p>;
|
|
119
125
|
return (
|
|
120
126
|
<ul className="flex flex-wrap gap-2">
|
|
121
127
|
{Object.entries(nodes).map(([name, v]) => {
|
|
@@ -123,7 +129,7 @@ function NodeChips({ nodes }) {
|
|
|
123
129
|
const tone = status === 'pass' ? 'text-[var(--color-ok)]' : status === 'fail' ? 'text-[var(--color-bad)]' : 'text-[var(--color-faint)]';
|
|
124
130
|
return (
|
|
125
131
|
<li key={name} className="rounded-full px-3 py-1 text-xs shadow-[inset_0_0_0_1px_var(--color-hair)]">
|
|
126
|
-
<span className="text-[var(--color-dim)]">{name}</span> <span className={tone}>{status
|
|
132
|
+
<span className="text-[var(--color-dim)]">{VERIFY_STEP_SAY[name] ?? name}</span> <span className={tone}>{RESULT_SAY[status] ?? status ?? '—'}</span>
|
|
127
133
|
</li>
|
|
128
134
|
);
|
|
129
135
|
})}
|
|
@@ -131,21 +137,22 @@ function NodeChips({ nodes }) {
|
|
|
131
137
|
);
|
|
132
138
|
}
|
|
133
139
|
|
|
134
|
-
const
|
|
135
|
-
const REVIEW_STATUS_LABEL = { missing: '
|
|
140
|
+
const ROLE_SHORT = { verifier: 'Entregas', reviewer: 'Código', security: 'Segurança' };
|
|
141
|
+
const REVIEW_STATUS_LABEL = { missing: 'ainda não revisou', partial: 'revisão incompleta', unverdicted: 'sem conclusão', ok: null };
|
|
142
|
+
const problems = (n) => `${n} ${n === 1 ? 'problema' : 'problemas'}`;
|
|
136
143
|
|
|
137
144
|
function ReviewRows({ reviews }) {
|
|
138
145
|
if (!reviews?.length) return null;
|
|
139
146
|
return (
|
|
140
147
|
<ul className="mt-4 space-y-2 text-sm">
|
|
141
148
|
{reviews.map((r) => {
|
|
142
|
-
const state = REVIEW_STATUS_LABEL[r.status] ?? r.verdict;
|
|
149
|
+
const state = REVIEW_STATUS_LABEL[r.status] ?? verdictWord(r.verdict);
|
|
143
150
|
const tone = r.verdict === 'SHIP' && r.status === 'ok' ? 'text-[var(--color-ok)]' : r.verdict === 'FIX' ? 'text-[var(--color-bad)]' : 'text-[var(--color-faint)]';
|
|
144
151
|
return (
|
|
145
|
-
<li key={r.role} className="grid grid-cols-[
|
|
146
|
-
<span className="text-[var(--color-dim)]">{
|
|
152
|
+
<li key={r.role} className="grid grid-cols-[11rem_minmax(0,1fr)_auto] items-baseline gap-3">
|
|
153
|
+
<span className="text-[var(--color-dim)]">{ROLE_NAME[r.role] || r.role}</span>
|
|
147
154
|
<span className={tone}>
|
|
148
|
-
{state}{r.blockers ? ` · ${r.blockers}
|
|
155
|
+
{state}{r.blockers ? ` · ${problems(r.blockers)}` : ''}
|
|
149
156
|
{r.reviewedSha && <span className="ml-2 font-mono text-xs text-[var(--color-faint)]">{r.reviewedSha.slice(0, 7)}</span>}
|
|
150
157
|
</span>
|
|
151
158
|
{r.status !== 'missing' && (
|
|
@@ -162,16 +169,16 @@ function VerdictBlock({ f }) {
|
|
|
162
169
|
return (
|
|
163
170
|
<div>
|
|
164
171
|
<p className="flex items-baseline gap-2">
|
|
165
|
-
<span className="text-
|
|
166
|
-
<span className="text-sm text-[var(--color-dim)]">{f.verdict ?
|
|
172
|
+
<span className="text-3xl font-semibold tracking-tight">{verdictWord(f.verdict) ?? '—'}</span>
|
|
173
|
+
<span className="text-sm text-[var(--color-dim)]">{f.verdict ? problems(f.blockers ?? 0) : 'a revisão independente ainda não terminou'}</span>
|
|
167
174
|
</p>
|
|
168
175
|
<ReviewRows reviews={f.reviews} />
|
|
169
176
|
{f.blockerList?.length > 0 && (
|
|
170
177
|
<ul className="mt-4 space-y-1.5 text-xs">
|
|
171
178
|
{f.blockerList.map((b) => (
|
|
172
|
-
<li key={b.id} className="grid grid-cols-[
|
|
179
|
+
<li key={b.id} className="grid grid-cols-[3rem_9rem_minmax(0,1fr)] gap-3">
|
|
173
180
|
<span className="font-mono text-[var(--color-dim)]">{b.id}</span>
|
|
174
|
-
<span className="text-[var(--color-warn)]">{b.type}</span>
|
|
181
|
+
<span className="text-[var(--color-warn)]">{BLOCKER_SAY[b.type] ?? b.type}</span>
|
|
175
182
|
<span className="truncate text-[var(--color-dim)]" title={b.evidence}>{b.where}</span>
|
|
176
183
|
</li>
|
|
177
184
|
))}
|
|
@@ -186,8 +193,8 @@ function CostBlock({ cost }) {
|
|
|
186
193
|
const tokens = (u) => (u ? u.inputTokens + u.outputTokens + u.cacheCreationTokens : null);
|
|
187
194
|
const rows = [
|
|
188
195
|
['Tokens da sessão', cost.sessionUsage ? num(tokens(cost.sessionUsage)) : 'desconhecido', cost.sessionUsage ? `${num(cost.sessionUsage.cacheReadTokens)} lidos do cache` : cost.legacyUsageSamples ? 'telemetria v1, sem delta somável' : null],
|
|
189
|
-
['Tokens dos
|
|
190
|
-
['
|
|
196
|
+
['Tokens dos ajudantes', cost.agentUsage ? num(tokens(cost.agentUsage)) : 'desconhecido', cost.agentUsage ? `${cost.agentUsage.agents} ajudantes` : null],
|
|
197
|
+
['Ajudantes chamados', String(cost.dispatches?.count ?? 0), cost.dispatches?.promptChars ? `${num(cost.dispatches.promptChars)} caracteres de instrução` : null],
|
|
191
198
|
['Lido para o contexto', bytes(cost.bytesTotal), null],
|
|
192
199
|
];
|
|
193
200
|
return (
|
|
@@ -213,15 +220,15 @@ function OverviewTab({ f, cost, session, now }) {
|
|
|
213
220
|
)}
|
|
214
221
|
<div className="space-y-5">
|
|
215
222
|
{f.description && (
|
|
216
|
-
<Panel title="
|
|
223
|
+
<Panel title="O pedido">
|
|
217
224
|
<p className="text-sm leading-relaxed text-[var(--color-dim)]">{f.description}</p>
|
|
218
225
|
</Panel>
|
|
219
226
|
)}
|
|
220
|
-
<Panel title="
|
|
227
|
+
<Panel title="Aprovações"><GateList f={f} /></Panel>
|
|
221
228
|
</div>
|
|
222
229
|
<div className="space-y-5">
|
|
223
|
-
<Panel title="
|
|
224
|
-
<Panel title="
|
|
230
|
+
<Panel title="Revisão independente"><VerdictBlock f={f} /></Panel>
|
|
231
|
+
<Panel title="Testes automáticos">
|
|
225
232
|
{f.verification && (
|
|
226
233
|
<p className="mb-3 text-xs text-[var(--color-faint)]">{timeAgo(f.verification.ts)}</p>
|
|
227
234
|
)}
|
|
@@ -236,7 +243,7 @@ function OverviewTab({ f, cost, session, now }) {
|
|
|
236
243
|
function ImplementIcon({ status }) {
|
|
237
244
|
const st = IMPLEMENT_STATUS[status] || IMPLEMENT_STATUS.pendente;
|
|
238
245
|
const Icon = st.icon;
|
|
239
|
-
return <Icon weight="light" size={17} className={st.tone} aria-label={`
|
|
246
|
+
return <Icon weight="light" size={17} className={st.tone} aria-label={`construção: ${st.label}`} />;
|
|
240
247
|
}
|
|
241
248
|
|
|
242
249
|
const SCORE_ROLES = ['verifier', 'reviewer', 'security'];
|
|
@@ -250,15 +257,15 @@ const CHECK_CELL = { PROVADO: 'ok', FALHA: 'bad', 'NÃO PROVADO': 'warn' };
|
|
|
250
257
|
|
|
251
258
|
export function scoreCell(round, id, role) {
|
|
252
259
|
const r = round.roles[role];
|
|
253
|
-
if (!r) return { kind: 'na', text: '
|
|
260
|
+
if (!r) return { kind: 'na', text: 'ainda não revisou' };
|
|
254
261
|
const cited = r.blockers.filter((b) => b.checks.includes(id));
|
|
255
262
|
if (cited.length) return { kind: 'bad', text: cited.map((b) => `${b.id}: ${b.evidence}`).join(' · ') };
|
|
256
263
|
if (role === 'verifier') {
|
|
257
264
|
const row = round.checks.find((c) => c.id === id);
|
|
258
|
-
if (!row) return { kind: 'warn', text: '
|
|
259
|
-
return { kind: CHECK_CELL[row.status] ?? 'warn', text: `${row.status}. ${row.evidence}` };
|
|
265
|
+
if (!row) return { kind: 'warn', text: 'a conferência não falou deste cenário' };
|
|
266
|
+
return { kind: CHECK_CELL[row.status] ?? 'warn', text: `${CHECK_RESULT_SAY[row.status] ?? row.status}. ${row.evidence}` };
|
|
260
267
|
}
|
|
261
|
-
return { kind: 'na', text: `não
|
|
268
|
+
return { kind: 'na', text: `olha o código todo, não cenário por cenário; ${verdictWord(r.verdict) ?? 'sem conclusão'}` };
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
// Same rule as the gate: a Cn the verifier did not prove keeps the round at FIX, whatever the reports say.
|
|
@@ -272,7 +279,7 @@ function ChecksTab({ f }) {
|
|
|
272
279
|
const [pick, setPick] = useState(null);
|
|
273
280
|
const [open, setOpen] = useState(null);
|
|
274
281
|
if (!f.checksList?.length) {
|
|
275
|
-
return <Panel><p className="text-sm text-[var(--color-dim)]">
|
|
282
|
+
return <Panel><p className="text-sm text-[var(--color-dim)]">Os cenários aparecem aqui quando o plano estiver pronto e conferido.</p></Panel>;
|
|
276
283
|
}
|
|
277
284
|
const i = pick ?? rounds.length - 1;
|
|
278
285
|
const round = rounds[i];
|
|
@@ -285,9 +292,9 @@ function ChecksTab({ f }) {
|
|
|
285
292
|
<div className="space-y-5">
|
|
286
293
|
<Panel>
|
|
287
294
|
<div className="flex flex-wrap items-baseline gap-4">
|
|
288
|
-
<span className={`text-
|
|
295
|
+
<span className={`text-3xl font-semibold tracking-tight ${verdict === 'SHIP' ? 'text-[var(--color-ok)]' : verdict === 'FIX' ? 'text-[var(--color-bad)]' : ''}`}>{verdictWord(verdict) ?? '—'}</span>
|
|
289
296
|
<span className="text-sm text-[var(--color-dim)]">
|
|
290
|
-
{round ? `${proven} de ${f.checksList.length} cenários
|
|
297
|
+
{round ? `${proven} de ${f.checksList.length} cenários conferidos · ${problems(blockers.length)}` : 'Esperando a revisão independente'}
|
|
291
298
|
</span>
|
|
292
299
|
</div>
|
|
293
300
|
{rounds.length > 1 && (
|
|
@@ -296,16 +303,16 @@ function ChecksTab({ f }) {
|
|
|
296
303
|
<button key={k} type="button" aria-pressed={k === i} onClick={() => setPick(k)}
|
|
297
304
|
className={`fluid inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs shadow-[inset_0_0_0_1px_var(--color-hair)] ${k === i ? 'bg-white/[0.1] text-[var(--color-fg)]' : 'text-[var(--color-dim)] hover:text-[var(--color-fg)]'}`}>
|
|
298
305
|
<span className={`h-2 w-2 rounded-full ${roundVerdict(r, ids) === 'SHIP' ? 'bg-[var(--color-ok)]' : 'bg-[var(--color-bad)]'}`} />
|
|
299
|
-
Rodada {k + 1} · {roundVerdict(r, ids)}{roundSha(r) && <span className="font-mono text-[var(--color-faint)]">{roundSha(r)}</span>}
|
|
306
|
+
Rodada {k + 1} · {verdictWord(roundVerdict(r, ids))}{roundSha(r) && <span className="font-mono text-[var(--color-faint)]">{roundSha(r)}</span>}
|
|
300
307
|
</button>
|
|
301
308
|
))}
|
|
302
309
|
</div>
|
|
303
310
|
)}
|
|
304
311
|
</Panel>
|
|
305
312
|
<Panel>
|
|
306
|
-
<div className="grid grid-cols-[1.
|
|
307
|
-
<span /><span>
|
|
308
|
-
{SCORE_ROLES.map((role) => <span key={role} className="text-center">{
|
|
313
|
+
<div className="grid grid-cols-[1.25rem_minmax(0,1fr)_repeat(3,4.5rem)] gap-3 pb-2 text-xs text-[var(--color-faint)]">
|
|
314
|
+
<span /><span>Cenário</span>
|
|
315
|
+
{SCORE_ROLES.map((role) => <span key={role} className="text-center" title={ROLE_NAME[role]}>{ROLE_SHORT[role]}</span>)}
|
|
309
316
|
</div>
|
|
310
317
|
<ul className="divide-y divide-[var(--color-hair)]">
|
|
311
318
|
{f.checksList.map((c) => {
|
|
@@ -314,19 +321,22 @@ function ChecksTab({ f }) {
|
|
|
314
321
|
return (
|
|
315
322
|
<li key={c.id} className="py-3 text-sm">
|
|
316
323
|
<button type="button" onClick={() => setOpen(expanded ? null : c.id)} aria-expanded={expanded}
|
|
317
|
-
className="grid w-full grid-cols-[1.
|
|
324
|
+
className="grid w-full grid-cols-[1.25rem_minmax(0,1fr)_repeat(3,4.5rem)] items-center gap-3 text-left">
|
|
318
325
|
<ImplementIcon status={c.implement} />
|
|
319
|
-
<span className="
|
|
320
|
-
|
|
326
|
+
<span className="min-w-0">
|
|
327
|
+
<span className={`block text-[var(--color-fg)] ${expanded ? '' : 'truncate'}`}>{c.label}</span>
|
|
328
|
+
{c.text && <span className={`block text-xs text-[var(--color-faint)] ${expanded ? '' : 'truncate'}`} title={c.text}>{c.text}</span>}
|
|
329
|
+
</span>
|
|
321
330
|
{cells.map((cell, k) => (
|
|
322
331
|
<span key={k} title={cell.text} className={`mx-auto grid h-8 w-8 place-items-center rounded-lg font-semibold ${CELL[cell.kind].tone}`}>{CELL[cell.kind].icon}</span>
|
|
323
332
|
))}
|
|
324
333
|
</button>
|
|
325
334
|
{expanded && (
|
|
326
|
-
<div className="mt-3 space-y-2 pl-
|
|
327
|
-
{c.
|
|
335
|
+
<div className="mt-3 space-y-2 pl-8 text-xs">
|
|
336
|
+
{c.question && <p className="text-[var(--color-warn)]">Pergunta para você: {c.question}</p>}
|
|
337
|
+
{c.proof && <p className="text-[var(--color-faint)]">Como se confere: {PROOF_SAY[c.proof] ?? c.proof}</p>}
|
|
328
338
|
{cells.map((cell, k) => cell.kind !== 'na' && (
|
|
329
|
-
<p key={k}><span className="mr-2 text-[var(--color-faint)]">{
|
|
339
|
+
<p key={k}><span className="mr-2 text-[var(--color-faint)]">{ROLE_NAME[SCORE_ROLES[k]]}</span><span className="text-[var(--color-dim)]">{cell.text}</span></p>
|
|
330
340
|
))}
|
|
331
341
|
</div>
|
|
332
342
|
)}
|
|
@@ -336,13 +346,13 @@ function ChecksTab({ f }) {
|
|
|
336
346
|
</ul>
|
|
337
347
|
</Panel>
|
|
338
348
|
{round && (
|
|
339
|
-
<Panel title={blockers.length ? '
|
|
349
|
+
<Panel title={blockers.length ? 'Problemas achados nesta rodada' : closed.length ? 'Corrigidos nesta rodada' : 'Nenhum problema'}>
|
|
340
350
|
<ul className="space-y-2 text-xs">
|
|
341
351
|
{(blockers.length ? blockers : closed).map((b) => (
|
|
342
352
|
<li key={`${b.role}-${b.id}`} className="grid grid-cols-[3rem_minmax(0,1fr)] gap-3">
|
|
343
353
|
<span className={`font-mono ${blockers.length ? 'text-[var(--color-bad)]' : 'text-[var(--color-ok)]'}`}>{b.id}</span>
|
|
344
354
|
<div className="min-w-0">
|
|
345
|
-
<p className="text-[var(--color-faint)]">{
|
|
355
|
+
<p className="text-[var(--color-faint)]">{ROLE_NAME[b.role]} · {BLOCKER_SAY[b.type] ?? b.type} · {b.checks.length ? b.checks.map((id) => labelOf(f, id)).join('; ') : 'nenhum cenário citado'} · <span className="font-mono">{b.where}</span></p>
|
|
346
356
|
<p className="mt-0.5 truncate text-[var(--color-dim)]" title={b.evidence}>{b.evidence}</p>
|
|
347
357
|
</div>
|
|
348
358
|
</li>
|
|
@@ -435,6 +445,22 @@ function DocsTab({ f, doc, onDoc, project }) {
|
|
|
435
445
|
);
|
|
436
446
|
}
|
|
437
447
|
|
|
448
|
+
export function Retrato({ lines, waiting = [] }) {
|
|
449
|
+
if (!lines?.length) return null;
|
|
450
|
+
const [, ...rest] = lines;
|
|
451
|
+
return (
|
|
452
|
+
<section aria-label="Retrato da feature" className="mt-6 rounded-xl bg-[var(--color-ink)] px-5 py-4 shadow-[inset_0_0_0_1px_var(--color-hair)]">
|
|
453
|
+
<ul className="space-y-1 font-mono text-[13px] leading-relaxed text-[var(--color-dim)]">
|
|
454
|
+
{rest.map((line, i) => {
|
|
455
|
+
const tone = line.startsWith('Espera você:') && waiting.length ? 'text-[var(--color-warn)]'
|
|
456
|
+
: line.startsWith('Travado:') && !line.includes('nada') ? 'text-[var(--color-bad)]' : '';
|
|
457
|
+
return <li key={i} className={`whitespace-pre-wrap break-words ${tone}`}>{line}</li>;
|
|
458
|
+
})}
|
|
459
|
+
</ul>
|
|
460
|
+
</section>
|
|
461
|
+
);
|
|
462
|
+
}
|
|
463
|
+
|
|
438
464
|
export function FeatureDetailView({ f, tab, onTab, doc, onDoc, cost, session, latest = null, now = Date.now(), project, projectName }) {
|
|
439
465
|
const verdict = verdictLabel(f);
|
|
440
466
|
const working = latest && isWorking({ ...f, lastActivity: latest }, now);
|
|
@@ -448,16 +474,18 @@ export function FeatureDetailView({ f, tab, onTab, doc, onDoc, cost, session, la
|
|
|
448
474
|
<div className="bezel-core px-6 py-7 md:px-9 md:py-9">
|
|
449
475
|
<div className="flex flex-col gap-4 md:flex-row md:items-start md:justify-between">
|
|
450
476
|
<div className="min-w-0">
|
|
451
|
-
<h1 className="break-words text-3xl font-semibold tracking-tight md:text-4xl">{f
|
|
477
|
+
<h1 className="break-words text-3xl font-semibold tracking-tight md:text-4xl">{featureTitle(f)}</h1>
|
|
478
|
+
{featureTitle(f) !== f.name && <p className="mt-1 font-mono text-xs text-[var(--color-faint)]">{f.name}</p>}
|
|
452
479
|
<p className="mt-2 text-sm text-[var(--color-dim)]">
|
|
453
|
-
{STATUS_LABEL[f.status] || f.status}, {f.workType
|
|
480
|
+
{STATUS_LABEL[f.status] || f.status}, {workLabel(f.workType).toLowerCase()}, na {LOCATION_LABEL[f.location]}, atualizada {timeAgo(f.updatedAt)}
|
|
454
481
|
</p>
|
|
455
482
|
</div>
|
|
456
483
|
<div className="flex shrink-0 gap-6 text-right">
|
|
457
|
-
<div><p className="text-2xl font-semibold tabular-nums">{f.scenarios.total ? `${f.scenarios.done}/${f.scenarios.total}` : '—'}</p><p className="text-xs text-[var(--color-faint)]">cenários</p></div>
|
|
458
|
-
<div><p className="text-2xl font-semibold">{verdict ?? '—'}</p><p className="text-xs text-[var(--color-faint)]">
|
|
484
|
+
<div><p className="text-2xl font-semibold tabular-nums">{f.scenarios.total ? `${f.scenarios.done}/${f.scenarios.total}` : '—'}</p><p className="text-xs text-[var(--color-faint)]">cenários feitos</p></div>
|
|
485
|
+
<div><p className="text-2xl font-semibold">{verdict ?? '—'}</p><p className="text-xs text-[var(--color-faint)]">revisão independente</p></div>
|
|
459
486
|
</div>
|
|
460
487
|
</div>
|
|
488
|
+
<Retrato lines={f.retrato} waiting={f.waitingOnOwner} />
|
|
461
489
|
<div className="mt-8"><PhaseRail feature={f} size="lg" /></div>
|
|
462
490
|
<p className="mt-6 text-sm text-[var(--color-fg)]">
|
|
463
491
|
<span style={{ color: phaseMeta(f.phase).color }}>●</span> {nextAction(f)}
|
|
@@ -476,7 +504,7 @@ export function FeatureDetailView({ f, tab, onTab, doc, onDoc, cost, session, la
|
|
|
476
504
|
)}
|
|
477
505
|
<div className="mt-5 flex flex-wrap gap-2">
|
|
478
506
|
<EditorButton path={f.dir} label="Abrir pasta da feature no VS Code" />
|
|
479
|
-
<CopyButton text={f.name} label="Copiar
|
|
507
|
+
<CopyButton text={f.name} label="Copiar identificador" />
|
|
480
508
|
</div>
|
|
481
509
|
{f.rootStale && (
|
|
482
510
|
<p className="mt-3 flex items-start gap-2 text-sm text-[var(--color-warn)]">
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import PhaseRail from '../components/PhaseRail.jsx';
|
|
8
8
|
import { useMorphQuery } from '../hooks/useMorphQuery.js';
|
|
9
9
|
import { usePref, useNow } from '../hooks/usePref.js';
|
|
10
|
-
import { PHASES, phaseMeta, LOCATION_LABEL } from '../lib/phases.js';
|
|
10
|
+
import { PHASES, phaseMeta, LOCATION_LABEL, GATE_LABEL, TRUST_SAY, workLabel, featureTitle } from '../lib/phases.js';
|
|
11
11
|
import { timeAgo, verdictLabel } from '../lib/format.js';
|
|
12
12
|
import { apiBase, featureHref } from '../lib/project.js';
|
|
13
13
|
import { isFinished } from '../../scanner/feature-status.js';
|
|
@@ -19,8 +19,8 @@ export const WORKING_MS = 3 * 60 * 1000;
|
|
|
19
19
|
const LOCATION_ICON = { worktree: GitBranch, archive: Archive, root: HouseSimple };
|
|
20
20
|
const SORTS = {
|
|
21
21
|
updated: { label: 'Mais recentes', cmp: (a, b) => (lastTouch(b) || '').localeCompare(lastTouch(a) || '') },
|
|
22
|
-
name: { label: 'Nome', cmp: (a, b) => a.
|
|
23
|
-
verdict: { label: '
|
|
22
|
+
name: { label: 'Nome', cmp: (a, b) => featureTitle(a).localeCompare(featureTitle(b)) },
|
|
23
|
+
verdict: { label: 'Revisão independente', cmp: (a, b) => (a.blockers ?? 99) - (b.blockers ?? 99) },
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
function lastTouch(f) {
|
|
@@ -34,10 +34,10 @@ export function isWorking(f, now = Date.now()) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
function VerifyMark({ verification }) {
|
|
37
|
-
if (!verification?.status) return <CircleDashed weight="light" className="text-[var(--color-faint)]" size={16} aria-label="
|
|
37
|
+
if (!verification?.status) return <CircleDashed weight="light" className="text-[var(--color-faint)]" size={16} aria-label="testes automáticos ainda não rodaram" />;
|
|
38
38
|
return verification.status === 'pass'
|
|
39
|
-
? <CheckCircle weight="light" className="text-[var(--color-ok)]" size={16} aria-label="
|
|
40
|
-
: <XCircle weight="light" className="text-[var(--color-bad)]" size={16} aria-label="
|
|
39
|
+
? <CheckCircle weight="light" className="text-[var(--color-ok)]" size={16} aria-label="testes automáticos passaram" />
|
|
40
|
+
: <XCircle weight="light" className="text-[var(--color-bad)]" size={16} aria-label="testes automáticos falharam" />;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function ScenarioMeter({ scenarios, wide = false }) {
|
|
@@ -67,8 +67,8 @@ export function stageText(f) {
|
|
|
67
67
|
if (f.status === 'abandoned') return 'Abandonada';
|
|
68
68
|
if (f.location === 'archive') return 'Arquivada';
|
|
69
69
|
const paused = f.gates.find((g) => g.paused);
|
|
70
|
-
if (paused) return `Esperando
|
|
71
|
-
if (f.inEvaluation) return 'Em
|
|
70
|
+
if (paused) return `Esperando você: ${(GATE_LABEL[paused.gate] ?? paused.gate).toLowerCase()}`;
|
|
71
|
+
if (f.inEvaluation) return 'Em revisão independente';
|
|
72
72
|
return phaseMeta(f.phase).label;
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -90,10 +90,10 @@ export function FeatureRow({ f, now, project, projectName }) {
|
|
|
90
90
|
>
|
|
91
91
|
<div className="min-w-0">
|
|
92
92
|
<div className="flex items-center gap-2">
|
|
93
|
-
<span className="truncate font-medium text-[var(--color-fg)]"
|
|
93
|
+
<span className="truncate font-medium text-[var(--color-fg)]" title={f.name}>{featureTitle(f)}</span>
|
|
94
94
|
{projectName && <span className="shrink-0 text-xs text-[var(--color-faint)]">{projectName}</span>}
|
|
95
95
|
{f.workType && f.workType !== 'feature' && (
|
|
96
|
-
<span className="shrink-0 rounded-full px-2 py-px text-[11px] text-[var(--color-dim)] shadow-[inset_0_0_0_1px_var(--color-hair-strong)]">{f.workType}</span>
|
|
96
|
+
<span className="shrink-0 rounded-full px-2 py-px text-[11px] text-[var(--color-dim)] shadow-[inset_0_0_0_1px_var(--color-hair-strong)]">{workLabel(f.workType)}</span>
|
|
97
97
|
)}
|
|
98
98
|
{f.rootStale && (
|
|
99
99
|
<WarningCircle weight="light" size={15} className="shrink-0 text-[var(--color-warn)]" aria-label="cópia da raiz possivelmente desatualizada" />
|
|
@@ -106,7 +106,7 @@ export function FeatureRow({ f, now, project, projectName }) {
|
|
|
106
106
|
<div className="flex items-center gap-5 md:contents">
|
|
107
107
|
<ScenarioMeter scenarios={f.scenarios} />
|
|
108
108
|
<VerifyMark verification={f.verification} />
|
|
109
|
-
<span className="font-mono text-sm tabular-nums text-[var(--color-dim)]" title={verdict ? '
|
|
109
|
+
<span className="font-mono text-sm tabular-nums text-[var(--color-dim)]" title={verdict ? 'resultado da revisão independente' : 'sem revisão independente ainda'}>
|
|
110
110
|
{verdict ?? '—'}
|
|
111
111
|
</span>
|
|
112
112
|
<span className="flex items-center gap-1.5 text-xs text-[var(--color-faint)]" title={LOCATION_LABEL[f.location]}>
|
|
@@ -151,7 +151,7 @@ function BoardCard({ f, now, project }) {
|
|
|
151
151
|
].join(' ')}
|
|
152
152
|
>
|
|
153
153
|
<div className="flex items-start justify-between gap-2">
|
|
154
|
-
<span className="min-w-0 break-words text-sm font-medium leading-snug text-[var(--color-fg)]"
|
|
154
|
+
<span className="min-w-0 break-words text-sm font-medium leading-snug text-[var(--color-fg)]" title={f.name}>{featureTitle(f)}</span>
|
|
155
155
|
{isWorking(f, now) ? <span className="mt-1.5"><WorkingDot /></span> : null}
|
|
156
156
|
</div>
|
|
157
157
|
{paused && (
|
|
@@ -159,7 +159,7 @@ function BoardCard({ f, now, project }) {
|
|
|
159
159
|
<PauseCircle weight="light" size={14} /> esperando você
|
|
160
160
|
</p>
|
|
161
161
|
)}
|
|
162
|
-
{!paused && f.inEvaluation && <p className="mt-1.5 text-xs text-[var(--color-phase-review)]">em
|
|
162
|
+
{!paused && f.inEvaluation && <p className="mt-1.5 text-xs text-[var(--color-phase-review)]">em revisão independente</p>}
|
|
163
163
|
{f.lastActivity?.title && !isFinished(f) && (
|
|
164
164
|
<p className="mt-1.5 line-clamp-2 text-xs text-[var(--color-dim)]">{f.lastActivity.title}</p>
|
|
165
165
|
)}
|
|
@@ -168,7 +168,7 @@ function BoardCard({ f, now, project }) {
|
|
|
168
168
|
<span className="flex items-center gap-2">
|
|
169
169
|
<VerifyMark verification={f.verification} />
|
|
170
170
|
{verdict && <span className="font-mono tabular-nums text-[var(--color-dim)]">{verdict}</span>}
|
|
171
|
-
{f.workType && f.workType !== 'feature' && <span>{f.workType}</span>}
|
|
171
|
+
{f.workType && f.workType !== 'feature' && <span>{workLabel(f.workType)}</span>}
|
|
172
172
|
</span>
|
|
173
173
|
<span>{timeAgo(lastTouch(f), now)}</span>
|
|
174
174
|
</div>
|
|
@@ -250,7 +250,7 @@ export function FeaturesView({
|
|
|
250
250
|
const q = query.trim().toLowerCase();
|
|
251
251
|
const presentTypes = [...new Set(features.map((f) => f.workType || 'feature'))].sort();
|
|
252
252
|
const visible = features
|
|
253
|
-
.filter((f) => !q || f.name.toLowerCase().includes(q) || (f.description || '').toLowerCase().includes(q))
|
|
253
|
+
.filter((f) => !q || f.name.toLowerCase().includes(q) || featureTitle(f).toLowerCase().includes(q) || (f.description || '').toLowerCase().includes(q))
|
|
254
254
|
.filter((f) => types.length === 0 || types.includes(f.workType || 'feature'))
|
|
255
255
|
.sort(SORTS[sort]?.cmp || SORTS.updated.cmp);
|
|
256
256
|
const awaiting = visible.filter((f) => f.awaiting);
|
|
@@ -265,7 +265,7 @@ export function FeaturesView({
|
|
|
265
265
|
<h1 className="mt-1 break-words text-4xl font-semibold tracking-tight md:text-5xl">{info.name}</h1>
|
|
266
266
|
<p className="mt-3 flex flex-wrap items-center gap-x-2 text-sm text-[var(--color-dim)]">
|
|
267
267
|
{info.stack && <span>stack <span className="font-mono text-[var(--color-fg)]">{info.stack}</span>,</span>}
|
|
268
|
-
<span>
|
|
268
|
+
<span>{TRUST_SAY[info.trust || 'auto'] ?? info.trust},</span>
|
|
269
269
|
<span>{features.filter((f) => !isFinished(f)).length} ativas de {features.length}</span>
|
|
270
270
|
{working > 0 && <span className="flex items-center gap-1.5 text-[var(--color-phase-implement)]"><WorkingDot /> {working} com agente trabalhando agora</span>}
|
|
271
271
|
</p>
|
|
@@ -277,7 +277,7 @@ export function FeaturesView({
|
|
|
277
277
|
<Segmented label="Visualização" value={view} onChange={onView} options={[{ id: 'list', label: 'Lista', icon: Rows }, { id: 'board', label: 'Quadro', icon: Kanban }]} />
|
|
278
278
|
{presentTypes.length > 1 && presentTypes.map((t) => (
|
|
279
279
|
<button key={t} type="button" aria-pressed={types.includes(t)} className={chipClass(types.includes(t))}
|
|
280
|
-
onClick={() => onTypes(types.includes(t) ? types.filter((x) => x !== t) : [...types, t])}>{t}</button>
|
|
280
|
+
onClick={() => onTypes(types.includes(t) ? types.filter((x) => x !== t) : [...types, t])}>{workLabel(t)}</button>
|
|
281
281
|
))}
|
|
282
282
|
{view === 'board' && (
|
|
283
283
|
<button type="button" aria-pressed={showDone} className={chipClass(showDone)} onClick={() => onShowDone(!showDone)}>concluídas recentes</button>
|
|
@@ -334,7 +334,7 @@ export function FeaturesView({
|
|
|
334
334
|
|
|
335
335
|
{view === 'list' && (
|
|
336
336
|
<div className="rise-3 space-y-10">
|
|
337
|
-
{awaiting.length > 0 && <Section title="Esperando você" hint="
|
|
337
|
+
{awaiting.length > 0 && <Section title="Esperando você" hint="uma aprovação é sua" features={awaiting} now={now} project={project} />}
|
|
338
338
|
{active.length > 0 && <Section title="Em andamento" hint={`${active.length}`} features={active} now={now} project={project} />}
|
|
339
339
|
{done.length > 0 && (
|
|
340
340
|
<div>
|
|
@@ -24,9 +24,9 @@ export function Flow() {
|
|
|
24
24
|
<div className="bezel-core px-5 py-6 md:px-8">
|
|
25
25
|
<h2 className="text-lg font-semibold tracking-tight">Como uma feature anda</h2>
|
|
26
26
|
<p className="mt-1 max-w-3xl text-sm leading-relaxed text-[var(--color-dim)]">
|
|
27
|
-
Você descreve o que quer; o Claude conduz cada
|
|
28
|
-
|
|
29
|
-
No fim,
|
|
27
|
+
Você descreve o que quer; o Claude conduz cada etapa e para nos pontos de aprovação.
|
|
28
|
+
No modo padrão, que aprova sozinho quando não há risco, uma aprovação só espera você quando aparece algo arriscado.
|
|
29
|
+
No fim, uma revisão independente confere as entregas e o código e aprova ou pede correção.
|
|
30
30
|
</p>
|
|
31
31
|
<ol className="mt-6 grid gap-3 md:grid-cols-4">
|
|
32
32
|
{PHASES.map((p) => {
|
|
@@ -46,7 +46,7 @@ export function Flow() {
|
|
|
46
46
|
)}
|
|
47
47
|
{GATE_LABEL[p.id] && (
|
|
48
48
|
<p className="mt-3 flex items-center gap-1.5 text-xs text-[var(--color-dim)]">
|
|
49
|
-
<span className="h-2 w-2 rounded-full ring-1 ring-[var(--color-ok)]" />
|
|
49
|
+
<span className="h-2 w-2 rounded-full ring-1 ring-[var(--color-ok)]" /> termina na {GATE_LABEL[p.id].toLowerCase()}
|
|
50
50
|
</p>
|
|
51
51
|
)}
|
|
52
52
|
</li>
|
|
@@ -10,9 +10,9 @@ import { phaseMeta, GATE_LABEL } from '../lib/phases.js';
|
|
|
10
10
|
const phaseColor = (id) => `var(--color-phase-${id})`;
|
|
11
11
|
|
|
12
12
|
const GATE_CHECKS = {
|
|
13
|
-
plan: 'Confere o plano: o problema, o que fica de fora, os cenários com a
|
|
14
|
-
uiux: 'Confere o
|
|
15
|
-
review: '
|
|
13
|
+
plan: 'Confere o plano: o problema, o que fica de fora, os cenários com a forma de conferir cada um, o que se reaproveita e as decisões. Depois dele o plano congela (só a errata cresce).',
|
|
14
|
+
uiux: 'Confere o desenho das telas (protótipos e a conferência de cada tela). É opcional: só existe quando a feature passa pela etapa de telas, depois do plano.',
|
|
15
|
+
review: 'Revisão independente, feita do zero: a conferência das entregas e a revisão do código (e a de segurança, quando a mudança toca login, segredo ou dado pessoal), cada uma aprova ou pede correção sobre a mesma versão. Só barra com evidência; passa com os testes automáticos verdes e todo cenário conferido.',
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
const GATE_PREFIX = 'gate-';
|
|
@@ -215,11 +215,11 @@ export function PhaseDetail({ phase, agents }) {
|
|
|
215
215
|
function GateDetail({ phase }) {
|
|
216
216
|
return (
|
|
217
217
|
<div className="space-y-5 text-sm text-[var(--color-dim)]">
|
|
218
|
-
<p>{GATE_CHECKS[phase.id] || 'Ponto de aprovação ao fim desta
|
|
218
|
+
<p>{GATE_CHECKS[phase.id] || 'Ponto de aprovação ao fim desta etapa.'}</p>
|
|
219
219
|
<p>
|
|
220
|
-
Fica ao fim da
|
|
221
|
-
|
|
222
|
-
a menos que
|
|
220
|
+
Fica ao fim da etapa <EntityLink kind="phase" id={phase.id}>{phaseMeta(phase.id).label}</EntityLink>.
|
|
221
|
+
No modo padrão (aprova sozinho quando não há risco) a aprovação passa sozinha,
|
|
222
|
+
a menos que apareça algo arriscado; aí a decisão volta para você. No modo em que você aprova tudo ela
|
|
223
223
|
sempre espera a sua aprovação.
|
|
224
224
|
</p>
|
|
225
225
|
</div>
|
|
@@ -5,9 +5,9 @@ import { FeatureRow, isWorking } from './Features.jsx';
|
|
|
5
5
|
import { useProjects, projectHref, featureHref, announceProjectsChanged } from '../lib/project.js';
|
|
6
6
|
import { useNow } from '../hooks/usePref.js';
|
|
7
7
|
import { timeAgo } from '../lib/format.js';
|
|
8
|
+
import { GATE_LABEL, featureTitle } from '../lib/phases.js';
|
|
8
9
|
|
|
9
10
|
const ACTIVE_SHOWN = 4;
|
|
10
|
-
const GATE_LABEL = { plan: 'Plano', uiux: 'Design', review: 'Gate 3' };
|
|
11
11
|
const GATE_COLOR = { plan: 'var(--color-phase-plan)', uiux: 'var(--color-phase-uiux)', review: 'var(--color-phase-review)' };
|
|
12
12
|
|
|
13
13
|
// One row per gate that waits for the human, oldest first: the longest wait is the next decision.
|
|
@@ -25,12 +25,12 @@ function DecisionRow({ item, now }) {
|
|
|
25
25
|
return (
|
|
26
26
|
<li>
|
|
27
27
|
<Link to={featureHref(project.id, feature.name)}
|
|
28
|
-
className="fluid grid grid-cols-[
|
|
28
|
+
className="fluid grid grid-cols-[8.5rem_minmax(0,1fr)] items-start gap-x-4 gap-y-1 px-5 py-3.5 transition-colors hover:bg-white/[0.025] md:grid-cols-[8.5rem_minmax(0,1fr)_auto]">
|
|
29
29
|
<span className="mt-0.5 rounded-full px-2 py-px text-center text-[11px] font-medium shadow-[inset_0_0_0_1px_var(--color-hair-strong)]"
|
|
30
30
|
style={{ color: GATE_COLOR[gate] }}>{GATE_LABEL[gate] ?? gate}</span>
|
|
31
31
|
<div className="min-w-0">
|
|
32
32
|
<div className="flex items-baseline gap-2">
|
|
33
|
-
<span className="truncate font-medium text-[var(--color-fg)]"
|
|
33
|
+
<span className="truncate font-medium text-[var(--color-fg)]" title={feature.name}>{featureTitle(feature)}</span>
|
|
34
34
|
<span className="shrink-0 text-xs text-[var(--color-faint)]">{project.name}</span>
|
|
35
35
|
</div>
|
|
36
36
|
{reason && <p className="mt-0.5 line-clamp-2 text-sm text-[var(--color-dim)]">{reason}</p>}
|