Repository navigation
feat(window): the 3D viewport, the palettes and the panels; build with the mouse (0.3.0) - #3
Merged
Merged
Conversation
…wner's art (0.3.0) favicon.png (256 px), favicon.ico (16 to 256 px) and apple-touch-icon.png (180 px) are the full icon; mark.png is the dark mark without shadow, cropped to its bounds, for the splash and the top bar. The pages do not use them yet; that is the window lane's change in this version.
The README opens with the icon as the family's READMEs do, and its two sentences that said the icons were not drawn now say the app has them and that no desktop build has been run yet.
The viewport draws with three at the version FormCAD pins, MIT. The lock file was written by npm install. Checked: npm install resolves it; the viewport that uses it comes in the commits after this one.
…ks (0.3.0) The type package FormCAD pins for three 0.186, MIT, as a development dependency. The lock file was written by npm install, which resolved it.
…(0.3.0) index.html links favicon.png, favicon.ico and apple-touch-icon.png from public/ and preloads mark.png for the top bar. Checked: the four files exist in public/; looked at in the browser later in this turn.
…r (0.3.0) The splash card draws public/mark.png at 96 pixels with its size written in the tag, in place of the inline square with the letter F. Checked: screenshot of the page headless at 360 by 280.
…'s regions (0.3.0) tokens.css gains the widths of the parts palette and the right column, the heights of the colour palette, the details panel, the tabs and the step strip, row, swatch and field sizes, the card and preferences widths, a hud layer between raised and chrome for the viewport's overlays, and the overlay, swatch edge and selected-row colours, all for the regions this turn builds. Nothing uses them yet, so nothing on screen changes.
…e strings module (0.3.0) The palettes' labels, list names, empty, loading and no-library states, the no-match suggestions of SPEC.md 2.3 and the colour group and hue names, with the reason in the folder's new hashout log. Checked: npm run typecheck.
…switches and the tree (0.3.0) icons.ts gains hand-written currentColor icons for new, open, save and save as, the eye and the crossed eye, first, previous, next and last step, breaking a step, snapping, the grid, the overlap check, turning, duplicating, preferences, the tree's chevrons, a brick and a submodel, fetching, stopping, a folder, a warning, fit and the colour palette. No icon library. Checked: npm run typecheck.
…tes need (0.3.0) Four inline currentColor glyphs in the window's icon form, falling back to ui/icons.ts for the rest, so the shell can adopt them without touching callers. Checked: npm run typecheck.
… ground studs under it (0.3.0) The open question of 0.2.0 is settled: a ground stud is taken when the point 2 LDU above it lies inside a placement's shrunk body box, so a part held over a baseplate on the ground seats on the baseplate's studs or on nothing, never inside it. A part raised off the ground covers nothing. The free-connector rule of Candidate pairs names the new case. Not run: the code follows in the next commit.
…ibrary answers into plain shapes (0.3.0) The public deps and handles of both panels and lenient readers for each engine answer, so a missing field becomes an empty value. Checked: npm run typecheck.
…lours and placing answers (0.3.0) io/api.ts follows the shapes a running 0.2.0 engine answers, adds the changes, settings, library, colours, part, mesh, get and put calls, and asks POST /api/place/preview for a ghost's place, falling back to part.fit with the pointer ray while the route is missing. Checked: npm run typecheck; the answers were read with curl from an engine on 8343.
…0.3.0) A small debounce with cancel and flush, and a ticket counter so an older search answer is discarded rather than drawn. Checked: npm run typecheck.
Decodes layout version 1 of the mesh format as views on the fetched buffer and refuses a buffer that fails any check. Checked with Node on the engine's mesh of 4315 (800 triangles, the expected bounds) and on a buffer cut by 4 bytes, which is refused.
…ate (0.3.0) A ground stud whose point 2 LDU above lies in a neighbour's shrunk body box is taken, as CONNECTIONS.md now says. Checked on an engine with the 2026-10 library: a 3001 over a 3811 on the ground seats on the baseplate's studs or falls to the grid, never at y = -24 inside it; brick on brick and beside a brick unchanged.
… order in the engine's settings (0.3.0) Optimistic local lists with ordered, non-overlapping PUT /api/settings writes of only the changed lists; a refusal is reported and the settings read again. Checked: npm run typecheck.
…(0.3.0) ui/strings.ts holds the window's words grouped by region, with plural and fill helpers for counts and named values. The regions built next read their words from it. Checked: npm run typecheck.
Background, ground, selection, hover, ghost and blocked colours come from --view-* tokens, falling back to the nearest existing token and noting the missing names. Not yet run in a browser; it is checked with the viewport in a later commit.
…pack (0.3.0) Says what LDU, the LDraw axes with -Y up, a part's origin, standing on the ground lattice, stacking heights and quarter-turn matrices mean for a driving agent. The numbers were checked by placing parts through ./formblocks cli against an engine on port 8345 with the library at /tmp/fb-lib/ldraw: every position named seated.
…port reads them (0.3.0) The viewport's own narrow types over the engine's doc and changes answers, the colour table, the ghost and the pointer ray. Type-only; checked when the viewport compiles.
…issing part included (0.3.0)
One shared promise per part name over GET /api/parts/{name}, a 404 kept as null for the not-in-this-library mark, other failures asked again, at most 2,000 names kept. Checked: npm run typecheck.
…ine's matrix (0.3.0) Writes C M C for an LDraw position and matrix and uses the placement's own scene matrix when the engine sends one. Checked by hand against scene.py's placement_to_scene; drawn in the viewport in a later commit.
…ead of unknown (0.3.0) The library host answers the release of the library in use (the fetched archive's, else the index's newest update) and the .fblk writer puts it in the LIBRARY line; with no library the line read from the file is kept. Checked on an engine with the 2026-10 library: a save wrote LIBRARY 2026-10 and reopened, an .ldr export wrote no project lines.
Explains the four command kinds, the six fixed MCP tools, how a cmd_ tool is named from a command id, the command line's run form and its own subcommands, one call written three ways, and the older spec ids that do not run. Checked against ./formblocks cli commands (48 commands) and backend/app/automation/forms.py.
…(0.3.0) 16 takes the placement's colour, 24 its edge, direct colours are read from their bits and unknown codes take the table's 16. Checked against the shape of GET /api/colours on the engine; drawn in a later commit.
…d is about to show them (0.3.0) SearchSource asks for 120-hit pages on demand and knows the total from the first; NameSource lists favourites, recent and hidden parts from the settings and fills each from the part route. Checked: npm run typecheck.
…nges on each revision (0.3.0) The document store reads GET /api/doc once and on each reconnection, then GET /api/doc/changes?since=n for each revision, keeping every placement by id and every submodel by key with the document's state, and starts over on a reset answer. The read-only list and the status bar read the new store. Checked: npm run typecheck; the changes answer was read with curl after two drops.
…across batches (0.3.0) Solid and transparent, one- and two-sided faces, and edge lines that read instance matrices, each mixing an instanced tint for fading, selection and hover. Drawn and looked at in a later commit.
Lists the command line's exit codes, every way an MCP call fails with its JSON-RPC code, the person's refusals, the commands' refusal sentences by the parameter they name, and answers that succeed but need a second look such as seated false. Each refusal was taken from backend/app/cmd and backend/app/automation, and the exit codes and several sentences were produced by ./formblocks cli runs against the engine on port 8345.
…0.3.0) The placing module keeps the preview's marks with the last free place and hands them to the viewport, which draws a small square on each connector the ghost would join. Checked headless: a 2 by 2 plate over a 2 by 4 brick showed its marks.
…olumn's panels be resized (0.3.0) --colours-h goes from 200 to 320 pixels, and two separators in the right column resize the colour palette and the details panel by dragging or with Up and Down, kept across starts and restored by a double click, as SPEC.md 1.2 asks. Checked: npm run typecheck; headless at 1440 by 900, drag, keys, reload and reset gave the expected heights.
--pp-thumb now reads --thumb-sm, --thumb and --thumb-lg from tokens.css instead of multiples of the spacing scale; the values are the same, so nothing moves. Checked headless: the medium picture square is 64 pixels.
…n module (0.3.0) The star, grip, size squares and printed-parts picture are now ICONS entries in ui/icons.ts, and the palette's glyph is a re-export of icon, so no caller changed. Checked: npm run typecheck; the glyphs drew the same headless.
… (0.3.0) The palette's state title was as wide as its words and centred, so changing No parts library yet to Loading parts moved it, a layout shift of 0.000039. The title now spans the box and the note has a fixed width. Measured under 4x CPU and a slow network: 0 when the library arrives.
…ve the ground (0.3.0) SPEC.md 5.1 now says a move seats the lowest point of what is moved and nothing moved with the mouse ends below the ground, nudges and typed values staying exact; CONNECTIONS.md gains Moving several parts with the lead, the rigid motion and the ground guard. Decided because dragging the top brick of a stack to the ground carried the bricks under it below the ground.
… out of the ground (0.3.0) drag now snaps the moving placement that reaches lowest (the grabbed one when level with it) and moves the rest rigidly with it, then lifts the whole move straight up if any part would end below y = 0, as spec/CONNECTIONS.md Moving several parts decides; the answer names lead and lifted. Checked against an engine on 8346: a stack dragged by its top brick stands on the ground or seats its lower brick on another brick.
…d shifts nothing (0.3.0) The count in the tree's head sat in an auto column and moved when 0 parts became 61 parts, a load shift of 0.000006 at 1024 by 768. It now has the --num-w column, right-aligned. Measured under 4x CPU and a slow network at five window sizes, load and hard reload: 0.
… check them (0.3.0) The engine opens stud.json, overrides.json and categories.json beside its modules; the freeze scripts now add each with --add-data to its package folder and refuse a freeze without one, and --selfcheck reports data_files. Checked: ./formblocks freeze with PyInstaller 6.22.3, self-check data_files ok, the frozen engine derived 3001's connectors. The .bat twin was not run.
… other (0.3.0) The hue parameter said such as red or blue while the engine matches only the plural families reds to greys; the summary now lists them and all, another value is refused with the list, and SPEC.md 3.4's row names group and hue as built. Checked against an engine on 8346.
…e axes (0.3.0) SPEC.md 0.2 said every number passed to a command is in LDraw's axes, but the ray commands and the place routes built in 0.3.0 take the viewport's ray in scene axes. Decided for the built form: the ray is the viewport's, the answers carry the LDraw pose too, placements stay in LDraw's axes, and part.place and part.fit remain the LDraw-axes forms for agents.
… a glance (0.3.0) SPEC.md 21.2 gains the two colour commands built in 0.3.0, colours.current registered as view like the switches, and they leave the list of commands not yet in the catalogue.
…allows it always (0.3.0) SPEC.md 17.2 gave the agents preference the first value ask once per session, against 0.3 and what is built, where each change or file command from an outside agent asks with deny, once or always until the person chooses always or allows or blocks every agent. Decided for the built rule, which keeps 0.3 and 14.7 whole.
…ors (0.3.0) CONNECTIONS.md named a cli connectors subcommand that was never built; the operation is the catalogue command part.connectors, reached with cli run and as the MCP tool cmd_part_connectors, which the harness pack already uses. Decided for the built command rather than adding a second way in.
…e step strip (0.3.0) The window was built with no toolbar row: the snap, grid and overlap switches are status bar buttons and the step controls are the step strip under the viewport, with the tools to come going into the top bar. SPEC.md 1.1, 1.2, 6.2, 7.1, 8.1, 11.1, 18.1 and 18.2 and NAMES.md now say so; decided for the built layout, which keeps the viewport taller.
…he window drags (0.3.0) SPEC.md 5.4 asks for copies held as a ghost under the pointer; the window built in 0.3.0 has no drag of a selection yet, so Ctrl+D runs part.duplicate one grid step along X and the copies become the selection. Recorded as the 0.3.0 rule, with the ghost form kept as the aim and already served to agents by part.duplicate_at_ray.
…rns by quarter turns (0.3.0) SPEC.md 5.2 describes the fine angle, its preference and the pivot tool, none of which is built: part.rotate and the held ghost turn by quarter turns only. A line under 5.2 now says so, so the specification does not promise what the window cannot do.
…ls are neutral grey (0.3.0) SPEC.md 2.5 draws every thumbnail in a neutral light grey, so setColour did nothing and currentColour was never read; both leave the parts palette's contract and the side panel stops calling them. Decided for the specification. Checked: npm run typecheck; the palette drew its 64 pixel thumbnails headless.
…rs with the colour commands (0.3.0) Written by ./formblocks agents sync after colours.used and colours.current were added and colours.list's hue parameter was reworded; ./formblocks agents check is clean.
…fonts (0.3.0) Renames the thumbnail renderer's class, drops the makers' system font names from the font stacks of the tokens and the splash in favour of system-ui and ui-monospace behind the bundled faces, and describes rather than names a marketplace in the library log. Checked: npm run typecheck and a search of the code for the names.
…tents (0.3.0) The skill gate warned (D4) that the 141-line command-catalogue.md had no contents; agents.py now writes a Contents section naming its two tables with their counts, and agents sync rewrote the reference and its mirrors. Checked: agents check clean, the gate without the D4 warning.
… (0.3.0) The skill gate warned (D3) that error-codes.md and tool-naming.md sent the reader to a second reference, two levels deep. The flat-rotation row now gives the two quarter-turn matrices itself and tool-naming.md names the live catalogue without pointing at the copy; mirrors written by agents sync. Checked: both packs pass the gate with 0 FAIL and 0 WARN; agents check clean.
…he window started (0.3.0) A window started without a library kept an empty colour table and drew every part in the pale fallback for colour 16 once a library folder was chosen. The viewport gains refreshColours, called by the host whenever the colour lookup reads a table, which recolours the batches in place. Checked headless: no library at start, a folder chosen, the house drawn in its own colours.
…ecent files are in (0.3.0) Both filled their recent files after they appeared, so the open dialog's buttons jumped 124 pixels and the start card's rows 43 pixels. Each now reads model.recent first and shows itself when the rows are written. Checked: npm run typecheck; the full headless walk recorded no layout shift entry, with or without input.
… app.__version__ (0.3.0) The user agent was the literal FormBlocks/0.2.0, a version site outside the list the release bumps; it now reads app.__version__. Checked in process.
…0.3.0) The status notes still said there was no viewport and no parts palette. They now list what a person can do in the window at 0.3.0, what is missing (dragging placed parts, the stamp, pivot, brush and sampler tools, fine turns, the information panel, the parts list in the window, pictures of the view) and that the window was run headless with software rendering only.
…y method (0.3.0) Renames the field to copies with the alias copy, so POST /api/place/drag reads the same key and pydantic's warning at every start goes. Checked against an engine on 8346 with copy true and false, and --selfcheck.
Moves every version site from 0.2.0 to 0.3.0 by hand: frontend/src/version.ts, frontend/package.json, both version fields of frontend/package-lock.json, backend/app/__init__.py, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, the formblocks entry of src-tauri/Cargo.lock and the README's version badge; the skill packs' pack-version was already 0.3.0 and the fetch's user agent now reads the engine's version. Adds the v0.3.0 section of CHANGELOG.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(window): the 3D viewport, the palettes and the panels; build with the mouse (0.3.0)
Summary
POST /api/place/preview), a click places it; select, nudge, quarter turns, recolour, duplicate, hide, delete, undo and redo, steps, save and open.formblocks-driving(with a wall, a house and a table as worked examples) andformblocks-harness.Commits
Oldest first, release commit last. Hashes are left out because signing changes them.
Version
v0.3.0 (the release commit is last). It moves the version sites the 0.2.0 release commit moved and adds the changelog section.
Checks
Run on Linux against the official library in a scratch folder, the window in a headless browser: every region and state screenshotted and read; a 25-part house built with the pointer (overlapping courses, a door opening, a roof of slopes, four steps), recoloured, walked step by step, saved as
.fblk, reopened; the library's sample car opened and drawn (61 parts, transparent parts right); layout shift 0 under 4x CPU and a slow network across load and every interaction; picks at known pixels returning the right parts; 5,000 search results scrolled with 27 tile nodes alive; previews at a median 5 ms on 2,000 placements; the skill packs' three examples followed line by line;./formblocks doctor;agents check; the MCP smoke script; a freeze of the engine with its self-check; the contract's checker (0 MUST failed); the registry's eight checks on the release commit (all pass).Seen wrong and left for 0.4.0: over an open interior the pointer hits the ground, so a roof plate had to be lifted with the keyboard; placed parts cannot yet be dragged with the mouse; the model tree's top row is cut when scrolled.
Not run: any Tauri build; a GPU (frame times here are a software renderer's); any
.batscript; macOS and Windows;ci.ymlon GitHub. No tests were written;TEST_PLAN.mdin the planning sidecar says what should be tested.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.