Skip to content

UISAUTHCOM-97 Add Role Name validation to RoleForm. - #150

Merged
JohnC-80 merged 7 commits into
masterfrom
UISAUTHCOM-97
Aug 7, 2026
Merged

UISAUTHCOM-97 Add Role Name validation to RoleForm.#150
JohnC-80 merged 7 commits into
masterfrom
UISAUTHCOM-97

Conversation

@JohnC-80

@JohnC-80 JohnC-80 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

UISAUTHCOM-97

Purpose

The backend will error if a Role name includes a forward slash ("/") So we validate that it has one, maintaining the validation that the name field is required.

Approach

This validation was implemented in vanilla JS. This form does not use stripes-final-form, and any conversion will be work for a separate PR.

The story says to hold off on validating the field until blur, but it's better to display the message sooner. The instant the form updates with a bad value, they user will be unable to submit.

TODOS and Open Questions

  • development
  • tests
  • log changes

New UI behavior:

2026-08-06_09h04_35.mp4

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Jest Unit Test Results

  1 files  ±0   57 suites  ±0   1m 38s ⏱️ +13s
232 tests +3  231 ✅ +3  1 💤 ±0  0 ❌ ±0 
240 runs  +3  239 ✅ +3  1 💤 ±0  0 ❌ ±0 

Results for commit 7917be0. ± Comparison against base commit 16a7a81.

♻️ This comment has been updated with latest results.

@JohnC-80 JohnC-80 changed the title UISAUTHCOM-97 Add Role Name alidation to RoleForm. UISAUTHCOM-97 Add Role Name validation to RoleForm. Aug 4, 2026
@JohnC-80
JohnC-80 marked this pull request as ready for review August 6, 2026 13:22
@JohnC-80
JohnC-80 requested a review from a team August 6, 2026 21:21
@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

@JohnC-80
JohnC-80 merged commit 1254183 into master Aug 7, 2026
15 checks passed
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