Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: fix for template dormancy hour/day toggle#19884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rowansmithau merged 8 commits intomainfromfix-dormancy-unit-switching
Sep 28, 2025

Conversation

rowansmithau
Copy link
Contributor

resolves#15451

Solution: Selecting days is always be enabled and rounds (up) the hours to the nearest day. I.e. 25 hours -> 2 days.

tested with 26hrs saved, then toggled to days. result = value changed to 2 days

If you have used AI to produce some or all of this PR, please ensure you have read ourAI Contribution guidelines before submitting.

blink helped

@rowansmithaurowansmithau self-assigned thisSep 19, 2025
@rowansmithaurowansmithau added siteArea: frontend dashboard enterpriseEnterprise-license / premium functionality template labelsSep 19, 2025
@rowansmithaurowansmithau changed the titlebug: fix for template dormancy hour/day togglefix: fix for template dormancy hour/day toggleSep 19, 2025
- Test hours to days conversion (26 hours → 2 days)- Test days to hours conversion- Test specific bug case from issue#15451- Validates the fix for template dormancy hour/day toggle
Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

The fix looks good to me, but before approving it, let’s make sure the tests are passing. I also see some Storybook tests failing on CI.

rowansmithauand others added4 commitsSeptember 25, 2025 05:20
The onChange handler was using the old field value instead of calculatingthe correct conversion from milliseconds, causing days-to-hours conversionto fail. Fixed by using currentDurationMs consistently.🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM. Don't forget to access Chromatic to check the snapshots and approve them 👍

@rowansmithaurowansmithau merged commitaaa5071 intomainSep 28, 2025
32 checks passed
@rowansmithaurowansmithau deleted the fix-dormancy-unit-switching branchSeptember 28, 2025 23:23
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 28, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

@aslilacaslilacAwaiting requested review from aslilacaslilac is a code owner

@ParkreinerParkreinerAwaiting requested review from ParkreinerParkreiner is a code owner

Assignees

@rowansmithaurowansmithau

Labels
enterpriseEnterprise-license / premium functionalitysiteArea: frontend dashboardtemplate
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Template dormancy 'hour' setting prevents changing back to 'day'
2 participants
@rowansmithau@BrunoQuaresma

[8]ページ先頭

©2009-2025 Movatter.jp