Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

Versions follow `v*.*.*` with dots. Dates are UTC.

## 0.12.0 · 2026-11-30

Menus that stay clear of the title bar and say when there is more to scroll.

### Added

- A long menu that is cut off fades out its bottom rows and shows a small pill with a down arrow while rows remain below. At the last row both fade away, and they come back when you scroll up. A menu that fits shows nothing.

### Fixed

- Menus from the title bar always open just under their button and are at most three quarters of the window tall; the rest scrolls. Before, a long menu in a short window could be lifted off its button.
- Submenus keep under the title bar and take the same three-quarter limit.
- Right-click menus (library tiles, folders, Home project cards, results, the outliner, the Canvas, timeline clips) and the toolbar menus opened beside a button keep opening at the pointer, but no longer reach past three quarters of the window, stay under the title bar and show the same pill when rows remain below.

### Checked

- Type check, production build and 1189 frontend tests pass on Linux.
- Not run: the menus measured in a browser, the hint timings, keyboard checks, the engine tests, the installer and the desktop build.

## 0.11.1 · 2026-11-29

A hardening release for agents and the local engine, on top of 0.11.0.
Expand Down
2 changes: 1 addition & 1 deletion LICENSES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Third-party licences · formcraft

Version v0.11.1 · 2026-11-29
Version v0.12.0 · 2026-11-30

formcraft is licensed under the Apache License, Version 2.0 (see `LICENSE`), Copyright 2026 NodeAgentc, Inc. This file lists every third-party item that ships with formcraft or is used to build it, with its version, licence, where it ships and what the licence asks of us. `NOTICE` carries the short list of obligations that travel with the app and points here.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</p>

<p align="center">
<img alt="version v0.11.1" src="https://img.shields.io/badge/version-v0.11.1-eef0f4?style=flat-square">
<img alt="version v0.12.0" src="https://img.shields.io/badge/version-v0.12.0-eef0f4?style=flat-square">
<img alt="TypeScript, Vite and Three.js" src="https://img.shields.io/badge/TypeScript%20%C2%B7%20Vite%20%C2%B7%20Three.js-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python and FastAPI" src="https://img.shields.io/badge/Python%20%C2%B7%20FastAPI-3776ab?style=flat-square">
<img alt="macOS, Windows and Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down
2 changes: 1 addition & 1 deletion backend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Living log of comment content, explainers, rationale, TODOs and removed code for the engine side of the repo. Source files stay comment-free per the owner's hashout-log rule; what they would have said lives here, indexed. Read this first, then edit code surgically.

Current build version: v0.11.1
Current build version: v0.12.0
Last updated: 2026-11-02 · v0.8.0 engine MCP (dual-era protocol, 44 tools, consent, token, bridge, engine.port, the stdio launcher and mcp mode), the export preview, and the D1 fixes (bridge disconnects and bye, approval keys, withdrawals, root checks before asking, frozen launcher). Before that, B3 v0.7.0 engine (kind edit, /api/edit capability and export sessions with a POST cancel alias, GET /api/media/{id}/probe, /api/sounds with an original synthesised set) and its F2 fix. Before that, A1 v0.6.0 catalogue (Meshy rigging and character models, pages rig and character); W1 v0.6.0 engine (a finished world keeps all its assets and `meta.world`, POST /api/media/{id}/world/complete, the starter pack routes and install job). Before that, 2026-11-01 · E1 v0.5.0 engine (canvas and board project kinds, POST /api/media/mask-video, GET /api/media/{id}/frame). Before that, F5 v0.4.0 fixes (ASCII FBX stored as a 3D model with a start-up correction of earlier items, the FBX original found from its GLB in both link directions, a visible import unhides an identical hidden item). Before that, S5 v0.4.0 engine for the Scene studio: scene projects (kind `scene`, cover upload, role and meta carried in `.fcrft`), media migration 4 (`role`, `meta`), the H.264 encoder probe and the engine encode sessions, library 3D items as mesh-tool inputs in the planner. Before that, F2 v0.3.0 fixes (the mask edit colour in the catalogue, hidden media import, a private copy of a character's image, the sog extension). Before that, v0.3.0 library and projects engine: folders, tags, favourite and hidden flags, covers for 3D objects and worlds, characters with an avatar job, prompt history read from the jobs, the .fcrft project store with its hardened reader (schema 3), the mesh-tools page key, and a window policy that lets the 3D viewers run. Before that (v0.2.0), generation: provider clients for fal and World Labs with a key check, the model catalogue and the planner (request to provider call and price), POST /api/generate with the gen.* job runners, and job lanes so long generation jobs cannot block imports and downloads. Before that (v0.1.0), E1 (Phase 3 gaps): `askLocation` setting, save-dialog downloads (`path`, `overwrite`), batch download (inline or as a `download` job), auto-download on job success, CSP on the served window. Before that, wave 2 (C6): ffmpeg found or fetched the family way, ffprobe fill-in of durations and sizes, video poster frames, `ffmpeg` in capabilities. Before that: engine core (Phase 1 skeleton, Phase 3 jobs, events, media, costs, keys)

---
Expand Down
2 changes: 1 addition & 1 deletion backend/app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pathlib import Path

APP_NAME = "formcraft"
VERSION = "0.11.1"
VERSION = "0.12.0"
FRONTEND_PORT = 5290
BACKEND_PORT = 8290
SUBFOLDERS = ("library", "thumbs", "downloads", "db", "settings", "logs")
Expand Down
73 changes: 72 additions & 1 deletion frontend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Living log of comment content, explainers, rationale, TODOs and removed code for the frontend side of the repo. Source files stay comment-free per the owner's hashout-log rule; what they would have said lives here, anchored by file and symbol. Read the map and the table of contents first.

Current build version: v0.11.1
Current build version: v0.12.0
Last updated: 2026-11-02 · v0.8.0 command metadata, live edit commands, the automation bridge and 30 window tools, approvals with withdrawal, the Agents and Updates panels, the bridge goodbye beacon, the new icon in the splash and favicon. Before that, v0.7.0 Edit studio (engine/edit, ui/edit: contract, store and operations, renderer, effects, masks and audio mix, preview and transport, timeline, properties and assets panels, studio shell, files and export), the shared media panel in Canvas, Board and Scene (ui/panels), Add to edit in the Scene strip, lightbox and library, and the F1 and F2 fixes. Before that, v0.6.0 Scene studio from scene to shot: worlds as the environment (ui/scene/world), light and materials (view/ibl.ts, view/contact.ts, models keep their materials), the prompt bar and shot results (ui/scene/shot, replacing the Generate panel), generate into the scene (ui/scene/make), the downloadable starter pack (ui/scene/pack). Before that, 2026-11-01 · v0.5.0 Canvas studio (engine/canvas, ui/canvas: stage and tools, files, generate, results, 3D model nodes), Board studio (engine/board, ui/board: shell, grid, inspector, Present, board canvas view), Background change and video region removal (ui/tools/background-change, remove-region video mode), the app.ts wiring and `maskVideo` in io/api.ts. Before that, v0.4.0 F5 fixes (FBX conversion, pooled model renderer, Coming later), v0.4.0 Scene studio (engine/scene, ui/scene: host and view, object builders, procedural starter kit, editor chrome and files, presets and placement, outliner and inspector, timeline, posing and animation library, capture and record with mediabunny, Generate box and preview), Mesh tools and FBX conversion (ui/tools/mesh-tools.ts, ui/viewers/fbx-convert.ts, io/api-media-meta.ts), the upload dialog's 3D review step, and the app.ts wiring (mounts, studio-aware drops, close guard). Before that, v0.3.0 F1 fixes (lightbox hand-offs to Remove background, 3D object and World, Open in Scene placeholders, batch groups in the Library studio and the picker, mask polarity from the catalogue, one-step hidden import, character dedupe by content), on top of v0.3.0 Library studio (virtual grid, folders, tags, favourites, hidden items, covers), characters and prompt history, tags and favourite in the lightbox, 3D object and Gaussian splat viewers with covers, the 3D object and World pages, the tool pages (Angles, Remove background, Remove a region, Frame extractor, Storyboard) and projects (New and Open, .fcrft files, Home project lists). Before that (v0.2.0) Create pages: window model store and labels, model picker and options bar, prompt box with the mention editor and the fullscreen editor, reference deck and library modal, generation feed, lightbox, audio player and upload dialog, the Image, Video and Audio pages with the prompt store and handoffs, Behavior and Generation preferences, and gen.* job names in the job toasts. Before that (v0.1.0), E2 gap closing (job toasts, downloads with Ask where to save, Home file selection and delete, studio restore prefs, About dialog, cheatsheet hold time and pin), on top of wave 2 (title bar and menus, status bar and Jobs list, Home and importer, Preferences and panels, shortcuts panel, cheatsheet, alert sounds) and the orchestrator's integration edits in app.ts, ui/dom.ts, ui/menus.ts and styles/home.css

---
Expand Down Expand Up @@ -7199,3 +7199,74 @@ Checked in a real Chrome against the engine: a reload keeps the dock working (th
- **Text.** The dialog shows `THIRD-PARTY-NOTICES.txt` as the engine serves it (`GET /api/notices`, plain text, about 1.1 MB). It is fetched when the dialog first opens, not with About, and only once after it arrives; a failed fetch says where the same file is installed and is asked again on the next opening.
- **No layout shift.** The box is a `pre` with a fixed 360 px height (at most 60vh) from the first paint and scrolls inside itself, so the text's arrival moves nothing. Colours, border, radius and spacing are tokens.
- Removed code: none.

## 2026-11-30 · v0.12.0 menus under the title bar, a three-quarter cap and the more-below hint {#menu-cap-v0120}

- refers-to: src/ui/menu.ts :: MENU_SHARE, barFloor, menuCap, PopupMenu.floor, PopupMenu.openUnder, PopupMenu.openBeside, MenuBar.open; src/ui/position.ts :: PlaceOptions.cap, placeFloating
- kind: rationale
- logged: v0.12.0 · 2026-11-30
- **Source.** The family fix FORM-MENU-OVERLAP-FIX (guide 1.2.0, from formvis 2.8.3 and 2.8.4), ported by hand. formcraft's menus already went through `placeFloating`, whose safe area starts under `.cv-titlebar`, so a bar menu here never reached the bar. What was missing: the cap was the whole room down to the status bar (about 90% of a 1280 by 800 window), and the 96 px `minHeight` could lift a bar menu off its button in a very short window.
- **Bar menus.** `MenuBar.open` calls `openUnder(r.left, r.bottom + 4)`. The top is `max(y, barFloor())` (`barFloor` is the safe area's top, the title bar's bottom plus 4) and nothing moves it up; there is no flip. The inline `max-height` is `menuCap(top)`, set while the panel is `visibility: hidden` and before the width is read, so the first painted frame has the final size. `left` is clamped into the safe area.
- **Cap.** `menuCap(top) = min(floor(0.75 * innerHeight), floor(safeArea().bottom - top))`. The bottom edge stays the status bar's top less 4, as `placeFloating` already used, so menus still never cover the status bar.
- **Submenus.** `openBeside` passes `cap: menuCap(root floor)` to `placeFloating`, so a submenu takes the same cap and keeps opening beside its row; its top was already clamped to the safe area's top.
- **placeFloating.** New optional `cap` (screen pixels, like the rest of its maths). The flip and fit use `min(measured, cap)`; the inline `max-height` is set whenever the measured height is above what is placed. Without `cap` it behaves exactly as before.
- **Resize.** `MenuBar` already closes on `resize`, so the cap follows the window.
- Removed code, in `MenuBar.open` and `placeFloating`:

```ts
b.menu.openAt(r.left, r.bottom + 4);
```

```ts
const natural = panel.offsetHeight * k;
if (natural > height) {
```

- refers-to: src/ui/menu.ts :: MENU_MORE, showMore, PopupMenu.list, PopupMenu constructor, setItems, items, showSub, openUnder, openBeside; src/styles/menu.css :: .cv-menu, .cv-menu-list, .cv-menu-more, has-more, no-fade
- kind: rationale
- logged: v0.12.0 · 2026-11-30
- **More-below hint.** A menu cut off by the cap fades its bottom rows into its own glass and shows a 56 by 12 pill with a down chevron, 6 px above the bottom edge, while rows remain below. It goes in 160 ms at the last row and comes back in 490 ms (the transition of the state being entered runs, so `has-more` carries 490 ms). Nothing shows at the top, a menu that fits shows nothing, and the pill takes no clicks.
- **Card and list.** The menus are see-through glass, so a gradient over the rows would show as a band and a mask on the panel would fade its glass, border and shadow. The panel is now a card that does not scroll (`display: flex; overflow: hidden` while shown) holding `.cv-menu-list`, which scrolls and carries the mask, plus the pill. `max-height` stays on the panel. Rows, `items()`, `subTop` and every `scrollTop = 0` use the list; the list's `scroll` closes an open submenu and calls `showMore`. Nothing outside the menu files reads the panel's children or `scrollTop` (checked: board toolbar, outliner, canvas tool and layer menus only add a class, a keydown listener, focus or remove the panel).
- **First frame.** `showMore(panel, list, true)` runs while the panel is still `visibility: hidden`: it sets `no-fade`, sets `has-more`, flushes style, then drops `no-fade`, so the hint is in place on the first painted frame and never fades in on opening. Rows are never rebuilt to measure.
- **Tokens.** Pill border and background are `--glass-border` and `--glass-bg`, the chevron is `currentColor` on `--text-secondary`. The `#000` in the mask gradient is an alpha mask, not a painted colour. `--menu-more` is a registered `@property` so the mask can animate; where that is not supported it switches without a fade. Reduced motion (the media query here and the tokens' global rule) and `animations-disabled` turn the fades off.
- **Focus.** `has-more` puts `scroll-padding-block-end: min(88px, 40%)` on the list, so arrowing scrolls the focused row clear of the fade; End reaches the last row, which hides the hint.
- Removed code, from `.cv-menu` in menu.css and the PopupMenu constructor:

```css
overflow-y: auto; overscroll-behavior: contain;
```

```ts
this.panel = el<HTMLElement>('<div class="cv-menu" role="menu" tabindex="-1" hidden></div>');
this.panel.addEventListener(
'scroll',
() => {
if (this.panel.scrollTop !== this.subTop) this.closeSub();
},
{ passive: true },
);
```

- refers-to: src/ui/menu.ts :: PopupMenu.openAt, PopupMenu constructor (standalone resize); src/ui/library/context-menu.ts :: ContextMenu constructor, open, setRows; src/ui/edit/timeline/menu.ts :: openList
- kind: rationale
- logged: v0.12.0 · 2026-11-30
- **Point menus found.** Three implementations open at a point: `PopupMenu.openAt` (the outliner row menu, the Canvas right-click menu, the Board toolbar and Canvas layer export menus), `ContextMenu` (library tiles, folders and sidebar, Home project cards, feed results, scene materials, the starter picker) and the Edit timeline's `openList` (clip menu, cross dissolve menu). Each keeps its pointer-corner placement through `placeFloating` (below and right, flipped up or left when there is no room) and gets three changes: the floor (`placeFloating`'s safe area already started under the title bar; `PopupMenu.openAt` now also records `floor = barFloor()` so its submenus cap from it), the cap (`cap: menuCap(barFloor())`, which also decides the flip, so a capped menu that fits below the pointer stays below), and the hint (card and list, `showMore(..., true)` before the first paint, `showMore` on the list's scroll).
- **Zoom.** `ContextMenu` still passes `scale: zoomOf()`; the cap is in screen pixels like the rest of `placeFloating`, which divides `max-height` by the scale.
- **Resize.** A standalone `PopupMenu` now closes on `resize`, as `MenuBar`, `ContextMenu` and `openList` already did, so a cap never outlives the window size it was made for.
- **Not changed.** Button-anchored popovers that are not menus opened at a point (`board/shell/popover.ts`, `scene/chrome/popover.ts`, `scene/timeline/pop.ts`, `jobs-popover.ts`, the Edit speed popover, `tool-menu.ts`, the prompt pickers) keep their own placement; `native-menu.ts` is untouched.
- Removed code, from `PopupMenu.openAt`, `ContextMenu` and `openList`:

```ts
placeFloating(this.panel, pointTarget(x, y), { side: 'bottom', align: 'start' });
```

```ts
this.panel = el('<div class="cv-menu fc-ls-ctx" role="menu" tabindex="-1" hidden></div>');
this.panel.scrollTop = 0;
placeFloating(this.panel, pointTarget(x, y), { side: 'bottom', align: 'start', pad: PAD, scale: zoomOf() });
```

```ts
const node = html<HTMLElement>('<div class="cv-menu fc-etl-menu" role="menu" tabindex="-1"></div>');
placeFloating(node, pointTarget(x, y), { side: 'bottom', align: 'start' });
```
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "formcraft-frontend",
"private": true,
"version": "0.11.1",
"version": "0.12.0",
"description": "formcraft frontend · the studio window",
"license": "Apache-2.0",
"type": "module",
Expand Down
Loading
Loading