verstak/cmd/verstak-gui
mirivlad 21a595c3ce fix: transaction-safe AcceptSuggestionWith + safe eventIds fallback + debug logging
Root cause: s.eventIds may be undefined in JavaScript even when s.events
has data (Wails v2 marshalling of []string in nested struct response).
On calling AcceptSuggestionWith(eventIDs []string), empty array reached Go,
no INSERTs executed, events silently lost.

Changes:
- Frontend: extractEventIds() fallback — s.eventIds || s.events[].id || []
- Frontend: console.log debug for eventIds/events in accept handler
- Backend: AcceptSuggestionWith wrapped in tx (Begin/Commit/Rollback) so
  entry creation + event linking is atomic
- Backend: AddWithSourceTx method for transaction-aware insert
- Backend: buildEntry helper extracted
- Backend: fmt.Printf debug logging for received eventIDs + link count
- Backend: verification query after commit
- Cleanup: removed stale frontend-dist assets, .gitignore build.log
2026-06-03 15:10:25 +08:00
..
frontend-dist fix: transaction-safe AcceptSuggestionWith + safe eventIds fallback + debug logging 2026-06-03 15:10:25 +08:00
app.go feat: worklog source field, suggestion logic fix, modal form, activity navigation 2026-06-03 12:27:50 +08:00
bindings_actions.go refactor(gui): разделить app.go на binding-файлы по доменам, вынести sync apply 2026-06-02 10:47:38 +08:00
bindings_activity.go Step 16.1: global worklog dashboard + conservative suggestions 2026-06-03 09:56:17 +08:00
bindings_files.go refactor(gui): разделить app.go на binding-файлы по доменам, вынести sync apply 2026-06-02 10:47:38 +08:00
bindings_nodes.go feat: node search picker, ByNode grouping fix, PDF export 2026-06-03 10:56:13 +08:00
bindings_notes.go refactor(gui): разделить app.go на binding-файлы по доменам, вынести sync apply 2026-06-02 10:47:38 +08:00
bindings_settings.go fix: context menu close, OpenFolder for TypeFile nodes, tab highlight visibility 2026-06-03 04:56:11 +08:00
bindings_suggest.go fix: transaction-safe AcceptSuggestionWith + safe eventIds fallback + debug logging 2026-06-03 15:10:25 +08:00
bindings_sync.go refactor(gui): разделить app.go на binding-файлы по доменам, вынести sync apply 2026-06-02 10:47:38 +08:00
bindings_worklog.go feat: worklog source field, suggestion logic fix, modal form, activity navigation 2026-06-03 12:27:50 +08:00
main.go refactor: implement template-driven node tree and human-readable vault layout 2026-06-02 12:47:06 +08:00
move_node_test.go fix: tree DnD — correct cycle detection, reactive indicators, canonical reload 2026-06-03 05:27:20 +08:00
sync_apply.go sync_apply FS-first rewrite; CreateNodeFromTemplate rollback; DeleteNodeAndChildren fail on trash errors; PLAN.md update 2026-06-03 02:22:49 +08:00
vault_check.go fix: второй стабилизационный pass vault layout — sync payload, bindings, vaultPath, tests 2026-06-02 17:03:05 +08:00
vault_layout_test.go 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
vault_migrate.go refactor: implement template-driven node tree and human-readable vault layout 2026-06-02 12:47:06 +08:00
wails.json chore: add wails.json, remove wails3 artifacts, rebuild binaries 2026-06-03 01:48:12 +08:00