feat: integrate Matrix chat (Option 2 - credentials stored in Supabase)

- Add matrix-js-sdk, marked, highlight.js, twemoji, @tanstack/svelte-virtual deps
- Copy Matrix core layer: /matrix/, /stores/matrix.ts, /cache/, /services/
- Copy Matrix components: matrix/, message/, chat-layout/, chat-settings/
- Copy UI components: EmojiPicker, Twemoji, ImagePreviewModal, VirtualList
- Copy utils: emojiData, twemoji, twemojiGlobal
- Replace lucide-svelte with Material Symbols in SyncRecoveryBanner
- Extend Avatar with xs size and status indicator prop
- Fix ui.ts store conflict: re-export toasts from toast.svelte.ts
- Add migration 020_matrix_credentials for storing Matrix tokens per user/org
- Add /api/matrix-credentials endpoint (GET/POST/DELETE)
- Create [orgSlug]/chat page with Matrix login form + full chat UI
- Add Chat to sidebar navigation
This commit is contained in:
AlacrisDevs
2026-02-07 01:44:06 +02:00
parent e55881b38b
commit d1ce5d0951
62 changed files with 11432 additions and 41 deletions

View File

@@ -22,6 +22,8 @@
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.18",
"@types/marked": "^5.0.2",
"@types/twemoji": "^13.1.1",
"@vitest/browser-playwright": "^4.0.18",
"playwright": "^1.58.0",
"svelte": "^5.48.2",
@@ -36,10 +38,15 @@
"@inlang/paraglide-js": "^2.10.0",
"@supabase/ssr": "^0.8.0",
"@supabase/supabase-js": "^2.94.0",
"@tanstack/svelte-virtual": "^3.13.18",
"@tiptap/core": "^3.19.0",
"@tiptap/extension-placeholder": "^3.19.0",
"@tiptap/pm": "^3.19.0",
"@tiptap/starter-kit": "^3.19.0",
"google-auth-library": "^10.5.0"
"google-auth-library": "^10.5.0",
"highlight.js": "^11.11.1",
"marked": "^17.0.1",
"matrix-js-sdk": "^40.2.0-rc.0",
"twemoji": "^14.0.2"
}
}