Show the merged state and keep the stack map on merged pull requests
merged#124 proposes OpenAgentsInc/openagents.com:merged-stack-context into OpenAgentsInc/openagents.com:main.
## Summary
PR #119 showed **closed** after the stack merged, and its stack map disappeared, because merge finalization sets `state: "closed"` (with `merged_at`) and removes the stack entries that `Stacks.review_context/2` reads.
- The pull request page and list now derive one normalized state — `merged` when `merged_at` is set, then `closed`, `draft`, `open` — with a new `:done` badge variant for merged.
- New `Stacks.merged_context/1` recovers the historical stack placement for a merged member: it matches the entry whose `removed_at` equals the pull request's `merged_at`, so a pull request that left a stack and merged on its own stays `:not_stacked`.
- Merged stack members render a read-only `#stack-history` section with the stack map (layer position, sibling navigation, trunk link) and no rebase/unstack actions.
- Open Graph pull request cards fall back to the historical placement so the stack layer chip survives the merge.
## Testing
- `mix precommit` (2903/2904; one unrelated SCV run test flaked under load and passes on rerun)
- New domain tests for `merged_context/1` and LiveView tests for merged, closed-without-merge, and list states.
Fixes the report on https://openagents.com/OpenAgentsInc/openagents.com/pulls/119
[Written by Devin](https://app.devin.ai/sessions/57be3d4d98b942d2b1b25d33e5f96953)
Stack #2 · layer 1 of 1
merged- Show the merged state and keep the stack map on merged pull requests
- main
This pull request merged into main as part of the stack.