Skip to content

impr(input-indicator): add input indicator to all fields with validators (@Leonabcd123)#7918

Merged
Miodec merged 3 commits into
monkeytypegame:masterfrom
Leonabcd123:fix/input-indicator
May 11, 2026
Merged

impr(input-indicator): add input indicator to all fields with validators (@Leonabcd123)#7918
Miodec merged 3 commits into
monkeytypegame:masterfrom
Leonabcd123:fix/input-indicator

Conversation

@Leonabcd123

@Leonabcd123 Leonabcd123 commented May 6, 2026

Copy link
Copy Markdown
Contributor

Remove the showIndicator property from InputField, instead check whether validators exists to decide whether we should show the input indicator.

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label May 6, 2026
@Leonabcd123 Leonabcd123 changed the title fix(input-indicator): add input indicator to more modals (@Leonabcd123) impr(input-indicator): add input indicator to more modals (@Leonabcd123) May 6, 2026
@fehmer

fehmer commented May 6, 2026

Copy link
Copy Markdown
Member

I havent tested this yet, but maybe we could remove the showIndicatorproperty and check for props.field().options.validatorsto be present?

It is kind of odd to define validations on a field but don't want to show the indicator for it

@Leonabcd123 Leonabcd123 changed the title impr(input-indicator): add input indicator to more modals (@Leonabcd123) impr(input-indicator): add input indicator to all fields with validators (@Leonabcd123) May 7, 2026
@Miodec Miodec merged commit 0c07e10 into monkeytypegame:master May 11, 2026
15 checks passed
@Miodec

Miodec commented May 11, 2026

Copy link
Copy Markdown
Member

Thanks

@Leonabcd123 Leonabcd123 deleted the fix/input-indicator branch May 11, 2026 11:11
Miodec pushed a commit that referenced this pull request May 19, 2026
### Regression
Commit 0c07e10 (PR #7918) removed the `showIndicator` prop from
InputField and switched to `props.field().options.validators` as the
"Gate" to show/hide FieldIndicator, but didn't update
InputField.stories.tsx. The story's field mock was missing options,
causing props.field().options throw error

### Fix
Added options: { validators } support to createFieldMock, updated
withIndicator to pass a dummy validator, and removed the dead
showIndicator prop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants