Skip to content

Releases

ShortSwitch v1.7.0

Choose a tag to compare

@belikellwyd belikellwyd released this 18 Nov 19:10

ShortSwitch v1.7.0 — Remote Moderation, Board Image Controls & Activity Regrading

This release expands moderation capabilities, improves real-time Board controls, and adds safe regrading for existing Activity submissions.

Remote Moderation Blocklists

  • Added support for multiple remote moderation blocklist sources.
  • Added Contains, Whole word, and Smart parsing modes.
  • Smart lists support explicit contains: and whole: directives.
  • Added secure synchronization from approved GitHub Raw HTTPS URLs.
  • Added request timeouts, response size limits, rule limits, redirect validation, and private-network protection.
  • Remote lists are cached locally and are never downloaded during individual moderation checks.
  • Failed synchronization preserves the last valid cached rules.
  • Unchanged lists update their check timestamp without replacing cached rules.
  • Added manual and scheduled synchronization.
  • Added synchronization status, error reporting, timestamps, and cached rule previews.
  • Added a responsive administrative Remote Blocklists interface.
  • Added enable, disable, edit, refresh, and delete controls.
  • Remote rules now use the same Unicode-aware moderation engine as local rules.
  • Remote rules apply to supported Live and Boards text moderation paths.
  • Existing local moderation rules remain independent and unchanged.

Boards Reactions

  • Added configurable reaction modes:
    • Likes and dislikes
    • Likes only
    • Dislikes only
    • Disabled
  • Read-only presentation mode now disables reactions server-side.
  • The previously configured reaction mode is preserved when leaving presentation mode.
  • Fixed real-time reaction synchronization so aggregate counts remain shared while selected reaction state remains participant-specific.
  • Public SSE events no longer cause another participant’s reaction to appear selected.
  • Direct API requests for forbidden reaction types are rejected.
  • Existing reaction records and counts are preserved when changing modes.

Board Image Moderation

  • Added a per-board “Blur images by default” setting.
  • New image cards inherit the current board blur default.
  • Added persistent per-card image blur state.
  • Existing images preserve their state when the board default changes.
  • Moderation approval no longer changes image blur state automatically.
  • Added authenticated Blur and Unblur administrative operations.
  • Added inline original-image previews to Cards and moderation.
  • Added clear Blurred and Visible status capsules.
  • Added icon-based blur, visibility, moderation, and ownership actions.
  • Public clients receive blur-state changes through the existing real-time infrastructure.
  • Increased public blur strength.
  • Board images are no longer clickable or draggable in the public interface.
  • Context-menu interaction is suppressed for public Board images.
  • Image blurring remains a visual moderation feature and does not hide the external source URL.

Boards Administration

  • Increased usable desktop width in the Board editor.
  • Cards and moderation now supports a responsive three-column desktop layout.
  • Added an in-place Refresh action with loading and error handling.
  • Refresh preserves the existing card list if the request fails.
  • Added inline image previews without requiring separate preview dialogs.
  • Improved moderation status capsules and action icons.
  • Improved responsive behavior on desktop, tablet, and mobile.
  • Existing moderation, ownership, reaction, and card-ordering behavior remains compatible.

Activities Regrading

  • Added an explicit administrative action for regrading existing submitted attempts.
  • Supports grading-mode changes for:
    • Multiple Choice
    • Ordering
    • Matching
  • Supports transitions between All or nothing and Partial credit.
  • Regrading preserves original participant answers.
  • Question scores and aggregate attempt totals are recalculated transactionally.
  • Manual grading overrides are preserved.
  • Incompatible question structures are skipped safely.
  • Regrading records grading audit information.
  • Administrative results and exports reflect recalculated scores.
  • Participants do not need to reopen or resubmit attempts.
  • Published Activity snapshots remain immutable.

UI and Accessibility

  • Improved Remote Blocklist modal scrolling.
  • Cached rule previews use two columns on desktop and one column on narrow screens.
  • Long Unicode rules and Smart directives wrap safely.
  • Modal actions remain accessible while rule previews scroll independently.
  • Updated Board and moderation status styling.
  • Added consistent action icons and hover behavior.
  • Latvian and English localization keys remain synchronized.

Database Migrations

This release includes additive migrations:

  • Migration 28: Remote moderation blocklists and cached rules.
  • Migration 29: Board reaction mode configuration.
  • Migration 30: Board image blur defaults and per-card blur state.

Existing Boards, cards, reactions, moderation rules, Activities, Live data, Pages, and Links are preserved.

No legacy tables are removed.

Compatibility

  • No destructive database migrations.
  • Existing local moderation rules remain unchanged.
  • Existing Board reactions are preserved.
  • Existing Board images remain visible by default.
  • Existing Activity submissions and answers are preserved.
  • Links, Pages, Live, Activities, and Boards public URLs remain compatible.
  • No additional external service is required.

Verification

  • TypeScript checks pass.
  • All 300 automated tests pass across 66 test files.
  • Production client and server builds pass.
  • Production HTTP verification passes.
  • Production dependency audit reports zero known vulnerabilities.
  • Clean Docker build passes.
  • Docker startup and health endpoint verification pass.
  • Synthetic Boards load test with 30 participants and 100 cards passes with zero request errors.
  • SQLite integrity and foreign key checks pass.

ShortSwitch v1.6.0

Choose a tag to compare

@belikellwyd belikellwyd released this 16 Nov 21:12

ShortSwitch v1.6.0 — Configurable Boards Limits & Public Link Polish

This release improves ShortSwitch Boards deployment controls and polishes the external-link confirmation experience across desktop and mobile layouts.

Boards rate limits

  • Added dedicated configurable rate limits for public Boards routes.
  • Added independent limits for public reads and mutations.
  • Added separate per-IP, per-board, and per-session card creation limits.
  • Added configurable Like/Dislike reaction limits.
  • Added configurable SSE connection rates and concurrent connection caps.
  • Preserved layered session limits so classrooms sharing one public IP are not treated as a single participant.
  • Added validation and safe fallback values for invalid or non-positive configuration.
  • Documented all new environment variables and classroom deployment recommendations.
  • Existing installations retain the previous built-in defaults without configuration changes.

Boards interface

  • Fixed card dropdown hover and focus states in Light, Dark, and Automatic themes.
  • Replaced hardcoded hover colors with the active ShortSwitch theme tokens.
  • Improved destructive action contrast without affecting card ownership or permissions.
  • Preserved reduced-motion behavior.

External link confirmation

  • Redesigned the destination information card.
  • Improved destination favicon presentation and fallback behavior.
  • Made the destination hostname and complete URL easier to inspect.
  • Added a clear external-navigation icon to the confirmation action.
  • External destinations continue opening in the current tab.
  • Preserved no-referrer protection.
  • Preserved HTTP 200 confirmation behavior without automatic redirects, countdowns, or JavaScript navigation.
  • Increased the desktop confirmation width while preserving responsive mobile behavior.
  • Updated English and Latvian confirmation copy.

Shared service footer

  • Unified footer alignment across server-rendered and Vue public pages.
  • Kept branding and service links vertically aligned.
  • Added separators between footer links.
  • Shortened “About ShortSwitch” to “About” / “Par projektu”.
  • Added a dedicated icon to the Report Abuse link.
  • Improved wrapping behavior on narrow screens.

Compatibility

  • No database schema changes.
  • No data migrations.
  • No changes to stored Boards, cards, reactions, or ownership credentials.
  • No changes to existing short-link identifiers or QR codes.
  • No breaking API changes.
  • Existing Docker deployments remain compatible.
  • New Boards environment variables are optional and use backward-compatible defaults.

Verification

  • TypeScript checks pass.
  • All 278 automated tests pass.
  • Production frontend and backend builds pass.
  • Production runtime verification passes.
  • Production dependency audit reports 0 vulnerabilities.
  • Docker image builds successfully without cache.
  • Docker container starts successfully and reports a healthy status.

ShortSwitch v1.5.2

Choose a tag to compare

@belikellwyd belikellwyd released this 15 Nov 21:14

ShortSwitch v1.5.2 — External Link Confirmation Fixes

This patch release improves the external link confirmation experience and favicon compatibility.

External link confirmation

  • The “Open destination” action now continues in the current browser tab.
  • Removed unnecessary new-tab behavior that could be affected by browser popup restrictions.
  • Preserved the explicit confirmation step with no automatic redirects, countdowns, or JavaScript navigation.
  • Preserved no-referrer behavior when opening external destinations.

Destination favicons

  • External link confirmation now uses the same favicon candidate logic as administrative Link cards.
  • Added fallback support for standard .ico, .png, OneDrive, and SharePoint favicon locations.
  • Automatically tries the next favicon candidate when the previous one cannot be loaded.
  • Hides the favicon cleanly when no supported candidate is available.
  • Does not proxy, download, or inspect external website content on the server.

Security and compatibility

  • Protected destinations remain hidden until successful authorization.
  • Destination URLs continue to be resolved exclusively from stored ShortSwitch Link records.
  • No database migrations.
  • No changes to existing short-link identifiers or QR codes.
  • No changes to Links analytics.
  • Existing Docker volumes and SQLite databases remain compatible.

Verification

  • TypeScript checks pass.
  • All 276 automated tests pass.
  • Production client and server builds pass.
  • Production HTTP verification passes.
  • Production dependency audit reports 0 vulnerabilities.
  • Clean Docker build passes.
  • Docker startup and health endpoint verification pass.

ShortSwitch v1.5.1

Choose a tag to compare

@belikellwyd belikellwyd released this 15 Nov 19:07

ShortSwitch v1.5.1 — Safer 2FA Setup & Matching Accuracy

This patch release improves the two-factor authentication setup experience, fixes ambiguous grading in Activities Matching questions, and polishes Latvian public interface copy.

Two-factor authentication

  • Moved the complete TOTP enrollment process into a dedicated centered dialog.
  • QR code, manual setup key, and verification code are no longer displayed directly inside Settings.
  • Recovery codes are displayed in the same protected enrollment flow after successful verification.
  • Enrollment dialogs no longer close when clicking the backdrop.
  • Dialogs can be closed only through the Close button or Escape.
  • Added a five-second safety countdown before recovery codes can be dismissed.
  • Close and Escape remain disabled during the countdown.
  • Added a clear disabled visual state for the Close button.
  • Added regression tests for backdrop protection, Escape handling, and the recovery-code countdown.

Activities Matching

  • Fixed grading ambiguity when multiple Matching options have identical visible labels.
  • Visually identical answers are now treated as interchangeable during grading.
  • Matching still uses stable internal IDs for autosave, shuffling, and persistence.
  • Added Unicode normalization and whitespace normalization for visible label comparison.
  • Added regression coverage for duplicate Matching answers.

Latvian interface

  • Improved Latvian Activity start and completion wording.
  • Improved external-link confirmation wording.
  • Improved disabled-link messages.
  • Updated server regression tests to match the current localized interface.

Compatibility

  • No database migrations.
  • No public API changes.
  • No stored data format changes.
  • Existing Activities, attempts, answer keys, and TOTP configurations remain compatible.

Verification

  • TypeScript checks pass.
  • All 276 automated tests pass.
  • Production client and server builds pass.
  • Production HTTP verification passes.
  • Clean Docker build without cache passes.
  • Docker container startup and health endpoint verification pass.
  • Production dependency audit reports 0 vulnerabilities.

ShortSwitch v1.5.0

Choose a tag to compare

@belikellwyd belikellwyd released this 15 Nov 08:46

ShortSwitch v1.5.0 — Two-Factor Authentication, Unified Analytics & Public Experience Polish

This release strengthens account security, unifies analytics filtering, improves global public preferences, and delivers a substantial UI/UX polish across Boards and Service Sections.

Security and authentication

  • Added optional standards-compatible TOTP two-factor authentication.
  • Compatible with Apple Passwords, Microsoft Authenticator, Google Authenticator, 2FAS, and other TOTP applications.
  • Added QR-based enrollment with mandatory initial code verification.
  • Added single-use recovery codes stored as secure hashes.
  • TOTP secrets are encrypted at rest.
  • Added restricted pending-authentication sessions during the second-factor challenge.
  • Added verification rate limits and replay protection for accepted TOTP codes.
  • Added secure 2FA disabling with password and TOTP or recovery-code confirmation.
  • Existing accounts remain compatible and 2FA remains optional.
  • Improved redaction of authentication and two-factor secrets in application logs.

Unified analytics date ranges

  • Added a shared date range selector across Global Analytics, Links Analytics, and Pages Analytics.
  • Added Today, Current calendar week, Current calendar month, and Custom range presets.
  • Calendar calculations use the Europe/Riga timezone and correctly account for daylight-saving transitions.
  • Selected ranges persist for the current browser session.
  • Removed redundant Daily, Weekly, and Monthly controls from individual charts.
  • Chart aggregation is now selected automatically according to the chosen range.
  • Summary cards, heatmaps, trends, and breakdowns now use the same filtered period.
  • Added consistent server-side filtering using inclusive start and exclusive end timestamps.

