Open
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Describe your changes
We changed the add data pop-up to show all of the months in which data has been uploaded, via circles, and on the same page, we changed the hard-coded last data uploaded to be dynamic and deleted the last updated.
Also, we changed it so that whenever you submit the add partner form, it checks if the partner is in the database already. If it is, then it doesn't allow you to submit the form.
Finally, we changed the hard-coded years on the filter on the main admin page.
Issue ticket number and link
#117
Files changed
In a bulleted list, describe which files you edited or added and what those changes were.
AddPartnerForm.tsx Added duplicate partner name check in submitPartner using GET /api/partners?search=, with trimmed + case insensitive comparison. Shows error on the organization field and blocks submission if a match is found.
page.tsx Replaced hard-coded years array with useState(["All"]), populated dynamically from data.
UploadDistributionDataForm.tsx Added a two-row Mantine Stepper (Jan–Jun, Jul–Dec) showing uploaded months in green.
How to test
Describe how to test your new feature, for example, if this were the file upload ticket:
Checklist before requesting a review