Skip to content

docs(ui): correct BrowserPanel narrow-layout comment to reflect #824 - #826

Merged
Astro-Han merged 1 commit into
mainfrom
docs/546-browser-comment-honesty
Jul 12, 2026
Merged

Astro-Han merged 1 commit into
mainfrom
docs/546-browser-comment-honesty

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

Corrects one CSS comment in apps/desktop/src/renderer/styles/chat-detail.css to accurately describe the both-present + short-window recovery path and point at the durable tracker. Doc-only — no behavior change.

Why

The narrow-layout comment landed by #818 read: "the user recovers by collapsing ArtifactPane or closing the browser (tracked in the PR notes)." That overstates reachability at the shortest window heights (closing the browser alone usually recovers the chat column, but at extreme short heights the ArtifactPane collapse control may be clipped, so recovery may require both) and references the ephemeral PR notes instead of the durable tracker. A review consult on #818 recommended the more accurate wording; the edit was prepared for #818 but lost during its TDD mutation proof (a git checkout restored the file before the comment edit was committed), so it lands here as a separate doc-only PR.

Scope

Non-goals: any behavior change; the shared-height policy itself (tracked in #824).

Verification

  • browser-panel-layout.test.ts strips comments before parsing, so the contract is unaffected — 2/2 green. npm run build:main passes.
  • No behavior change to verify.

Impact

None — doc-only, no IPC/contract/data or visual change.

Reviewer notes

Follow-up to #818 (which is merged). The comment edit was intended for #818 but discarded by a git checkout -- chat-detail.css during #818's TDD mutation proof (HEAD did not yet contain the comment edit, so the checkout reverted it); #818 merged with the old wording. This PR lands the accurate wording. Refs #546.

Ready for review

  • Verification is complete and the results above are current
  • Impact, compatibility, migration, documentation, and release-note needs are addressed (none — doc-only)
  • User-visible UI/UX changes include visual evidence, or Verification explains why it is not applicable (no UI change)

Follow-up to #818. The narrow-layout CSS comment said "the user recovers by
collapsing ArtifactPane or closing the browser (tracked in the PR notes)",
which overstates reachability at the shortest window heights (closing the
browser alone usually recovers the chat column, but at extreme short heights
the ArtifactPane collapse control may be clipped, so recovery may require
both) and points at the ephemeral PR notes instead of the durable tracker.

Replace with the wording from the #818 review consult: the chat row (not
"column") can collapse from the two 220px minima, the shared-height policy is
tracked in #824, and recovery may require closing the browser and/or
collapsing ArtifactPane. Doc-only; the browser-panel-layout contract test
strips comments and stays green (2/2).

Refs #546.
@Astro-Han
Astro-Han merged commit 45fe75b into main Jul 12, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the docs/546-browser-comment-honesty branch July 12, 2026 13:37
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