Adds some validation around the TTA Display ID format because TTAHub 500s if the display id is not in the expected format.
Acceptance Criteria
When I input a TTA Activity Report Display ID that does not match the format /^R/d{2}-AR-/
I want an error that tells me it's a bad format
So I know what the problem is
How to test
[ ] Go to a complaint detail page.
[ ] Try to link a TTA AR ID that is not in the /^R/d{2}-AR-/ format
[ ] You should get an error that says "This doesn't look like a TTA Activity Report Display ID. Please double check the format."
[ ] Try to like a TTA AR ID that is in that format! You should get a different response depending on whether it's an ID you have access to or not.
Checklist
To be completed by the submitter:
[ ] Code is meaningfully tested
[ ] Meets accessibility standards (WCAG 2.1 Levels A, AA)
To the Reviewer
This project is using Conventional Comments to give structure
and context to PR comments. Please use these labels in your comments.
Description of change
Adds some validation around the TTA Display ID format because TTAHub 500s if the display id is not in the expected format.
Acceptance Criteria
When I input a TTA Activity Report Display ID that does not match the format
/^R/d{2}-AR-/
I want an error that tells me it's a bad format So I know what the problem isHow to test
/^R/d{2}-AR-/
formatChecklist
To be completed by the submitter:
To the Reviewer
This project is using Conventional Comments to give structure and context to PR comments. Please use these labels in your comments.