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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Versions follow `v*.*.*` with dots. Dates are UTC. From 1.50.1 the last number r

The app was renamed formvis at 1.50.5; its projects were `.fmv` until 1.87.0 and are `.fvd` since. The entries below read with the new name throughout; the git history keeps the former one.

## 2.8.3 · 2026-11-29

The menus of the menu bar no longer cover the menu bar.

- On Linux, Windows and in the browser, a menu longer than the room under the menu bar (File and View in a 1080-pixel window) was moved up until it fit, and covered the menu bar. Every menu of the bar now opens just under it and is at most three quarters of the window tall; a longer menu scrolls, and the arrow keys, Home and End scroll it to the row they reach.
- Submenus of the menu bar's menus stay under the bar too, with the same height.
- Right-click menus and the other menus that open at the pointer are placed as before.
- The three browser demos are built again at this version.

## 2.8.2 · 2026-11-26

On Linux, the rpm now carries the launcher and the library check that the deb has.
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 2.8.2" src="https://img.shields.io/badge/version-2.8.2-eef0f4?style=flat-square">
<img alt="version 2.8.3" src="https://img.shields.io/badge/version-2.8.3-eef0f4?style=flat-square">
<img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-Vite-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python" src="https://img.shields.io/badge/Python-FastAPI-3776ab?style=flat-square">
<img alt="macOS, Windows, 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/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
except ImportError:
pass

__version__ = "2.8.2"
__version__ = "2.8.3"
232 changes: 116 additions & 116 deletions demo/assets/demo.js

Large diffs are not rendered by default.

422 changes: 211 additions & 211 deletions demos/design/assets/design.js

Large diffs are not rendered by default.

232 changes: 116 additions & 116 deletions demos/retouch/assets/retouch.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions frontend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Living log for the frontend side, _v0.1.0. Read the map and the TOC first; entries are anchored by file and symbol, and removed code is quoted in full.

## The menu bar's menus open under the bar and are at most three quarters of the window tall · _v2.8.3 (ui/menu.ts MENU_SHARE, MENU_PAD, menuCap, PopupMenu.floor, PopupMenu.openUnder, PopupMenu.openBeside, MenuBar.open)

- Kind: fix · logged 2026-11-28 · a person on Linux reported that menus taller than the screen cover the File menu bar (File and View in a 1080-pixel window).
- Cause: `MenuBar.open` placed a bar menu with `openAt`, the context menus' placement. When a menu did not fit below its point, `openAt` put it above the point and then clamped it into the window, so a menu taller than the room under the bar ended at `top: 4px` and covered the bar. Measured before the fix in a 1871 by 1080 window: File and View at top 4, 1072 tall, over a bar whose bottom edge is at 34.
- Removed from `MenuBar.open`, quoted: `b.menu.openAt(r.left, r.bottom + 4);`. Now `b.menu.openUnder(r.left, r.bottom + 4)`.
- `openUnder(x, y)` keeps `y` as the menu's `floor`, sets an inline `max-height` of `menuCap(y)` (three quarters of `window.innerHeight`, and never past the window's bottom edge less 4 pixels) before the menu is measured, puts its top on `y` and only clamps it sideways. What does not fit scrolls (`.cv-menu` already has `overflow-y: auto`). The height is worked out from the window's height each time a menu opens; `MenuBar` already closes its menu on a window resize.
- `openBeside` (submenus) reads the floor of the menu it hangs from (`root().floor`): under a bar menu a submenu takes the same cap and its top is never above the floor. With no floor (the context, layer, tab, guide and task bar menus, which open with `openAt`) its placement is as before, with the inline `max-height` cleared so the stylesheet's `calc(100vh - 8px)` applies.
- Removed from `openBeside`, quoted: `this.panel.scrollTop = 0;` then `const w = this.panel.offsetWidth, h = this.panel.offsetHeight, pad = 4;` and `const y = Math.max(pad, Math.min(row.top - pad, window.innerHeight - h - pad));`. The same lines now follow the `max-height`, and the top's lower bound is `floor ?? pad`.
- The in-window menu bar is the one on Linux, Windows, the browser builds and the three browser demos, and on macOS with View > Menus in Window, so the fix covers each of them. The macOS menu bar (`native-menu.ts`) is the system's and is unchanged.
- Seen: `tsc --noEmit` clean. A production build in headless Chromium, with the CPU slowed 4 times and the network slowed, at 1871 by 1080, 1280 by 720, 1000 by 480 and 800 by 320: every menu of the bar and its last submenu has its top at or under the bar's bottom edge in every frame drawn while it opened, is at most three quarters of the window tall and ends inside the window. At 1871 by 1080 File and View are now at top 38, 810 tall, and scroll. F10 then End at 1280 by 600 scrolls File to its last row, Exit, inside the menu. Not seen in the Tauri window on Linux or Windows.

## Home's Demos row in a browser demo page reads the page's data packs · after 2.7.0, unreleased (demos/media.ts PackSource, packSource, shippedMedia; demos/index.ts demoCoverSrc; ui/home.ts covers; package.json "demos")

- Kind: fix · logged 2026-11-20 · WAVE10 item 1. The three browser demos run this window from `file://`, where `fetch` and a canvas read of a plain file are refused, and their builds copy nothing from `public/`, so the three covers (`demos/<id>/<cover>`) failed to load and a card would have failed on `media.json`.
Expand Down
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": "formvis",
"private": true,
"version": "2.8.2",
"version": "2.8.3",
"description": "formvis · layered image editor in the NodeMode style",
"license": "Apache-2.0",
"type": "module",
Expand Down
34 changes: 30 additions & 4 deletions frontend/src/ui/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export type MenuItem = string | '-' | SubMenu;
export interface SubMenu { label: string; items: MenuItem[] }
const isSub = (i: MenuItem): i is SubMenu => typeof i === 'object';

/** How tall a menubar menu, or a submenu of one, may be when its top is at `top`: three quarters of the window at most,
* and never past the window's bottom edge. */
const MENU_SHARE = 0.75, MENU_PAD = 4;
const menuCap = (top: number): number => Math.max(0, Math.min(Math.floor(window.innerHeight * MENU_SHARE), Math.floor(window.innerHeight - top - MENU_PAD)));

/** Edit > Menus: command ids left out of the menu bar's menus, and the colour name each item is drawn in. */
let hiddenIds = new Set<string>();
let itemColors: Record<string, string> = {};
Expand Down Expand Up @@ -37,6 +42,8 @@ export class PopupMenu {
private key = '';
private openSub: PopupMenu | null = null;
private subTop = 0;
/** Set on a menubar menu: the line it opens on, just under the bar. Neither it nor its submenus go above it. */
private floor: number | null = null;
onClose: (() => void) | null = null;

constructor(private readonly commands: Commands, private readonly parent: PopupMenu | null = null, standalone = false) {
Expand Down Expand Up @@ -151,16 +158,35 @@ export class PopupMenu {
this.panel.style.visibility = '';
}

/** A submenu beside its row: to the right, or to the left when the right has no room. */
/** A menubar menu: at `x`, its top on `y` just under the bar, and never moved up over the bar however long it is. It is
* at most three quarters of the window tall and stops above the window's bottom edge; the rest scrolls. */
openUnder(x: number, y: number): void {
this.floor = y;
this.refresh();
this.panel.style.visibility = 'hidden';
this.panel.hidden = false;
this.panel.style.maxHeight = `${menuCap(y)}px`;
this.panel.scrollTop = 0;
const w = this.panel.offsetWidth;
const left = Math.max(MENU_PAD, Math.min(x, window.innerWidth - w - MENU_PAD));
this.panel.style.left = `${Math.round(left)}px`;
this.panel.style.top = `${Math.round(y)}px`;
this.panel.style.visibility = '';
}

/** A submenu beside its row: to the right, or to the left when the right has no room. Under a menubar menu it keeps
* below the bar and to the same height cap. */
private openBeside(row: DOMRect): void {
this.refresh();
this.panel.style.visibility = 'hidden';
this.panel.hidden = false;
const floor = this.root().floor, pad = MENU_PAD;
this.panel.style.maxHeight = floor === null ? '' : `${menuCap(floor)}px`;
this.panel.scrollTop = 0;
const w = this.panel.offsetWidth, h = this.panel.offsetHeight, pad = 4;
const w = this.panel.offsetWidth, h = this.panel.offsetHeight;
const right = row.right - 2, left = row.left - w + 2;
const x = right + w <= window.innerWidth - pad ? right : Math.max(pad, left);
const y = Math.max(pad, Math.min(row.top - pad, window.innerHeight - h - pad));
const y = Math.max(floor ?? pad, Math.min(row.top - pad, window.innerHeight - h - pad));
this.panel.style.left = `${Math.round(x)}px`;
this.panel.style.top = `${Math.round(y)}px`;
this.panel.style.visibility = '';
Expand Down Expand Up @@ -335,7 +361,7 @@ export class MenuBar {
this.openIndex = i;
setClass(b.btn, 'is-open', true);
const r = b.btn.getBoundingClientRect();
b.menu.openAt(r.left, r.bottom + 4);
b.menu.openUnder(r.left, r.bottom + 4);
if (keyboard) b.menu.items()[0]?.focus();
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '2.8.2';
export const VERSION = '2.8.3';
1 change: 1 addition & 0 deletions packaging/linux/ai.nodemode.formvis.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</provides>
<content_rating type="oars-1.1"/>
<releases>
<release version="2.8.3" date="2026-11-29"/>
<release version="2.8.2" date="2026-11-26"/>
<release version="2.8.1" date="2026-11-20"/>
<release version="2.8.0" date="2026-11-20"/>
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "formvis"
version = "2.8.2"
version = "2.8.3"
description = "formvis desktop shell"
authors = ["NodeAgentc, Inc."]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "FormVis",
"version": "2.8.2",
"version": "2.8.3",
"identifier": "ai.nodemode.formvis",
"build": {
"frontendDist": "../frontend/dist"
Expand Down
Loading