Skip to content

Conversation

@sauldom102
Copy link
Collaborator

@sauldom102 sauldom102 commented Nov 11, 2025

Description

Introduces a form builder system for creating dynamic, interactive forms with drag-and-drop.

✨ What's New

Core Components:
📋 CoCreationForm - Main form container with drag-and-drop reordering
📝 BaseQuestion - Reusable base component for all question types
📑 Section - Organize questions into collapsible sections

Question Types:
⭐ RatingQuestion - Star-based rating input
☑️ SelectQuestion - Single/multiple choice with custom options
📝 TextQuestion - Short text input
📄 LongTextQuestion - Multi-line text area
🔢 NumericQuestion - Number input
📅 DateQuestion - Date picker
🔗 LinkQuestion - URL input

Features:
🎯 Edit mode with inline editing
🔄 Drag-and-drop reordering (using Motion)
➕ Add new questions/sections on the fly
📋 Duplicate and delete actions
🎨 Hover states and interactions

Screenshots

Screenshot 2025-11-17 at 16 02 47 Screenshot 2025-11-17 at 16 03 33 Screenshot 2025-11-17 at 16 03 56

@github-actions github-actions bot added the feat label Nov 11, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

Coverage Report for packages/react

Status Category Percentage Covered / Total
🔵 Lines 17.38% 18735 / 107795
🔵 Statements 17.38% 18735 / 107795
🔵 Functions 43.89% 903 / 2057
🔵 Branches 69.65% 2676 / 3842
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/react/src/experimental/exports.ts 0% 0% 0% 0% 1-35
packages/react/src/experimental/CoCreationForm/Context.tsx 0% 0% 0% 0% 1-300
packages/react/src/experimental/CoCreationForm/DragContext.tsx 0% 0% 0% 0% 1-37
packages/react/src/experimental/CoCreationForm/constants.ts 0% 100% 100% 0% 2-47
packages/react/src/experimental/CoCreationForm/exports.tsx 0% 0% 0% 0% 1-2
packages/react/src/experimental/CoCreationForm/lib.ts 0% 100% 100% 0% 3-49
packages/react/src/experimental/CoCreationForm/types.ts 100% 100% 100% 100%
packages/react/src/experimental/CoCreationForm/BaseQuestion/index.stories.tsx 0% 100% 100% 0% 3-27
packages/react/src/experimental/CoCreationForm/BaseQuestion/index.tsx 0% 0% 0% 0% 1-160
packages/react/src/experimental/CoCreationForm/BaseQuestion/types.ts 100% 100% 100% 100%
packages/react/src/experimental/CoCreationForm/BaseQuestion/ActionsMenu/index.tsx 0% 0% 0% 0% 1-259
packages/react/src/experimental/CoCreationForm/BaseScoreQuestion/index.tsx 0% 0% 0% 0% 1-79
packages/react/src/experimental/CoCreationForm/DateQuestion/index.stories.tsx 0% 100% 100% 0% 3-44
packages/react/src/experimental/CoCreationForm/DateQuestion/index.tsx 0% 0% 0% 0% 1-65
packages/react/src/experimental/CoCreationForm/Form/index.stories.tsx 0% 100% 100% 0% 3-73
packages/react/src/experimental/CoCreationForm/Form/index.tsx 0% 0% 0% 0% 1-100
packages/react/src/experimental/CoCreationForm/LinkQuestion/index.stories.tsx 0% 100% 100% 0% 3-56
packages/react/src/experimental/CoCreationForm/LinkQuestion/index.tsx 0% 0% 0% 0% 1-53
packages/react/src/experimental/CoCreationForm/NumericQuestion/index.stories.tsx 0% 100% 100% 0% 3-44
packages/react/src/experimental/CoCreationForm/NumericQuestion/index.tsx 0% 0% 0% 0% 1-53
packages/react/src/experimental/CoCreationForm/Question/index.tsx 0% 100% 100% 0% 2-39
packages/react/src/experimental/CoCreationForm/RatingQuestion/index.stories.tsx 0% 100% 100% 0% 3-102
packages/react/src/experimental/CoCreationForm/RatingQuestion/index.tsx 0% 100% 100% 0% 2-11
packages/react/src/experimental/CoCreationForm/Section/index.stories.tsx 0% 100% 100% 0% 3-31
packages/react/src/experimental/CoCreationForm/Section/index.tsx 0% 0% 0% 0% 1-143
packages/react/src/experimental/CoCreationForm/Section/types.ts 100% 100% 100% 100%
packages/react/src/experimental/CoCreationForm/Section/Item/index.tsx 0% 0% 0% 0% 1-63
packages/react/src/experimental/CoCreationForm/SelectQuestion/index.stories.tsx 0% 100% 100% 0% 3-102
packages/react/src/experimental/CoCreationForm/SelectQuestion/index.tsx 0% 0% 0% 0% 1-157
packages/react/src/experimental/CoCreationForm/SelectQuestion/types.ts 100% 100% 100% 100%
packages/react/src/experimental/CoCreationForm/SelectQuestion/SelectOption/index.tsx 0% 0% 0% 0% 1-150
packages/react/src/experimental/CoCreationForm/SelectQuestion/SelectOption/types.ts 100% 100% 100% 100%
packages/react/src/experimental/CoCreationForm/TextQuestion/index.stories.tsx 0% 100% 100% 0% 3-64
packages/react/src/experimental/CoCreationForm/TextQuestion/index.tsx 0% 0% 0% 0% 1-69
packages/react/src/experimental/Navigation/Dropdown/index.stories.tsx 0% 0% 0% 0% 1-230
packages/react/src/experimental/Navigation/Dropdown/index.tsx 25.27% 100% 50% 25.27% 34-35, 51-126
packages/react/src/experimental/Navigation/Dropdown/internal.tsx 75.82% 71.42% 100% 75.82% 62-71, 103-114, 120
packages/react/src/lib/providers/i18n/i18n-provider-defaults.ts 100% 100% 100% 100%
packages/react/src/ui/dropdown-menu.tsx 46.52% 75% 50% 46.52% 27-39, 47-55, 104-120, 128-143, 152-161, 168-173, 177-186
packages/react/src/ui/input.tsx 100% 100% 100% 100%
packages/react/src/ui/textarea.tsx 0% 0% 0% 0% 1-86
packages/react/src/ui/InputField/InputField.tsx 93.14% 86.59% 88.88% 93.14% 279, 294-295, 330-335, 346-365, 370-372
Generated in workflow #9283 for commit bfb7ef3 by the Vitest Coverage Report Action

@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

🔍 Visual review for your branch is published 🔍

Here are the links to:

@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

size-limit report 📦

Path Size
JS: Stable 609.73 KB (+0.06% 🔺)
JS: Experimental 1018.65 KB (+0.33% 🔺)
CSS 72.7 KB (+0.22% 🔺)

@sauldom102 sauldom102 changed the title feat: start creating base question component feat: create all needed components for new co-creation form Nov 17, 2025
@sauldom102 sauldom102 marked this pull request as ready for review November 17, 2025 15:22
@sauldom102 sauldom102 requested a review from a team as a code owner November 17, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants