Repository navigation
Show a Board button when the whiteboard collapses its board panel - #15
Conversation
Inside the whiteboard iframe, the parent page reports the split layout. While the board is collapsed, a Board button before the sidebar trigger asks the parent to restore the split. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87b3da7118
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| > | ||
| {boardHidden && ( | ||
| <Button | ||
| className="pointer-events-auto mr-2 w-18" |
There was a problem hiding this comment.
Move Board-button layout to a wrapper
The shared Button is resized and spaced directly with w-18 and mr-2. This repository requires app code to choose a Button variant/size and place width and margin on a parent, so wrap this control in the five-rem layout container and leave the primitive’s appearance to size="sm" and variant="ghost"; otherwise the titlebar geometry depends on an unsupported restyle of the UI primitive.
AGENTS.md reference: AGENTS.md:L155-L155
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 2d8fcc7: width and margin now sit on a wrapper div; the Button keeps only size and variant.
| if (event.source === window.parent && event.data?.type === "wb-layout") { | ||
| setBoardHidden(event.data.boardHidden === true); | ||
| } | ||
| }; | ||
| window.addEventListener("message", receive); | ||
| window.parent.postMessage({ type: "wb-layout-get" }, "*"); |
There was a problem hiding this comment.
Update the embedding protocol checklist
The existing run-t3.md embedding checklist says it must remain current for upstream ports, but its parent-window entry still enumerates only wb-project and wb-insert-ref. Without recording the new wb-layout, wb-layout-get, and wb-show-board protocol and collapsed-board control in the affected bullets, a future routine update can silently omit this cross-repository behavior; update the existing documentation rather than leaving the contract discoverable only in this component.
AGENTS.md reference: AGENTS.md:L123-L124
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 2d8fcc7: the parent-window bullet in run-t3.md now lists wb-layout-get, wb-layout and wb-show-board, and names AppSidebarLayout.tsx.
| variant="ghost" | ||
| onClick={() => window.parent.postMessage({ type: "wb-show-board" }, "*")} |
There was a problem hiding this comment.
Give the Board button backdrop-aware contrast
When the board is hidden while the thread sidebar is open in a Dev or Nightly environment using artwork identification, this fixed control sits over SidebarStageBackdrop. The adjacent sidebar trigger switches to media-navigation and resets that variant’s positioning for readable white-on-artwork contrast, but the Board control remains a foreground-colored ghost button, leaving its label and icon low-contrast or effectively invisible against the dark artwork; apply the same backdrop-aware visual treatment to this control.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing. The artwork only shows when the stage label is Dev or Nightly. This copy runs as a production build with a non-nightly server version, so its label is Alpha and the backdrop never renders.
…un-t3.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chat-only half of the whiteboard's collapsible split (the whiteboard PR bumps the submodule to this commit).
wb-layout { boardHidden }; the chat asks for it once on mount withwb-layout-get, since the first report can arrive before React listens.wb-show-board. The header content shifts right by the button's width./chat/(no parent frame) never shows the button.🤖 Generated with Claude Code