Skip to content

feat: Added explanation prop to date picker components - #1368

Merged
mariush2 merged 1 commit into
mainfrom
feat/SAMACL-1310
Oct 21, 2026
Merged

mariush2 merged 1 commit into
mainfrom
feat/SAMACL-1310

Conversation

@mariush2

@mariush2 mariush2 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Jira links

Issue


  • Needs to be tested locally by reviewer

Description

Added explanation props to date picker components

Copilot AI balanced review requested due to automatic review settings October 21, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Explanation rendering discards caller-provided label customizations and lacks keyboard access.

3 open issues
What changed in this PR

Adds explanation tooltips to the library’s single-date and date-range pickers.

Changes:

  • Adds explanation text and tooltip placement props, requiring a label.
  • Adds shared label layout styling.
  • Adds tooltip interaction stories and missing-label validation tests.
File Description
src/​molecules/​DateRangePicker/​DateRangePicker.tsx Adds explanation props and label integration.
src/​molecules/​DateRangePicker/​DateRangePicker.test.tsx Tests missing-label validation.
src/​molecules/​DateRangePicker/​DateRangePicker.stories.tsx Demonstrates and tests explanation tooltips.
src/​molecules/​DatePicker/​DatePicker.tsx Adds explanation props and label integration.
src/​molecules/​DatePicker/​DatePicker.test.tsx Tests missing-label validation.
src/​molecules/​DatePicker/​DatePicker.styles.ts Adds shared label-and-icon layout.
src/​molecules/​DatePicker/​DatePicker.stories.tsx Demonstrates and tests explanation tooltips.

Review effort: Balanced

Comment thread src/molecules/DatePicker/DatePicker.tsx Resolved
Comment thread src/molecules/DatePicker/DatePicker.tsx Resolved
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 100% (🎯 100%) 19349 / 19349
🟢 Statements 100% (🎯 100%) 19349 / 19349
🟢 Functions 100% (🎯 100%) 1401 / 1401
🟢 Branches 100% (🎯 100%) 5074 / 5074
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/molecules/DatePicker/DatePicker.styles.ts 100% 100% 100% 100%
src/molecules/DatePicker/DatePicker.tsx 100% 100% 100% 100%
src/molecules/DateRangePicker/DateRangePicker.tsx 100% 100% 100% 100%
Generated in workflow #2568 for commit f7369d6 by the Vitest Coverage Report Action

@mariush2
mariush2 marked this pull request as ready for review October 21, 2026 11:40
@mariush2
mariush2 requested a review from a team as a code owner October 21, 2026 11:40
@mariush2
mariush2 requested a review from aslakihle October 21, 2026 11:40

@aslakihle aslakihle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

@mariush2
mariush2 merged commit 901a67c into main Oct 21, 2026
14 of 15 checks passed
@mariush2
mariush2 deleted the feat/SAMACL-1310 branch October 21, 2026 12:19

@vildevaffel vildevaffel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good :D

This branch was successfully deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants