Commit Graph

2 Commits

Author SHA1 Message Date
YetAnotherSuite Dev
2c65d7d0b7 feat: Phase 5 collaboration — real-time, workspaces, sharing, templates
Phase 5.1: Real-time Collaboration
- Yjs WebSocket server with document sync
- Fastify WebSocket endpoint at /ws/collab/:nodeId
- CollaborationClient for browser-side WebSocket management
- Automatic reconnection with 3s backoff
- Presence and cursor state broadcast
- Y-indexedDB for local persistence

Phase 5.2: Workspace & Team Management
- WorkspaceSwitcher component with dropdown
- Active workspace tracking
- Member avatar and role indicators
- New workspace creation flow

Phase 5.3: Sharing & Permissions
- Workspace data model with RBAC (owner, admin, editor, viewer)
- Activity tracking on all node mutations

Phase 5.4: Templates & Automation
- TemplatePicker with 5 built-in templates
- Meeting Notes, Daily Journal, Weekly Review, Project Plan, Event Plan
- Template preview with icon, name, description
- Type-based template filtering (note, task, event)
2026-07-20 22:28:10 +02:00
YetAnotherSuite Dev
262fbf48e2 feat: Phase 1 foundation — monorepo, auth, DB schema, API, shared packages
Phase 1.1: Monorepo Setup & Design System
- Turborepo + pnpm workspaces monorepo structure
- Shared packages: @yetanother/types, @yetanother/utils, @yetanother/hooks, @yetanother/ui, @yetanother/db
- Radix UI primitives with custom shadcn/ui-style components (Button, Dialog, Toast, Tooltip, Tabs, Label)
- Tailwind CSS v4 with design tokens (light theme)
- TypeScript strict mode with composite project references

Phase 1.2: Authentication & User Management
- Fastify server setup with JWT auth (register, login, me endpoints)
- @fastify/jwt with cookie support
- User and workspace models with Prisma ORM

Phase 1.3: Database Schema & Migrations
- Full Prisma schema: User, Workspace, Node, NodeLink, Tag,
  Folder, Reminder, Embedding, Activity, Attachment,
  WorkspaceMember, SyncCheckpoint
- pgvector extension for embeddings (vector(1536))
- Seed script for dev data
- Comprehensive indexes (GIN, BRIN, B-tree)

Phase 1.4: API Foundation & Middleware
- Fastify REST API with versioned routes (/api/v1)
- Zod request validation on all endpoints
- CORS, Helmet security headers, rate limiting
- Structured logging with pino-pretty
- Swagger/OpenAPI docs at /docs
- WebSocket support (collaboration ready)
- CRUD routes: nodes, workspaces, search, auth

Tooling:
- ESLint 9 flat config with TypeScript parser
- Prettier with consistent formatting rules
- Turbo v2 task orchestration
- GitHub Actions CI workflow
- Husky + lint-staged pre-commit hooks
2026-07-20 21:58:17 +02:00