Skip to content

Rename box height to length - #14

Merged
RohitRajendran merged 1 commit into
mainfrom
worktree-box-height
Jul 7, 2026
Merged

Rename box height to length#14
RohitRajendran merged 1 commit into
mainfrom
worktree-box-height

Conversation

@RohitRajendran

Copy link
Copy Markdown
Owner

Summary

  • Renames the Box.height field to Box.length throughout the app (type, canvas rendering, properties panel), since a box's two dimensions are better described as width/length than width/height.
  • Properties panel now shows a "Length" field (data-testid="box-length-input") instead of "Height".
  • Adds a storage migration (FLOORPLAN_VERSION 1 → 2) so existing persisted plans and imported .snapdraft.json files that still have the old height field are transparently upgraded to length on load/import.

Test plan

  • npm run test — 330 unit tests passing, including new migration tests in storage.test.ts
  • npm run test:e2e — 250 Playwright tests passing (chromium + iPad), including the metric-import test that exercises the legacy v1 heightlength migration path end-to-end
  • npm run build — clean production build
  • npm run lint — clean

Boxes are rectangles on a floor plan, not 3D volumes, so "width and
length" better describes the two editable dimensions than "width and
height". Renames Box.height to Box.length across the type, canvas
rendering, and properties panel, and adds a storage migration (v1->v2)
so existing persisted plans and imported .snapdraft.json files with
the old `height` field are transparently upgraded.
@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploy Preview for snapdraftfloorplans ready!

Name Link
🔨 Latest commit dfc2a7d
🔍 Latest deploy log https://app.netlify.com/projects/snapdraftfloorplans/deploys/6a4c2ddc60185200085f3d69
😎 Deploy Preview https://deploy-preview-14--snapdraftfloorplans.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@RohitRajendran
RohitRajendran merged commit 6f16beb into main Jul 7, 2026
9 checks passed
@RohitRajendran
RohitRajendran deleted the worktree-box-height branch July 7, 2026 00:42
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