From 6bb915b932cc0e75bb871f733b85473dde65c6a6 Mon Sep 17 00:00:00 2001 From: yanas Date: Wed, 11 Mar 2026 16:31:30 -0500 Subject: [PATCH 1/3] docs: add JSDoc comment to clickButton action creator Co-Authored-By: Claude Sonnet 4.6 --- src/toolbar/actions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/toolbar/actions.js b/src/toolbar/actions.js index 7016030..4e53dce 100644 --- a/src/toolbar/actions.js +++ b/src/toolbar/actions.js @@ -1,5 +1,9 @@ import * as t from './actionTypes'; +/** + * Creates an action to handle a toolbar button click. + * @param {string} id - The id of the button that was clicked. + */ export const clickButton = (id) => ({ type: t.CLICK_BUTTON, id From 7d4c592ce588effd2d771865946ddafacbfe4ada Mon Sep 17 00:00:00 2001 From: yanas Date: Wed, 11 Mar 2026 17:05:54 -0500 Subject: [PATCH 2/3] docs: add @returns tag to clickButton JSDoc Co-Authored-By: Claude Sonnet 4.6 --- src/toolbar/actions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/toolbar/actions.js b/src/toolbar/actions.js index 4e53dce..3fd731c 100644 --- a/src/toolbar/actions.js +++ b/src/toolbar/actions.js @@ -3,6 +3,7 @@ import * as t from './actionTypes'; /** * Creates an action to handle a toolbar button click. * @param {string} id - The id of the button that was clicked. + * @returns {{type: string, id: string}} A CLICK_BUTTON action object. */ export const clickButton = (id) => ({ type: t.CLICK_BUTTON, From bef1fa20045a2fd1627a6d6c24fa864872ffa32e Mon Sep 17 00:00:00 2001 From: yanas Date: Wed, 11 Mar 2026 17:15:03 -0500 Subject: [PATCH 3/3] docs: clarify clickButton JSDoc description Co-Authored-By: Claude Sonnet 4.6 --- src/toolbar/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbar/actions.js b/src/toolbar/actions.js index 3fd731c..397c66d 100644 --- a/src/toolbar/actions.js +++ b/src/toolbar/actions.js @@ -1,7 +1,7 @@ import * as t from './actionTypes'; /** - * Creates an action to handle a toolbar button click. + * Creates a Redux action to handle a toolbar button click. * @param {string} id - The id of the button that was clicked. * @returns {{type: string, id: string}} A CLICK_BUTTON action object. */