Skip to content

fix(requests): fill poster hover overlay - #663

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
tomislav:codex/fix-request-poster-hover-overlay
Aug 21, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
tomislav:codex/fix-request-poster-hover-overlay

Conversation

@tomislav

@tomislav tomislav commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Follow-up to #7.

The Requests discovery card rendered its hover gradient in an absolutely positioned sibling of the poster frame. Its sizing could diverge from the poster, leaving a visible uncovered strip and shifting the Request button away from the poster center.

Approach

  • Render the black hover gradient inside the poster's clipped .media-card-image frame with inset-0.
  • Keep the interactive Request button outside the card link to preserve valid DOM nesting and existing click propagation behavior.
  • Make the button layer explicitly match the poster width.
  • Add a regression test that requires the hover overlay to be contained by the poster frame.

Testing

$ pnpm exec vitest run src/components/RequestPosterCard.test.tsx
Test Files  1 passed (1)
Tests       3 passed (3)

$ pnpm exec eslint src/components/RequestPosterCard.tsx src/components/RequestPosterCard.test.tsx
(exit 0)

$ pnpm run format:check
All matched files use Prettier code style!

$ pnpm run build
✓ built in 15.79s

$ make verify-local-paths
scripts/check-local-path-leaks.sh
(exit 0)

Browser verification on a real rendered card measured the poster, gradient overlay, and button layer at the same 184 × 276 px hover rectangle. The browser console had no warnings or errors.

Repository-wide baseline checks were also run and are not clean on this checkout:

$ make test
FAIL internal/jellycompat
  TestBeginWebOperationRecoversDeadProcessLock
  TestBeginWebOperationRejectsLiveProcessLock
FAIL internal/playback
  TestResolveHWAccelWithFFmpegAutoPrefersNVENCOverIntel
  TestResolveHWAccelWithFFmpegUsesNVIDIADeviceNodesWithoutDRM
  TestFFmpegSupportsNVENCCachesByFFmpegPath
  TestFFmpegSupportsNVENCSmokeProbeUsesSafeFrameDimensions
FAIL internal/transcodenode
  TestHandleDownloadPrepareTrackingDoesNotBlockAndRemovesAfterTrack

$ make lint
300 pre-existing Go findings across untouched files

$ pnpm run lint
0 errors, 151 pre-existing warnings

The two jellycompat process-lock failures reproduce when that untouched package is run independently. The changed frontend files pass their focused lint, test, formatting, build, and browser checks.

AI Disclosure

  • Tool(s): Codex desktop app
  • Model(s): gpt-5.6
  • Involvement: fully AI-generated
  • Adversarial review: A separate AI reviewer inspected the committed diff for requirements alignment, DOM validity, accessibility, styling edge cases, testing, and production readiness. It found no Critical, Important, or Minor issues. The review confirmed the gradient is clipped by the poster frame, the button remains outside the link with unchanged behavior, and the regression test protects the intended containment.

Checklist

  • I ran an adversarial AI review of the diff and summarized findings above.
  • I ran the repo verify commands and documented the existing repository-wide failures above; focused checks for the changed frontend files pass.

Summary by CodeRabbit

  • Bug Fixes

    • Improved the hover and focus appearance of request cards by keeping the gradient overlay contained within the poster frame.
    • Preserved request button alignment and smooth hover transitions across the full card width.
  • Tests

    • Added coverage confirming the request card hover overlay remains within the poster frame.

@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b73964bc-37b5-460b-a4f7-a989ee8c6e41

📥 Commits

Reviewing files that changed from the base of the PR and between edd919c and d0f0d60.

📒 Files selected for processing (2)
  • web/src/components/RequestPosterCard.test.tsx
  • web/src/components/RequestPosterCard.tsx

Included review availability: Your plan includes up to 2 reviews per rolling hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The request poster now renders its hover/focus gradient inside the poster frame. The request button container uses full-card width without its previous gradient and padding. A component test verifies the overlay is nested within the poster frame.

Changes

Request poster overlay

Layer / File(s) Summary
Overlay behavior and DOM validation
web/src/components/RequestPosterCard.tsx, web/src/components/RequestPosterCard.test.tsx
The component adds a non-interactive gradient overlay for hover and focus states. The request button container spans the card width without its previous gradient and padding. The test verifies that the overlay is nested within .media-card-image.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to d0f0d

This localized frontend change is merge-ready after normal checks and review; no actionable merge-blocking risk remains.

Suggested reviewers: quick104

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: fixing the request card poster hover overlay.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tomislav
tomislav marked this pull request as ready for review August 17, 2026 09:33
@tomislav

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@Quick104
Quick104 merged commit 21bed94 into Silo-Server:main Aug 21, 2026
3 checks passed
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.

2 participants