Skip to content

feat: sponsors admin - #105

Merged
RLee64 merged 8 commits into
mainfrom
feat/sponsors-admin
Oct 19, 2026
Merged

RLee64 merged 8 commits into
mainfrom
feat/sponsors-admin

Conversation

@anqilique

@anqilique anqilique commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Implemented admin functionality for sponsors, includes creation, deletion, and editing. Ensured that the styling of the admin components match with that of the About/Executives page for consistency.

Changes

📌 After Review

  • Removed everything related to sponsor address/location as this was never displayed.
  • Removed the code and special deal fields, replaced with description.
  • Implemented actual error handling displayed to the console.
  • SponsorFormModal.tsx created, is the modal that appears for admin functionality.
  • EditSponsorModal.tsx and NewSponsorModal.tsx used for slight differences in forms.
  • SponsorCard.tsx updated so that editing and deleting work.
  • Sponsors.tsx updated to include the admin modals.
  • sponsors.css changed with some styling fixes.
  • sponsors.ts changed to include an ID needed to edit/delete.

Visual Preview

Desktop
image

Admin Modal
image

Mobile Admin Modal (Scrollable)
image

Error Handling
image

Next Steps

  • Now that the description field has replaced the code and deal fields, the sponsors appear 'empty' and we'll need to load the content in from their old website again.
  • Make error handling visible to the user using Toast? Might need to do for other pages too.

@anqilique
anqilique marked this pull request as ready for review October 12, 2026 07:03

@RLee64 RLee64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove address field, fix internal server error for missing fields, and remove code (merge with special deal field)

We'll need to re-enter the data for the website as existing sponsors don't have this field! Easily done via the edit admin functionality.
Also changed the default vcategory to CBD when creating new sponsors, as this is the most common type.
@anqilique
anqilique requested a review from RLee64 October 18, 2026 07:11

@RLee64 RLee64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm!!

@RLee64
RLee64 merged commit 6b26fd5 into main Oct 19, 2026
1 check passed
@RLee64
RLee64 deleted the feat/sponsors-admin branch October 19, 2026 23:46
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