Skip to content

Feat/update checkbox - #819

Merged
TorinAsakura merged 27 commits into
feat/v2from
feat/update-checkbox
Oct 27, 2026
Merged

TorinAsakura merged 27 commits into
feat/v2from
feat/update-checkbox

Conversation

@comfrt1k

@comfrt1k comfrt1k commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Таска

Как проверять

  1. Контекст: Storybook → Components → Checkbox → «Базовый»
    Действие: кликнуть по checkbox несколько раз
    Ожидаемый результат: состояние переключается между checked и unchecked, меняются фон, border, тень и иконка

  2. Контекст: Storybook → Components → Checkbox → «Кастомный»
    Действие: кликнуть по checkbox
    Ожидаемый результат: checkbox переключается и сохраняет переданные classNames и checkedIcon

  3. Контекст: Storybook → Components → Checkbox → «Базовый»
    Действие: в Safari нажать Option + Tab, затем Space
    Ожидаемый результат: checkbox получает focus и переключается по Space
    Примечание: обычный Tab в Safari требует включить “Press Tab to highlight each item on a webpage”

  4. Контекст: Storybook Controls
    Действие: включить indeterminate, затем кликнуть по checkbox
    Ожидаемый результат: появляется иконка minus; после клика indeterminate снимается и checkbox становится checked

  5. Контекст: Storybook Controls
    Действие: включить disabled
    Ожидаемый результат: checkbox не переключается, применяются disabled-стили

Пруфы

Details
2026-10-23.16.43.18.mov
2026-10-23.16.42.37.mov

BREAKING CHANGE: Replace active/defaultActive/onCheck with checked/defaultChecked/onChange.
Use checkedIcon instead of icon. Refs now target the native input.
Remove CheckboxAppearanceName and the blue/green/red appearance variants.
Rename size keys small/medium/large to sm/md/lg.
CheckboxShape and CheckboxAppearance now use new structures;
consumers of the old exports and values must migrate.
@comfrt1k
comfrt1k marked this pull request as ready for review October 23, 2026 13:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T20:44:05.280287Z c678c27 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3a6cf39fed

ℹ️ 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d2b86399c

ℹ️ 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c5ce6b1220

ℹ️ 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4941242aee

ℹ️ 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".

@comfrt1k

Copy link
Copy Markdown
Contributor Author

@codex review

@comfrt1k
comfrt1k requested a review from TorinAsakura October 23, 2026 16:07

@TorinAsakura TorinAsakura left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В BREAKING CHANGE перечислены переходы на checked/defaultChecked/onChange, checkedIcon и ref на нативный input, но не указаны остальные изменения публичного API. Удаляются CheckboxAppearanceName и варианты blue/green/red; ключи размеров меняются с small/medium/large на sm/md/lg, а типы CheckboxShape и CheckboxAppearance меняют структуру. Потребители старых экспортов и значений получат ошибки типов. Добавь эти миграции в описание breaking change.

Comment thread package.json Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d22670a57c

ℹ️ 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".

@comfrt1k
comfrt1k force-pushed the feat/update-checkbox branch from d22670a to c678c27 Compare October 26, 2026 20:42
@comfrt1k
comfrt1k requested a review from TorinAsakura October 26, 2026 21:02
@TorinAsakura
TorinAsakura merged commit c12c5ef into feat/v2 Oct 27, 2026
1 check passed
@TorinAsakura
TorinAsakura deleted the feat/update-checkbox branch October 27, 2026 04:02
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.

2 participants