Repository navigation
ShortSwitch v1.3.0
ShortSwitch v1.3.0 introduces the new slide-based Activities module for creating self-paced assessments while preserving existing Links, Pages, legacy Live data, and public URLs.
Activities
- Added self-paced, slide-based Activities.
- Added ordered slides with stable identifiers and drag-and-drop reordering.
- Added Heading, Text, Image, and Divider content blocks.
- Added draft editing and immutable published versions.
- Republishing now creates a new version without changing existing attempts.
- Added responsive Activity preview in a separate browser tab.
- Added Activity themes and background patterns based on the Pages design system.
- Added optional slide shuffling and configurable navigation behavior.
Question types
- Single Choice.
- Multiple Choice.
- Open Answer.
- Word Cloud.
- Ordering.
- Matching.
- Image Labeling using externally hosted images.
Question configuration and answer keys remain private and are excluded from public Activity payloads.
Attempts and autosave
- Added anonymous and named participant modes.
- Added secure opaque attempt tokens.
- Added debounced answer autosave and refresh recovery.
- Added independent participant navigation through slides.
- Added required-answer validation.
- Added manual final submission.
- Added maximum-attempt settings where participant identity permits enforcement.
- Added server-authoritative individual timers and global deadlines.
- Added automatic and idempotent expiration handling.
- Finalized attempts can no longer be modified.
Grading
- Added centralized server-authoritative grading.
- Added all-or-nothing and partial-credit modes.
- Added manual grading for supported question types.
- Added participation points for configured ungraded questions.
- Added configurable result and correct-answer visibility.
- Added teacher feedback and transactional score recalculation.
- Scores are rounded consistently to one decimal place.
- Attempt lists and review dialogs now show both awarded points and completion percentage.
Results and exports
- Added a dedicated Results tab to the Activity editor.
- Added submitted and expired attempt statistics.
- Added completion rate, average score, median score, and question-level statistics.
- Added searchable and paginated attempt results.
- Added readable response and correct-answer presentation instead of raw JSON.
- Added individual attempt review in a modal dialog.
- Added manual score adjustment.
- Added UTF-8 CSV exports.
- Added formatted XLSX response export with timestamps, participants, percentages, points, questions, and answers.
Editor and UI
- Reused the established Pages block editing patterns.
- Added opaque drag previews, placeholders, insertion indicators, auto-scroll, and keyboard reordering.
- Added compact searchable block menus.
- Added dedicated block editor dialogs that close only through Close or Escape.
- Improved Activity cards, actions, QR code, copy-link behavior, duplication, archiving, and overflow menus.
- Improved mobile layouts for the editor, public player, and results.
- Improved Matching, Ordering, and Image Labeling interactions.
- Improved submission, expiration, result, and correct-answer presentation.
- Added Latvian and English Activity interface translations.
Legacy Live compatibility
- Existing Live tables and records are preserved.
- Existing public Live URLs remain operational.
- Compatible Multiple Choice and Word Cloud activities can be migrated to the new model.
- Unsupported legacy activity types remain available through the compatibility runtime.
- Migration is idempotent and records unsupported cases in an audit ledger.
- A SQLite backup is created before the legacy migration.
- Legacy tables are not removed in this release.
Security and reliability
- Answer keys are separated from public question payloads.
- Scores, deadlines, grading, and finalization are enforced by the server.
- Attempt tokens prevent cross-attempt access.
- Public submissions use schema validation and rate limiting.
- Activity images use external URLs; ShortSwitch does not store uploaded image files.
- CSV and spreadsheet exports include formula-injection protection.
- Existing authentication, CSRF protection, and administrative authorization remain in place.
Compatibility
- Existing Links continue to work.
- Existing Pages continue to work.
- Existing public slugs are preserved.
- Existing Live data is not deleted.
- No additional database service, queue, or realtime infrastructure is required.
- Deployment remains a single Docker container with SQLite storage.
Verification
- TypeScript checks pass.
- All 160 automated tests pass across 39 test files.
- Production client and server builds pass.
- Production HTTP verification passes.
- Brotli, gzip, caching, SSE streaming, and SPA fallback were verified.
- Docker image builds successfully without cache.
- The container starts successfully and passes
/api/health. - Local Activities load tests completed successfully with 50, 200, and 500 participants.
Known limitations
- Load testing was performed locally over loopback and does not represent a real residential 25 Mbps upload connection.
- Unsupported legacy Open Answer, Scale, malformed, or multi-question Live records remain on the compatibility runtime.
- The base Debian image currently contains upstream security advisories without available fixed package versions.