Interface converted to light (theme set in .streamlit/config.toml as well as
CSS so Streamlit's own widgets follow), with larger type throughout and the
editor canvas converted to match. Functional Zoning under-counted because
pooja_room and walk_in_closet had no band and were silently dropped - both are
now banded, so every room is judged. Doors are generated on the utility and
common washroom; only the passage stays without one. Connectivity graph and the
edited-plan comparison reduced in size.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Vastu "None" column was the literal label for the no-rule tier — now a dash,
with null guards added. Editor side columns stretch to the plan height. The
edited plan's break-up uses the same Metric/Weight/Score/Contribution table as
the Evaluation Metrics section, and its carpet table gains Before/After/Change
columns. AppTest: zero exceptions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Evaluation: one table + one expander; tidy the "What you can edit" panel
Evaluation Metrics is now one table with a single Break-up expander holding the
per-metric detail as tabs, instead of a table plus eleven expanders. The
editor's "What you can edit" card lists locked rooms one per row with the reason
beside each, instead of one run-on sentence.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Editor now has a section heading, a LEFT legend panel and a RIGHT panel of three
cards: Show on Plan (walls/doors/windows toggles), What You Can Edit (lock and
resize rules as bullets) and Doors & Windows (sizes, presets, selected-opening
controls and a big Apply Changes button). The white shaded help box is removed.
The main evaluation table is now Metric / Weight / Score / Contribution, with
the AI-vs-Thinking-Model comparison in an expander.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Editor: fill the space beside the canvas with a reference side panel
Side panel beside the canvas with STANDARD SIZES (door 3.0', window 4.0' +
presets + opening rules) and ROOM COLOURS (legend moved here). Stacks on
narrow screens; sizes read from the editor's own constants.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
DXF exports walls/doors/windows and edits; opening rules, sizes, breakdown
The editor now returns {rooms, openings, walls}, so the DXF draws walls, door
swings and windows on their own layers using the edited rooms. Opening rules:
no door on passage/utility/common washroom, no balcony window, one window per
room; standard sizes (door 3.0', window 4.0') with preset buttons, a size
readout and Delete. Both washrooms are now PRIVATE for zoning. The edit
comparison gains a breakdown of each metric's weighted effect on the fitness,
and access-graph labels use leader lines. Generation untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Connectivity: directional access rules, clearer graph; doors on rooms only
Access is now directional — a step a->b exists only when a is in b's permitted
entry list — so a plan can no longer "reach" the passage by crossing a bedroom.
Entry rules are stated as an explicit table. The access graph uses small dots
with names beside them, solid lines for usable doorways and dotted red lines for
touching-but-illegal pairs. Doors are placed on every room; only the passage
carries none. Weight 0; generation untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Editor: doors and windows are now movable, resizable, deletable
Openings are real objects stored against their room + wall side as {t, w}, so
they survive room moves/resizes. Click to select, drag to slide along the wall,
drag an end dot to resize, Delete to remove. Editor-only, never scored.
Verified in Node: correct placement and 504/504 clamp checks.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fix DXF export (outlines missing), stray doors, and page jumping
DXF outlines were LWPOLYLINE (R14+) in a file declaring no version, so AutoCAD
dropped them and the export opened as labels only; they are now R12-safe LINE
entities with an explicit $ACADVER and two-line labels. Doors no longer fall
back to any shared wall, so no stray bedroom-to-bedroom doors. The editor only
re-sends its iframe height when it moves >8px, stopping the page jumping.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Editor: Doors and Windows overlays (all-rooms / none toggles)
Doors: one per room on its circulation-facing (or longest) shared wall, as a
white opening + swing arc. Windows: double-line on every exterior wall. Both
all-or-none, visual only; no model/scoring impact.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
With Walls on, room labels show carpet (inside-wall) size instead of built-up:
minus half an inner wall (0.2') on shared sides, a full outer wall (0.75') on
outside sides. Editor display only; scoring/generation untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Calculation/display only. Adjacency final line clarifies "total possible" is
the max weighted score (not the pair count). Connectivity now exposes and
renders the access graph (nodes=rooms, edges=doorway walls; entry/reachable/
isolated colouring + verdict). Editor hides the green locked-adjacency lines
while the Walls overlay is on so walls look uniform. Generation untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Editor: add Walk-in Closet as a fourth gap-fill room
Completes the user-choosable gap-fill set (Balcony / Study / Passage /
Walk-in Closet) with its own colour and label. Editor-only; the filled
room is scored normally on Apply (walk-in closet is un-ruled -> neutral).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Editor: fix staircase spilling out of the plot + score edited plans
Staircase-out-of-box was an editor bug (generation is clean — 0/3154 rooms
outside the plot). The editor forced the staircase to a fixed 12'×10' on
load/drag/validate; for N/S-road plans the real staircase is 10'×12', so
forcing the width grew it past the plot edge. Fix keeps the plan's actual
staircase size. Edited plans are now scored with the finalised system and
compared before/after against the original optimised plan.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Editor-only. Inner walls are centred on shared boundaries (t/2 into each
room); outer walls hug the room-block and go fully inward. Toolbar toggle.
No model/scoring/render impact.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adjacency/Constraints/Room-Width tables rebuilt with Tier text, Status,
Counts, a TOTAL row and an explicit final-calc line; Aspect Ratio gains
its final calc; Connectivity gets its own per-room table. Constraints
dropped from SCORING: min_room_sizes, pooja_near_square, rooms_on_boundary
(the last stays enforced in the generation model). Plan render uses one
uniform, smaller, non-bold room label so text no longer spills. Editor
rectangles show only name + dimensions; lock reason and allowed actions
moved to a top info panel, labels un-bolded. Generation model untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Room editor: resize every room, move only non-HIGH-rule rooms, gap-fill with balcony/study/passage; cleaner canvas matching the optimised render