verstak/frontend
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
..
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: transaction-safe AcceptSuggestionWith + safe eventIds fallback + debug logging 2026-06-03 15:10:25 +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