Repository navigation
feat(alerts): a phone's in-app alert is one line, as wide as its text - #406
Conversation
In the phone layout (768px and under) the card is one line, 44px high and as wide as its text, 340px at most: the pane's name, then what happened. The shape under it follows the measured width. Wider than that the two-line card is unchanged.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughPhone alerts now use a single-line card sized to its measured text width at widths up to 768px. Wider layouts retain the two-line card. The regression test checks phone and landscape layouts. ChangesPhone Alert Layout
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Merge Risk: ⚪ Minimal · up to The change makes phone alerts a compact single line and leaves wider layouts unchanged. No merge-blocking risk is evident in the supplied context. A real iPhone and the light theme were not checked. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
# Conflicts: # CHANGELOG.md
Bumps package.json and herdr-plugin.toml to 0.3.48, moves the Unreleased notes under [0.3.48] - 2026-10-04 (with the PR links #403, #405 and #406 lacked), and adds the compare link. Raises the remote PC bundle to 15 (the bridge starts herdr on a stale socket, #405; `/api/worktree/create` takes `agent`, #401): push the `remote-v15` tag and let the bundle workflow publish before running release.yml. Carries #393, #376, #403, #405, #402, #400, #397, #406, #401, #407, #408. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <[email protected]>
Change
On a phone the in-app alert was a two-line card across the screen (358x64 at 390px wide), over the top of the conversation, for what is two short things to say: the pane's name and what happened.
In the phone layout (768px and under) it is now one line, as wide as its text:
api-server Needs input). 44px high, which keeps the tap target.Droplet.tsxmeasures the card into--droplet-fitand keeps it measured with aResizeObserver, so a rotation or a resize is followed.Wider than 768px nothing changes: the two-line card, 396x64, with its dot. Where the card sits (below the header, from #400), its motion, its hold time, tap, flick and reduced motion are unchanged at every width.
Validation
bun run typecheck: clean.scripts/droplet-regression.ts(run against a built app on the test herdr session): all 5 steps pass. It now checks at 390px that the card is 44px high and under 300px wide, that the shape under it is the same width, and that the name and the status sit on one line; and at 844px that the card is still the two-line one, 64px high.api-server Needs input: 202x44, 12px below the header, centred;Finished: 182x44;Needs inputwhole;