feat: Add interactive HTML export with DataTables.js - #21
Open
devhysterical wants to merge 4 commits into
Open
Conversation
Implements HTML export functionality, completing TODO item from README. ## Features - Interactive table with sorting, searching, and pagination - Color-coded performance metrics (green/yellow/orange/red) - Type badges for Partials (P) and Views (V) - Beautiful gradient UI design - Mobile responsive layout - Powered by jQuery DataTables ## CLI Usage ```bash log_analyzer log/production.log -html log_analyzer log/production.log -html --short ``` ## Changes - Add to_html method in Analyzer class - Add -html CLI option - Add comprehensive test suite - Create demo HTML file - Update README with new examples ## Documentation - Add CONTRIBUTING.md guide - Add CHANGELOG.md - Add PR template - Add GitHub Actions CI workflow - Migrate from Travis CI to GitHub Actions - Add support for Ruby 2.7-3.3 ## Testing - All existing tests pass - New specs for HTML export - Validated HTML structure - Security: HTML escaping for XSS prevention No breaking changes. Fully backward compatible. Closes TODO item: "export to HTML/CSS/JS with datatable.js"
Implements HTML export functionality, completing TODO item from README. ## Features - Interactive table with sorting, searching, and pagination - Color-coded performance metrics (green/yellow/orange/red) - Type badges for Partials (P) and Views (V) - Beautiful gradient UI design - Mobile responsive layout - Powered by jQuery DataTables ## CLI Usage ```bash log_analyzer log/production.log -html log_analyzer log/production.log -html --short ``` ## Changes - Add to_html method in Analyzer class - Add -html CLI option - Add comprehensive test suite - Create demo HTML file - Update README with new examples ## Documentation - Add CONTRIBUTING.md guide - Add CHANGELOG.md - Add PR template - Add GitHub Actions CI workflow - Migrate from Travis CI to GitHub Actions - Add support for Ruby 2.7-3.3 ## Testing - All existing tests pass - New specs for HTML export - Validated HTML structure - Security: HTML escaping for XSS prevention No breaking changes. Fully backward compatible. Closes TODO item: "export to HTML/CSS/JS with datatable.js"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements interactive HTML export functionality with DataTables.js, completing the TODO item "export to HTML/CSS/JS with datatable.js" from the README.
Features
Usage
Files Changed
Core Implementation
lib/log_analyzer/analyzer.rb- Addedto_html()method and HTML generation logicbin/log_analyzer- Added-htmlCLI option