Global public display preferences

  • Added administrator-controlled language preferences for unauthenticated public interfaces:
    • Automatic
    • English
    • Latvian
  • Added administrator-controlled appearance preferences:
    • Automatic
    • Light
    • Dark
  • Public preferences are separate from the authenticated administrator’s personal UI settings.
  • Applied public preferences to login, error pages, external-link confirmation, Service Sections, Contact, and Report Abuse.
  • Automatic mode continues to follow browser language and system appearance.
  • Improved initial theme application to reduce incorrect-theme flashing.

Service Sections and public forms

  • Added independent controls for enabling or disabling the Contact and Report Abuse forms.
  • Form availability is enforced by both the frontend and backend.
  • Previously received Inbox submissions remain available when a form is disabled.
  • The configured public contact email remains visible when Contact submissions are unavailable.
  • Added localized unavailable states with consistent Service Sections styling.
  • Improved spacing between forms, page content, and the shared footer.
  • Unified public Contact and Report Abuse typography and visual presentation.
  • Improved Inbox status presentation with clearer colored status indicators.

Rich text editing

  • Added shared rich-text formatting controls for supported editors.
  • Added Bold, Italic, Underline, Strikethrough, Superscript, and Subscript formatting.
  • Added familiar keyboard shortcuts where applicable.
  • Fixed formatting being activated merely by hovering or selecting text.
  • Fixed repeated nested Superscript and Subscript formatting.
  • Fixed formatting-state detection when returning to previously formatted text.
  • Improved rich-text previews in block summaries and public content.
  • Card titles on public Boards remain plain text.

Boards

  • Expanded the public Board workspace to use available desktop width more effectively.
  • Improved responsive card sizing and overflow protection.
  • Added a desktop masonry-style layout so shorter cards can use space below taller cards.
  • Preserved the normal predictable grid on mobile layouts.
  • Fixed an intermittent reload race where SSE data could arrive before the initial HTTP response and prevent masonry activation.
  • Added a regression test covering the SSE/HTTP loading race.
  • Improved required-field handling in the Add Card dialog.
  • Added required-field markers and disabled Save until mandatory fields are complete.
  • Added localized success and error toasts for card creation and participant limits.
  • Improved presentation-mode layout consistency.

Links and public pages

  • Improved favicon handling for Link cards and public Contact link blocks.
  • Added destination favicons to the external-link confirmation page.
  • Improved external-link confirmation spacing and footer separation.
  • Unified public service-page branding, dimensions, typography, and footer styling.
  • Improved public Contact block transitions to match public Pages behavior.
  • Updated Latvian public-link wording and synchronized automated tests.

Logging and deployment

  • Improved log timestamp presentation using the configured local timezone.
  • Added and documented TOTP encryption configuration.
  • Preserved existing SQLite data through additive migrations.
  • Existing Links, Pages, Live, Activities, Boards, public URLs, and sessions remain compatible.

Deployment notes

Before enabling two-factor authentication, configure TOTP_ENCRYPTION_KEY.

The key must contain exactly 32 bytes encoded as hexadecimal or Base64. Keep it stable and outside SQLite. Losing or changing this key will prevent existing encrypted TOTP secrets from being decrypted.

Back up the persistent SQLite database before upgrading. Database upgrades are additive and are applied during application startup.

Verification

  • TypeScript checks pass.
  • All 273 automated tests pass across 62 test files.
  • Production client and server builds pass.
  • Production HTTP, API, cache, compression, and SSE verification passes.
  • Clean Docker build without cache passes.
  • Docker container startup and healthcheck pass.
  • Production dependency audit reports 0 known vulnerabilities.

ShortSwitch v1.4.0

Choose a tag to compare

@belikellwyd belikellwyd released this 12 Nov 05:16

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 submissions now 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 mode blocks 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/health responds successfully.
  • SQLite migration 21 applies successfully.
  • SQLite PRAGMA quick_check passes.
  • 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.

ShortSwitch v1.3.1

Choose a tag to compare

@belikellwyd belikellwyd released this 04 Nov 21:24

This patch release improves Activities results, question interactions, mobile layouts, and administrative review without changing the Activities database schema or breaking existing published versions.

