Repository navigation
fix(flame): dock ask ai beside docs and keep card groups responsive - #503
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
ℹ️ No critical issues. One UX rough edge in the compact rail, noted inline.
Reviewed changes
Mode: standard. I reviewed all 3 commits: the docked Ask AI workspace, the TOC dots, the compact sidebar and drawer, the dismiss and cancel plumbing between the search provider and the drawer, and the Card Group change to container queries.
- Ask AI docking (
panel-layout.ts): watches the DocSearch sidepanel and reserves its width on.docs-workspacethroughdata-ask-ai-sideand CSS variables. It also keeps the reading anchor in place when the layout changes. - Provider
close()+ revision counters: Flame'sdismissSearchSurfaces()and the plugin'sactionRevisiondrop stale async opens. Three new Flame tests and two new plugin tests cover this. - Compact rail + drawer: the 64px rail only shows while Ask AI is docked between 1024px and 1280px.
MobileDraweris now a portaledrole="dialog"with a focus trap and an inert background. - TOC dots:
TocDotsreplaces the full TOC while docked. The scroll observer now stays attached across breakpoints and selects the last heading once the reader hits the bottom of the page. - Card Group: column count now follows the container width (496/752/1008px) via
data-columns, not the viewport. - Workspace config: the removed
minimumReleaseAgeExcludeis safe.@docubook/[email protected]was published at 2026-11-06T06:44Z, which is past pnpm's 24h window, and CI installs pass.
Overall: READY WITH MINOR FIXES. Version skew is safe in both directions: older Flame has no .docs-workspace, so nothing docks, and close is optional for older plugins. No security issues, no new dependencies, and CI is green.
Top priorities:
- Decide what the compact rail's "Open navigation" should do while Ask AI is docked (inline).
claude-opus-5-5 | 𝕏
There was a problem hiding this comment.
✅ No new issues found. The compact rail concern from the last review is handled cleanly.
Reviewed changes
Mode: standard. I reviewed 235cc2a, the only commit since the last Pullfrog review (624d66d). Verdict: READY.
- Compact rail action redefined: the rail button is now "Close Ask AI and show navigation". It calls
dismissSearchSurfaces()and no longer opensMobileDrawer, soDesktopSidebardoesn't render a drawer anymore. AResizeObserveron the sidebar root waits for the full 280px sidebar to come back. Then it moves focus to the first visible menu link and falls back to the search button. - Drawer focus restore: when
MobileDrawercloses, it focuses the first visible element in this order: the mobile bar's "Open navigation" button, thenpreviousFocus, then the desktop search button. Focus no longer gets lost when the original trigger has been hidden. - Plugin
close()clearslastFocused: if DocSearch deliversonCloselate after the host dismisses it, that callback can no longer pull focus back to the search or Ask AI trigger. A normal user close still restores focus. A newclient.test.tscase covers both paths. - Docs/changeset: the changeset and the plugin README now describe the rail's explicit close behaviour.
I traced dismissSearchSurfaces() through the plugin's close() and the panel's onClose → panelLayout.close(), and checked the compact-rail CSS that hides .desktop-sidebar-menu and .desktop-sidebar-search. The focus handoff works as intended. CI is green at 235cc2a.
claude-opus-5-5 | 𝕏

Summary
Ask AI now shares the desktop workspace with the documentation in two separate boxes. Opening or expanding the panel reserves document space, preserves the reading position, and switches the TOC to centered dots with active-section highlighting and heading tooltips. The panel remains fullscreen below 1024px.
Changes
Verification
Agent Context