Skip to content

feat: draw a general node's preset icon and result on the mission card, panel and phone - #2498

Merged
yansfil merged 6 commits into
mainfrom
feat/mission-preset-cards
Nov 12, 2026
Merged

yansfil merged 6 commits into
mainfrom
feat/mission-preset-cards

Conversation

@yansfil

@yansfil yansfil commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Related: PRD node-presets (D-08 to D-13, B1, B2, B3, B5, B10, B12); builds on #2468 (merged); core in #2485; paired design doc with-hide/hide-private#892

Summary

Mission nodes are now code, general (with a preset) or waiting nodes (#2485), but the card still drew only research and verify, and a deploy or no-preset node had an empty bottom line.
Now every general node ends in its preset's icon and name (리서치, 검증, 배포·출시, 일반), and once done in its result line, or 통과 n/m / 실패 n/m whatever the preset.
A deploy node's start gate is the card's band: faint while the work before it runs, yellow with 내 차례 once it asks, gone from the card once passed.
A failed verdict turns the node's mark red, a waiting node says ⏳ 기다림 where a worker would be, and "조사" reads "리서치" everywhere; the phone draws the same icons, names and bands.

Deploy node: start gate faint while its dependency works, yellow and Needs you once it asks; passed start gate gone from the working and done cards

Review

  • Decide: the approved mockup (presets.html) as drawn, with v4's own parts kept where they differ: the band shows the plan's look with v4's eye icon (no 볼 것: prefix), the planned card keeps its (계획) worker row, the waiting node's line has no head branch name (the core sends none). The Conductor chose these on 2026-11-12; the red mark and the hidden passed start gate follow the mockup.
  • Decide: English says Watching for a waiting node, since Waiting is already the planned state's word; Korean is the core's 기다림.
  • Decide: the phone's merge-due item still names only the node's newest pull request; it is left as is, because the desktop's merge turn names the newest one too (D-52), and changing both is not this change's.
  • Risky files: web/src/missionLine.ts - the one result-line computation the desktop card, its hover and the phone read; web/src/components/mission-node-mark.tsx - the state mark every map draws.
  • Cost: none on a resident path; the card computes one line per render from fields it already had.

Tests

  • Layer: unit for the line, card, hover, panel and phone card (missionLine.test.ts, MissionMap.test.tsx, MissionGate.test.tsx, mobile/missions.test.tsx); missionKindWords.test.ts reads the core's preset table and hide mission show's words and fails when the Korean catalog says another; e2e mission-presets.spec.ts plans through the real CLI (old research name included), checks the map, the deploy start gate refusal mission_gate_before_start and a paired phone (paired through e2e/phone-direct-pair.ts, shared with mission-gate.spec.ts), which only the command/socket boundary shows.
  • Catches: a verdict drawn only for verify (planted: both line tests failed); a phone that drops the waiting row (planted: the e2e failed at the phone); a hover mark that is not red on a failed verdict (planted: the card test failed); a done deploy node's result the panel does not show beside a plan (planted: the panel test failed).
  • Repeat: the four unit files 3x, then on this head mission-presets.spec.ts and mission-gate.spec.ts three runs each, all green, locally.
  • Waits: none new; the e2e waits on data attributes and CLI answers.

Evidence

  • Verified: web unit suite 319 files / 2988 tests; mission-presets, mission-gate, mission-map, mission-merge-owner and the phone mission e2e (10 tests) on this head's web/dist and hided built at feat: draw the desktop's five-row mission card on the phone from what its frame carries #2468's head (no Rust changed since); lint, typecheck, check-design-contract.mjs, timed waits, attribution and workstation-identity checks.
  • Verified: an isolated candidate app (own HIDE_STATE_DIR, desktop host and hided at feat: plan mission nodes as code, general or waiting nodes with presets #2485's code) captured each preset planned, working and done, verify pass and fail, the deploy start gate faint and asking, a no-preset node and waiting nodes, dark and light and at the largest text size; two copies of the operator's old records (mission-24 research, mission-8 verify) open with the same states, results and verdicts before and after.
  • Not verified: the phone captures come from the gallery's phone scene at iPhone 13 size, not a paired device; the e2e covers a paired phone's drawing. A phone app built before general nodes still draws a deploy or no-preset step as Code (documented in docs/INSTALL.md by feat: plan mission nodes as code, general or waiting nodes with presets #2485). No Rust changed.
More evidence

Verify node: planned, working, Passed 7/7 green, Failed 5/7 red with a red mark
No-preset general node: document icon and General, then its result line
Waiting node: hourglass and 기다림 in the worker row, v4 outside line in PR colour
Old record mission-24 before this change
Old record mission-24 after: same results, done icons green
Phone, iPhone 13 size: same preset icons and names, start gate bands, waiting step

Base automatically changed from feat/mission-phone-stations to main November 12, 2026 15:38
…one line

The node panel and the Conductor pane's results now read a done general
node's result from the same value as its card, so a deploy or no-preset
node's line shows in the panel even beside a plan, and a verdict keeps its
line next to it. The stage word of a general node is its preset's name.
A failed verdict turns the hover's mark red as well, an unknown preset
draws the document icon and 일반, and the two mission specs share one
phone pairing helper.
@yansfil
yansfil added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 2359c77 Nov 12, 2026
42 checks passed
@yansfil
yansfil deleted the feat/mission-preset-cards branch November 12, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant