Skip to content

fix(frontend): hover animation on project cards not moving billing badge#5079

Merged
jog1t merged 1 commit into
mainfrom
05-20-fix_frontend_hover_animation_on_project_cards_not_moving_billing_badge
May 21, 2026
Merged

fix(frontend): hover animation on project cards not moving billing badge#5079
jog1t merged 1 commit into
mainfrom
05-20-fix_frontend_hover_animation_on_project_cards_not_moving_billing_badge

Conversation

@jog1t
Copy link
Copy Markdown
Contributor

@jog1t jog1t commented May 20, 2026

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 20, 2026

Code Review: fix(frontend): hover animation on project cards not moving billing badge

PR is already merged. This is a retrospective review.

Overview

A one-line Tailwind CSS fix that ensures the billing badge button on project cards participates in the card's hover/active animation, instead of remaining stationary while the rest of the card moves.

Change Analysis

The diff adds three Tailwind classes to the billing badge <button>:

  • transition-all duration-150 — enables smooth CSS transitions for all properties over 150ms
  • group-hover:-translate-y-0.5 — translates the badge upward by 2px when the parent card (group) is hovered, matching the card's lift animation
  • group-active:translate-y-0 — resets the translation when the card is pressed/active

Assessment

Correctness: The fix is correct. The parent card element has the group class (implied by the use of group-hover:* on children), and the badge was missing these classes, causing it to stay in place during the card hover animation. The added classes replicate the expected behavior.

Code quality: Clean, minimal, idiomatic Tailwind usage. No unnecessary changes.

Duration consistency: Worth verifying the parent card's hover animation also uses duration-150. If the card uses a different duration (e.g. duration-200), the badge will animate out of sync. A quick check of the surrounding card element's classes would confirm alignment.

transition-all scope: Using transition-all is slightly broad since only transform is changing here, but for a small badge element the practical difference is negligible.

Minor Suggestions

  • The PR description checklist was left entirely unchecked. Even for small fixes, checking the self-review box helps signal the author verified the change.
  • Consider transition-transform instead of transition-all to be more precise, though this is a minor stylistic point.

Verdict

Straightforward, correct fix. No issues.

Copy link
Copy Markdown
Contributor Author

jog1t commented May 21, 2026

Merge activity

  • May 21, 8:51 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 21, 8:57 PM UTC: Graphite rebased this pull request as part of a merge.
  • May 21, 8:57 PM UTC: @jog1t merged this pull request with Graphite.

@jog1t jog1t changed the base branch from 05-20-fix_frontend_missing_skeleton_view_for_actor_names to graphite-base/5079 May 21, 2026 20:54
@jog1t jog1t changed the base branch from graphite-base/5079 to main May 21, 2026 20:55
@jog1t jog1t force-pushed the 05-20-fix_frontend_hover_animation_on_project_cards_not_moving_billing_badge branch from e4790ff to a5dd228 Compare May 21, 2026 20:56
@jog1t jog1t merged commit 105f376 into main May 21, 2026
8 of 11 checks passed
@jog1t jog1t deleted the 05-20-fix_frontend_hover_animation_on_project_cards_not_moving_billing_badge branch May 21, 2026 20:57
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