Skip to content

feat(logs): add log download via File/Current and Range endpoints - #1468

Merged
harshithmohan merged 1 commit into
masterfrom
feat/logs-download
Sep 14, 2026
Merged

harshithmohan merged 1 commit into
masterfrom
feat/logs-download

Conversation

@harshithmohan

Copy link
Copy Markdown
Member

Summary

Adds a Download logs action to the Logs page. It downloads the current log file when no filters are active, and downloads the full filtered log history (matching the active search/level filters) when they are.

Changes

Added

  • logging/mutations.tsuseLogsDownloadMutation: hits Logging/File/Current/Download when no filters are active, Logging/Range/Download with level/message params otherwise; saves the response blob via an object-URL anchor click with a shoko-logs-<timestamp>.txt filename.
  • logging/helpers.tstoServerSearch (with private hasDslPrefix) moved here from LogSearchView.tsx so the search and download paths share one DSL wrapping.
  • LogsPage.tsx — download icon button next to clear filters; spinner/disabled state while in flight; error toast on failure.
  • IconButton.tsx — additive loading prop forwarded to Button.

Fixed

  • LogSearchView.tsx — imports toServerSearch from the shared helpers module (local copies removed).

@harshithmohan
harshithmohan enabled auto-merge (squash) September 14, 2026 17:34
@harshithmohan
harshithmohan merged commit 05f8dc6 into master Sep 14, 2026
3 checks passed
@harshithmohan
harshithmohan deleted the feat/logs-download branch September 14, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant