1. User Authentication & Roles
- Registration/Login: Users can sign up and log in via email/password.
- Roles:
- Regular Users: Can create templates, fill forms, comment, and like.
- Admins: Can manage users (block/unblock, promote/demote admins).
- Critical: Admins must be able to remove their own admin access.
- Non-authenticated users: Can only search and view public templates (no edits/form filling).
2. Template Management
- Users create templates (like Google Forms) with:
- Title, description (with Markdown support).
- Topics (predefined categories like "Education," "Quiz," etc.).
- Tags (with autocomplete from existing tags).
- Optional image (uploaded to a cloud service, not your server).
- Access settings:
- Public (any logged-in user can fill it).
- Restricted (only specified users can fill it).
- Question Types (1-4 fields of each):
- Single-line text
- Multi-line text
- Positive integers
- Checkboxes
- (Optional: Dropdown selection)
- Drag-and-drop reordering of questions.
3. Form Filling & Responses
- Users fill out forms based on templates they have access to.
- Auto-filled fields:
- User (who filled the form).
- Submission date.
- Results Analysis:
- Template creators/admins see all responses.
- Aggregated stats (averages, common answers).
- Sortable tables of responses.
4. Admin Privileges
- Admins can edit any template/form as if they were the owner.
- Admins can manage users (view/block/delete/promote).
5. UI/UX Requirements
- Responsive design (works on mobile).
- Two themes: Light & dark (user-selectable, saved).
- Two languages: English + one other (UI only, not user content).
- No "N+1 buttons" (use contextual actions, hover menus, etc.).
- Full-text search (header on all pages, searches templates).
6. Additional Features
- Comments (linear, auto-updating when new ones are added).
- Likes (one per user per template).
- Homepage with:
- Latest templates.
- Top 5 most popular templates (most responses).
- Tag cloud (click to search). all of these are mentatody featues are all of them implemented and working check . can user do all ofthe suer fatue and amdin can do all of the adminfeates . makse sure they can do their corepsiing featies Regular User Features:
Authentication: Register/Login via email & password (JWT-based)
Template Management:
Create templates (title, description, tags, image, access settings)
Add questions (text, numbers, checkboxes, etc.)
Edit and reorder questions
Publish and share forms
Form Interaction:
Fill out forms based on access settings
View and submit responses
Auto-filled fields (user & timestamp)
Engagement Features:
Like templates (one like per user)
Comment on templates (auto-updating)
Dashboard:
Manage created templates (CRUD)
View filled forms and responses
Search & Navigation:
Search templates (full-text search)
Browse popular & latest templates
Filter by tags, topics, and access level . Admin Features:
User Management:
View all registered users
Block/unblock users
Promote/demote users to/from admin role
Remove own admin access
Template Management:
View all templates
Edit or delete any template (even those created by other users)
Review reported/flagged templates
Form & Response Management:
View all submitted responses
Analyze form responses at an admin level
System Moderation:
Monitor template engagement (likes/comments)
Manage user-generated content (comments, templates) are all teh ser afin featies imlrtned if not do it. with paegs and api troues and also add ui comppent. this is is a google form clone like wesite . so do it like that