Skip to content

feat(web): add log viewer with full session history - #592

Merged
ReenigneArcher merged 2 commits into
masterfrom
feat/log-viewer
Oct 3, 2026
Merged

ReenigneArcher merged 2 commits into
masterfrom
feat/log-viewer

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Add log filtering, search, warning and error navigation, live refresh, and filtered downloads. Preserve current-session history across file rotation with batched loading and paging. Consolidate logging into themerr, backend, and yt-dlp channels and mask sensitive log content.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

Add log filtering, search, warning and error navigation, live refresh, and filtered downloads. Preserve current-session history across file rotation with batched loading and paging. Consolidate logging into themerr, backend, and yt-dlp channels and mask sensitive log content.
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.74797% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.99%. Comparing base (ae49c57) to head (8433a87).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/common/log_viewer.py 97.79% 2 Missing and 1 partial ⚠️
src/common/logger.py 95.38% 2 Missing and 1 partial ⚠️
src/common/path_policy.py 90.47% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #592      +/-   ##
==========================================
+ Coverage   87.47%   87.99%   +0.52%     
==========================================
  Files          32       34       +2     
  Lines        3562     3758     +196     
  Branches      521      552      +31     
==========================================
+ Hits         3116     3307     +191     
- Misses        298      303       +5     
  Partials      148      148              
Flag Coverage Δ
Linux-aarch64 87.75% <96.74%> (+0.53%) ⬆️
Linux-x86_64 87.75% <96.74%> (+0.53%) ⬆️
Windows-AMD64 87.87% <96.73%> (+0.53%) ⬆️
Windows-ARM64 87.87% <96.73%> (+0.53%) ⬆️
macOS-arm64 87.75% <96.74%> (+0.53%) ⬆️
macOS-x86_64 87.75% <96.74%> (+0.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/common/__init__.py 87.09% <100.00%> (ø)
src/common/admin.py 97.19% <100.00%> (+0.01%) ⬆️
src/common/helpers.py 94.57% <100.00%> (+0.08%) ⬆️
src/common/http.py 96.90% <100.00%> (+1.66%) ⬆️
src/common/webapp.py 93.03% <100.00%> (+0.15%) ⬆️
src/youtube/youtube_dl.py 87.71% <ø> (ø)
src/common/path_policy.py 90.47% <90.47%> (ø)
src/common/log_viewer.py 97.79% <97.79%> (ø)
src/common/logger.py 75.00% <95.38%> (+3.30%) ⬆️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae49c57...8433a87. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/common/log_viewer.py Fixed
Select log files from fixed mappings and share relative-path validation and canonical containment checks across file readers and HTTP responses. Add repository guidance and traversal regression tests. Simplify log history loading and correct token filtering, test assertions, and accessible controls.
@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit 42a037f into master Oct 3, 2026
27 checks passed
@ReenigneArcher
ReenigneArcher deleted the feat/log-viewer branch October 3, 2026 23:46
@ReenigneArcher ReenigneArcher added this to the standalone milestone Oct 4, 2026
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.

2 participants