Skip to content

Issue 107 committee page frontend fixes#110

Merged
laurenpudz merged 7 commits intomainfrom
issue-107-committee_page_frontend_fixes
Feb 18, 2026
Merged

Issue 107 committee page frontend fixes#110
laurenpudz merged 7 commits intomainfrom
issue-107-committee_page_frontend_fixes

Conversation

@Games4Doritos
Copy link
Collaborator

@Games4Doritos Games4Doritos commented Feb 14, 2026

Change Summary

-Increased the font size of the committee portrait labels to md

  • Increased the sizes of the committee frames and photos to accomodate this larger font size, whilst maintaining the same photo width : frame width and photo height : frame height ratios, rounded to one decimal place (see commit history for exact values)
  • Increased bottom padding of the committee section as requested
  • To be able to put Links to the committee's member pages on their photos and names in the about page, the member serializer was updated to include the "pk" field (the member's integer id). This field will now be fetched as well on the about page, and will complete the link to each committee member's member page. This field as been added to all other instances of fetching a member in the codebase, though only used for this page.
  • Conditional rendering has been implemented in the about page, where committee member's page links will only render if they have a valid id (0 is the placeholder and is invalid, as id's start at 1)
image

Change Form

  • The pull request title has an issue number
  • The change works by "Smoke testing" or quick testing
  • The change has tests
  • The change has documentation

Other Information

Related issue

- Increased the font size of the committee portrait labels from 0.5rem to sm (0.875rem = 14px for my device)
- Increased committee photo and frame sizes to accommodate new font size. The width and height of the frames are now a nice number of 56 in tailwind = 14rem. The ratios of photo width: frame width (0.6) and photo height: frame height (0.6444..) have been maintained with this adjustment, rounded to 1 decimal place (9rem for photo height and 8.4rem for photo width)
- Gave the committee section a bottom padding of 20 (tailwind), so there is now equal padding on the bottom and top
- Updated MemberSerializer to now include the Member Object's primary key (integer id), denoted as pk. This is necessary for make committee portraits link to their respective member pages
- Updated all instances in the codebase where a Member object if fetched, adding the pk attribute to match the updated MemberSerializer
- Added conditional rendering logic in the about page: each committee member's photo and name will render as wrapped in a Link to their respective member page, only if the fetched Member object does not have the placeholder pk value of 0 (don't worry, the member id's start at 1, so 0 is never valid), otherwise it will render the photo and name without Link wrappers
- Removed repetition of the same Image component for each conditional render for the committee photos. This was done be simply turning the Image into a function called committeeImage(profilePic: string)
Games4Doritos and others added 5 commits February 18, 2026 14:57
- Reworked how the committee portraits are listed, such that they are all in one list and not separated into two rows
- Fixed Image components to hopefully prevent warping, by setting the width and height props equal to the tailwinds-set height and width
- Changed frame-photo dimension ratios, may need a future change
- Replaced height and width props for the about section image with fill={true}, so the whole image space is actually filled
- Statically imported landing_placeholder.png to be used for some elements
- Refactored out the code for a whole committee portrait into a single function to be used in the mapping
- Undid a change that is part of another pr (change name referencing a specific variable)
- Undid importing landing_placeholder.png statically, as the type is not accounted for in the project's config.
@laurenpudz laurenpudz merged commit f51e441 into main Feb 18, 2026
5 checks passed
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.

committee page frontend fixes

2 participants

Comments