Skip to content

fix: stop the calculator from reporting numbers it cannot back - #26

Merged
devRMA merged 1 commit into
mainfrom
fix/trustworthy-journey-numbers
Aug 2, 2026
Merged

fix: stop the calculator from reporting numbers it cannot back#26
devRMA merged 1 commit into
mainfrom
fix/trustworthy-journey-numbers

Conversation

@devRMA

Copy link
Copy Markdown
Owner

A journey restored from localStorage kept the date it was saved on, so
opening the app the next day counted every hour since as overtime. The
restore now shifts the stored day onto today, preserving both the clock
times and the gap between them, so an overnight shift stays overnight.

Out-of-order times used to collapse into zeroed stats under the label
"horas extras acumuladas" and a suggested exit equal to the entry. They
now surface which field is wrong and why, and the summary steps aside
until the sequence makes sense.

The manual exit, the manual mode and the manual INSS/IRRF amounts were
the only inputs never persisted, so a reload silently swapped them for
recomputed ones. Clearing the monthly hours no longer turns the whole
salary into the hourly rate.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com


Stack created with GitHub Stacks CLIGive Feedback 💬

A journey restored from localStorage kept the date it was saved on, so
opening the app the next day counted every hour since as overtime. The
restore now shifts the stored day onto today, preserving both the clock
times and the gap between them, so an overnight shift stays overnight.
Out-of-order times used to collapse into zeroed stats under the label
"horas extras acumuladas" and a suggested exit equal to the entry. They
now surface which field is wrong and why, and the summary steps aside
until the sequence makes sense.
The manual exit, the manual mode and the manual INSS/IRRF amounts were
the only inputs never persisted, so a reload silently swapped them for
recomputed ones. Clearing the monthly hours no longer turns the whole
salary into the hourly rate.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercelBot commented Aug 2, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
workloadReadyReadyPreviewAug 2, 2026 11:13pm

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@devRMA
devRMA merged commit aea3166 into mainAug 2, 2026
4 checks passed
@devRMA
devRMA deleted the fix/trustworthy-journey-numbers branch August 2, 2026 23:55
Sign up for freeto 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.

2 participants

@devRMA@codecov-commenter