Skip to content

Conversation

@Shyam-123pandey
Copy link

This pull request adds inline, informational regex validation to textarea fields to improve user feedback during editing. #11736

As part of review feedback, this update also removes leftover comment-only and whitespace-only changes introduced during drafting. The final diff is limited to functional and intentional changes only.

Summary

Adds inline informational feedback for regex-based validation in textarea fields

Improves clarity for users without blocking input

Removes temporary comments and formatting-only changes

No behavioral changes outside of validation feedback

Notes

Validation is informational only and does not prevent saving

No UI text or translation changes are introduced beyond the validation message

Copilot AI review requested due to automatic review settings January 8, 2026 10:52
Copy link

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 inline, informational regex validation feedback to textarea fields, improving user experience by providing real-time format validation without blocking input. The changes also clean up formatting inconsistencies and leftover comments from the development process.

Key Changes:

  • Implements pattern validation UI for textarea fields with visual feedback
  • Adds validation check triggers on input, blur, and change events
  • Removes comment-only and whitespace-only changes from earlier drafts

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
modules/ui/fields/textarea.js Adds pattern validation logic, UI feedback elements, and event handlers for real-time validation
modules/validations/crossing_ways.js Restores closing brace that was previously deleted
css/30_highways.css Fixes malformed CSS comment syntax

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


enter
.append('span')
.attr('class', 'form-field-pattern-info-text')
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

The translation key 'inspector.invalid_format' is referenced but there's no indication in the PR that this translation string exists. Consider documenting where this key should be defined or adding a comment explaining the expected translation setup.

Suggested change
.attr('class', 'form-field-pattern-info-text')
.attr('class', 'form-field-pattern-info-text')
// `inspector.invalid_format` is defined in the shared inspector translations

Copilot uses AI. Check for mistakes.
@k-yle k-yle linked an issue Jan 10, 2026 that may be closed by this pull request
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.

Show validation suggestion for non-matching field pattern

1 participant