feat(GAT-9463): Allow re-apply for cohort access when expired or rejected - #1610
Merged
Conversation
philreekshdr
temporarily deployed
to
cypress_dev
August 12, 2026 10:13 — with
GitHub Actions
Inactive
|
🎉 Great job! Your PR title follows the correct format. 🚀 |
equinoxmatt
approved these changes
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Screenshots / videos (if relevant)
Describe your changes
A user whose Cohort Discovery request ended up Expired or Rejected had no way to apply again: step 1 of the access stepper was marked complete for any non-null status, so the apply button never rendered and those users hit a dead end behind a status chip. The stepper now recognises Expired and Rejected as re-appliable, reopening step 1 with a "Re-apply for access" button that runs the same profile-review then terms-and-conditions flow as a first-time application, with steps 2 and 3 reset to pending. This matches what the API already allows —
CohortRequestController::storeblocks re-submission only for Pending, Approved, Banned and Suspended — so Banned and Suspended users are deliberately unaffected. The auto-open deep link used by the "Access Cohort Discovery" not-approved modal was widened to cover the same statuses so it now lands on an actionable step, and the qualifying statuses live in one exported const rather than another inline literal.Issue ticket link
https://hdruk.atlassian.net/browse/GAT-9463
Checklist before requesting a review