Menu

Post image 1
Post image 2
1 / 2
0

Day 93 of #100DaysOfCode — DevCollab: Create, Edit, Delete Projects + Collaboration Requests

DEV Community·M Saad Ahmad·26 days ago
#R5MNZBGe
Reading 0:00
15s threshold

Yesterday was read-only; browsing and viewing. Today was the write side. Users can now create projects, edit their own, delete them, and send collaboration requests. The platform went from a read-only directory to an interactive two-sided system in one day of building. The Reusable ProjectForm Component Before building the create and edit pages, I built ProjectForm , a single form component used by both. The create page uses it empty. The edit page uses it pre-filled with existing project data. Writing the form once and reusing it in two places means any change to the form, adding a field, changing validation, or updating styling, happens in one file, and both pages get it automatically. The form has six fields: title, description, tech stack, roles needed, a status dropdown, and an is_open toggle. Tech stack and roles needed are plain text inputs where the user types comma-separated values, the same format the Django API expects and stores. Simple, no tag input library needed.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More