feat: enhance banner aesthetics with gradient colors, Unicode fonts, and demo mode#1
Merged
Conversation
- Update project name in all relevant files including .gitignore, .goreleaser.yml, README, and configuration examples. - Modify binary output name and build commands in Makefile and CI workflows. - Adjust environment variable prefixes and configuration paths to reflect the new project name. - Update tests and documentation to reference sysgreet instead of hostinfo.
- Add demo mode to sysgreet for showcasing a static banner with fake data. - Update README to include a demo output image and improve aesthetic descriptions. - Modify configuration examples to reflect new font options and gradient support. - Adjust ASCII rendering to support gradient colors in the banner output.
- Replace the existing sysgreet.png with a new version to enhance visual branding.
- Replace the existing logo with a padded version to improve visual presentation.
- Insert a newline character before the header in the layout rendering to improve output formatting.
- Added gradient color support for banner lines, cycling through a defined color gradient. - Introduced 6 new Unicode block fonts for enhanced ASCII art rendering. - Implemented `--demo` flag to display a 'SYSGREET' banner with fake data for demos. - Added `--text` flag to render custom text as ASCII art. - Updated README and documentation to reflect new features and configuration examples.
- Changed expected default ASCII font from "slant" to "ANSI Regular" in multiple test cases. - Updated integration tests to reflect the new default font setting for consistency across configurations.
- Refactored the Bootstrap function to improve readability and maintainability by extracting logic into separate functions for handling existing configurations and creating new ones. - Introduced helper functions for merging configuration settings, enhancing modularity and clarity in the configuration management process. - Updated tests to ensure consistent behavior across configuration handling scenarios.
- Updated the error variable name from `ErrUserCancelled` to `ErrUserCanceled` for consistency in the bootstrap package. - Adjusted related error handling in the bootstrap process to reflect the new variable name. - Improved comments and formatting in the system collector and rendering code for clarity.
- Added 'sysgreet' to .gitignore to exclude the binary from version control. - Removed the 'sysgreet' binary file from the repository. - Adjusted the CI workflow to maintain coverage reporting without changes to test execution.
- Replaced the 'exportloopref' linter with 'copyloopvar' in the .golangci.yml file to enhance code quality checks.
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.
Summary
Major visual overhaul of the banner system with new default styling, gradient color support, and special rendering modes. The new defaults provide a tighter, more professional appearance using Unicode block characters similar to modern CLI tools.
slanttoANSI Regular(compact Unicode blocks)--demoflag for screenshots with fake data--textflag for custom ASCII art renderingKey Changes
Added
--demoflag - Display 'SYSGREET' banner with realistic fake data for screenshots--textflag - Render custom text as ASCII art (e.g.,--text "Production DB")Changed
slant→ANSI Regular(compact Unicode blocks)hostinfo→sysgreetthroughout codebaseDocumentation
Test Plan
make test)make build)Breaking Changes
Visual Comparison
Before:
slantfont, single random colorAfter:
ANSI Regularfont, gradient colors (brightblue → white)See media/demo.jpg for the new default output.