Skip to content

fix(flame): dock ask ai beside docs and keep card groups responsive - #503

Merged
gitfromwildan merged 4 commits into
mainfrom
fix/flame-ask-ai-split-workspace
Nov 7, 2026
Merged

gitfromwildan merged 4 commits into
mainfrom
fix/flame-ask-ai-split-workspace

Conversation

@gitfromwildan

@gitfromwildan gitfromwildan commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

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

  • On narrow desktops, the compact rail explicitly closes Ask AI and reveals the full sidebar with visible navigation focus. On mobile, keep the drawer above content, trap focus, and dismiss search and Ask AI when it opens.
  • Cancel pending search/panel opens when a newer action takes over; keep built-in search accessible through its portal and keyboard shortcut.
  • Make Card Group columns respond to container width so cards retain article padding and avoid overlapping the TOC or Ask AI panel.
  • Update documentation and patch changesets for Flame, Markdown, and the Algolia plugin.
  • Remove the expired Algolia minimum-release-age exception.

Verification

  • Flame search-provider and TOC suites: 47 tests passed.
  • Algolia plugin suite: 42 tests passed, including host dismissal versus normal-close focus restoration.
  • Markdown suite: 129 tests passed.
  • Type checks for all three packages, formatting, and lint passed.
  • Chromium checks during implementation covered desktop/mobile layouts, left/right panels, expand/collapse, TOC dots, drawer layering, focus, and built-in/provider search. Card Group checks covered 32 container/column combinations and actual pages with Ask AI closed, open, and expanded.
  • Review regression checks: left/right panels at 1024, 1100, and 1279px, repeated navigation after expansion, and mobile drawer dismissal/focus restoration all passed without browser errors. The temporary static test server was closed.
  • Forced production fixture build: 40 pages passed.
  • Pre-push hooks: workspace lint, all 7 build tasks, and commitlint passed.

Agent Context

  • owner/repo: DocuBook/docubook
  • branch: fix/flame-ask-ai-split-workspace | base: main
  • created-by: Codex
  • commits: e20153e, c4fadd6, 624d66d, 235cc2a
  • evidence-ref: local logs /tmp/flame-split-unit-final.log, /tmp/algolia-split-unit-final.log, /tmp/markdown-split-unit-final.log, /tmp/flame-split-production.log, /tmp/flame-split-push.log, /tmp/flame-compact-review-tests.log, /tmp/algolia-compact-review-tests.log, /tmp/flame-compact-review-browser.log, /tmp/flame-compact-review-build.log, /tmp/flame-compact-review-push.log

@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 7, 2026 3:24pm UTC

@gitfromwildan gitfromwildan self-assigned this Nov 7, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ 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-workspace through data-ask-ai-side and CSS variables. It also keeps the reading anchor in place when the layout changes.
  • Provider close() + revision counters: Flame's dismissSearchSurfaces() and the plugin's actionRevision drop 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. MobileDrawer is now a portaled role="dialog" with a focus trap and an inert background.
  • TOC dots: TocDots replaces 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 minimumReleaseAgeExclude is 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:

  1. Decide what the compact rail's "Open navigation" should do while Ask AI is docked (inline).

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 opens MobileDrawer, so DesktopSidebar doesn't render a drawer anymore. A ResizeObserver on 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 MobileDrawer closes, it focuses the first visible element in this order: the mobile bar's "Open navigation" button, then previousFocus, then the desktop search button. Focus no longer gets lost when the original trigger has been hidden.
  • Plugin close() clears lastFocused: if DocSearch delivers onClose late 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 new client.test.ts case 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.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 531fb6b into main Nov 7, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the fix/flame-ask-ai-split-workspace branch November 7, 2026 15:34
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