feat: initialize CollabTableServer with models, sync, and notification handling
Docker / Docker Build & Push (push) Successful in 10m21s
Lint / Lint (push) Failing after 14s
Tests / Go backend (push) Successful in 21s
Tests / Dashboard checks (push) Successful in 21s

- Add go.mod and go.sum for dependency management
- Implement models for List, Field, Item, ItemValue, SyncRequest, SyncResponse, and NotificationEvent
- Create notification handling functions including enqueueNotification and ignoreNotificationError
- Implement sync functionality to handle data synchronization between client and server
- Add web data handling and notification polling endpoints
- Include tests for timestamp normalization and sync logic
- Embed web assets for serving the frontend application
This commit is contained in:
Gabriel20xx committed 2026-08-03 18:07:40 +02:00
1 parent e12940fef0
commit cac2faae2e
41 files changed
+2535 -5502

No files matched your search

+30 -15
View File
@@ -17,8 +17,8 @@ on:
workflow_dispatch: {}
jobs:
test:
name: Test
backend:
name: Go backend
runs-on: ubuntu-latest
defaults:
run:
@@ -30,22 +30,37 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: CollabTableServer/go.mod
cache: true
- name: Test
run: go test ./...
webui:
name: Dashboard checks
runs-on: ubuntu-latest
defaults:
run:
working-directory: CollabTableServer/webui
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: CollabTableServer/package-lock.json
node-version: '22'
cache: npm
cache-dependency-path: CollabTableServer/webui/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
if find src -iname '*.test.ts' -o -iname '*.spec.ts' | grep -q .; then
echo "Test files found for CollabTableServer — running npm test."
npm test
else
echo "No test suite configured for CollabTableServer yet — skipping."
exit 0
fi
- name: Check dashboard
run: npm run check