Skip to content

[Website] Let Dock buttons be disabled and pane subtitles contain links - #4054

Merged
adamziel merged 2 commits into
trunkfrom
dock-primitive-states
Jul 14, 2026
Merged

[Website] Let Dock buttons be disabled and pane subtitles contain links#4054
adamziel merged 2 commits into
trunkfrom
dock-primitive-states

Conversation

@adamziel

@adamziel adamziel commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

This PR lets Dock buttons be disabled and lets pane subtitles contain React content.

The Dock needs to disable tool buttons and its collapse button while some actions are running. Those buttons did not accept a disabled state. Pane subtitles also accepted only plain text, so they could not contain a documentation link.

Add disabled props and disabled styles to the Dock buttons. Add a headerSubtitle prop that accepts React content and keeps the normal subtitle spacing and text style. No current caller uses the new props.

These props are needed by the Dock work in #3965.

Verified with npm exec nx test playground-website --output-style=static and npm exec nx typecheck playground-website --output-style=static.

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds new “blocked/unavailable” UI states to Dock primitives (dock items + collapse control) and allows DockPane headers to render richer subtitle content, with accompanying rendering tests.

Changes:

  • Add disabled styling for dock item buttons and dock toggle pill buttons.
  • Introduce collapseDisabled for the collapse button and headerSubtitle for richer pane header content.
  • Add/extend rendering tests to cover the new states.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/playground/website/src/components/dock/style.module.css Adds :disabled and :disabled:hover styling for dock items and pill buttons.
packages/playground/website/src/components/dock/dock-toggle-pill.tsx Adds collapseDisabled prop, wiring to disabled + updated tooltip/title.
packages/playground/website/src/components/dock/dock-toggle-pill.spec.tsx Adds a rendering test for collapse-disabled behavior.
packages/playground/website/src/components/dock/dock-pane.tsx Adds headerSubtitle ReactNode to replace plain-text description rendering.
packages/playground/website/src/components/dock/dock-pane.spec.tsx Adds test ensuring headerSubtitle replaces description.
packages/playground/website/src/components/dock/dock-item-button.tsx Adds disabled prop and forwards it to the underlying <button>.
packages/playground/website/src/components/dock/dock-item-button.spec.tsx Adds rendering test verifying the disabled attribute is present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/playground/website/src/components/dock/dock-toggle-pill.tsx Outdated
Comment thread packages/playground/website/src/components/dock/dock-pane.tsx Outdated
Comment thread packages/playground/website/src/components/dock/dock-toggle-pill.spec.tsx Outdated
Comment thread packages/playground/website/src/components/dock/dock-toggle-pill.spec.tsx Outdated
Comment thread packages/playground/website/src/components/dock/dock-item-button.spec.tsx Outdated
@adamziel adamziel changed the title [Website] Add blocked-action states to Dock primitives Jul 14, 2026
@adamziel
adamziel merged commit a790b31 into trunk Jul 14, 2026
53 checks passed
@adamziel
adamziel deleted the dock-primitive-states branch July 14, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment