Skip to content

fix: cleaning units and area calculation#971

Merged
copystring merged 3 commits into
mainfrom
fix/cleaning-records-units
Dec 14, 2025
Merged

fix: cleaning units and area calculation#971
copystring merged 3 commits into
mainfrom
fix/cleaning-records-units

Conversation

@copystring
Copy link
Copy Markdown
Owner

No description provided.

@copystring copystring merged commit c6cbc08 into main Dec 14, 2025
7 checks passed
@copystring copystring deleted the fix/cleaning-records-units branch December 14, 2025 00:47
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 1059 to +1063
if (["clean_time", "clean_area", "clean_count"].includes(mappedAttribute)) {
let val = cleaningAttributes[cleaningAttribute] as number;

if (mappedAttribute === "clean_time") {
val = Number((val / 3600).toFixed(2));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Align clean summary clean_time with new units

The clean summary now divides clean_time by 3600 before writing cleaningInfo.clean_time, so the adapter will store hours (≈122.6 for the mocked 441361 value) instead of the raw seconds used previously. The mock data and src/lib/mock/typeCheck.test.ts still assert the unconverted 441361 value, so running updateCleanSummary under the mock harness will now fail. Please update the mocks/tests (or gate the conversion) to keep the stored units consistent with the expectations.

Useful? React with 👍 / 👎.

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.

1 participant