Skip to content

Improve clarity of justification field in Permission Picker#282

Open
jeffsmale90 wants to merge 2 commits intomainfrom
feat/improve-justification-clarity
Open

Improve clarity of justification field in Permission Picker#282
jeffsmale90 wants to merge 2 commits intomainfrom
feat/improve-justification-clarity

Conversation

@jeffsmale90
Copy link
Contributor

@jeffsmale90 jeffsmale90 commented Mar 11, 2026

Description

  • Change label from 'Reason' to 'Justification'
  • Increase max length from 120 to 300
  • Increase max length that will be shown without ellipsis from 20 to 165
  • Stack components vertically to reduce whitespace

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

image image image

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Low Risk
Low risk UI/i18n and validation-limit updates; main risk is minor layout regressions or unexpected truncation/validation behavior for edge-length justifications.

Overview
Improves the permission request justification UX by renaming the field label/tooltip from Reason to Justification and stacking the label and text vertically in permissionHandlerContent.

Increases allowed justification length from 120 to 300 characters in the shared zSanitizedJustification schema, and increases the ShowMoreText truncation threshold from 20 to 165 characters (always vertical layout). Updates Jest snapshots and schema boundary tests to match the new copy, layout, and limits.

Written by Cursor Bugbot for commit 5f01f28. This will update automatically on new commits. Configure here.

- Change label from 'Reason' to 'Justification'
- Increase max length from 120 to 300
- Increase max length that will be shown without ellipsis from 20 to 165
- Stack components vertically to reduce whitespace
@jeffsmale90 jeffsmale90 requested a review from a team as a code owner March 11, 2026 21:16
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Co-authored-by: jeffsmale90 <jeffsmale90@users.noreply.github.com>
@@ -20,10 +20,10 @@
"message": "The token being requested"
},
"reasonLabel": {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe rename this key to justificationLabel should be better

"message": "Reason"
"message": "Justification"
},
"reasonTooltip": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. Renaming this key to justificationTooltip would avoid confusion.

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