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
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

Versions follow `v*.*.*` with dots. Dates are US Eastern.

## Unreleased
## 0.11.0 · 2026-11-30

Menus that fit the window, and an agent that asks you first.

- A menu from the menu bar always opens just under its name and never covers the menu bar. It is at most three quarters of the window tall; the rest scrolls. Before, a long menu in a short window (View at 1000 by 480, for example) opened at the window's top, over File, Edit, View and the rest of the bar. Edit > Preferences, the submenu, keeps under the bar and to the same height too.
- A menu that is cut off says so: its last rows fade out and a small pill with a down arrow sits at its bottom while there are rows below. Both go when you reach the last row and come back when you scroll up. With reduced motion turned on they appear and go without fading.
- An agent using `formnet mcp` now needs your yes in FormNET's own window, besides its app's approval, before it clears the recording, changes the HTTPS choice or the passthrough list, or exports a HAR. The dialog names the agent and what would change; Deny has the focus, closing the dialog denies, and an unanswered question is denied after two minutes. With no FormNET window open the agent is told to ask you to open one.
- `export_har` always takes secrets out. Its `include_secrets` option is gone, and a call that still sends it is refused.
- HAR exports take out more: besides the Authorization, Proxy-Authorization, Cookie and Set-Cookie values, the values of headers named like a token, key, secret, password or session, every cookie (each one listed in the cookies lists), query fields, the user names and passwords in URLs, and form and JSON body fields with such names now read `[redacted]`, in requests, responses, redirect addresses and error notes. The file's comment lists every header, cookie, query field and body field that was redacted, and each entry's comment names its own. Binary bodies and multipart form data are not inspected. "Export HAR with secrets..." still writes everything as captured.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := v0.10.3
VERSION := v0.11.0
LDFLAGS := -s -w -X github.com/nodemode-dev/formnet/internal/app.Version=$(VERSION)
GO_BUILD := CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)"
TARGETS := linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64
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.10.3" src="https://img.shields.io/badge/version-v0.10.3-eef0f4?style=flat-square">
<img alt="version v0.11.0" src="https://img.shields.io/badge/version-v0.11.0-eef0f4?style=flat-square">
<img alt="Go 1.26" src="https://img.shields.io/badge/Go-1.26-00ADD8?style=flat-square&logo=go&logoColor=white">
<img alt="TypeScript and Vite" src="https://img.shields.io/badge/TypeScript-Vite-3178c6?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 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 = "formnet-desktop"
version = "0.10.3"
version = "0.11.0"
description = "formnet desktop app"
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
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schema.tauri.app/config/2",
"productName": "FormNET",
"mainBinaryName": "formnet-desktop",
"version": "0.10.3",
"version": "0.11.0",
"identifier": "ai.nodemode.formnet",
"build": {
"frontendDist": "splash"
Expand Down
36 changes: 36 additions & 0 deletions web/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,39 @@ Two changes made while reviewing Milestone 9's window work, before its commit, r
## 2026-11-29 · The question before an agent acts

`ui/approval-dialog.ts`: FormNET's own question before `formnet mcp` clears the recording, changes the HTTPS choice or the passthrough list, or exports a HAR. It is the family's `Dialog`, built once (title "Allow this agent request?", 460 px), and patched for each question: a sentence that names who asks and what the action does, two label and value rows in a fixed grid (the value the action changes, then the filters for an export; the second row is hidden for the others), and a note that an unanswered request is denied after two minutes. Values are monospace, left to right, never translated, and scroll inside their row past 72 px, so a long passthrough list moves nothing. Deny has the focus and Allow is the danger button, as for every destructive confirm here, so Return alone never allows; closing the dialog (Escape, the scrim, the close button) denies. One question shows at a time, oldest first; `approval.asked` queues one, `approval.done` takes it away and closes it when it was answered elsewhere, ran out or was withdrawn, and each stream `hello` reads `GET /api/approvals` again so a window opened late still sees what waits. `api-approvals.ts` holds the calls and types. New strings are in every table; "Flows", "File", "Passthrough hosts" and "none" were already there. Styles in `styles/dialogs.css` under `.fn-approval-dlg`, tokens only.

## 2026-11-30 · Menu bar menus keep under the bar (FORM-MENU-OVERLAP-FIX 1.2.0, FormVis 2.8.3)

`ui/menu.ts`. `MenuBar.open` placed its menus with `PopupMenu.openAt`, the routine meant for a point: a menu taller than the room under the bar was flipped above `r.bottom + 4` and clamped to 4 px from the window top, over the bar, and the stylesheet's `calc(100vh - 8px)` cap was taller than the room under the bar. `openBeside` clamped submenus to the window top the same way. Removed:

```ts
b.menu.openAt(document.documentElement.dir === 'rtl' ? r.right : r.left, r.bottom + 4);
```

```ts
const w = this.panel.offsetWidth, h = this.panel.offsetHeight, pad = 4;
const y = Math.max(pad, Math.min(row.top - pad, window.innerHeight - h - pad));
```

Now `MenuBar.open` calls `openUnder(x, r.bottom + 4)`: no flip, the top stays at `y`, which becomes the menu's `floor`, and `max-height` is `menuCap(y)` (at most 75 percent of the window and never past its bottom less 4 px), set inline while the panel is `visibility: hidden`, before it is measured. Right to left `x` is still the button's right edge and the menu's left is `x` less its width, as before; it is kept 4 px inside the window. `openBeside` reads the floor of the top menu (`root().floor`), takes the same cap before measuring and never places a submenu above that floor. The menu bar already closes its menu on `resize`, so the cap follows the window. The `.cv-menu` rule in `styles/shell.css` keeps its `calc(100vh - 8px)`; the inline value is always smaller.

## 2026-11-30 · The more-below hint (FORM-MENU-OVERLAP-FIX 1.2.0, FormVis 2.8.4)

`ui/menu.ts`, `styles/shell.css`. A menu cut off by the cap now says so: its bottom rows fade into the menu's own glass and a 56 by 12 px pill with a down chevron sits 6 px above its bottom edge while rows remain below; both go at the last row (160 ms) and come back when it is scrolled up (490 ms), and with reduced motion they switch with no fade. Nothing shows at the top, and the pill takes no clicks. The menus are see-through glass, so a gradient over the rows would show as a band, and a mask on the scrolling card would fade its border and shadow: the card (`.cv-menu`, which keeps `max-height` and stops scrolling) now holds `.cv-menu-list`, which scrolls and carries the mask, and `.cv-menu-more`, the pill. Every place that used the card's rows or scroll uses the list: `replaceChildren` and the three `appendChild` calls in `setItems`, `items()`, `subTop` in `showSub`, and each `scrollTop = 0`; the scroll listener (closing a submenu when its row moves) is on the list and also runs `showMore()`. Removed:

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

`openUnder` and `openBeside` run `showMore(true)` while the panel is still hidden: the class is set under `no-fade`, a style read commits it, and `no-fade` comes off, so the first painted frame already has the hint and it never fades in. `--menu-more` is a registered `@property` so the mask animates; the transition that runs is the one of the state entered, so `has-more` carries 490 ms and the base rule 160 ms. `scroll-padding-block-end` keeps a row focused with the arrows out of the fade. Pill colours are the shell's `--glass-bg`, `--glass-border` and `--text-secondary`. Nothing outside `menu.ts` reads the card's children or `scrollTop` (searched `web/src` and `web/tests`); the menu bar's `.closest('.cv-menu')` checks still hold, since the rows stay inside the card.

## 2026-11-30 · Menus opened at a point keep under the bar (FORM-MENU-OVERLAP-FIX 1.2.0, section 3b)

`ui/menu.ts`, `PopupMenu.openAt`. It still clamped to 4 px from the window top, with only the stylesheet's `calc(100vh - 8px)` as a cap. Removed:

```ts
const top = Math.max(4, Math.min(fitsBelow ? y : y - h, window.innerHeight - h - 4));
```

Now `openAt` sets the menu's floor to `barFloor()` (the `.cv-menubar`'s bottom edge plus 4 px, or 4 px when the bar has no height, as under the macOS system menus), sets `max-height` to `menuCap(floor)` while hidden and before measuring, keeps the pointer-corner placement (below and right of the point, flipped above or left when there is no room, leftwards first right to left), never places the top above the floor, and runs `showMore(true)`. Its submenus take the floor and cap through `openBeside`. Searched `web/src` for `openAt(`, `contextmenu`, `ContextMenu`, `place(` and `popover`: since the menu bar moved to `openUnder`, FormNET has no caller of `openAt` today; the only `contextmenu` listeners are the menu's own (it blocks the browser's menu) and Preferences' theme grid (it toggles a favourite, no menu). `src/dock/` is FormVis's module and not edited. The Preferences dropdowns (`ui/dropdown.ts`, `.cv-dd-pop`, 60vh) open from a control, not a point, and are not menus in this sense; they are unchanged.
4 changes: 2 additions & 2 deletions web/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 web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "formnet-web",
"private": true,
"version": "0.10.3",
"version": "0.11.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
9 changes: 9 additions & 0 deletions web/src/styles/shell.css

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

Loading
Loading