feat(web): default inspector dock to bottom on mobile#142
Conversation
On narrow viewports the inspector still starts closed (unchanged), but when the user opens it from the bookmark tab it now docks to the bottom instead of the right. Bottom-dock leaves the canvas full-width above the panel; right-dock crushes the canvas to a sliver on phones. Applies to both the local App and the GitHub Pages fragment variant.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughApp.tsx and AppFragment.tsx now initialize the inspector panel dock position based on viewport size: mobile viewports default to ChangesViewport-aware inspector side initialization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Cuts the first release since v0.2.0 on 2026-05-11. The publish workflow auto-publishes each package whose package.json version differs from the registry, then tags v0.3.0 and creates the GitHub release. Versions: - @openhop/server 0.2.0 -> 0.3.0 - @openhop/web 0.2.0 -> 0.3.0 - openhop (CLI) 0.2.0 -> 0.3.0 - CLI's pinned deps on server + web also bumped to 0.3.0. CHANGELOG: promotes the existing [Unreleased] block to [0.3.0] with the two user-visible shipping changes since v0.2.0: - Skill triggers broadened (#143) — diagram / visualization / walkthrough prompts about products, features, workflows, user journeys, etc. now route to OpenHop, not just code walkthroughs. Adds an explicit negative gate to keep generic explainer prompts ("how does TCP work?") from over-activating the skill. - INSPECT panel defaults to bottom-dock on mobile (#142) — narrow viewports keep the canvas full-width when the user opens the inspector. plumbing and not changelogged. #140 / #141 only touched the README and do not ship in any tarball.
* chore: bump @openhop/server @openhop/web openhop to 0.3.0 Cuts the first release since v0.2.0 on 2026-05-11. The publish workflow auto-publishes each package whose package.json version differs from the registry, then tags v0.3.0 and creates the GitHub release. Versions: - @openhop/server 0.2.0 -> 0.3.0 - @openhop/web 0.2.0 -> 0.3.0 - openhop (CLI) 0.2.0 -> 0.3.0 - CLI's pinned deps on server + web also bumped to 0.3.0. CHANGELOG: promotes the existing [Unreleased] block to [0.3.0] with the two user-visible shipping changes since v0.2.0: - Skill triggers broadened (#143) — diagram / visualization / walkthrough prompts about products, features, workflows, user journeys, etc. now route to OpenHop, not just code walkthroughs. Adds an explicit negative gate to keep generic explainer prompts ("how does TCP work?") from over-activating the skill. - INSPECT panel defaults to bottom-dock on mobile (#142) — narrow viewports keep the canvas full-width when the user opens the inspector. plumbing and not changelogged. #140 / #141 only touched the README and do not ship in any tarball. * docs(changelog): add [0.3.0] link ref + point [Unreleased] at v0.3.0
Summary
On narrow viewports (Tailwind
mdbreakpoint, < 768px) the inspector now defaults to bottom-dock instead of right-dock when the user opens it. Closed-by-default behavior on mobile is unchanged.Why: on a phone, right-docking the inspector crushes the canvas to a sliver. Bottom-docking keeps the canvas full-width above the panel — the standard mobile drawer pattern.
Applied to both
App.tsx(local) andAppFragment.tsx(GitHub Pages playground).Test plan
npx prettier --checkclean on touched filesnpm run typecheck -w @openhop/webpassesnpm test -w @openhop/web— 42/42 pass🤖 Generated with Claude Code
Summary by CodeRabbit