Skip to content

feat: keep the Extensions and Help menus inside the window and show when rows remain below (0.14.0) - #20

Merged
nodemode-ai merged 2 commits into
mainfrom
fix/menu-under-bar-0.14.0
Nov 30, 2026
Merged

nodemode-ai merged 2 commits into
mainfrom
fix/menu-under-bar-0.14.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

feat: keep the Extensions and Help menus inside the window and show when rows remain below (0.14.0)

Summary

  • formskills has no in-window menu bar (group D of FORM-MENU-OVERLAP-FIX 1.2.0), so only section 3b applies. Its only menus opened at a point are the two header popovers, Extensions and Help; a search for contextmenu, ContextMenu, openAt, place( and popover found no right-click menu.
  • Cause: both popovers hang from their buttons by CSS (top: calc(100% + var(--sp-1))) and had no height cap, so a long Extensions menu (one row per extension command) could run past the bottom of a short window.
  • Fix: the floor is the popover's own top (anchor edge plus gap), which CSS already holds and nothing moves. A new frontend/src/popmenu.ts sets max-height: min(75% of the window, innerHeight - top - 4px) while the card is visibility: hidden, before it paints, and again on resize while open. What does not fit scrolls.
  • The more-below hint (3a): the rows move into a scrolling .ext-pop-list inside the card, which carries the mask, and .ext-pop-more is the pill, using the card's own --glass-solid and --edge-strong tokens. It is in place on the first frame (no-fade), goes at the last row in 160 ms and comes back in 490 ms, with no fade under reduced motion. Colours, glass, spacing and placement are unchanged.
  • The release also carries the fixes merged since 0.13.0 (licence texts under Help, autosave target, extension undo, install records, family list).

Commits

  • feat: keep the Extensions and Help menus inside the window and show when rows remain below
  • chore(release): formskills 0.14.0

Version

v0.14.0 (release commit is last). Bumped: Cargo.toml (workspace), Cargo.lock (formskills, formskills-cli, formskills-core), frontend/package.json, frontend/package-lock.json (two fields), src-tauri/tauri.conf.json, the README badge, SECURITY.md, .docs/wiki/Home.md, the headers of core, frontend and src-tauri HASHOUT_LOG.md, and CHANGELOG.md.

Checks

  • npm run build in frontend (tsc --noEmit, then vite build): clean.
  • menuprobe on the production build in headless Chrome, CPU slowed 4 times, both popovers, at 1280x800, 1000x480 and 1000x200. Both open at top 62.3 under their buttons (button bottom 58.3), and no frame while opening had a lower top. At 1280x800 and 1000x480: Extensions 94 tall, Help 154.9 tall, inside the window, no hint. At 1000x200: Help capped to 133 (bottom 195.3 of 200), cut off, hint on with the pill at opacity 1 on opening; scrolled to the end, the hint is off and the pill at 0.
  • DOM law: verified under throttling for the opening frames (the top never moved; the cap is set while hidden).

Not run: the app's Rust tests (cargo test --locked -p formskills-core -p formskills-cli) and the Python notices tests, which the change does not touch; a before measurement on origin/main; a long Extensions menu with real extension commands (the browser build lists none); the 1871x1080 and 800x320 sizes; the hint timings (80/380 ms out, 245/750 ms back in); End and Home (the popovers have no End or Home key handling); arrow-key checks against the fade; the Tauri desktop build. The three browser demos were not rebuilt: their build reads every family app's release tags, and FormVis and FormVFX were not available beside this checkout, so a rebuild here would have dropped their skills. The demo pages carry no Extensions or Help popover, so they are unaffected by the fix, but they still show 0.13.0. The owner should run cd frontend && npm run build:demo, then from demos/install and demos/author node ../../frontend/node_modules/vite/bin/vite.js build --config ./vite.config.mjs, with the family repositories beside this one or FORM_FAMILY_DIR set, and commit the result.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

…hen rows remain below

Both header popovers hang from their buttons and had no height cap, so a long Extensions menu ran past the window's bottom. Each now takes a max-height of three quarters of the window, never past the bottom edge, set before it paints, and scrolls the rest. A menu cut off by the cap shows a fade and a small down pill at its bottom while rows remain; both go at the last row. The rows move into a scrolling list inside the card, so the fade does not touch the glass. FORM-MENU-OVERLAP-FIX 1.2.0, section 3b.
Version sites, the same as the 0.13.0 release: Cargo.toml (workspace),
Cargo.lock (formskills, formskills-cli, formskills-core),
frontend/package.json, frontend/package-lock.json (two fields),
src-tauri/tauri.conf.json, the README badge, SECURITY.md, .docs/wiki/Home.md,
the headers of core, frontend and src-tauri HASHOUT_LOG.md, and
CHANGELOG.md, which also takes the fixes merged since 0.13.0.

The three browser demos are not rebuilt in this commit: their build reads
every family app's release tags, and FormVis and FormVFX were not
available beside this checkout. Rebuild them with npm run build:demo and
the two vite commands of demos/install and demos/author.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 23:25
@nodemode-ai
nodemode-ai merged commit 6d98d66 into main Nov 30, 2026
4 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.14.0 branch November 30, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant