53 Commits

Author SHA1 Message Date
Claude
06071c691e fix(editor): JsonTree renders scalar roots so bare-value items are visible
renderChildren only handles objects and arrays — a scalar root (string,
number, bool) fell through to `return null`, rendering an empty <ul>. So
a Python node returning `output = "hello"` (single string item) showed
as empty in the Output column.

At depth 0, dispatch scalar roots to a single labelless leaf with the
same quoting/coloring as nested leaves.
2026-08-31 11:32:02 +00:00
Claude
e4e55ea01a fix(editor): strip {json, binary} wrapper on Load-from-execution pin
The pin loader was storing port items verbatim in the on-wire shape
[{json: ..., binary: null}]. The executor's WrapPin treats each pin-array
element as one item's whole payload, so the wrapper leaked in: scripts saw
items[0] == {"json": ..., "binary": null} and items[0]["test"] raised
KeyError instead of returning the value.

Now the loader unwraps each item to its .json payload before storing.
Updated the existing test assertion and added a multi-item regression.
2026-08-31 11:02:34 +00:00
Claude
3fa541a032 fix(python): surface Python tracebacks in node error + dialog Output
Backend: PythonTransformNode wraps script execution in a try/catch that
runs the exception through IronPython's ExceptionOperations.FormatException.
Users now see a proper Python-style traceback (file, line, type, message)
instead of the bare CLR message (which was often empty or just "unexpected
token"). Source is named "script" for readable File lines in the trace.

Frontend: findLatestIo also returns status + error; NodeEditorDialog
renders a red-bordered traceback block in the Output column when the
node failed, replacing the misleading "No data yet" state.
2026-08-31 10:47:34 +00:00
Claude
9c164282a1 fix(editor): auto-save before Run so in-memory edits actually execute
The Run button in NodeEditorDialog and the Test-run button in the editor
toolbar both POST /api/workflows/{id}/executions, which reads the graph
from the DB. Any un-saved edit (Python script tweak, config change, a
freshly-dragged node) was silently ignored.

Both entry points now await the workflow save before starting the
execution. New Vitest pins the save-then-post ordering in the dialog.
2026-08-31 08:49:09 +00:00
Claude
dc32b6def9 fix(editor): move bg color from textarea to overlay so highlighted text is visible
The textarea sits above the highlight overlay in paint order (same stacking
context, later in DOM). With bg-slate-950 on the textarea, its opaque
background painted over the overlay's light text — every code field (Python
Transform's script, any format:"code" or expression field) rendered as an
apparently-empty black box.

Swap: bg-slate-950 moves onto the overlay; the textarea becomes bg-transparent
and keeps its border, caret, and selection styling.
2026-08-30 19:47:30 +00:00
Claude
6a820bb7fa test(e2e): smoke covers pinned_output persistence + pin icon 2026-08-30 14:48:20 +00:00
Claude
afba598821 feat(editor): pin icon on canvas nodes with pinned data 2026-08-30 14:45:29 +00:00
Claude
f7c038e43e feat(editor): NodeEditorDialog exposes PinnedDataSection per node category 2026-08-30 14:39:20 +00:00
Claude
432782aeb1 refactor(editor): PinnedDataSection — useId select, side-aware placeholder, exhaustive-deps docs 2026-08-30 14:37:19 +00:00
Claude
3842eca8cd feat(editor): PinnedDataSection — JSON editor + load-from-execution dropdown 2026-08-30 14:32:32 +00:00
Claude
a8d2cbdab0 feat(editor): round-trip pinned_input and pinned_output through graphAdapter 2026-08-30 14:25:48 +00:00
Claude
80ac663989 test(e2e): smoke covers double-click dialog and label persistence 2026-08-30 11:49:42 +00:00
Claude
045cdb7b7e feat(editor): double-click opens node editor dialog; remove side panel 2026-08-30 11:46:42 +00:00
Claude
abc71e481e fix(editor): NodeEditorDialog — correct bracket-form path wrapping + focus trap on open 2026-08-30 11:43:51 +00:00
Claude
2649e09da9 feat(editor): NodeEditorDialog — three-column N8N-style modal
Left column shows the port-0 inputs as a clickable JsonTree that inserts
{input.<path>} at the last-focused parameter caret; middle column carries
the node label, optional connection dropdown, SchemaForm, WebhookUrlHint
(for http.webhook), Run/Delete/Done buttons; right column shows the
port-0 outputs read-only. ESC and backdrop-click both call onClose;
changes flow through onPatch so the parent still owns the toolbar Save.

Adds a `server` alias export to src/testing/msw so the dialog test file
can import the shared MSW server under the shorter name used by newer
tests without breaking the existing `mswServer` import sites.
2026-08-30 11:36:37 +00:00
Claude
1153e56cc5 feat(editor): findLatestIo helper for pulling a node's row out of an ExecutionDetail 2026-08-30 11:30:05 +00:00
Claude
abf6332855 fix(forms): keep native password input for format:password; drop dead forwardRef 2026-08-30 11:28:39 +00:00
Claude
df5a34ba33 feat(forms): SchemaForm renders every leaf as ExpressionField 2026-08-30 11:23:21 +00:00
Claude
6b0a25b0b0 fix(expr): ExpressionField — direct-DOM scroll sync + align overlay border-box with textarea 2026-08-30 11:21:03 +00:00
Claude
c502bdef03 feat(expr): ExpressionField with token highlight overlay and live preview 2026-08-30 11:16:57 +00:00
Claude
38aa05bc96 refactor(expr): JsonTree — un-pickable trees still expand + drop dead clickable var 2026-08-30 11:13:39 +00:00
Claude
6fd517c630 fix(expr): restore visual quotes around string leaves in JsonTree 2026-08-30 11:10:33 +00:00
Claude
0afeed8ee7 feat(expr): JsonTree with click-to-emit-path leaves 2026-08-30 11:08:52 +00:00
Claude
a131dbf198 fix(editor): restore build after toGraph signature change + client/backend numeric parity 2026-08-30 11:06:09 +00:00
Claude
b1dae49171 feat(editor): coerce literal number/boolean strings to typed JSON on save 2026-08-30 11:01:26 +00:00
Claude
72e31e8ea5 fix(expr): own-property-only lookup and Int32-bound array index in TemplateEngine port 2026-08-30 10:49:14 +00:00
Claude
3fde792c53 feat(expr): client-side TemplateEngine port with parity tests 2026-08-30 10:44:28 +00:00
Claude
c187300aa4 feat(editor): visible selection border on the selected node
Selected nodes get an indigo border + soft ring so the current
selection is obvious in the canvas.
2026-08-30 09:54:50 +00:00
Claude
bc682d8c9f feat(webhook): GET support — query string → JSON body, HEAD safe no-op
POST behaviour unchanged (JSON body). GET on the same URL now triggers the
workflow with the query string collapsed into a JSON object: /wh/wf/hi?a=1&name=x
becomes {"a":"1","name":"x"}, and repeated keys collapse into a string
array (?tag=a&tag=b → {"tag":["a","b"]}). No query string yields {} —
matches the empty-POST-body semantics.

HEAD returns 200 empty so Slack/Discord link previews don't fire the workflow
AND don't flag the URL as broken. Other verbs (PUT/PATCH/DELETE/OPTIONS) still
return 405 JSON with Allow: POST, GET.

Frontend WebhookUrlHint now advertises both verbs and drops the POST prefix
from the displayed URL so the raw URL is copy-and-clickable.

6 new xUnit tests cover: GET-unknown-404, GET-with-query, GET-repeated-keys,
GET-empty-query, HEAD-200, PUT-still-405 (updated Allow header).
2026-08-29 07:51:27 +00:00
Claude
a06e9e0e84 feat(connections): Test button — opens the provider round-trip and reports back
Backend: POST /api/connections/{id}/test decrypts the stored config, calls
provider.OpenAsync with a 10s CancellationTokenSource, closes the returned
handle in a finally, and returns {ok: bool, error?: string}. Always 200
unless the id is unknown (404) — the outcome of the round-trip belongs in
the body, not the status. 2 new xUnit tests cover the 404 path and the
"connection refused" failure path (points at 127.0.0.1:1).

Frontend: Plug icon on each ConnectionsPage row. Click → animated icon
during the round-trip, then an inline pill: 'Connected' (green check) on
success or the truncated error (red X, full text on hover) on failure.
Auto-clears after 6s. Row state is tracked per-id in a plain useState;
the shared react-query cache stays untouched. 1 new Vitest covers both
outcomes via MSW handlers.
2026-08-29 07:41:19 +00:00
Claude
5d04c0a2d4 feat(editor): visible feedback for Test run — status pill + View link
Before, the Test run button fired and returned an execution id but there was
no on-screen confirmation, so users assumed nothing happened. Adds an inline
status bar under the toolbar that shows 'Running…', then either 'Started
execution <id> · View execution →' (auto-clears in 6s) or 'Test run failed:
<msg>' (auto-clears in 8s).
2026-08-28 19:53:34 +00:00
Claude
c705f58531 feat(editor): show composed webhook URL + Copy button on Webhook nodes
When the selected node is http.webhook, the config panel now shows the full
POST URL (${origin}/wh/${workflowId}/${path}) with a one-click Copy button
and an active-workflow reminder. Removes the guesswork of assembling the
URL by hand from the design spec.
2026-08-28 19:52:38 +00:00
Claude
8c2d630af5 fix(editor): Delete/Backspace key removes selected node + orphan edges
React Flow's built-in keyboard handling was silently no-op'd because
deleteKeyCode wasn't set (v12 defaults it to null when the prop is absent
in the strict TS types we consume). Set it to ['Delete', 'Backspace'] and
add an onNodesDelete handler that filters edges whose endpoints just
vanished — applyNodeChanges only touches nodes, so without this the graph
kept dangling edges.

Also fixes a tsc regression the same touch caught in ConnectionsPage.test
where a request.json() cast leaked 'never' back into a later access.
2026-08-28 19:51:37 +00:00
Claude
4b30d4a44e feat(connections): edit connections via PUT — backend + UI + blank-secret merge
Backend: PUT /api/connections/{id} with UpdateConnectionRequest {Name, Config}.
Provider is immutable; a secret field left blank in the incoming config is
merged from the stored row so users can rename or rotate non-secret fields
without re-typing every credential. Invalidates the ConnectionInstanceRegistry
cache on update so the next GetConnection() re-opens with the fresh config.
409 on unique-name-per-provider collision, 404 on unknown id, 400 on non-
object config. 6 new xUnit tests cover the merge, overwrite, 404, 409, 400
paths plus the happy-path round-trip.

Frontend: ConnectionsPage gains an Edit pencil per row. The form is shared
between create and edit modes; provider select is disabled in edit; secret
fields render blank with an inline hint that leaving them blank keeps the
stored value. One new Vitest covers the edit flow.
2026-08-28 19:50:08 +00:00
Claude
7854cb02ec chore(frontend): exclude e2e/ from Vitest discovery 2026-08-28 16:40:16 +00:00
Claude
294bd57317 test(e2e): playwright smoke — login/create/edit/save happy path 2026-08-28 16:37:26 +00:00
Claude
2f7f18008e feat(frontend): executions viewer — list + expandable per-node IO 2026-08-28 16:29:24 +00:00
Claude
64cf7fbed9 chore(frontend): vite dev proxy for /api and /wh 2026-08-28 16:27:43 +00:00
Claude
655bd17f55 feat(frontend): editor toolbar — Save / Test run / Activate / Deactivate 2026-08-28 16:27:15 +00:00
Claude
12c5fb1990 feat(frontend): editor — palette + drag-drop + config panel + selection 2026-08-28 16:25:33 +00:00
Claude
d81b59896e test(frontend): satisfy HttpResponse.json JsonBodyType constraint 2026-08-28 16:23:31 +00:00
Claude
891ff6a722 feat(frontend): editor scaffold — graph adapter + React Flow canvas 2026-08-28 16:21:33 +00:00
Claude
c9193dbf36 feat(frontend): connections page — schema-driven create + list + delete 2026-08-28 16:17:56 +00:00
Claude
03cb34d009 feat(frontend): SchemaForm — schema-driven form generator 2026-08-28 16:15:59 +00:00
Claude
942d001c1f feat(frontend): workflows list — create/activate/deactivate/delete 2026-08-28 16:14:09 +00:00
Claude
1f317564f5 feat(frontend): login page — POST /api/session + error UI 2026-08-28 16:12:15 +00:00
Claude
e0a2447d23 feat(frontend): router shell + PrivateRoute + stub pages 2026-08-28 16:10:51 +00:00
Claude
2cf3c8759f feat(frontend): TanStack Query hooks + useSession/useLogin/useLogout
Adds api/hooks.ts (query keys, list/detail queries, useApiMutation,
useInvalidate) and auth/session.ts (useSession swallows 401 into
authenticated=false; useLogin/useLogout invalidate the me key).
tsconfig now maps @/* -> src/* so tsc -b matches Vite's resolver.
2026-08-28 16:09:01 +00:00
Claude
e1632f1272 test(frontend): MSW server + renderWithProviders harness 2026-08-28 16:07:14 +00:00
Claude
a28d34a48c feat(frontend): apiFetch — cookie-included fetch wrapper with typed errors 2026-08-28 16:06:02 +00:00