Skip to content

Conversation

@jessegarcia1
Copy link
Contributor

@jessegarcia1 jessegarcia1 commented Feb 10, 2025

Changes

Added the sponsor tier pill component.

Notes

I do not think this is done yet. I added the tiers in the sponsor tier pill file in an interface and I do not think that will be the way this gets implemented.

Screenshots

Screenshot 2025-02-10 at 5 33 29 PM Screenshot 2025-02-10 at 5 33 37 PM

To Do

  • fix the column name the pills appear in.
  • fix where to get the sponsor tier values from

Closes #3140

@jessegarcia1 jessegarcia1 self-assigned this Feb 10, 2025
@kyanbarker
Copy link
Contributor

Looks good! Is the screenshot of the component before the recent changes (i.e. before replacing the enum)? If so, I'll talk to the other tech leads and see if you can test the component with more types of sponsor tiers.

Copy link
Contributor

@dreifusjack dreifusjack left a comment

Choose a reason for hiding this comment

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

Can you make a SponsorTier type rather than using the prisma type for this component? To do this, go into shared types and create a finance.types.ts file, within that file create interface SponsorTier with its field matching the Sponor_Tier model in the schema.

@jessegarcia1
Copy link
Contributor Author

jessegarcia1 commented Feb 20, 2025

Looks good! Is the screenshot of the component before the recent changes (i.e. before replacing the enum)? If so, I'll talk to the other tech leads and see if you can test the component with more types of sponsor tiers.

Yes the picture is from before the enum :)

dreifusjack
dreifusjack previously approved these changes Feb 20, 2025
Copy link
Contributor

@dreifusjack dreifusjack left a comment

Choose a reason for hiding this comment

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

lgtm!

export interface Sponsor {
sponsorId: string;
name: string;
organizationId: string;
Copy link
Member

Choose a reason for hiding this comment

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

We dont need info about organization here in the frontend - we're in a context that contains one organization

organizationId: string;
organization: Organization;
dateCreated: Date;
dateDeleted?: Date;
Copy link
Member

Choose a reason for hiding this comment

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

Don't need this - no deleted sponsors should make it to the frontend

activeStatus: boolean;
vendorContact: string;
tier: SponsorTier;
sponsorTierId: string;
Copy link
Member

Choose a reason for hiding this comment

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

Dont need this id

name: string;
organizationId: string;
organization: Organization;
dateCreated: Date;
Copy link
Member

Choose a reason for hiding this comment

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

Unless we need to sort or filter by date added, we don't need this


export interface SponsorTier {
sponsorTierId: string;
organization: Organization;
Copy link
Member

Choose a reason for hiding this comment

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

Same thing about organization stuff here

dueDate: Date;
notifyDate?: Date;
assignee?: User;
assigneeUserId?: string;
Copy link
Member

Choose a reason for hiding this comment

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

Dont need this id

assigneeUserId?: string;
notes: string;
sponsor: Sponsor;
sponsorId: string;
Copy link
Member

Choose a reason for hiding this comment

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

Dont need this id

@walker-sean walker-sean merged commit e7128de into feature/finance-redesign Feb 23, 2025
4 checks passed
@walker-sean walker-sean deleted the #3140-sponsor-pill branch February 23, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants