Skip to content

docs(file-input): fix docs controls inference and clarify upload-status migration guidance - #8301

Draft
ibutakova wants to merge 3 commits into
masterfrom
FE-7878-file-input-docs-fix
Draft

ibutakova wants to merge 3 commits into
masterfrom
FE-7878-file-input-docs-fix

Conversation

@ibutakova

@ibutakova ibutakova commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Proposed behaviour

File Input docs auto-generate ArgTypes/Controls correctly in Storybook docs, and migration guidance for uploadStatus entries is clearer and more actionable (status-to-callback mapping, before/after examples, and explicit single vs multiple delete behaviour).

Current behaviour

ArgTypes/Controls inference fails on the File Input docs entry and we do not see migration guide.

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

@ibutakova
ibutakova requested review from nineteen88 and a balanced review from Copilot November 19, 2026 20:21

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

🟡 Changes recommended

The story overrides the error and uploadStatus controls and exposes a multiple option that its single-file handler and state do not support.

2 open issues
1 file not reviewed
What changed in this PR

This PR updates File Input’s Storybook documentation to support Controls and make upload-status migration guidance easier to find and follow.

Changes:

  • Converts the default story to an args-based object and updates its story type.
  • Adds status-specific callback mappings and before/after migration examples.
  • Clarifies Preview behavior and deletion differences between single-file and multiple-file modes.
File Description
src/​components/​file-input/​file-input.stories.tsx Converts the default story to an args-driven render configuration.
src/​components/​file-input/​file-input.mdx Expands migration guidance and adds a contents link.

Review effort: Balanced

@kaitlyn-owen
kaitlyn-owen self-requested a review December 2, 2026 13:35
kaitlyn-owen
kaitlyn-owen previously approved these changes Dec 2, 2026
nineteen88

This comment was marked as resolved.

@ibutakova
ibutakova dismissed stale reviews from nineteen88 and kaitlyn-owen via 16908c8 December 4, 2026 13:31

@nineteen88 nineteen88 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.

Thanks for addressing those Iryna. Good work!

@nineteen88 nineteen88 changed the title docs(file-input): fix docs controls inference and clarify upload-stat… docs(file-input): fix docs controls inference and clarify upload-status migration guidance Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants