Skip to content

feat(app): Logs page with recent events and a level filter (#253) - #327

Merged
rowkav09 merged 1 commit into
mainfrom
feat/logs-page
Sep 24, 2026
Merged

rowkav09 merged 1 commit into
mainfrom
feat/logs-page

Conversation

@rowkav09

Copy link
Copy Markdown
Member

Part of #253 (Logs slice).

Adds /logs to the running app:

  • the newest events from %LOCALAPPDATA%\nowplaying\logs\nowplaying.log (last 64 KB, up to 200 events), newest first, refreshing every 3 s
  • a level filter (everything / warnings and errors / errors only) and a Copy button for what's shown
  • Status, Settings and Logs pages link to each other

Privacy: the log already holds only time, level, component, status and a short code. log-tail.js checks each line against that shape again and drops anything else, so a hand-edited log can't put a server address or token on the page. /api/logs is GET/HEAD only and refuses cross-site requests; a read error returns log_unreadable without the path.

Levels use the existing classes: warning and error are orange shades, never red/green. The troubleshooting doc mentions the page.

@github-actions

Copy link
Copy Markdown
Contributor

/mira pause

@github-actions github-actions Bot added mira-paused Pause automatic Mira reviews on this pull request area:server area:docs size:L labels Sep 24, 2026
@codecov

codecov Bot commented Sep 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@rowkav09

Copy link
Copy Markdown
Member Author

No Mira review (auto-paused). All checks green; merging.

@rowkav09
rowkav09 merged commit 3328ab4 into main Sep 24, 2026
13 checks passed
@rowkav09
rowkav09 deleted the feat/logs-page branch September 24, 2026 00:12
@github-project-automation github-project-automation Bot moved this from Backlog to Done in nowplaying Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs area:server mira-paused Pause automatic Mira reviews on this pull request size:L

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant