Skip to content

Handle error states in all input fields#33

Merged
koppen merged 2 commits intomainfrom
streamline_validation
Aug 26, 2025
Merged

Handle error states in all input fields#33
koppen merged 2 commits intomainfrom
streamline_validation

Conversation

@koppen
Copy link
Copy Markdown
Member

@koppen koppen commented Aug 23, 2025

No description provided.

koppen added 2 commits August 23, 2025 22:18
Now, this is outside the examples in Flowbite but for completeness sake
we need this.
@koppen koppen changed the title Handle error states in all inputs Handle error states in all input fields Aug 23, 2025
@koppen koppen requested a review from Copilot August 23, 2025 20:25
Copy link
Copy Markdown
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 implements error state handling for input field components by adding error styling and test coverage for error message rendering across multiple input field types.

  • Adds error styling configuration to radio button and checkbox input components
  • Adds comprehensive test coverage for error message rendering in URL, radio button, password, file, and checkbox input fields
  • Ensures consistent error state behavior across all input field components

Reviewed Changes

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

Show a summary per file
File Description
app/components/flowbite/input/radio_button.rb Adds error state styling configuration with red color scheme
app/components/flowbite/input/checkbox.rb Adds error state styling configuration with red color scheme
test/components/input_field/url_test.rb Adds tests for error message rendering and absence
test/components/input_field/radio_button_test.rb Adds tests for error message rendering and absence
test/components/input_field/password_test.rb Adds tests for error message rendering and absence
test/components/input_field/file_test.rb Adds tests for error message rendering and absence
test/components/input_field/checkbox_test.rb Adds tests for error message rendering and absence

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

@koppen koppen merged commit 7597ed1 into main Aug 26, 2025
5 checks passed
@koppen koppen deleted the streamline_validation branch August 26, 2025 09:03
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.

3 participants