Skip to content

Conversation

@seveibar
Copy link
Contributor

@seveibar seveibar commented Jan 4, 2026

Motivation

  • Surface human-friendly step titles when step controls are shown so users can see the current step label in the toolbar.
  • Allow consumers to force the toolbar to render even when layer/step controls would otherwise be hidden.
  • Provide the same step-title behavior for both SVG (InteractiveGraphics) and canvas (InteractiveGraphicsCanvas) variants.

Description

  • Added stepMetadata?: Array<{ title: string }> and alwaysShowToolbar?: boolean props to InteractiveGraphics and InteractiveGraphicsCanvas.
  • Adjusted toolbar visibility logic to use alwaysShowToolbar and to compute a stepTitle from stepMetadata for the selected step (including the last step).
  • Reworked toolbar layout to be a flex row and render the current step title right-aligned when available.
  • Kept existing step/filter/label controls intact and gated the canvas toolbar so label control can still be shown when requested.

Testing

  • Ran TypeScript typecheck with bunx tsc --noEmit and it succeeded.
  • Ran formatter with bun run format and it completed successfully.

Codex Task

@vercel
Copy link

vercel bot commented Jan 4, 2026

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

Project Deployment Review Updated (UTC)
graphics-debug Ready Ready Preview, Comment Jan 4, 2026 7:20pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants