verstak/cmd/verstak-gui/frontend-dist
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
..
assets fix: transaction-safe AcceptSuggestionWith + safe eventIds fallback + debug logging 2026-06-03 15:10:25 +08:00
Inter-Medium.ttf gui: port frontend to Wails v2 2026-05-31 19:39:49 +08:00
index.html fix: transaction-safe AcceptSuggestionWith + safe eventIds fallback + debug logging 2026-06-03 15:10:25 +08:00
svelte.svg gui: port frontend to Wails v2 2026-05-31 19:39:49 +08:00
wails.png gui: port frontend to Wails v2 2026-05-31 19:39:49 +08:00