This commit is contained in:
Andras Schmelczer 2026-09-11 17:57:03 +01:00
commit 7959fe85cc

View file

@ -1,11 +1,12 @@
import { MapPin, X } from 'lucide-react';
import type { FlooringPlan, Project, SkirtingPlan } from '../lib/types';
import { cutMm, degree, mm } from '../lib/format';
import { cutMm, mm } from '../lib/format';
import {
flooringCuts,
groupFlooringCuts,
groupSkirtingCuts,
skirtingCuts,
skirtingEndLabel,
uncutFlooring,
uncutSkirting,
} from '../lib/cut-list';
@ -198,7 +199,8 @@ export function CutList({
</button>
<div className="board-cut-info">
<p className="cut-size">
{cutMm(piece.length)} × {cutMm(piece.width)} mm
{cutMm(piece.length, piece.blankLength)} ×{' '}
{cutMm(piece.width, piece.blankWidth)} mm
</p>
<p className="cut-location">
{roomName(piece.roomId)} · Row {piece.row}
@ -302,13 +304,16 @@ export function CutList({
</button>
<div className="board-cut-info">
<p className="cut-size">
{cutMm(piece.length)} mm <span className="cut-note">long point</span>
{cutMm(piece.length, piece.blankLength)} mm{' '}
<span className="cut-note">long point</span>
</p>
<p className="cut-location">
{roomName(piece.roomId)} · Wall {piece.wallIndex + 1}
</p>
<p className="cut-note">
Left {degree(piece.leftMitre)} · Right {degree(piece.rightMitre)}
Left: {skirtingEndLabel(piece, 'left')}
<br />
Right: {skirtingEndLabel(piece, 'right')}
</p>
<button
className="button cut-locate"