Skip to content

Enhanced Report Visualization and Customization Options #2

@rafaelherik

Description

@rafaelherik

Overview

Implement improvements to the report visualisation system, including ANSI colour coding, detailed change tracking, and customisable report sections through command-line parameters.

Technical Details

1. Color-Coded Output

Implemented ANSI color coding for better visual distinction:

  • 🟢 Green: Resource creations
  • 🟡 Yellow: Resource updates
  • 🟥 Red: Resource deletions and high-risk findings
  • Bold formatting for headers and important information

2. Customizable Report Sections

Added new command-line parameters for granular control over report sections:

  • --risks: Display risk assessment section
  • --details: Show detailed resource changes
  • --show-module: Group resources by module
  • --show-changes: Display attribute-level changes

3. Detailed Change Tracking

Enhanced resource change visualization:

  • Attribute-level change tracking (before/after states)
  • Module-aware grouping
  • Hierarchical display of nested changes
  • Intelligent filtering of internal attributes

Implementation Benefits

  1. Improved Readability

    • Clear visual hierarchy through color coding
    • Better organization of information
    • Easier to identify critical changes
  2. Customizable Output

    • Users can focus on relevant information
    • Reduced noise in output
    • Flexible display options for different use cases
  3. Better Change Understanding

    • Detailed attribute tracking
    • Clear visualization of state transitions
    • Module-aware organization

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions