Skip to content

Add project Overview, worktree cleanup, and shared shell controls - #35

Merged
yansfil merged 8 commits into
mainfrom
feat/projects-overview-git-context
Sep 9, 2026
Merged

yansfil merged 8 commits into
mainfrom
feat/projects-overview-git-context

Conversation

@yansfil

@yansfil yansfil commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What changed, in one paragraph a new contributor can follow

Projects now follow recent activity from existing commit and runtime state, and the new first Overview section brings project GitHub status, allocated disk usage, worktree history and the selected workspace into one place.
Tree/List inspection is separate from opening a workspace or returning to its active pane; Explorer remains focused on files.
Merged-worktree cleanup reviews and revalidates clean, unused linked worktrees before removing their folders, while Remove Registration remains a separate operation that does not delete files.
The shell also adopts shared controls for choices, search, actions, inputs, disclosure, checkboxes and empty states, with documented ownership and staged/CI checks against future design fragmentation.

This is a draft for review, with outstanding native acceptance listed below.
The branch is based on 601b66d and includes the existing recent-navigation work without another merge or rebase.

Review boundary

  • Runtime mutex: projection and typed UI selection remain core-owned; Git, disk, topology and cleanup I/O run outside the runtime mutex through background readers/work context. FFI shutdown takes the pending save worker out of the runtime and joins outside the lock.
  • Snapshot wire: additive checkout activity/context and project history, disk and cleanup state travel with revisioned rest; identical activity projections and repeated selection do not publish. Terminal streams remain cursored.
  • Ownership: Herdr owns current pane topology and lifecycle. Core owns Overview inspection and panel state. Inspecting a row does not focus a pane; explicit Open/Return uses the existing checkout-navigation path. No branch renaming, commit trailers or historical pane-authorship inference.
  • Herdr contract: no bundled pin/schema change or new socket method; decoding stays at the existing wire boundary. The exact bundled binary's schema-only comparison passes.
  • Failure path: GitHub authentication/errors and disk partial/unavailable states remain visible. Cleanup exposes exclusions, stale review refusals and per-target outcomes; registration removal exposes in-use refusal/recovery and waits for authoritative disappearance. Diagnostics use structured subjects without personal content.

Reviewer focus: verify the actual Git ancestry/continuation boundary, shared-directory and overlapping-root disk accounting, destructive cleanup exclusions/revalidation, and whether the shared controls produce a legible hierarchy across the shell.
Allocated disk usage is not a promise of APFS reclaimable bytes.
The static design checks do not prove visual quality, arbitrary Swift style inheritance or runtime accessibility.

Evidence

  • Verified by: at 198c764, full Rust suite 432 passed, 6 ignored; FFI 31 passed without shutdown hangs; full Swift suite 362 passed; release core build; all 10 CONTRIBUTING gates, including the exact bundled Herdr schema comparison; design contract and 6 mutation/staged-hook tests; git diff --check.
  • Earlier isolated native evidence at af3e59b: 16 projects and a 24-workspace fixture; Tree/List and search retain inspector selection without pane focus; explicit Open/Return changes focus; Explorer files-only; disclosure/checkbox accessibility roles; cleanup disabled-before-selection and cancel with unchanged fixture files; all four panel tabs fit at 320/344/400pt; repeated Overview selection and idle interval did not republish. Earlier feature fixtures also exercised cleanup success and stale refusal with per-target results.
  • Not verified (and why): the final shared-control migration in 198c764 has not yet been built into a signed candidate or reviewed natively; the existing review app remains the earlier af3e59b build. Full remaining native acceptance includes Remove Registration success/in-use, cleanup retry, authenticated GitHub populated/zero/loading, disk partial states, complete VoiceOver traversal and final migration wrapping/hover/focus/disabled/keyboard review. These remain open because the user requested PR preparation before completing that pass. No installed application was updated.
  • High-frequency path impact: project ordering reuses authoritative catalog/context data; graph reads are scoped to the selected open project and bounded to 512 commits, preserving parent IDs and continuation boundaries. Git/disk work reuses the owning refresh lane rather than adding per-row/per-tick subprocesses. Shared hover/focus state is local; search retains one keyboard/focus owner and repeated choice selection is a no-op. Regression coverage includes activity/no-idle-publish, inspection versus focus, bounded ancestry, disk deduplication, cleanup filesystem outcomes, registration retry and recent navigation. No new end-to-end latency improvement is claimed.

Screenshots

Reviewer-visible attachment is pending.
A real isolated-fixture screenshot exists for af3e59b, but the available GitHub browser session is signed out, so it could not be attached through the upload UI.
It is not evidence for the subsequent shared-control migration in 198c764.
Latest-HEAD native screenshots and aesthetic review remain required before this draft is ready; run artifacts are intentionally excluded from Git.

AI tooling

Implementation, documentation and tests used automated assistance.
Source/diff review, mutation tests, complete local suites and the isolated native interactions described above were checked; this does not substitute for the outstanding human visual review or latest-HEAD native acceptance.

@yansfil
yansfil marked this pull request as ready for review September 9, 2026 01:06
@yansfil
yansfil merged commit e97efa5 into main Sep 9, 2026
5 checks passed
@yansfil
yansfil deleted the feat/projects-overview-git-context branch September 9, 2026 01:06
Yolohyo pushed a commit to Yolohyo/hide that referenced this pull request Nov 13, 2026
… its frame carries (with-hide#2468)

Related: with-hide#2466 (the base: the desktop's five-row mission card and the
shared bottom line this draws from)

## Summary

The operator replaced the station track on mission cards with a calmer
five-row card (card v4), on the desktop and the phone alike.
The phone's mission cards now have the desktop's rows from what the
phone's frame carries: the title, the operator's band right under it (`볼
것`, `머지할 차례`), the worker's mark and name, and under a hairline the
bottom line.
For a step that changes code that line is `#n → <destination>` behind
its pull request's mark as the PR list draws it, with a person before
the destination when the operator merges; research and verify end in
their kind.
A destination too long for the row, or a line that ends in `내 차례`, puts
`→ <destination>` on a second row from the card's left edge, the number
and `내 차례` keeping the first, as on the desktop; a stacked step goes
into its pull request's mark, lit by the state of the step that holds
it, and a grey number.
The line comes from the same `branchLine`/`resultLine` the desktop draws
from; the phone shows no branch name, model, time, steps bar, conclusion
or verdict because its frame carries none, and `docs/INSTALL.md` says so
with what would close it.
A new phone bundle on an older core draws the same rows, stops the line
before `→`, and names nothing the core did not send; a tap still opens
the worker's conversation.

![Desktop map (top) and the phone's cards (bottom) of one mission whose
merges the operator owns,
dark](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/summary-dark.png?raw=true)
Look at the phone cards beside the desktop's: the same band under the
title, the same line icon and colour, the person faint orange ahead,
yellow with the band once the merge is due, grey after.

## Review

- **Decide**: whether each phone card reads like the desktop card of the
same case with only the frame's missing rows left off; other cases are
under More evidence.
- **Risky files**: `web/src/mobile/missionModel.ts` - `phoneLineNode`
maps the phone's flat wire fields onto the shared line node; a missing
field stays missing, an outside step from an older core names only the
pull request the frame carries, and a stacked step's pull request takes
its state from the step whose current pull request it is, grey otherwise
(an older one stays grey; `docs/INSTALL.md` records it).
- **Risky files**: `web/src/mobile/PhoneMissionMap.tsx` - the card's
rows; the bottom line's `내 차례` and long wait are handed to the shared
line as its end marks, as the desktop's are, shown only when the step
waits on the operator for more than its merge, and an outside step with
nothing it watches has no line; a general step whose line does not say
its preset (deploy, none) names it in the card's accessible name, as the
phone's card did before (PRD node-presets B9), and draws no line until
the presets' bottom line lands for both screens.
- **Cost**: none on a resident path: a card computes its line once per
render of that node, memoized on the node.
- **Risky files**: `hide-core/src/agent_state/tally/phone/missions.rs` -
the phone's mission frame no longer carries the mission's `scope`:
nothing on the phone reads it since the core alone decides a merge is
due, so it is removed (engineering principle 1); no released phone
bundle read it, since with-hide#2466 added it and neither has merged.

## Tests

- **Layer**: unit (`web/src/mobile/missions.test.tsx`) for each case's
band, worker, line mark and words, person, bold destination, stacked
pull request mark, accessible name and head tag, and an older core's
frame; `missionGate.test.tsx` reads the long wait as the shared end mark
words it.
- **Layer**: e2e (`web/e2e/mobile.spec.ts`): a real core with the fake
gh sends its mission frame to a paired phone; only this layer sees the
core's fields reach the phone bundle and fit the phone's width.
- **Catches**: the phone dropping a field it was sent or inventing one
it was not; planted defect: `phoneLineNode` ignoring `pr_base` and an
older core's outside pull request failed both new unit tests; the
stacked case expects the held pull request's state and an unheld one
`unknown`.
- **Catches**: the F1 test still checks the list row names only open
pull requests; on the card it now expects the band `Yours to merge` and
a due person, since v4 moves the number to the line.
- **Repeat**: the CI `repeat` lane runs the changed spec with no retry.
- **Waits**: the phone's connection (20 s, pairing) and the schema and
outside lines (30 s each, GitHub's answer reaching the core's frame),
each marked `wait-ok` with that state; no new poll.

## Evidence

- **Verified**: full web unit suite on this head (318 files, 2971 tests,
3 skipped); typecheck, lint, design contract and `check-timed-waits.py`
(also `--base origin/main`) pass.
- **Verified**: the phone e2e on this head; the gate e2e
(`mission-gate.spec.ts`) and the phone graph e2es
(`phone-relay.spec.ts`) on `2094e90d1b`, before the outside-step fix and
the base's line layouts.
- **Verified**: an isolated candidate core at iPhone 13 size, dark and
light, ten seeded missions, each beside the desktop map of the same
mission (on a `hided` built before main's node presets); no card part
spills at the phone's own text size or at the desktop's largest (17/13).
Measured on the page: every row of every card starts at one left edge;
`#n → release/target` stays one row at both sizes, the number twice as
far from the destination as the icon is from the number; a long
destination moves to a second row that starts at the card's left edge,
the number alone on the first, and ends in `…`; a line with no number
stays one row; a numbered line ending in `내 차례` (an open `볼 것` gate) is
always two rows, the number and `내 차례` on the first; a stacked step
reads `with-hide#35 → [mark] 31` with the number grey; a direct step ending in `내
차례` keeps its icon and `내 차례` on the first row and, where `→
<destination> · PR 없이` does not fit between them, puts it whole on the
second; measured on the page, the end marks never meet the line's words
at either size; research and verify steps still end in their kind.
- **Verified**: a core built from main before with-hide#2466, serving this
bundle: no head tag, no invented branch or destination, no page errors;
a stacked step still reads `→ 31` behind its pull request's mark, and a
line ending in `내 차례` with no destination stays one row.
- **Verified**: the Rust change (the phone frame's `scope` removed, its
assertion and comments) by CI's rust workspace on `6b2e0d2a40`; nothing
in Rust changed after it.
- **Not verified**: a local Rust build or test of this branch: the disk
was too full, so CI's rust workspace judges it; the e2e and captures ran
on a `hided` built from with-hide#2466's Rust before it merged main, so they do
not show main's node presets on the wire (the phone bundle reads an
older kind as its preset, which the unit test covers).
- **Not verified**: a real iPhone, in the iOS app or Safari; captures
are a browser at iPhone 13 size.
- **Not verified**: the phone draws its text at a fixed 1.25
(`web/phone.html`) and does not follow iOS text size, so the large-text
check applied the desktop's largest interface scale.
- **Not verified**: the phone's model, time, steps bar, conclusion and
verdict, which its frame does not carry; recorded as a phone row in
`docs/INSTALL.md`, What each system supports, with what closes it.
- **Not verified**: Windows and Linux by hand; this is a web-only
change, run by CI.
- No paired hide-private pull request: the phone card's look is owned by
public `docs/UI_BEHAVIOR.md`; private `docs/missions.md`'s line on what
the phone frame carries is with-hide#2466's, updated in
with-hide/hide-private#876.

<details><summary>More evidence</summary>

![The same mission,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/summary-light.png?raw=true)

![Other cases on the phone, dark: working, several, stacked, other base,
direct landed, outside, research, verify, planned to a long branch,
planned direct, scope pr, newest
merged](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/cases-dark.png?raw=true)

![Other cases on the phone,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/cases-light.png?raw=true)

Each case was also captured as a whole phone page and beside the desktop
map of the same seeded mission (nine missions, dark and light, and the
same bundle on an older core), kept with the run.

</details>

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

- Base: `feat/mission-card-stations` (with-hide#2466) at `5a3e516a7c` (with
main); web evidence and captures on `5874cd12c4`.
- Policy: `python3 scripts/check-timed-waits.py`, with `--base
origin/main`; `python3 scripts/check-no-attribution.py`.
- Web: `bash scripts/verify-web.sh web test` (318 files, 2986 tests);
`web typecheck`; `web lint`; `web build`; `node
scripts/check-design-contract.mjs`.
- E2E: `bash scripts/verify-web.sh web e2e e2e/mobile.spec.ts -g "ends
each step in the desktop's line"`; `web e2e e2e/mission-gate.spec.ts
e2e/phone-relay.spec.ts -g mission`.
- Captures: an isolated `HIDE_STATE_DIR` and HOME, the fake gh, a fake
Tailscale pairing, iPhone 13 browser context; the candidate core ended
after each run, no process left.
- Changed paths: `hide-core/src/agent_state/tally/phone/missions.rs`,
`docs/INSTALL.md`, `docs/UI_BEHAVIOR.md`, `web/e2e/mobile.spec.ts`,
`web/src/components/mission-options.tsx`,
`web/src/gallery/mobilePhoneMissionsData.ts`,
`web/src/mobile/MissionDetail.tsx`,
`web/src/mobile/PhoneMissionMap.tsx`,
`web/src/mobile/missionGate.test.tsx`, `web/src/mobile/missionModel.ts`,
`web/src/mobile/missions.test.tsx`, `web/src/mobile/protocol.ts`.

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