feat(CoCreationForm): add daterange question type#3397
Draft
Conversation
Add new "daterange" question type to CoCreationForm using F0DatePicker with range granularity. In edit mode, the picker is shown as readonly. In answer mode, users can select a from/to date range. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
✅ No New Circular DependenciesNo new circular dependencies detected. Current count: 0 |
Contributor
🔍 Visual review for your branch is published 🔍Here are the links to: |
Contributor
📦 Alpha Package Version PublishedUse Use |
Contributor
Coverage Report for packages/react
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
daterangequestion type to CoCreationFormF0DatePickerwithrangegranularity for selecting from/to datesScreen.Recording.2026-02-10.at.16.54.10.mov
Changes
New files
DateRangeQuestion/index.tsx— component using F0DatePicker with range granularityDateRangeQuestion/types.ts— TypeScript types (DateRangeValue = { from: Date, to: Date })DateRangeQuestion/index.stories.tsx— 3 stories (edit, answer, with pre-filled value)Modified files
types.ts— addeddaterangetoQuestionType,QuestionElement,OnChangeQuestionParamsQuestion/index.tsx— added switch case fordaterangeconstants.ts— added to the "Add question" menu withCalendariconlib.ts— added default params and registered inDEFAULT_QUESTION_TYPESi18n-provider-defaults.ts— addeddateRangetranslation keyTest plan
CoCreationForm/DateRangeQuestionpnpm tsc)🤖 Generated with Claude Code