Repository navigation
ShortSwitch v1.4.0
ShortSwitch v1.4.0 introduces Boards — a new collaborative classroom module for collecting, moderating, and presenting participant cards in real time.
Boards
- Added complete administrative Board creation and management.
- Added shareable public Board URLs.
- Added board titles, descriptions, statuses, expiration, archiving, duplication, and deletion.
- Added configurable participation and moderation settings.
- Added responsive administration and public interfaces in English and Latvian.
- Added dedicated Cards and moderation editor tab.
- Added read-only presentation mode for projectors and interactive displays.
- Integrated Boards into the existing ShortSwitch navigation and Create menu.
Participant cards
- Participants can create text-only or image-and-text cards.
- External images use validated HTTPS URLs; ShortSwitch does not store uploaded image files.
- Added optional participant display names.
- Added secure ownership credentials for editing participant cards.
- Added six-digit recovery PINs for restoring editing access on another device.
- Recovery PINs are shown once and stored only as secure hashes.
- Participants can edit or delete their own cards when allowed.
- Administrators can edit, delete, approve, reject, hide, or restore any card.
- Added consistent card menus, transitions, responsive layouts, and accessibility states.
Responsive grid
- Cards use automatic responsive CSS Grid placement.
- Removed freeform canvas positioning, manual resizing, pan, and zoom.
- Added predictable reading order across desktop, tablet, and mobile layouts.
- Improved long-text wrapping and image aspect-ratio handling.
- Added lazy image loading and failed-image fallback states.
- Existing legacy position fields remain compatible but are no longer used for rendering.
Reactions
- Added Like and Dislike reactions for published cards.
- One active reaction is allowed per anonymous participant session and card.
- Selecting the same reaction again removes it.
- Switching reaction updates the existing record atomically.
- Added server-authoritative reaction counts.
- Added rate limiting and rapid-toggle protection.
- Added real-time reaction count synchronization without a full Board reload.
- Hidden, rejected, pending, or otherwise inaccessible cards cannot receive public reactions.
Sorting
Public Boards now support:
- Newest first.
- Oldest first.
- A to Z.
- Z to A.
- Most popular.
Popularity sorting places cards with the highest Like count first and uses deterministic secondary ordering.
Sorting remains local to the current browser session and never modifies stored card data.
Real-time synchronization
- Added Board-scoped SSE synchronization.
- New cards appear without refreshing.
- Card edits, deletion, moderation changes, theme changes, and Board state changes are synchronized.
- Like and Dislike totals update across connected clients.
- Added automatic reconnect and consistent state recovery.
- Added duplicate and out-of-order event protection.
- Pending and private moderation data is never exposed through public events.
- Ownership credentials and recovery PINs are never broadcast.
Themes and presentation
- Reused the existing Activities-compatible theme architecture.
- Added Board background, card, text, border, radius, shadow, typography, spacing, and pattern styling.
- Added live theme previews in the Board editor.
- Added safe fallback behavior for missing or incompatible themes.
- Added dedicated presentation mode with optional browser fullscreen.
- Presentation mode preserves the responsive grid and selected sorting mode.
Submission and read-only behavior
Accept new submissionsnow controls only the creation of new cards.- Existing participant editing, deletion, and reactions continue according to their individual settings.
- Added a separate submission expiration date.
- When the submission deadline passes, new cards are automatically disabled while the Board remains accessible.
- The existing global expiration continues to disable the entire Board.
Read-only presentation modeblocks card creation, participant editing, deletion, and reactions.- Enabling Read-only automatically disables participant edit and delete permissions.
- Board cards now show whether submissions are open, closed, or read-only.
Moderation and word filtering
- Added automatic-publication and approval-required moderation modes.
- Added pending, published, rejected, and hidden card states.
- Integrated Boards with the existing server-side Live moderation word filter.
- Filtering applies to card titles, body text, and participant display names.
- Pending content is visible only to authorized administrators and eligible card owners.
- Moderation changes propagate to connected clients in real time.
Security and abuse protection
- Added server-side authorization for all Board management and moderation operations.
- Added secure cryptographic ownership credentials.
- Added hashed PIN recovery with temporary lockouts and generic error responses.
- Added layered card submission limits by Board, anonymous session, and IP.
- Shared classroom IPs are not used as the sole participant identity.
- Added atomic database constraints for reaction uniqueness.
- Added strict validation for card content, settings, reaction values, and external image URLs.
- Added HTTPS-only external image validation.
- Added protections against XSS, oversized content, reaction spam, and concurrent limit bypasses.
- Added Board-scoped SSE connection and reconnect limits.
- Card ownership and reaction identity remain separate security concepts.
Database
- Added additive SQLite migrations for Boards, cards, ownership, moderation, themes, reactions, real-time revisions, and submission expiration.
- Latest schema migration: 21 (
board_submission_expiration). - Existing Links, Pages, Live, Activities, Boards, ownership credentials, and reaction records remain compatible.
- Existing tables and user data are not removed.
- Foreign keys, uniqueness constraints, transactions, and query indexes are used for data integrity.
Compatibility
- No changes to existing Short URL behavior.
- Existing Links, Pages, Live, Activities, authentication, analytics, and public URLs remain supported.
- Legacy Live compatibility is preserved.
- No additional services, databases, queues, or reverse proxies are required.
- Boards continue to use the existing single-container Fastify and SQLite deployment model.
Verification
- TypeScript checks pass.
- All 49 automated test files pass.
- All 204 automated tests pass.
- Production frontend and backend builds pass.
- Production HTTP, caching, compression, and SSE verification passes.
- Production dependency audit reports 0 vulnerabilities.
- Clean Docker image build and startup verification pass.
/api/healthresponds successfully.- SQLite migration 21 applies successfully.
- SQLite
PRAGMA quick_checkpasses. - No foreign-key violations were detected.
Deployment notes
Back up the existing SQLite volume before upgrading.
The first application startup applies additive Board migrations automatically. No manual database commands are required.
No production deployment was performed as part of development.