diff options
| author | soryu <soryu@soryu.co> | 2026-01-16 01:39:16 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-16 01:39:16 +0000 |
| commit | 05931d19bc0c161d0177c3f983d0cd903d5e8ae3 (patch) | |
| tree | e7a43350f103972707b76c540095449f90a31dff /makima/frontend/src/routes/contracts.tsx | |
| parent | b69dc962cd99aa8b478b7c5facbd56bfb63eda27 (diff) | |
| download | soryu-0.1.0.tar.gz soryu-0.1.0.zip | |
Fixup: add task contract type to frontendv0.1.0
Diffstat (limited to 'makima/frontend/src/routes/contracts.tsx')
| -rw-r--r-- | makima/frontend/src/routes/contracts.tsx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/makima/frontend/src/routes/contracts.tsx b/makima/frontend/src/routes/contracts.tsx index 5e9bf60..8ed4ab5 100644 --- a/makima/frontend/src/routes/contracts.tsx +++ b/makima/frontend/src/routes/contracts.tsx @@ -474,6 +474,20 @@ function ContractsPageContent() { <button type="button" onClick={() => { + setContractType("task"); + setInitialPhase("execute"); + }} + className={`flex-1 px-3 py-2 font-mono text-xs uppercase transition-colors ${ + contractType === "task" + ? "bg-[#0f3c78] text-[#dbe7ff] border border-[#75aafc]" + : "bg-[#0d1b2d] text-[#8b949e] border border-[#3f6fb3] hover:border-[#75aafc]" + }`} + > + Task + </button> + <button + type="button" + onClick={() => { setContractType("simple"); setInitialPhase("plan"); }} @@ -501,7 +515,9 @@ function ContractsPageContent() { </button> </div> <p className="mt-1 font-mono text-xs text-[#8b949e]"> - {contractType === "simple" + {contractType === "task" + ? "Execute: One-off adhoc task with no supervisor (auto-archives on completion)" + : contractType === "simple" ? "Plan → Execute: Simple workflow with a plan document" : "Research → Specify → Plan → Execute → Review: Full specification-driven development with TDD"} </p> @@ -524,7 +540,9 @@ function ContractsPageContent() { ))} </select> <p className="mt-1 font-mono text-xs text-[#8b949e]"> - {contractType === "simple" + {contractType === "task" + ? "Task contracts always start in Execute phase" + : contractType === "simple" ? "Start in Plan to define what to build, or Execute if already planned" : "Skip earlier phases if you already have requirements defined"} </p> |
