acmutd / acmutd/meteormate-client

feat: Hook discover page up to real users

Đang mở
#207 0 bình luận 0 reaction 1 người được giao Được @JiyaKhurana2102 nhận Xem trên GitHub
Type: Feature Request
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
2

Mô tả

### 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_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.