Skip to content

Render list in frontend using ListView component#39

Open
Sha-mbhavi wants to merge 3 commits intometakgp:mainfrom
Sha-mbhavi:render-list-frontend
Open

Render list in frontend using ListView component#39
Sha-mbhavi wants to merge 3 commits intometakgp:mainfrom
Sha-mbhavi:render-list-frontend

Conversation

@Sha-mbhavi
Copy link

@Sha-mbhavi Sha-mbhavi commented Dec 28, 2025

This PR adds frontend support to render a list of items dynamically instead of relying on static or backend-only views.
close #37
What’s Changed
Added a new ListView component to display list data

Integrated ListView into App.tsx

Fetches list data from /api/list and renders it in the UI

Ensures clean, reusable, and readable component structure

Implementation Details
Used useEffect to fetch data on component mount

Passed fetched data to ListView via props

No existing functionality was removed or broken

How to Test
Pull this branch

Run the frontend (npm install → npm run dev)

Open the app in the browser

Verify that the list is rendered correctly on the page

Related
Branch: render-list-frontend

Issue (if any): N/A

@Sha-mbhavi
Copy link
Author

@premagarwals Kindly review it and merge it.KWOC

@Sha-mbhavi
Copy link
Author

I’ve fixed the issue by extending the existing /elective/ endpoint to support ?view=list for frontend rendering.
The download functionality remains unchanged.
No new /api/list endpoint is used now.
Please re‑review.

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.

Show courses in frontend

1 participant