Skip to content

docs: document toolbar button state shape in reducer#2

Open
yanas wants to merge 2 commits into
masterfrom
docs/toolbar-button-shape-jsdoc
Open

docs: document toolbar button state shape in reducer#2
yanas wants to merge 2 commits into
masterfrom
docs/toolbar-button-shape-jsdoc

Conversation

@yanas

@yanas yanas commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a JSDoc comment above initialState in src/toolbar/reducer.js documenting every field on toolbar button objects (id, buttonClassName, toggledClassName, buttonShortcut, i18nTextKey, tooltipText, toggled, disabled, unreadMessages)

Test plan

  • No logic changes — visual review of the comment is sufficient

🤖 Generated with Claude Code

Add a JSDoc comment describing each field on the toolbar button objects
in initialState, making the data structure self-explanatory for future contributors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Warning

PR classification could not determine the PR type. Please apply a type: label manually.

Document parameters, toggle behavior, and return value for the
per-button sub-reducer to make its logic easier to follow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Warning

PR classification could not determine the PR type. Please apply a type: label manually.

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