Skip to content

Distinguish pull request states with colors and icons - #33

Merged
yansfil merged 3 commits into
mainfrom
polish/pull-request-status
Sep 8, 2026
Merged

yansfil merged 3 commits into
mainfrom
polish/pull-request-status

Conversation

@yansfil

@yansfil yansfil commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

What changed, in one paragraph a new contributor can follow

Pull request status is now recognizable from the sidebar: Open uses green, Merged purple, Closed red, and Draft gray, with the corresponding official vector icon.
The popover header and State badge use the same lifecycle color.
The glyph matches the 14pt branch icon inside the existing 24pt trailing control, preserving alignment with Workspace disclosure.
Shared icon controls support template images and preserve semantic color while selected or hovered; existing system-symbol callers retain their current appearance.
The palette and geometry are documented in DESIGN.md and docs/status-model.md, and the bundled icons include their MIT notice and source revision.

Review boundary

  • Runtime mutex: N/A, no core or runtime changes.
  • Snapshot wire: N/A, existing PR state, draft flag and review fields are reused.
  • Ownership: visual presentation only; core focus/disclosure and Herdr pane/agent ownership are unchanged.
  • Herdr contract: N/A, no new methods, parameters or external fields.
  • Failure path: existing GitHub lookup errors and stale notices are unchanged; a missing or unreadable bundled icon fails explicitly with its resource name.

Evidence

  • Verified by: 342 Swift tests, every applicable local CONTRIBUTING gate, theme/component guards, signed debug build, and native screenshot/interaction against an isolated server with exactly one identified app. Real merged PR Clarify workspace navigation and surface agent and pull request status #32 rendered the purple merge icon in the sidebar and popover, the matching State badge, and unchanged green CI status. The final 14pt native capture also verified real Open PR Distinguish pull request states with colors and icons #33 in green beside Merged PR Clarify workspace navigation and surface agent and pull request status #32 in purple. The four vector resources load once and are validated as readable.
  • Not verified (and why): Closed and Draft were not each driven through a live GitHub lifecycle; their state mapping and bundled resources were inspected. No matched performance benchmark or exhaustive accessibility color-vision matrix; no performance improvement is claimed. The unchanged Rust core retains the 450-test passing result from the parent change and is rerun by CI.
  • High-frequency path impact: four small bundled vectors are loaded once and cached; later row rendering performs a fixed state lookup. Hover remains local to the shared button. No new queue, timer, remote request, terminal input or runtime publication.
  • Human review focus: judge icon scale and palette against the supplied native image, verify that PR lifecycle remains distinct from review and CI results, and confirm the third-party resource notice travels with both build paths.

Screenshots

Native app capture from the isolated workspace, cropped to the relevant surface.

Final 14pt merged and open pull request icons aligned with workspace controls

AI tooling

Implementation, documentation and checks were assisted.
The final diff, native rendering, interaction and build results were checked before delivery.

@yansfil
yansfil merged commit 830422f into main Sep 8, 2026
5 checks passed
@yansfil
yansfil deleted the polish/pull-request-status branch September 8, 2026 05:46
yansfil added a commit that referenced this pull request Oct 16, 2026
…ails (#1236)

Closes #1189

## Summary

프로젝트의 PR 읽기는 PR 목록 말고도 세 가지를 더 묻습니다: 로그인한 계정, 나에게 온 리뷰 요청, 머지 큐 자리입니다.
지금은 이 셋 중 하나만 실패해도 그 프로젝트의 PR이 앱 어디에도 보이지 않았습니다.
이제 PR 목록이 읽히면 읽기는 성공입니다. 실패한 질문에 기대던 판정(내 PR인지, 나나 우리 팀에 리뷰가 요청됐는지, 큐에
있는지)만 "모름"으로 남습니다.
판정할 수 없는 PR은 자기가 속할 수도 있는 그룹이 아니라 평범한 Waiting에 두고, 그 줄에 무엇을 알 수 없는지
적습니다. 배너나 시트는 없습니다.
PRs 옆 ⚠는 그대로 쓰고, 툴팁이 어떤 질문을 못 읽었는지 말합니다.
이 PR은 PRD work-tab-pr-lens D-25의 "하나라도 실패하면 읽기 전체 실패" 규칙을 대체합니다. D-25는
로컬 PRD라 이 본문에만 적습니다.

![머지 큐를 못 읽었을 때: 목록은 그대로고 ⚠ 툴팁이 이유를
말합니다](https://github.com/yansfil/pr-assets/blob/main/hide/fix-1189-pr-extra-queries/1735e97/work-prs-unread-merge-queue-light.png?raw=true)

머지 큐만 못 읽은 경우입니다. 큐에 있을 수 있는 #31, #32만 `Not judged`로 Waiting에 앉고, 충돌
PR(#34)과 리뷰 PR(#33)은 그대로 판정됩니다.

## Review

- **판단해 주세요**: 판정할 수 없는 PR을 어디에 둘까요. 저는 평범한 Waiting을 골랐습니다. Needs You는
"내 차례"라는 뜻이라 틀리게 말할 수 있고, Blocked는 "고쳐야 함"이라 틀립니다.
- **판단해 주세요**: 그 줄은 `Not judged · can't tell if it is yours`처럼 읽힙니다. 같은
모양으로 `checking`(머지 상태 확인 중)이 있어 흐린 색을 맞췄는데, 더 조용하거나 더 분명하게 하고 싶은지 봐 주세요.
- **판단해 주세요**: 계정을 못 읽으면 세션이 닿지 않은 내 PR 후보 전부가 Waiting으로 가서 Needs You가
비고, Work 아이콘 숫자도 비어 있습니다. 숫자를 틀리게 세는 것보다 낫다고 봤습니다.
- **조심해서 볼 파일**: `herdr-core/src/github.rs` - 세 질문을 따로 묻고, 목록이 이미 정한
것(요청이 내 이름을 부르는 경우)은 계속 정합니다. `review_ask`의 표가 그 규칙입니다.
- **조심해서 볼 파일**: `herdr-core/src/agent_state/work/board.rs` - `listed`와
`standing`이 "모름"을 "아님"으로 읽지 않는 자리입니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/projects.rs` - 뒤 읽기가 실패해 지난 목록을
남길 때 안 읽힌 질문 이름도 같이 남깁니다. 지난 목록을 남기는 동작 자체는 바꾸지 않았습니다.
- **조심해서 볼 파일**: `herdr-core/src/github_store.rs` - 저장 파일 스키마를 2로 올렸습니다.
옛 파일은 버려지고 다음 읽기가 새로 씁니다.
- **질문**: 이 질문들이 실제로 얼마나 자주 실패하는지는 아직 근거가 없습니다. 그럴듯한 원인은 GitHub
Enterprise의 GraphQL 차이, 좁은 토큰, 요청 한도입니다. 빈도는 주장하지 않습니다.

## Evidence

- **확인한 것**: Rust 단위 테스트가 질문 셋을 하나씩, 그리고 셋 모두 실패시켰을 때 각 PR의 판정을
확인합니다(`github.rs` 8개, `board.rs` 4개, 런타임 1개). 기대값은 구현이 아니라 규칙 표에서 적었습니다.
- **확인한 것**: 가짜 `gh`로 Playwright 4개가 질문별로 실패시킨 뒤 목록, 그룹, 이유 줄, ⚠의 접근 이름과
툴팁 문구를 확인합니다(`web/e2e/work-prs.spec.ts`, macOS, 파일의 10개 모두 통과. main을 합친
뒤에는 새 4개만 다시 돌렸습니다).
- **확인한 것**: `verify-cargo.sh test -p herdr-core`, `lint`,
`verify-web.sh web typecheck`, `lint`, `test`와 `check-no-attribution`,
`check-no-workstation-identity`.
- **확인한 것**: `hided`의
`opener_lifecycle::thirteenth_quick_launch_is_over_budget`가 전체 실행에서 한 번
실패했고 단독 실행에서는 통과했습니다. 이 변경과 무관한 시간 예산 테스트로 보지만 원인은 따로 보지 않았습니다.
- **확인하지 못한 것**: 실제 GitHub나 GitHub Enterprise, 실제 `gh`의 실패 모양. 실패는 가짜
`gh`의 종료 코드로만 만들었습니다.
- **확인하지 못한 것**: 설치된 앱과 Windows, Linux. 이 변경은 플랫폼 코드를 건드리지 않아 CI의
Windows와 Linux 레인에 맡깁니다.
- **확인하지 못한 것**: 일본어와 중국어 문구는 번역 검토를 받지 않았습니다. 영어와 한국어만 화면으로 봤습니다.

<details><summary>추가 증거</summary>

![세 질문이 모두 실패: 목록 전체가 Waiting에 있고 툴팁이 셋을 모두
말합니다](https://github.com/yansfil/pr-assets/blob/main/hide/fix-1189-pr-extra-queries/1735e97/work-prs-unread-all-light.png?raw=true)

세 질문이 모두 실패한 경우입니다. 초안, 봇, 머지된 PR은 목록만으로 정해져 그대로입니다.

</details>
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
## Summary

Supersedes with-hide#2454 with the same commit; the branch changes only to remove
the with-hide#2466 stack.

The phone's vertical step rail made a mission's parallel work hard to
follow.
The phone now uses the desktop graph's layout, card frame, connections
and report.
Touch pan and pinch preserve the view; a node tap opens its worker's
conversation.
The header, progress, decision and reply controls keep their existing
behavior.

![Phone mission graph at 393 pt, demo mission,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/demo-light.png?raw=true)

![Phone mission graph at 393 pt, demo mission,
dark](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/demo-dark.png?raw=true)

<details><summary>18-node mission and touch zoom at 393 pt</summary>

![Phone mission graph at 393 pt, 18 nodes in parallel branches,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/long-light.png?raw=true)

![Phone mission graph at 393 pt, 18 nodes in parallel branches,
dark](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/long-dark.png?raw=true)

![Phone mission graph at 393 pt, native touch pinch to 91 percent and
pan](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/long-zoomed-panned.png?raw=true)

</details>

![Ready merge remains the operator turn, open PR with-hide#33
+1](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/merge-ready-light.png?raw=true)

Paired owning-guide update:
with-hide/hide-private#868

## Review

- **Decide**: The operator approved the graph UI. Corrected captures
settle theme transitions before recording colors.
- **Risky files**: `MissionMapCanvas.tsx` adds touch gestures;
`MissionGraph.tsx` shares the desktop layout.
- **Risky files**: `mission-graph-card.tsx` extracts the desktop frame;
phone metadata stays at its boundary.
- **Cost**: At most two pointers and one pending animation frame; no
wire events; frame cancels on unmount.

## Tests

- **Layer**: Phone UI unit tests, existing desktop graph tests, and
native Chromium touch through the phone demo.
- **Catches**: Missing/parallel nodes, gates, omitted/empty/finished
states, worker taps and wrong turn markers.
- **Catches**: Deliberately omitting one node failed the four-node graph
test; restored source passes.
- **Catches**: After integrating with-hide#2459, the detail keeps ready operator
merges, newest open held PR and additional count; restoring the old
current-PR selection fails on with-hide#37 instead of with-hide#33.
- **Catches**: Native card-start pan and pinch continue across
successive moves; restoring the capture-transfer bug fails the second
pan move.
- **Repeat**: Built-phone CI repeats the native card-touch scenario 6
times successfully, with retries disabled; the two changed E2E specs
total 192 passes.
- **Repeat**: On committed `826e92f`, all 27 focused phone tests passed
3 consecutive runs through the shared cargo slot, including the added
ready-merge detail assertions; no retry.
- **Repeat**: The new native-touch scenario body passed 3 local
source-hosted Chromium runs; real paired-phone gate E2E passed 3 local
runs; 26 phone tests × 3 local runs passed; 141 focused tests, including
CSS variable validation, passed after the CI fix.
- **Waits**: No new fixed waits, retries or timeout overrides in
committed tests.

## Evidence

- **Verified**: 393 × 852 CSS px, light/dark demo and 18 nodes; no page
overflow or browser exceptions.
- **Verified**: Native Chromium touch pinch 46% → 91%, pan by 60/90 px,
drag suppresses worker navigation.
- **Verified**: Node tap opens its worker; finished map fits; empty and
omitted plans render one line.
- **Verified**: A real paired phone answers a gate and keeps its
completed step visible on the shared graph; 3 local E2E runs passed.
- **Verified**: After merging main once, 27 focused phone tests pass,
the native-touch scenario passes, and the 393 pt ready-merge card shows
the correct open PRs and operator turn.
- **Verified**: Prior candidate web/phone builds and focused units pass;
current lint, design contract and native-touch checks pass.
- **Not verified**: Physical iPhone/Safari and native iOS host; live
relay/Apple services were outside scope.
- **Verified**: Final integration-head CI passes all planned lanes,
including WSL product tests after one failed-only rerun. macOS lanes
were skipped by the plan.
- **Not verified**: This is direct delegation with no PRD run.

<details><summary>Verification record</summary>

- Candidate: `826e92f014316961d80b7ac520791451313c8b77`; integrated
main: `62583c64fe74e98e6c8432e7c66571fed5cdcca0`.
- Final CI:
https://github.com/with-hide/hide/actions/runs/43077731006/attempts/2,
success on the candidate above. The first attempt stalled during WSL
distribution setup before product tests; the lead requested cancellation
and one failed-only rerun. Its cancellation annotation is `The run was
canceled by @yansfil.` The canceled job log was unavailable (`log not
found`); its raw job state and annotation are preserved locally. The
rerun completed setup in 61 seconds and both WSL product steps passed.
- Previous head `13a79ac24e`:
https://github.com/with-hide/hide/actions/runs/43038814917, attempt 3,
all planned lanes pass.
- Main was merged once after with-hide#2459 landed. The sole conflict was its
edits to the removed phone rail; the shared `mergePull` rule now
supplies the graph card, ready merges join initial framing, and the
inherited list test also checks detail cards.
- Independent capture-transfer delta review: PASS on
`4aa2e62d6215f42d8f250604dc7f04468cb7a40b` (letter-35738); integration
delta source review found no code issues, and the reviewer confirmed the
27-test, three-run repeat evidence (letter-35762).
- Native touch repeat (successful first-attempt result retained by the
failed-only rerun):
https://github.com/with-hide/hide/actions/runs/43077731006/job/130722419662;
`mission-gate.spec.ts` + `phone-relay.spec.ts`, 32 tests x 6 repeats,
192 pass, retries 0. Native card touch passes all 6 repeats in 1.7-1.8
seconds each.
- The superseded 4aa2 verify was cancelled before pushing this
integration head; no failure was observed before cancellation.
- Final head retains card pointers while implicit capture transfers to
the canvas; only the canvas losing its own capture ends tracking.
- Before fix: all five native pan moves stop at scrollTop 106; three
pinch moves stop at scale 1.00.
- After fix: pan scrollTop 106, 121, 136, 151, 154; pinch scales 1.00,
1.33, 1.67.
- Card-start event traces record SPAN implicit capture, bubbling lost
capture and DIV capture, followed by actual successive moves.
- Restoring the old handler makes the new scenario fail on its second
pan move; restored fix passes three times.
- Local source-hosted runs execute the committed scenario body with only
its navigation changed to the Vite entry; the built-phone relay-fixture
run passed all six CI repeats; local focused-unit WASM preparation later
ran in the shared slot after disk space recovered.
- The lead requested one failed-only rerun after another unchanged
branch passed WSL; only WSL and verify reran.
- That failed-only rerun changed no source; the external package-host
DNS failure no longer reproduced on that attempt.
- Author review covered correctness, fragmentation, simplicity, module
boundaries, ownership/limits and tests.
- The existing phone frame already carries dependencies; no contracts,
daemon projection or protocol change.
- Desktop-only satellites and defect metadata stay absent on the phone;
values are not fabricated.
- The App Store capture marker `[data-phone-mission-steps]` remains on
the graph section.
- Final focused tests ran through the shared cargo slot and verification
entrypoint. An initial unslotted preparation was stopped immediately,
then rerun through the slot.
- All browsers and the worktree's dev server were closed; the installed
app and operator runtime were untouched.
- The operator approved the graph UI; the parent owns the merge. No
merge was attempted.
- All six phone captures were re-recorded at final candidate
`826e92f014` after the capture-transfer fix.
- CI run 43034405862 caught the remaining old rail-fold E2E expectation;
it now checks the requested visible completed graph card.
- That run also hit Ubuntu DNS resolution failure in WSL package
installation before product tests; the log is preserved and the previous
head subsequently passed the complete planned verify.
- Initial CI run 43032557664 caught an undefined CSS size variable; the
ineffective reference is removed.
- Dark controls in the first long-light capture were a 150 ms theme
transition, confirmed by computed styles and active CSS transitions;
corrected captures record settled colors.
- Empty reply/selection keeps Send/Answer disabled as designed; the
input and header remain active.

Capture SHA-256:

- `demo-light.png`:
`1000c713b58fb97011988f4a29a5225a91a6ef2564957daedd1c7fd3574c2d1f`
- `demo-dark.png`:
`4034c128592617a1232ac8dd62fe23c495e370fcec98bee816fe9613057167ff`
- `long-light.png`:
`9f4f1874d89820407369b428b241ce16713fde9cddac8133d6c40f9862203247`
- `long-dark.png`:
`a3c41bf2baed60e94fcbe2610a547e8ee70d22022eddc6abf5d424a0c1c84d97`
- `long-zoomed-panned.png`:
`2f3f8015198768a7e6680f23cfbb3a818e3aeba4e4d33971a51efd2f02c2403c`
- `merge-ready-light.png`:
`39620d8bef7f13ab721acf262bb7f90001ad0f976b33a9a2f9207c88601f0d03`

</details>
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