Activity results

  • Attempts are now ordered by their latest completion time, with newer completed attempts shown first.
  • Added the actual Activity completion timestamp to attempt details.
  • Added slide numbering to question analytics and individual responses.
  • Simplified question labels by removing redundant “Question N” text.
  • Individual choice responses now display every available option.
  • Correct answers are highlighted in green.
  • Incorrect participant selections are highlighted in red while the correct answer remains visible.
  • Replaced raw response JSON with readable, question-specific result presentation.
  • Added authorized deletion of individual attempts.
  • Delete response actions now use clear destructive styling.
  • Fixed duplicate Expired status badges.
  • Expired attempts that still require manual grading continue to show both Expired and Awaiting manual grading states.

Matching questions

  • Improved the mobile Matching layout with clearer numbered groups.
  • Connected pairs now share a stable visual number.
  • Matching can be started from either the left or right side.
  • Selecting an already connected item again removes its pair.
  • Removed the redundant “Your matches” debugging-style list.
  • Improved wrapping and responsiveness for long matching labels.
  • Prevented long text from widening or breaking the mobile Activity layout.

Ordering questions

  • Improved pointer and touch reordering behavior.
  • Added a full-card drag preview and correctly sized placeholder.
  • Restricted dragging to the dedicated handle.
  • Preserved keyboard-accessible move controls.
  • Improved long-text wrapping on narrow screens.

Question editor

  • Added smooth pointer-based reordering for question options.
  • Unified question-option movement controls with the existing slide controls.
  • Updated Up and Down controls to use the standard Activities icons.
  • Updated option deletion to use the same destructive icon and styling as slide deletion.
  • Prevented accidental editor activation during drag operations.

Security and dependencies

  • Updated @fastify/static to 10.1.10.
  • Updated its production glob dependency chain.
  • Attempt deletion remains protected by authentication, CSRF validation, and Activity ownership checks.
  • Correct-answer data remains restricted to authenticated administrative result endpoints.
  • Public Activity payloads continue to exclude private answer keys.

Compatibility

  • No database schema changes.
  • No destructive migrations.
  • Existing Activities and published versions remain compatible.
  • Existing legacy Live data and URLs remain unchanged.
  • Existing Links and Pages behavior remains unchanged.
  • No Docker Compose changes are required.

Verification

  • TypeScript checks pass.
  • All 163 automated tests pass.
  • Production client and server builds pass.
  • Production HTTP and compression verification passes.
  • Dependency audit completed after the Fastify static update.
  • Docker no-cache build and isolated health check pass.
  • Activities loopback load scenarios with 50, 200, and 500 fictional participants pass.

ShortSwitch v1.3.0

Choose a tag to compare

@belikellwyd belikellwyd released this 03 Nov 17:54

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.

ShortSwitch v1.2.0

Choose a tag to compare

@belikellwyd belikellwyd released this 18 Oct 14:55

ShortSwitch v1.2.0

This release focuses on a major usability overhaul of the Pages Content Editor while preserving the existing Pages data format, public rendering, API, and storage model.

Pages Editor

  • Redesigned existing block cards to be more compact and easier to scan.
  • Removed the duplicated drag handle and kept a single dedicated handle.
  • Added direct card activation for opening the existing block editor.
  • Moved visibility and deletion actions into a compact overflow menu.
  • Improved hidden-block presentation and status indication.
  • Added contextual block insertion controls between existing blocks.
  • Replaced the permanently visible block palette with a compact searchable popover.
  • Added dedicated “Add first block” and “Add block” actions.
  • Newly inserted blocks now open directly in their existing editor.

Drag and drop

  • Reworked block dragging with a full opaque drag preview.
  • Added correctly sized placeholders and smooth position transitions.
  • Added automatic scrolling near the edges of the block list.
  • Restricted pointer dragging to the dedicated left handle.
  • Added touch-compatible pointer handling.
  • Added keyboard reordering using Arrow Up, Arrow Down, Home, and End.
  • Prevented accidental editor or menu activation after dragging.

Double blocks

  • Double blocks are now created immediately without an unnecessary configuration modal.
  • Empty Double slots display their own Add Block actions.
  • Block types can be selected directly for a specific Double slot.
  • Selecting a nested block type immediately opens its editor.
  • Existing nested blocks now open independently instead of editing both sides at once.

Link selection

  • Combined ShortSwitch Link search and selection into one control.
  • Links can be searched by slug, destination URL, or comment.
  • Improved selected-link presentation and empty-result handling.

Live Preview integration

  • Hovering or focusing a block highlights its matching Preview element.
  • Hovering a Preview element highlights the corresponding editor card.
  • Clicking a Preview element opens the appropriate block editor.
  • Nested Double blocks are matched using stable block identifiers.
  • Editor and Preview panels scroll automatically when the matching block is outside the visible area.
  • Editor-only interactions do not affect published Pages.

UI and accessibility

  • Improved popover positioning based on the actual viewport space.
  • Improved editor and Preview panel height handling on desktop.
  • Removed unwanted card movement and intermittent outlines.
  • Improved modal closing behavior: editors close only through Close or Escape.
  • Improved focus restoration and keyboard navigation.
  • Fixed unnecessary mobile Content tab spacing.
  • Reduced Preview flickering when changing background pattern intensity.

Compatibility

  • No Pages API changes.
  • No database schema changes.
  • No changes to the stored block format.
  • No changes to public Page URLs.
  • No changes to published Page interactions.
  • Existing Pages and Double blocks remain compatible.

Verification

  • TypeScript checks pass.
  • All 83 automated tests pass.
  • Production client and server builds pass.
  • Production HTTP verification passes.
  • Docker image builds without cache and starts successfully.

ShortSwitch v1.1.0

Choose a tag to compare

@belikellwyd belikellwyd released this 18 Oct 07:23

What's new

ShortSwitch v1.1.0 is a backward-compatible feature and usability update focused on localization, synchronized user preferences, Pages customization, and analytics consistency.

User preferences

  • Added SQLite-backed user preferences.
  • Theme, interface language, and sidebar state now synchronize between authenticated sessions and devices.
  • Added optimistic preference updates with a local startup cache.
  • Prevented preferences from leaking between signed-in users.

Themes

  • Added a three-state Light / Auto / Dark theme selector.
  • Auto mode follows the operating system color scheme and reacts to changes without reloading.
  • Added early theme initialization to prevent incorrect-theme flashing.
  • Fixed chart tooltips after switching between light and dark themes.

Localization

  • Added complete English and Latvian localization using Vue I18n.
  • Added instant language switching in the administration interface.
  • Public Links, Pages, and Live interfaces automatically select English or Latvian from the visitor's primary browser language.
  • Server-rendered public error and password pages use the primary Accept-Language value.
  • English remains the fallback language.
  • User-created content is never translated.

Pages

  • Added lightweight CSS/SVG background patterns:
    • None
    • Dots
    • Grid
    • Soft Glow
    • Crosses
  • Added configurable pattern intensity.
  • Patterns work in the editor preview and on published Pages.
  • Existing Pages retain their previous appearance by default.
  • Legacy stored patterns remain compatible.

Analytics and charts

  • Added a shared deterministic color system for Pie and Donut charts.
  • Chart sectors, legends, icons, and tooltips now use matching category colors.
  • Unknown and aggregated Other categories consistently use gray.
  • Improved chart readability in light and dark themes.
  • Fixed seamless Daily, Weekly, and Monthly trend switching.
  • Improved adaptive X-axis label spacing on smaller desktop and mobile layouts.
  • Updated chart tooltips immediately when the application theme changes.

Reliability and compatibility

  • Added backward-compatible SQLite schema upgrades.
  • Existing Links, Live activities, Pages, slugs, responses, and analytics remain compatible.
  • No additional services or databases are required.
  • Public URLs and Short URL behavior are unchanged.
  • Existing Docker volume deployments remain supported.

Validation

  • TypeScript checks passed.
  • 80 automated tests passed across 19 test files.
  • Production verification passed.
  • Clean Docker build and isolated container startup passed.
  • Docker healthcheck passed.
  • npm production dependency audit reported no vulnerabilities.
  • Brotli/gzip delivery and HTTP cache policies were verified.
  • Links, Live SSE, Pages, public routes, and analytics passed isolated smoke and 50-client loopback tests.

Upgrade notes

  1. Back up the persistent ShortSwitch data volume or SQLite database.
  2. Pull the new Docker image.
  3. Recreate only the ShortSwitch service.
  4. Backward-compatible SQLite upgrades are applied automatically during startup.
  5. Verify /api/health and the main public routes after startup.

Known notes

The current Debian-based Docker image contains no critical vulnerabilities. Docker Scout reports several high-severity findings in base operating-system packages for which fixed package versions are not currently available. Rebuild the image when updated base packages become available.