docs: add module structure documentation for the new Form feature to SKILL.md
This commit is contained in:
@@ -29,6 +29,12 @@ This document outlines all the modifications and setups performed during this se
|
||||
|
||||
This successfully provides a fully responsive, easily configurable, and containerized Next.js Linktree application.
|
||||
|
||||
## 5. Form Module Structure
|
||||
- **Public Form Viewer:** Located at `app/form/page.tsx` and `app/form/client.tsx`. This is where users see and submit the form. It renders questions and handles user input with validation.
|
||||
- **Admin Form Builder:** Located at `app/form/admin/page.tsx` and `app/form/admin/client.tsx`. This interface allows administrators to create and edit questions, change form settings, and specify input types (Text, Textarea, Radio, Checkboxes).
|
||||
- **Database Schema:** Defined in `db/schema/form.ts`, which contains definitions for `forms`, `questions`, `submissions`, and `answers`.
|
||||
- **Server Actions:** Backend logic for managing the form (such as creating/updating questions and handling submissions) are located in `app/actions/form.ts`, `app/actions/questions.ts`, and `app/actions/submissions.ts`.
|
||||
|
||||
Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.
|
||||
|
||||
**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
|
||||
|
||||
Reference in New Issue
Block a user