Problem Description
As a user, I want to create a new post from the dashboard.
Required Changes
- “Create post” input opens a modal with textarea and submit.
- Client-side validation, text required.
- On submit, call API and insert new post at top of feed.
Goal
Allow users to write a post and see it immediately on top of the feed.
Acceptance Criteria
- Clicking input opens modal.
- Submitting empty text shows validation error.
- Valid submit closes modal and adds post to top of feed.
- Errors from API are displayed and modal remains open on failure.
Dependencies
Backend: endpoint to create post, response returns new post.
Problem Description
As a user, I want to create a new post from the dashboard.
Required Changes
Goal
Allow users to write a post and see it immediately on top of the feed.
Acceptance Criteria
Dependencies
Backend: endpoint to create post, response returns new post.