Refactor: Time-series chrome component (#44568)
* Move SimpleSpecificDatePicker to the form * Extract `isSpecificValue` helper * Integrate the toggle into `SimpleDateIntervalPicker` * Make DateOperatorPicker do only one thing Separation of concerns - lift SimpleRelativeDatePicker up to the form. * Fix unit tests * Add back the test for the `SimpleSpecificDatePicker` * Keep the rendering logic in the `SimpleDatePicker`
Showing
- frontend/src/metabase/querying/components/DatePicker/DateOperatorPicker/DateOperatorPicker.tsx 9 additions, 24 deletions...ents/DatePicker/DateOperatorPicker/DateOperatorPicker.tsx
- frontend/src/metabase/querying/components/DatePicker/DateOperatorPicker/DateOperatorPicker.unit.spec.tsx 0 additions, 119 deletions...icker/DateOperatorPicker/DateOperatorPicker.unit.spec.tsx
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/DateIntervalPicker/SimpleDateIntervalPicker/SimpleDateIntervalPicker.tsx 18 additions, 14 deletions...ker/SimpleDateIntervalPicker/SimpleDateIntervalPicker.tsx
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/DateIntervalPicker/SimpleDateIntervalPicker/SimpleDateIntervalPicker.unit.spec.tsx 47 additions, 0 deletions...DateIntervalPicker/SimpleDateIntervalPicker.unit.spec.tsx
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/SimpleRelativeDatePicker/SimpleRelativeDatePicker.tsx 0 additions, 20 deletions...ker/SimpleRelativeDatePicker/SimpleRelativeDatePicker.tsx
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/SimpleRelativeDatePicker/index.ts 0 additions, 1 deletion...cker/RelativeDatePicker/SimpleRelativeDatePicker/index.ts
- frontend/src/metabase/querying/components/DatePicker/RelativeDatePicker/index.ts 0 additions, 1 deletion...uerying/components/DatePicker/RelativeDatePicker/index.ts
- frontend/src/metabase/querying/components/DatePicker/SimpleDatePicker/SimpleDatePicker.tsx 14 additions, 0 deletions...mponents/DatePicker/SimpleDatePicker/SimpleDatePicker.tsx
- frontend/src/metabase/querying/components/DatePicker/SimpleDatePicker/SimpleDatePicker.unit.spec.tsx 36 additions, 0 deletions...atePicker/SimpleDatePicker/SimpleDatePicker.unit.spec.tsx
- frontend/src/metabase/querying/components/DatePicker/SpecificDatePicker/SimpleSpecificDatePicker/SimpleSpecificDatePicker.unit.spec.tsx 41 additions, 0 deletions...SpecificDatePicker/SimpleSpecificDatePicker.unit.spec.tsx
- frontend/src/metabase/querying/components/DatePicker/SpecificDatePicker/utils.ts 7 additions, 0 deletions...uerying/components/DatePicker/SpecificDatePicker/utils.ts
Please register or sign in to comment