mc-dashboard/components
hurkicorgi cf467b26c7 Expanded scheduled tasks + keyboard shortcuts
- scripts/run-task.sh: dispatcher for say / backup / snapshot-prune with
  safe arg handling (message stripped of CR/LF, integer-clamped keep
  count). Logs to ~/logs/mc-dashboard/tasks.log (falls back to /tmp).
- New /api/schedule/tasks GET/POST/DELETE route: stores tasks as
  crontab lines with `# mc-task:<base64(json)>` marker so the UI can
  round-trip them. Strict server-side validation:
    - Cron expression regex (5 fields, * / N / N-N / N,N / */N)
    - say message: 1–120 chars, no newlines/backticks/shell quotes
    - snapshot-prune keep: integer 1–50
    - task id: 16-hex only
  Single-quote-escaped message in the generated shell command.
- ScheduledTasks UI under ServerControls (alongside the existing single
  ScheduledRestart): pick type (Announce / Backup / Prune snapshots),
  preset schedule (daily at HH:MM or every N hours), adds with one
  click. Tasks list shows human-readable schedule + "next in Xh" hint
  computed client-side. Hover-reveal Remove action.
- Admin keyboard shortcuts: when not typing,
    r — refetch the active tab's query keys (toast feedback)
    / — focus the first input/contenteditable in the active panel
    ? — toast the shortcuts cheat sheet
  Chord-free, mirrors existing ⌘K palette and Esc handlers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 05:57:39 -06:00
..
ui Initial commit: Minecraft dashboard 2026-04-13 00:46:58 -06:00
AdminTabs.tsx Expanded scheduled tasks + keyboard shortcuts 2026-04-13 05:57:39 -06:00
Analytics.tsx Pass 3 next slice: snapshot polish, analytics depth, player drawer 2026-04-13 05:39:32 -06:00
BackupManager.tsx UX polish pass 2: toasts, optimistic updates, mod update detection 2026-04-13 05:11:17 -06:00
ChatBridge.tsx SSE events bridge, PWA service worker, offline banner, lazy admin tabs 2026-04-13 05:48:00 -06:00
ClientOnly.tsx Initial commit: Minecraft dashboard 2026-04-13 00:46:58 -06:00
CommandPalette.tsx Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
DownloadCard.tsx Initial commit: Minecraft dashboard 2026-04-13 00:46:58 -06:00
EventsBridge.tsx SSE events bridge, PWA service worker, offline banner, lazy admin tabs 2026-04-13 05:48:00 -06:00
LogViewer.tsx Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
ModList.tsx UX/UI/perf pass: admin tabs, theme toggle, log polish, mod search, JAR cache 2026-04-13 04:58:25 -06:00
ModManager.tsx Pass 3 next slice: snapshot polish, analytics depth, player drawer 2026-04-13 05:39:32 -06:00
Navbar.tsx Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
OfflineBanner.tsx SSE events bridge, PWA service worker, offline banner, lazy admin tabs 2026-04-13 05:48:00 -06:00
PlayerAvatar.tsx Pass 3 next slice: snapshot polish, analytics depth, player drawer 2026-04-13 05:39:32 -06:00
PlayerDrawer.tsx Pass 3 next slice: snapshot polish, analytics depth, player drawer 2026-04-13 05:39:32 -06:00
PlayerManager.tsx UX polish pass 2: toasts, optimistic updates, mod update detection 2026-04-13 05:11:17 -06:00
ScheduledTasks.tsx Expanded scheduled tasks + keyboard shortcuts 2026-04-13 05:57:39 -06:00
ServerControls.tsx Expanded scheduled tasks + keyboard shortcuts 2026-04-13 05:57:39 -06:00
ServiceWorkerRegister.tsx SSE events bridge, PWA service worker, offline banner, lazy admin tabs 2026-04-13 05:48:00 -06:00
StatusBadge.tsx Initial commit: Minecraft dashboard 2026-04-13 00:46:58 -06:00
StatusCard.tsx SSE events bridge, PWA service worker, offline banner, lazy admin tabs 2026-04-13 05:48:00 -06:00
ThemeToggle.tsx UX/UI/perf pass: admin tabs, theme toggle, log polish, mod search, JAR cache 2026-04-13 04:58:25 -06:00