Skip to content

feat(alerts): a phone's in-app alert is one line, as wide as its text - #406

Merged
devswha merged 2 commits into
mainfrom
feat/compact-phone-alert
Oct 3, 2026
Merged

devswha merged 2 commits into
mainfrom
feat/compact-phone-alert

Conversation

@devswha

@devswha devswha commented Oct 3, 2026

Copy link
Copy Markdown
Owner

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:

  • One line: the pane's name, then what happened (api-server Needs input). 44px high, which keeps the tap target.
  • As wide as its text, 340px at most. A long name is cut short with an ellipsis; what happened is never cut.
  • The dot is left out there: the status text already carries its colour. The agent mark's disc is 28px.
  • The black shape under the card follows the card's width. Droplet.tsx measures the card into --droplet-fit and keeps it measured with a ResizeObserver, 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.
  • Looked at in Chrome at 393x852 and 1280x800:
    • phone, api-server Needs input: 202x44, 12px below the header, centred;
    • phone, Finished: 182x44;
    • phone, a 50-character name: 340x44, the name cut short, Needs input whole;
    • desktop: 396x64, two lines, as before.
  • Not checked: a real iPhone, the light theme, and a setup with more than one PC (the PC's name then comes before the status on that line).

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.
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4b09e6a3-df67-444f-97b2-3c7c641aaaac
📥 Commits

Reviewing files that changed from the base of the PR and between d6d949a and 0a31432.

📒 Files selected for processing (1)
  • CHANGELOG.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Changed
    • On phones, in-app alerts now appear as compact, single-line cards sized to their content, with the pane name followed by the event text. Long pane names are truncated while event text remains visible, and the decorative dot is omitted.
    • At wider screen sizes, alerts retain their two-line layout.

Walkthrough

Phone 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.

Changes

Phone Alert Layout

Layer / File(s) Summary
Measured phone layout
src/components/Droplet.tsx, src/components/Droplet.css, scripts/droplet-regression.ts, DESIGN.md, CHANGELOG.md
Droplet measures the card width and provides it to responsive styles. At phone widths, the card displays its text in one line, hides the dot, and has a maximum width of 340px. The regression test checks phone and landscape dimensions and alignment. The design notes and changelog describe the layout.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 0a314

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: phone alerts now use a single line sized to the text.
Description check ✅ Passed The description includes both required sections. It explains the behavior and reports checks and browser validation. It does not include the screenshot or recording requested by the template, but the …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

# Conflicts:
#	CHANGELOG.md
@devswha
devswha merged commit 0e1d3e1 into main Oct 3, 2026
6 of 7 checks passed
@devswha
devswha deleted the feat/compact-phone-alert branch October 3, 2026 18:49
devswha added a commit that referenced this pull request Oct 3, 2026
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]>
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