Skip to content

CLIENT: Dashboard - Student View - Create post #36

@RoderickLei

Description

@RoderickLei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Under Design

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions