Private
Public Access
Typing a complete 😂/😉/etc. shortcode now renders as the emoji, matching Slack/GitHub/Discord. Render-time only, alongside the existing preserveLineBreaks preprocessing step -- stored/sent content keeps the raw :name: text, same as markdown itself is never converted until display. Fenced code blocks and inline code spans are skipped so pasted code (a Ruby symbol, a dict key) isn't silently mangled. frontend/src/lib/emojiShortcodes.ts is generated once from emojibase-data's GitHub shortcode set (same one-time-generator approach as #19's emojiNames.ts, never a runtime dependency) -- 928 of the app's 936 emoji matched, 956 aliases, no collisions. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
DS Chat frontend (Phase 1)
React + Vite PWA. Login, room list, and chat views wired to the backend's
REST API and /ws/chat WebSocket endpoint. See ../README.md
and ../backend/README.md for full local setup.
Dev
npm install
npm run dev
The dev server proxies /api and /ws to http://localhost:8000 (see
vite.config.ts), so the backend must be running for anything beyond the
login page to work.
Build
npm run build
Generates the PWA manifest and service worker via vite-plugin-pwa into dist/.
Layout
src/
main.tsx, App.tsx routes: /login, /rooms, /rooms/:roomId
api/ fetch wrappers (client, auth, rooms)
ws/useChatSocket.ts WebSocket hook (join/send/receive)
context/AuthContext.tsx current-user state, hydrated via GET /api/auth/me
components/ ProtectedRoute, RoomListItem, MessageList, MessageInput
pages/ LoginPage, RoomListPage, ChatRoomPage