Skip to content

Ashelginstepper#145

Open
LotuAZ wants to merge 2 commits intomainfrom
ashelginstepper
Open

Ashelginstepper#145
LotuAZ wants to merge 2 commits intomainfrom
ashelginstepper

Conversation

@LotuAZ
Copy link
Collaborator

@LotuAZ LotuAZ commented Mar 11, 2026

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:

  • Year filters on the main page change dynamically, based on the database.
  • Whenever submitting the addpartner form, if a partner is already in the database, it won't allow you to submit the form.
  • Whenever you press the upload data, the pop-up shows the months for which data has been uploaded.
  • Check the admin view for changes on the last updated and last uploaded

Checklist before requesting a review

  • [yes ] Implements all parts of the ticket
  • [yes] Tested thoroughly
  • [yes] No unused dependencies
  • Requested review from Cooper

@vercel
Copy link
Contributor

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
beantown-baby-diaper-bank Ready Ready Preview, Comment Mar 11, 2026 7:14pm

import FileUpload, { FileInfo } from "../sprint2/FileUpload";
import { MonthPickerInput } from "@mantine/dates";
import { useState } from "react";
import { useState, useEffect } from "react";
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.

2 participants