Skip to content

Validation message#452

Open
viggo wants to merge 11 commits intomasterfrom
validation-message
Open

Validation message#452
viggo wants to merge 11 commits intomasterfrom
validation-message

Conversation

@viggo
Copy link
Contributor

@viggo viggo commented Oct 24, 2025

No description provided.

@viggo viggo requested a review from a team as a code owner October 24, 2025 11:18
@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2025

🦋 Changeset detected

Latest commit: 0c2e4d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@postenbring/hedwig-css Minor
@postenbring/hedwig-react Minor

Not sure what this means? Click here to learn what changesets are.

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

@viggo viggo requested a review from Copilot October 24, 2025 11:18
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 introduces a new ValidationMessage component to replace the deprecated ErrorMessage component, expanding validation feedback capabilities beyond just errors to include info, success, warning, and danger variants.

Key Changes

  • New ValidationMessage component with support for multiple variants (info, success, warning, danger)
  • Updated form components (Input, Textarea, Select, DatePicker) to accept validationMessage prop
  • Deprecated ErrorMessage component now wraps ValidationMessage for backward compatibility

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/react/src/form/validation-message/validation-message.tsx Implements new ValidationMessage component with variant support
packages/react/src/form/validation-message/validation-message.stories.tsx Adds Storybook stories for ValidationMessage
packages/react/src/form/validation-message/index.tsx Exports ValidationMessage component and types
packages/react/src/form/input-group/input-group.tsx Integrates ValidationMessage, handles both old errorMessage and new validationMessage props
packages/react/src/form/input/input.tsx Adds validationMessage prop support
packages/react/src/form/textarea/textarea.tsx Adds validationMessage prop support
packages/react/src/form/select/select.tsx Adds validationMessage prop support
packages/react/src/form/date-picker/date-picker.tsx Adds validationMessage prop support
packages/react/src/form/error-message/error-message.tsx Refactors to use ValidationMessage, marks as deprecated
packages/react/src/form/index.tsx Exports ValidationMessage from form module
packages/css/src/index.css Imports validation-message CSS
packages/css/src/form/validation-message/validation-message.css Defines styles for all validation message variants
apps/examples/app/examples/form/validation-message/demo.tsx Demonstrates ValidationMessage variants
apps/examples/app/examples/form/error-message/demo.tsx Adds deprecation notice to ErrorMessage example
apps/examples/app/examples/form/input/different-states.tsx Updates to showcase all validation message variants
apps/examples/app/examples/form/input/small-different-states.tsx Updates to showcase all validation message variants in small size
apps/examples/app/examples/form/input/form-input-errors.tsx Migrates from errorMessage to validationMessage
apps/examples/app/examples/form/textarea/different-states.tsx Updates to showcase all validation message variants
apps/examples/app/examples/form/textarea/small-different-states.tsx Updates to showcase all validation message variants in small size
apps/examples/app/examples/form/select/different-states.tsx Updates to showcase all validation message variants
apps/examples/app/examples/form/select/small-different-states.tsx Updates to showcase all validation message variants in small size
apps/examples/app/examples/form/date-picker/different-states.tsx Updates to showcase all validation message variants
apps/examples/app/examples/form/date-picker/small-different-states.tsx Updates to showcase all validation message variants in small size

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

viggo and others added 4 commits October 24, 2025 13:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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