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
4 changes: 2 additions & 2 deletions .docs/wiki/Shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Every action lives once in `frontend/src/app/commands.ts` with its label, icon a

## Menubar

File, Edit, View, Insert, Images, Organize, Window and Help sit in the top bar on Windows and Linux and in the macOS menu bar on a Mac (View, Menus in Window moves them into the window there). The tree is a list of command ids in `frontend/src/app/menus.ts`; labels, keys and enabled states come from the command table. F10 opens the first menu, Alt with a menu's first letter opens that menu unless the combination is a shortcut, and a menu taller than the window scrolls. In a narrow window the menubar scrolls sideways.
File, Edit, View, Insert, Images, Organize, Window and Help sit in the top bar on Windows and Linux and in the macOS menu bar on a Mac (View, Menus in Window moves them into the window there). The tree is a list of command ids in `frontend/src/app/menus.ts`; labels, keys and enabled states come from the command table. F10 opens the first menu, Alt with a menu's first letter opens that menu unless the combination is a shortcut. A menu opens just under its name and never covers the menubar; it is at most three quarters of the window tall and the rest scrolls, with a fade and a small down arrow at its bottom while rows remain below. Submenus keep under the menubar too. In a narrow window the menubar scrolls sideways.

## Home

Expand All @@ -20,7 +20,7 @@ Preferences (Ctrl+,) is one window: a rail of categories on the left (General, C

## Right-click menu

Right-click the canvas or a selection for iStack's menu in iStack's order: File, Edit, Canvas, Organize, Images, Layer, Lock, Add Note, Draw Mode, Slideshow, Delete, then FormRef's Insert and Ask Agent. Menus open in the overlay layer and close on Escape or an outside click.
Right-click the canvas or a selection for iStack's menu in iStack's order: File, Edit, Canvas, Organize, Images, Layer, Lock, Add Note, Draw Mode, Slideshow, Delete, then FormRef's Insert and Ask Agent. Menus open in the overlay layer at the pointer and close on Escape or an outside click. They never go above the menubar's bottom edge, take the same three-quarter height limit as the menubar's menus, and show the same more-below hint.

## Board tabs

Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# FormRef changelog

## v0.47.0 · 2026-11-30

Menus never cover the menu bar, and a long menu shows that it has more rows below.

- A menu from the menu bar opens just under its name and stays there. Before, a long menu such as Edit or View in a short window was moved up over the menu bar. It is now at most three quarters of the window tall, and the rest scrolls.
- Submenus open beside their row as before, but never above the menu bar, with the same height limit.
- Right-click menus, and the menus of the tag cloud, the rating button and saved searches, still open where you click, but no longer go over the menu bar and take the same height limit. Before, a long one opened low in a short window was pushed up over the bar.
- A menu with more rows than fit fades out at its bottom and shows a small down arrow there until you reach the last row. A menu that fits looks as before. With reduced motion turned on, it shows and hides without fading.

## v0.46.2 · 2026-11-29

Google Drive sign-in finishes, Codex and Cursor work from the Agent panel in the installed app and on Windows, and one data folder is served by one FormRef at a time.
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 0.46.2" src="https://img.shields.io/badge/version-v0.46.2-eef0f4?style=flat-square">
<img alt="version 0.47.0" src="https://img.shields.io/badge/version-v0.47.0-eef0f4?style=flat-square">
<img alt="Rust engine" src="https://img.shields.io/badge/Rust%20engine-b7410e?style=flat-square&logo=rust&logoColor=white">
<img alt="TypeScript and FastAPI" src="https://img.shields.io/badge/TypeScript%20%2B%20FastAPI-3178c6?style=flat-square&logo=typescript&logoColor=white">
<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/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

ROOT = Path(getattr(sys, "_MEIPASS", "")).resolve() if getattr(sys, "frozen", False) else Path(__file__).resolve().parents[3]
VERSION = "0.46.2"
VERSION = "0.47.0"
NOTICES_NAME = "THIRD-PARTY-NOTICES.txt"


Expand Down
2 changes: 1 addition & 1 deletion clipper/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "FormRef Clipper",
"version": "0.46.2",
"version": "0.47.0",
"description": "Save images, selected text, links and pages to the FormRef board running on your computer.",
"author": "nodemode-ai",
"icons": { "16": "icons/icon-16.png", "32": "icons/icon-32.png", "48": "icons/icon-48.png", "128": "icons/icon-128.png" },
Expand Down
66 changes: 66 additions & 0 deletions frontend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
- [Stacking scale](#stacking-scale)
- [Verification](#verification)
- [Scripts](#scripts)
- [v0.47.0 · Right-click menus keep under the bar](#v0470--right-click-menus-keep-under-the-bar)
- [v0.47.0 · The more-below hint](#v0470--the-more-below-hint)
- [v0.47.0 · Bar menus stay under the bar](#v0470--bar-menus-stay-under-the-bar)
- [Unreleased · Settings > About shows the third-party licence texts](#unreleased--settings--about-shows-the-third-party-licence-texts)
- [Unreleased · The page holds the window key](#unreleased--the-page-holds-the-window-key)
- [Unreleased · A reload tries the kept key first](#unreleased--a-reload-tries-the-kept-key-first)
Expand Down Expand Up @@ -76,6 +79,69 @@
- [v0.4.7 synced notes, map cards, inline edit commit](#v047-synced-notes-map-cards-inline-edit-commit)
- [v0.4.6 GIF frames and document export](#v046-gif-frames-and-document-export)

## v0.47.0 · Right-click menus keep under the bar

- refers-to: `src/ui/context-menu.ts` :: MORE, ContextMenu.floor, show, layer, place, showMore; `src/ui/menu.ts` :: barFloor, PopupMenu.openAt; `src/styles/shell.css` :: `.ctx-menu`, `.ctx-list`, `.ctx-more`

FORM-MENU-OVERLAP-FIX 1.2.0, rule 5 and section 3b. `ContextMenu` is FormRef's own right-click renderer, apart from the bar's `PopupMenu`; every menu opened at a point goes through `show`: the board, item and connection menus (`app/gestures.ts`), tag chips and the tag cloud's More (`app/tag-cloud.ts`), the rating button (`app/rating.ts`) and saved searches (`app/saved-search.ts`). Its `place` clamped the top to `MARGIN` (8 px) from the window top, with only the stylesheet's `calc(100vh - var(--space-4))` as a cap, so a long menu opened low in a short window was pushed up over the bar.

`show` takes the floor once per opening: the bottom of `.menubar` plus 4, or `MARGIN` when the bar does not show (the macOS system menu hides it with `display: none`, which `barFloor` reads as height 0). `place` sets `max-height: menuCap(floor)` on the still hidden layer before measuring, keeps the old pointer-corner placement (left of the point when the right has no room, submenus to the left of their row, shifted up when the bottom has no room) and only raises the top clamp from `MARGIN` to the floor. Submenus use the same floor and cap. Each layer is now a card holding `.ctx-list` and the `.ctx-more` pill, with the same CSS and timings as the bar menus and `showMore(layer, true)` before it is revealed. `ContextMenu` closes on resize, so the cap follows the window. The unused `PopupMenu.openAt` gets the same floor, cap and hint, so no point-anchored path is left with the old clamp. `tag-suggest` is a suggestion list under a text field, not a menu at a point, and is unchanged. Removed:

```ts
for (const entry of entries) layer.append(this.row(entry, depth));
layer.addEventListener('scroll', () => this.trim(depth + 1), { passive: true });
```

```ts
layer.style.top = `${Math.max(MARGIN, top)}px`;
```

```ts
this.panel.style.maxHeight = `${Math.max(120, window.innerHeight - y - 4)}px`;
const top = Math.max(4, Math.min(fitsBelow ? y : y - h, window.innerHeight - h - 4));
```

```css
.ctx-menu { overflow-y: auto; overscroll-behavior: contain; }
```

## v0.47.0 · The more-below hint

- refers-to: `src/ui/menu.ts` :: PopupMenu.list, the constructor, setItems, items, showSub, openAt, openUnder, openBeside, showMore; `src/styles/shell.css` :: `.menu`, `--menu-more`, `.menu-list`, `.menu-more`, `.has-more`, `.no-fade`

FORM-MENU-OVERLAP-FIX 1.2.0, rule 8 and section 3a. A bar menu or submenu cut off by the cap shows a fade over its last rows and a 56 by 12 px pill with a thin down chevron, 6 px above its bottom edge, while rows remain below. The panel is now a card that does not scroll, holding `.menu-list`, which does, and the pill. The fade is a `mask-image` on the list, so the rows fade into the card's own `--bg-node` and the border and shadow are untouched; a gradient painted over the rows, or a mask on the card, would show as a band or fade the card. The pill takes `--glass-bg`, `--glass-border` and `--text-secondary` and cannot be clicked.

`--menu-more` is a registered `@property` so the mask can animate: out over 160 ms at the last row (the base rule), back in over 490 ms (`.has-more`), since the transition of the state entered is the one that runs. `showMore(true)` runs while the panel is still `visibility: hidden`, with `no-fade` on for one forced style read, so a menu opens with the hint already in place and never fades it in. `scroll-padding-block-end` keeps a row focused with the arrow keys out of the fade. Reduced motion shows and hides it with no fade. Rows, separators and submenu rows go into the list; `items()`, `subTop` and every `scrollTop = 0` read the list. Nothing outside `menu.ts` reads the panel's children or `scrollTop`. Removed from the constructor and from `.menu`:

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

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

## v0.47.0 · Bar menus stay under the bar

- refers-to: `src/ui/menu.ts` :: MENU_SHARE, MENU_PAD, menuCap, PopupMenu.floor, PopupMenu.openUnder, PopupMenu.openBeside, MenuBar.open

FORM-MENU-OVERLAP-FIX 1.2.0, rules 1 to 4. `MenuBar.open` placed its menus with `openAt`, the right-click routine. Its cap was the room under the point with a 120 px minimum, and when the menu still did not fit it was flipped above the point and clamped to 4 px from the window top, so in a short window a long menu (Edit, View) covered the bar. Submenus clamped their top to 4 px from the window top too, and had no cap of their own beyond the stylesheet's `calc(100vh - 8px)`.

`openUnder` is the bar's routine now: the top is the button's bottom edge plus 4 and nothing moves it up; `max-height` is `menuCap(y)`, the smaller of three quarters of the window and the room down to 4 px from the bottom, set while the panel is `visibility: hidden` and before it is measured, so it never paints at another size. The menu keeps that top as its `floor`. `openBeside` reads the floor of the root menu, takes the same cap before measuring and never places a submenu above the floor; it still opens beside its row. The window closes an open menu on resize, which is how the cap follows the window height. Removed from `MenuBar.open` and `openBeside`:

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

```ts
this.panel.scrollTop = 0;
const w = this.panel.offsetWidth, h = this.panel.offsetHeight, pad = 4;
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));
```

## Unreleased · Settings > About shows the third-party licence texts

- refers-to: `src/ui/notices.ts` (new) :: registerNotices; `src/main.ts`; `index.html` :: #third-party-notices; `src/styles/prefs.css` :: .prefs-notices, .prefs-notices-text; `src/lib/i18n/tables/*.json`
Expand Down
4 changes: 2 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<div class="sidebar-bottom">
<div class="local-indicator"><span class="status-dot"></span><span id="connection-state">Engine connecting</span></div>
<button class="sidebar-row" data-action="help"><span data-icon="keyboard"></span><span>Keyboard shortcuts</span><span class="key">?</span></button>
<div class="sidebar-foot">FORM FAMILY<span>v0.46.2</span></div>
<div class="sidebar-foot">FORM FAMILY<span>v0.47.0</span></div>
</div>
</div>
</aside>
Expand Down Expand Up @@ -715,7 +715,7 @@ <h3 class="prefs-label">NODEMODE HOST</h3>
<div class="prefs-secbody">
<section class="prefs-group">
<h3 class="prefs-label">ABOUT</h3>
<p class="field-description" data-no-i18n translate="no">FormRef <span>v0.46.2</span></p>
<p class="field-description" data-no-i18n translate="no">FormRef <span>v0.47.0</span></p>
<p class="field-description" data-no-i18n translate="no">by nodemode.ai</p>
<p class="field-description">Apache License 2.0. Third-party notices are in NOTICE.md.</p>
<details id="third-party-notices" class="prefs-notices"><summary>Third-party licence texts</summary><pre class="prefs-notices-text" tabindex="0" data-no-i18n translate="no"></pre></details>
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,6 +1,6 @@
{
"name": "formref-frontend",
"version": "0.46.2",
"version": "0.47.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
13 changes: 11 additions & 2 deletions frontend/src/styles/shell.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.menu-btn { height: 28px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius); background: transparent; color: var(--text-secondary); font-size: 12px; white-space: nowrap; cursor: default; }
.menu-btn:hover, .menu-btn.is-open, .menu-btn:focus-visible { background: var(--bg-hover); color: var(--text-primary); }
.is-menu-mnemonics .menu-btn::first-letter { text-decoration: underline; }
.menu { position: fixed; z-index: var(--z-dropdown); min-width: 232px; max-width: 360px; max-height: calc(100vh - 8px); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-1); background: var(--bg-node); border: 1px solid var(--glass-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); color: var(--text-primary); font-size: 12px; }
.menu { position: fixed; z-index: var(--z-dropdown); min-width: 232px; max-width: 360px; max-height: calc(100vh - 8px); overflow: hidden; padding: var(--space-1); background: var(--bg-node); border: 1px solid var(--glass-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); color: var(--text-primary); font-size: 12px; }
.menu-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-2); width: 100%; height: 28px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.menu-item:hover:not(:disabled), .menu-item:focus:not(:disabled), .menu-sub.is-open:not(:disabled) { background: var(--accent-soft); color: var(--text-primary); outline: none; }
.menu-item:disabled { color: var(--text-muted); opacity: .55; }
Expand All @@ -62,6 +62,15 @@
.menu-keys { display: inline-flex; align-items: center; padding-left: var(--space-4); color: var(--text-muted); font-size: 10px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.menu-sub .menu-keys svg { width: 12px; height: 12px; }
.menu-sep { height: 1px; margin: var(--space-1) var(--space-2); background: var(--border-color); }
@property --menu-more { syntax: '<number>'; inherits: false; initial-value: 0; }
.menu:not([hidden]) { display: flex; flex-direction: column; }
.menu-list, .ctx-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; --menu-more: 0; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - min(88px, 40%)), rgb(0 0 0 / calc(1 - var(--menu-more))) calc(100% - min(22px, 10%))); mask-image: linear-gradient(to bottom, #000 calc(100% - min(88px, 40%)), rgb(0 0 0 / calc(1 - var(--menu-more))) calc(100% - min(22px, 10%))); transition: --menu-more 160ms ease-out; }
.menu-more, .ctx-more { position: absolute; left: 50%; bottom: 6px; width: 56px; height: 12px; margin-left: -28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass-bg); color: var(--text-secondary); pointer-events: none; opacity: 0; transition: opacity 160ms ease-out; }
.menu-more svg, .ctx-more svg { width: 12px; height: 8px; }
.menu.has-more > .menu-list, .ctx-menu.has-more > .ctx-list { --menu-more: 1; scroll-padding-block-end: min(88px, 40%); transition-duration: 490ms; }
.menu.has-more > .menu-more, .ctx-menu.has-more > .ctx-more { opacity: 1; transition-duration: 490ms; }
.menu.no-fade > .menu-list, .menu.no-fade > .menu-more, .ctx-menu.no-fade > .ctx-list, .ctx-menu.no-fade > .ctx-more { transition: none; }
@media (prefers-reduced-motion: reduce) { .menu-list, .menu-more, .ctx-list, .ctx-more { transition: none; } }

.dock { position: relative; overflow: hidden; }
.workspace > .editor { grid-column: 2; }
Expand All @@ -88,7 +97,7 @@
:root:not([data-right-panel="agent"]) [data-panel="agent"],
:root[data-right-panel="agent"] [data-panel="inspector"] { display: none; }

.ctx-menu { position: fixed; z-index: var(--z-dropdown); min-width: 236px; max-width: 320px; max-height: calc(100vh - var(--space-4)); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-1); background: var(--bg-node); border: 1px solid var(--glass-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); color: var(--text-primary); font-size: 12px; }
.ctx-menu { position: fixed; z-index: var(--z-dropdown); min-width: 236px; max-width: 320px; max-height: calc(100vh - var(--space-4)); display: flex; flex-direction: column; overflow: hidden; padding: var(--space-1); background: var(--bg-node); border: 1px solid var(--glass-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); color: var(--text-primary); font-size: 12px; }
.ctx-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); width: 100%; height: 28px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.ctx-item:hover:not(:disabled), .ctx-item:focus-visible { background: var(--accent-soft); color: var(--text-primary); outline: none; }
.ctx-item:disabled { color: var(--text-muted); opacity: .55; }
Expand Down
Loading
Loading