Automate the grant application open/closed window#828
Merged
Conversation
Prerequisites live on /apply when closed and as page one of the grant form when open, so the form no longer renders while closed.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Contributor
Arvin21M
approved these changes
Jun 2, 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.




This drives the grant application window from a single date-based helper instead of hardcoding the closed state across the apply pages. Applications now open and close automatically following the quarterly schedule (closed in March, June, September, and December), so no manual toggling is needed and the page content adapts on its own.
areApplicationsOpen()inutils/applicationWindow.tsas the single source of truth, consumed byClosedNotice, the apply pages, and the grant form./applyshows the program sections with working buttons and the prerequisites live as page one of/apply/grant./applyhides the program sections and instead shows the prerequisite links and template download, while/apply/grantand/apply/ltsshow only the closed notice.Build preview: