verstak/frontend
mirivlad b42aa35ee8 fix: bypass Wails v2 []string marshalling via JSON.stringify + end-to-end test
Root cause: Wails v2.12.0 cannot reliably marshal []string arguments
from JavaScript to Go when called through positional binding.
The event IDs array arrived empty on the Go side, causing no
worklog_entry_events INSERTs.

Fix:
- AcceptSuggestionWith now accepts eventIDsJSON (string) instead of
  eventIDs ([]string). Frontend passes JSON.stringify(eventIds).
- Backend json.Unmarshal into []string before validation.
- Pre-insert validation: each eventID checked in activity_events.
- Atomic tx: entry create + linking in single Begin/Commit.
- INSERT (not INSERT OR IGNORE) — failure is a hard error.
- Post-commit verification: JOIN COUNT(*) must match len(eventIDs).
- End-to-end test: TestAcceptSuggestionWithEndToEnd creates a node,
  3 activity events, accepts suggestion, verifies all 3 linked.

Other changes:
- GetWorklogEntryEvents: fixed column name (details_json -> metadata).
- openActivityTarget(ev): new function for 'Посмотреть' button that
  navigates to specific note/file/folder instead of just opening node.
- All 'openNodeById(ev.nodeId)' in event contexts replaced with
  'openActivityTarget(ev)'.
2026-06-03 16:00:17 +08:00
..
bindings/github.com/wailsapp/wails/v3/internal gui: add Wails v3 desktop app skeleton 2026-05-31 15:45:52 +08:00
public frontend: удалён мёртвый код (verstak.js, FileActions.svelte, style.css) 2026-06-02 09:48:58 +08:00
src fix: bypass Wails v2 []string marshalling via JSON.stringify + end-to-end test 2026-06-03 16:00:17 +08:00
Inter Font License.txt gui: add Wails v3 desktop app skeleton 2026-05-31 15:45:52 +08:00
index.html gui: fix layout — full viewport, dark theme, sidebar+main 2026-05-31 19:54:07 +08:00
package-lock.json fix: third stabilization pass — template children as nodes, atomicity, fs_path validation, sync_apply compat, smoke test 2026-06-03 02:05:53 +08:00
package.json fix: third stabilization pass — template children as nodes, atomicity, fs_path validation, sync_apply compat, smoke test 2026-06-03 02:05:53 +08:00
tsconfig.json gui: add Wails v3 desktop app skeleton 2026-05-31 15:45:52 +08:00
vite.config.js gui: complete Wails v2 vertical MVP — fixes, search, polished UI 2026-05-31 23:48:38 +08:00