Skip to content

Conversation

@herablog
Copy link
Member

Summary

TextFieldコンポーネントのDesign Docとテストを追加しました。

  • TextFieldコンポーネントのdesign-docを作成
  • 不足していたユニットテストを追加(id、placeholder、disabled、type属性のテスト)
  • 不足していたStorybookストーリーを追加(入力値あり、無効化、長いテキスト)

Test plan

  • ユニットテストが成功することを確認
  • Storybookで新しいストーリーが正しく表示されることを確認
  • design-docの内容が適切であることを確認

@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2025

⚠️ No Changeset found

Latest commit: 254ad51

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@herablog herablog requested a review from Copilot November 20, 2025 09:31
@herablog herablog self-assigned this Nov 20, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive documentation and testing for the TextField component in spindle-ui. The changes include creating a design document that outlines component usage, accessibility guidelines, and testing strategy, along with adding missing unit tests and Storybook stories to improve component coverage.

Key Changes:

  • Created complete design documentation (design-doc.md) with usage examples, accessibility checklist, and test strategy
  • Added unit tests for basic HTML attributes (id, placeholder, disabled, type)
  • Added Storybook stories for key component states (with value, disabled, long text)

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/spindle-ui/src/Form/TextField/design-doc.md New design documentation covering component overview, usage patterns, accessibility requirements, and testing approach
packages/spindle-ui/src/Form/TextField/TextField.test.tsx Added unit tests for id, placeholder, disabled, and type attributes
packages/spindle-ui/src/Form/TextField/TextField.stories.tsx Added three new stories: MediumWithValue, MediumDisabled, and MediumWithLongText
packages/spindle-ui/src/Form/TextField/TextField.mdx Added documentation sections for the three new Storybook stories

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

Visit the preview URL for this PR (updated for commit 254ad51):

https://ameba-spindle--pr1644-docs-form-textfield-kba65so0.web.app

(expires Sun, 25 Jan 2026 09:59:03 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e7521619a2dd5c653490c8246e81ec2a5c8f1435

@reg-suit
Copy link

reg-suit bot commented Nov 20, 2025

reg-suit detected visual differences.

Check this report, and review them.

🔴 Changed ⚪ New 🔵 Passing
1 3 255
How can I change the check status? If reviewers approve this PR, the reg context status will be green automatically.

- TextFieldコンポーネントのdesign-docを追加
- ユニットテストを追加(id、placeholder、disabled、type属性)
- Storybookストーリーを追加(入力値あり、無効化、長いテキスト)
Add unit tests for aria-invalid, aria-errormessage, and aria-describedby attributes when TextField is in error state. Update design-doc to clarify that accessibility attributes should be tested in unit tests rather than VRT.
@herablog herablog force-pushed the docs/form-textfield branch from 9067d71 to 5110afa Compare December 26, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants