Skip to content

feat(tui): add mouse parallax to banner snow animation - #5131

Merged
rumpl merged 1 commit into
docker:mainfrom
rumpl:feat/snow-parallax
Dec 5, 2026
Merged

rumpl merged 1 commit into
docker:mainfrom
rumpl:feat/snow-parallax

Conversation

@rumpl

@rumpl rumpl commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Add mouse-driven parallax to the TUI banner snow animation

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl
rumpl requested a review from a team as a code owner December 4, 2026 23:25
Copilot AI balanced review requested due to automatic review settings December 4, 2026 23:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the snow-animation parallax changes.

No open issues 🎉

What changed in this PR

Adds mouse-driven parallax to the TUI banner’s snow animation, giving near and far flakes different depths of motion.

Changes:

  • Applies smoothly interpolated, depth-dependent offsets to snowflakes.
  • Tracks pointer movement across the chat pane and recenters on leave or reset.
  • Adds tests for parallax rendering and pointer lifecycle behavior.
File Description
pkg/​tui/​page/​chat/​banner.go Connects pointer and lifecycle events to snow parallax.
pkg/​tui/​page/​chat/​banner_animation_test.go Tests pointer tracking and recentering integration.
pkg/​tui/​banner/​snow.go Implements smoothed, depth-dependent parallax.
pkg/​tui/​banner/​snow_test.go Tests smoothing, rendering, masking, and recentering.

Review effort: Balanced

@rumpl
rumpl enabled auto-merge December 4, 2026 23:27
@aheritier aheritier added area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat:). Use on PRs only. labels Dec 4, 2026
@rumpl
rumpl added this pull request to the merge queue Dec 5, 2026
Merged via the queue into docker:main with commit fccf0c6 Dec 5, 2026
17 checks passed
@rumpl
rumpl deleted the feat/snow-parallax branch December 5, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tui For features/issues/fixes related to the TUI kind/feat PR adds a new feature (maps to feat:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants