Skip to content

feat: add winners section#24

Open
satasatalight wants to merge 2 commits into
mainfrom
feature/winners-section
Open

feat: add winners section#24
satasatalight wants to merge 2 commits into
mainfrom
feature/winners-section

Conversation

@satasatalight

Copy link
Copy Markdown
Collaborator

Pull Request

Description

This implementation is a little overkill but it assumes the worst case scenario for receiving data from the backend.

The component receives an unsorted array of all past winners. It filters down to all entries from the most recent deadline and sorts by placement for the top "WinnerCard" components and places the rest of the elements in the lower "PrevWinnerEntry" list sorted by deadline. The component assumes the projectTitles for each winner entry are unique, using that field as a key. Initials for the WinnerCard component are collected using a regex pattern match on a name field.

Type of Change

  • feat: New feature
  • fix: Bug fix
  • chore: Maintenance (dependencies, config, etc.)
  • docs: Documentation only
  • style: Code style (formatting, no logic change)
  • refactor: Code refactor (no new feature or fix)

Changes Made

  • add WinnersSection.tsx

Screenshots (if applicable)

image

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have tested my changes locally
  • npm run lint passes without errors
  • npm run build completes successfully

Related Issues

Closes Notion task "T11 (Challenges) - Build winners components"

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.

1 participant