Skip to content

feat: add rainbow wave animation to progress bar#28

Open
AurelianoBR wants to merge 3 commits intoglauberlima:mainfrom
AurelianoBR:feat/rainbow-wave-progress-bar
Open

feat: add rainbow wave animation to progress bar#28
AurelianoBR wants to merge 3 commits intoglauberlima:mainfrom
AurelianoBR:feat/rainbow-wave-progress-bar

Conversation

@AurelianoBR
Copy link
Copy Markdown

Summary

  • Replace static tier-based progress bar coloring with a per-character rainbow wave using ANSI 256-color codes
  • Each filled block character gets a different color from a 12-color rainbow palette (red → orange → yellow → green → cyan → blue → purple → magenta)
  • Wave phase shifts once per second based on epoch time, creating a flowing animation across consecutive statusline invocations
  • Uses bash 5's EPOCHSECONDS when available (zero cost), falls back to date +%s on bash 3.2

Test plan

  • Integration tests: 29/29 passed
  • Bash syntax validation (bash -n): 6/6 passed
  • Manual visual testing at 0%, 28%, 50%, 90% context usage
  • Verify animation flow in live Claude Code session

🤖 Generated with Claude Code

AurelianoBR and others added 3 commits April 14, 2026 13:57
Replace static tier-based coloring with a per-character rainbow wave
using ANSI 256-color codes. Each filled block gets a different color
from a 12-color palette, and the phase shifts once per second based
on epoch time, creating a flowing wave effect across invocations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- SC2250: add braces around $color_idx and $_v variable references
- SC2310: extract is_present/validate_directory calls from if conditions
  to avoid set -e being disabled inside conditionals

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use `|| rc=$?` pattern to capture return codes outside any conditional
chain, satisfying shellcheck SC2310 which warns about set -e being
disabled inside if/&& conditions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant