Skip to content

Conversation

@tmlmt
Copy link
Owner

@tmlmt tmlmt commented Jan 30, 2026

Description

Added a new unit conversion feature that allows converting an entire recipe to a specific unit system. This includes a comprehensive implementation with three conversion methods: "keep", "replace", and "remove" to control how existing equivalents are handled during conversion.

The documentation has been reorganized to separate unit conversion guidance from unit definitions. The new convertTo() method on the Recipe class enables full-recipe unit conversion between metric, US, UK, and JP measurement systems.

Related Issue: N/A

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation change (improvement to the Vitepress documentation or playground)

How Has This Been Tested?

  • Comprehensive unit tests for the convertTo() method covering various scenarios
  • Tests for handling different unit types, ranges, and alternatives
  • Tests for all three conversion methods: "keep", "replace", and "remove"
  • Integration with the playground UI for interactive testing

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have run pnpm lint and my changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Owner Author

tmlmt commented Jan 30, 2026

Copy link
Owner Author

tmlmt commented Jan 30, 2026

Merge activity

  • Jan 30, 11:52 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 30, 11:55 AM UTC: Graphite rebased this pull request as part of a merge.
  • Jan 30, 11:56 AM UTC: @tmlmt merged this pull request with Graphite.

@tmlmt tmlmt changed the base branch from chore/remove-invalid-prop to graphite-base/97 January 30, 2026 11:53
@tmlmt tmlmt changed the base branch from graphite-base/97 to v3 January 30, 2026 11:54
@tmlmt tmlmt force-pushed the feat/convert-system branch from 324007d to 4da064d Compare January 30, 2026 11:55
@tmlmt tmlmt merged commit 3af6f35 into v3 Jan 30, 2026
3 of 4 checks passed
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