Skip to content

fix(chat): Keep Find clear of pane menus - #1035

Closed
polaroidkidd wants to merge 1 commit into
devswha:mainfrom
dle-labs:fix/chat-find-menu-placement-upstream
Closed

polaroidkidd wants to merge 1 commit into
devswha:mainfrom
dle-labs:fix/chat-find-menu-placement-upstream

Conversation

@polaroidkidd

Copy link
Copy Markdown
Contributor

Change

The Find in messages button occupied the same top-right corner as the floating three-dot pane menu. Reserve space beside the menu in desktop single-pane chat views, and keep Find below the glass header on phones. Layouts that put pane actions in the tab strip retain the normal horizontal inset.

Add browser regression coverage for non-overlapping controls and opening both menus at comfortable/compact density, plus phone placement and search interaction. Include a changelog fragment.

Validation

Verified on the clean branch based on upstream main:

  • bun run typecheck — passed.
  • HERDR_TEST_MODE=unit bun test ./src/conventions.test.ts ./scripts/changelog-fold.test.ts — 18 passed.
  • bun scripts/narrow-pane-demo-regression.ts — passed, including desktop and phone Find placement checks.
  • git diff --check upstream/main...HEAD — passed.

Full integration/browser suites were not run. No HTTP/WS contracts changed.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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: 863177d5-b998-4dd6-bf08-be02186dacbf
📥 Commits

Reviewing files that changed from the base of the PR and between d5dd7a6 and 07b8511.

📒 Files selected for processing: 4
  • changelog.d/chat-find-menu-placement.md
  • scripts/narrow-pane-demo-regression.ts
  • src/components/ChatFind.css
  • src/components/PaneCanvas.css

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

📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Find in messages stays clear of the floating pane menu and app header, including on narrow screens.
    • In single-pane layouts, content no longer overlaps the floating pane menu.
  • Tests
    • Added regression checks for Find positioning and open/close behavior, plus menu dismissal with Escape across screen sizes and density settings.

Find in messages now accounts for the floating pane menu and phone header. The regression script checks Find placement and menu interactions in both density settings and at a phone-sized viewport.

Changes: Find Menu Placement

Layer / File(s) Summary
Find placement and regression checks
src/components/PaneCanvas.css, src/components/ChatFind.css, scripts/narrow-pane-demo-regression.ts, changelog.d/chat-find-menu-placement.md
Single-pane frames without a tab-strip menu set a menu-space offset. Find positioning uses that offset and the header overlap. Browser checks cover Find and menu placement and interactions in comfortable and compact density, plus Find placement below the header at phone size. The changelog records the placement fix.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: devswha

Merge Risk: ⚪ Minimal · up to 07b85

Desktop Find reserves space beside the pane menu, and phone Find remains below the in-flow header. No actionable placement risk remains before merge.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: keeping Find in messages clear of pane menus.
Description check Passed The description includes both required sections. It explains the problem, resulting behavior, validation results, test limitations, and contract-test status.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

devswha added a commit to Haeminway1/herdr-web-ui that referenced this pull request Oct 14, 2026
Carries devswha#1035 by @polaroidkidd onto current main: the org fork
(dle-labs) does not accept maintainer pushes, so the branch could not be
updated in place. Their commit is kept as written, with them as author.

## Change (from devswha#1035)
Chat Find no longer sits under a pane's menu button: the Find field is
placed clear of the pane menu on desktop (comfortable and compact
density) and of the phone header.

## Added here
- Merged current main: kept main's pointer/focus visibility rules in
`src/components/PaneCanvas.css` (since devswha#1101 the desktop pane menu shows
only on keyboard focus) and added the PR's spacing.
- The Find placement check now reveals the pane menu by keyboard focus
instead of hover, keeping its placement assertions.

## Validation
- The regression fails on main (Find overlaps the keyboard-revealed
menu) and passes with this branch; `bun run typecheck` passes.

Closes devswha#1035 when merged.

---------

Co-authored-by: Daniel Einars <[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