acmutd / acmutd/meteormate-client

feat: Hook discover page up to real users

Aperta
#207 0 commenti 0 reazioni 1 assegnatario Rivendicata da @JiyaKhurana2102 Vedi su GitHub
Type: Feature Request
Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
1g 3h
PR unite (30g)
2

Descrizione

### Problem / Motivation

Replace mock/hardcoded profiles with data from the potential matches endpoint
Handle the loading, empty and error states as well

### Proposal

Update the Discover page to display real user profiles from the backend instead of the current mock/hardcoded profile data.
The implementation should also handle the different states that can occur while retrieving profiles:
Loading: Show a loading state/skeleton while potential matches are being fetched.
Empty: Show a clear message when there are no potential matches available.
Error: Display an appropriate error message if the request fails.

## Important
- Need to think about what tags to put on the profile, also implement the highlighting of the important tags on the back of the card
- Hookup the like button - IMPORTANT
- When a user clicks the like button currently the confetti pops up but it shouldn’t do that matches should only pop up if the user they are liking has already liked them back

UI:
No major UI redesign is required. The existing Discover profile card layout will be reused, with its values populated dynamically using data returned from the backend.

Flow:
Discover Page → Fetch potential matches → Display real user profiles

If no profiles are returned, the user should see an empty-state message instead of an empty/broken card.

### Acceptance criteria

_No response_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.