Skip to content

Conversation

@alastair-simon
Copy link
Contributor

@alastair-simon alastair-simon commented Oct 21, 2025

What?

Closes #12926, #938

This pr addresses the following issues with mt-datepicker component:

  • When a timezone is chosen and date is picked in datetime mode, the date changes to another date unexpectedly.
  • The minutes and hours inside the time overlay cannot be given custom increments
  • Currently no helpText can be entered

Why?

This bug and the missing features cause the component to not function as expected

How?

  • removed formatDate method causing timezone issues
  • added mt-helpText to handle help text
  • add minuteIncrement and hourIncrement props to handle increment values
  • added text-input prop to allow manual text inputting
  • simplified modalValue handling

Testing?

I have written a number of additional unit tests to confirm the correct output, I have also create a visual test to ensure the help text is rendered correctly. Additionally I have verified that the changes are backwards compatible in the previous tests.

@vercel
Copy link

vercel bot commented Oct 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
meteor-component-library Ready Ready Preview Comment Nov 6, 2025 3:36pm

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 24, 2025

Open in StackBlitz

@shopware-ag/meteor-admin-sdk

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-admin-sdk@942

@shopware-ag/meteor-component-library

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-component-library@942

@shopware-ag/meteor-icon-kit

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-icon-kit@942

@shopware-ag/meteor-prettier-config

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-prettier-config@942

@shopware-ag/stylelint-plugin-meteor

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/stylelint-plugin-meteor@942

@shopware-ag/meteor-tokens

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-tokens@942

commit: f2ade59

@ravenokko ravenokko requested a review from a team October 27, 2025 13:02
@alastair-simon alastair-simon requested review from a team and removed request for a team October 27, 2025 13:34
@alastair-simon alastair-simon force-pushed the fix/datepicker-timezone-issue branch from 398abe9 to b7cf722 Compare November 5, 2025 10:47
@frobel frobel requested review from frobel and removed request for a team November 5, 2025 14:14
Haberkamp

This comment was marked as resolved.

@jleifeld jleifeld enabled auto-merge (squash) November 6, 2025 15:22
test: add additional tests for timezones

fix: timezone issue

fix: incorrect timezone value

fix: range value

fix: range value time

fix: time range

fix: hide time hint in time mode

refactor remove unused timeToIso method

fix: time case

fix: type error

test: add additional test

feat: rename methods

docs: add dateType select to story

fix: improve type guards

refactor: allow date objects as props

test add default datepicker visual test

feat: add hour and minute increment prop to datepicker

test: add tests for increment props

style: code format

update snapshots

feat: implement helpText

style: code format

update snapshots

test: simplify timezone fix

test add non timezone test

style: code format

refactor: simplify timezone fix

feat: implement text-input

test: add test for text input

fix: exact match prop naming

fix: remove console.log
@jleifeld jleifeld force-pushed the fix/datepicker-timezone-issue branch from f2ade59 to e82b6fa Compare November 6, 2025 15:34
@jleifeld jleifeld merged commit a7d05e5 into main Nov 6, 2025
8 checks passed
@jleifeld jleifeld deleted the fix/datepicker-timezone-issue branch November 6, 2025 15:37
@frobel frobel removed their request for review November 7, 2025 07:22
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.

Datepicker for discount campaigns at UTC (Berlin) faulty

4 participants