Open
Description
📝 TODOs for mock removal notes
-
Add a TODO comment in
lib/api/feed.ts
to indicate the mock will be replaced with a real API call
// TODO: Replace mockPosts with real API response once the backend is ready.
-
Add a TODO comment in
DashboardContainer.tsx
near thefetchFeed()
usage
// TODO: Replace this call with real API logic once fetchFeed uses backend
-
Add a TODO comment in
mock/posts.ts
above the mockPosts definition
// TODO: Temporary mock data for post feed. To be removed once real API is integrated.
-
Optionally, include an example of the expected real API implementation in
feed.ts
// TODO: Example future implementation // const response = await fetch('/api/feed'); // if (!response.ok) throw new Error('Failed to fetch feed'); // return await response.json();
-
Review all temporary/mock-dependent imports to ensure they’re isolated and clearly replaceable
Metadata
Metadata
Assignees
Labels
Projects
Status
Todo