Skip to content

Conversation

@shivasurya
Copy link
Owner

Summary

Replace static code block on documentation homepage with dynamic animated terminal console showing realistic Code Pathfinder security scan output.

Changes

  • Created new AnimatedConsole.astro component with character-by-character typing animation
  • Implemented pool of 10 different vulnerability types for variety
  • Random selection of 2 vulnerabilities per animation loop
  • macOS-style terminal design with colored buttons (red, yellow, green)
  • Auto-looping animation with 5-second pause between iterations
  • Fast animation speed (1-8ms character delays)
  • Tight line spacing and proper left margin for scan output
  • Colorful syntax highlighting (green rule names, orange CWE codes, cyan filenames)
  • Better naming: flask_webapp project with owasp_ruleset rules

Visual Improvements

  • Fixed 500px terminal height with auto-scrolling
  • IntersectionObserver to start animation when scrolled into view
  • Proper spacing and alignment between command and output
  • Professional terminal aesthetic matching Code Pathfinder's brand

Test Plan

  • Animation triggers correctly when scrolling into view
  • Random vulnerability selection works (different vulns each loop)
  • Terminal styling matches macOS appearance
  • Auto-scroll and auto-loop function properly
  • Fast animation speed provides good UX
  • All 10 vulnerability types display correctly

🤖 Generated with Claude Code

shivasurya and others added 7 commits November 21, 2025 22:54
- Create new AnimatedConsole.astro component with typing animation
- Display actual pathfinder scan output with command and results
- Start with command being typed, then stream output quickly
- Use terminal-style colors (Catppuccin-inspired)
- Remove borders for authentic terminal experience
- Add blinking cursor that disappears when animation completes
- Use IntersectionObserver to trigger animation on scroll
- Update index.mdx to use AnimatedConsole instead of static code block

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Update command to use rules directory instead of specific file
- Apply critical-label color to entire heading line (through A03:2021)
- Adjust code color to lighter shade for better readability
- Improve spacing: larger padding (28px 32px), wider container (920px)
- Increase font size to 14px and line height to 1.6
- Enhance border radius to 12px for smoother appearance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add proper line break after command execution
- Improve visual separation between input and output sections

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Set max-height to 500px with vertical scrolling
- Auto-scroll to bottom as animation progresses
- Creates a more compact, terminal-like experience

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Animation restarts automatically after completion
- 5-second pause between loops
- Clears output and scrolls to top before restarting
- Creates continuous demo effect for homepage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add terminal header with red, yellow, green buttons (macOS style)
- Set fixed height of 500px for terminal container
- Terminal body uses flexbox to fill remaining space
- Content scrolls within fixed terminal window
- More authentic macOS terminal appearance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Reduce line-height from 1.6 to 1.4 for tighter vertical spacing
- Fix command-output alignment with proper line breaks
- Speed up animation: char delays reduced to 1-3ms (from 3-8ms)
- Reduce section pauses to 50ms (from 100-200ms)
- Faster, more natural terminal output experience

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@safedep
Copy link

safedep bot commented Nov 22, 2025

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

This report is generated by SafeDep Github App

@shivasurya shivasurya self-assigned this Nov 22, 2025
@shivasurya shivasurya added enhancement New feature or request documentation Improvements or additions to documentation labels Nov 22, 2025
@codecov
Copy link

codecov bot commented Nov 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.70%. Comparing base (ae24035) to head (6fad2c8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #398   +/-   ##
=======================================
  Coverage   80.70%   80.70%           
=======================================
  Files          77       77           
  Lines        7736     7736           
=======================================
  Hits         6243     6243           
  Misses       1248     1248           
  Partials      245      245           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Create pool of 10 different vulnerability types
- Randomly select 2 vulnerabilities each animation loop
- Update project name to flask_webapp (clearer than python_cpf_app)
- Update rules to owasp_ruleset (clearer than cpf_rules)
- Green color for rule names for better visual hierarchy
- Reduced line-height to 1.25 for tighter spacing
- Faster animation (1ms delays for most content)
- Added left margin to scan output only
@shivasurya shivasurya force-pushed the feat/animated-console-output branch from 6fad2c8 to a777f05 Compare November 22, 2025 04:14
@shivasurya shivasurya merged commit 28d9919 into main Nov 22, 2025
1 check passed
@shivasurya shivasurya deleted the feat/animated-console-output branch November 22, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants