Merged
Conversation
- Updated the `README.md` to clarify the usage of the `axe preview report` command, including the new Markdown output option. - Modified `preview_report.go` to implement support for generating Markdown reports alongside PNG screenshots. - Added validation for output paths and formats in the report generation process. - Introduced tests to ensure correct handling of files without `#Preview` blocks and to validate output paths for Markdown reports. This update improves the reporting capabilities of the preview command, providing users with more flexible output options.
- Updated the `README.md` to include HTML as a new output option for the `axe preview report` command. - Modified `preview_report.go` to implement support for generating HTML reports alongside existing PNG and Markdown formats. - Refactored report generation logic to accommodate multiple output formats. - Added tests to validate the new HTML report generation and ensure correct handling of output paths. This update improves the versatility of the preview command, allowing users to generate responsive HTML reports in addition to existing formats.
- Added functionality to automatically open the generated HTML report using the default application. - Updated CSS styles for improved aesthetics, including background colors, text colors, and hover effects. - Introduced animation effects for report cards and adjusted layout for better responsiveness. - Enhanced the structure of the report with new header styles and improved section formatting. These changes improve the user experience by making the report visually appealing and easier to navigate.
- Replaced direct HTML escaping with the `html` package for improved safety and consistency. - Introduced structured data types for HTML report generation, enhancing readability and maintainability. - Updated the report template to utilize the new data structures, improving the organization of the generated HTML. - Enhanced the rendering logic to dynamically populate report data, including file and preview counts. These changes streamline the report generation process and improve the overall structure of the HTML output.
- Introduced functionality to capture and report failures during preview generation, allowing for more informative output. - Updated the rendering logic for both Markdown and HTML reports to include failure details, improving error visibility. - Added versioning information to reports, providing context for the generated output. - Refactored capture logic to support partial results, enabling report generation even when some captures fail. These changes enhance the robustness and usability of the reporting features in the preview command.
- Updated the rendering functions for Markdown and HTML reports to return errors, improving error handling during report generation. - Refactored the report generation logic to utilize helper functions for better readability and maintainability. - Enhanced the report templates to dynamically pluralize file and preview counts, improving the accuracy of displayed information. These changes enhance the robustness and clarity of the reporting features in the preview command.
- Updated the test for rendering Markdown reports to ensure proper escaping of pipe characters and newlines in both error messages and titles. - Refactored the report generation logic to enhance clarity and maintainability, ensuring that failures are accurately represented in the output. These changes enhance the robustness of the reporting features in the `axe preview report` command.
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.
axe preview reportcommand to support Markdown output formataxe preview reportcommand to support HTML output formataxe preview reportcommandaxe preview reportcommandaxe preview reportcommand