Skip to content

Conversation

@Shyam-123pandey
Copy link

@Shyam-123pandey Shyam-123pandey commented Jan 8, 2026

Adds inline, informational validation feedback when a field value does not #10769
match the expected pattern. And one things I didn't add for website till now because for that i have to go from scratch so tell me should i move furthur or this is okay (elaborated in issues comment)

This is a suggestion only and does not block editing or saving.

Copilot AI review requested due to automatic review settings January 8, 2026 11:09
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 non-blocking inline validation feedback for text input fields that have a defined pattern. When a field value doesn't match its expected pattern, an informational message appears below the input to guide the user, while still allowing editing and saving.

Key changes:

  • Introduced updatePatternValidation() function to validate field values against regex patterns
  • Hooked validation into input, blur, and change events to provide real-time feedback
  • Added CSS styling for the validation message display

Reviewed changes

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

File Description
modules/ui/fields/input.js Added pattern validation logic and integrated it into input event handlers; reformatted existing code for consistency
modules/ui/fields/textarea.js Cleaned up blank lines for consistency
css/80_app.css Added styling for the pattern validation info message

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

Comment on lines +596 to +601
i.tags = function (tags) {
_tags = tags;

const vals = getVals(tags);
const isMixed = vals.size > 1;
var val = vals.size === 1 ? ([...vals][0] ?? '') : '';
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 updatePatternValidation() function should be called at the end of i.tags() to ensure the validation state reflects the newly set tags. Currently, validation only updates on user input events, so programmatic tag updates won't trigger validation feedback.

Copilot uses AI. Check for mistakes.
@repairman29

This comment was marked as spam.

@hlfan
Copy link
Contributor

hlfan commented Jan 9, 2026

It would be nice to have all the formatting changes in a separate commit.

@Shyam-123pandey
Copy link
Author

It would be nice to have all the formatting changes in a separate commit.

okay sir i will do

@k-yle k-yle linked an issue Jan 10, 2026 that may be closed by this pull request
@Shyam-123pandey
Copy link
Author

It would be nice to have all the formatting changes in a separate commit.

I think sir i did already in separate commit

@matkoniecz
Copy link
Contributor

matkoniecz commented Jan 22, 2026

based on your activity on this project I bet this is LLM-generated unreviewed content and therefore should be rejected without detailed review

see #10769

screen-2026-01-22-11-47-41

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

4 participants