Repository navigation
fix: show follow back on profiles and hover cards - #859
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Pass inbound follow state resources/js/pages/user/show.tsx |
The profile page passes followsYou to FollowButton. |
Display and test follow-back state resources/js/components/user-preview.tsx, tests/Unit/FollowState.test.tsx, KNOWLEDGE_BASE.md |
The preview button uses “Follow back” when the user follows the viewer and the viewer does not follow them. Tests cover “Follow back,” “Follow,” and “Unfollow.” The button and loading placeholder minimum widths change from 24 to 26. The developer documentation notes the follow-back option. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
- dev-null-sh/dev-null.sh#1156: Updates the shared
FollowButtonuser contract used on the profile page. - dev-null-sh/dev-null.sh#1173: Displays a follow-back state for accounts that follow the viewer.
Suggested reviewers: xheaven, mnapoli
Merge Risk: 
Minimal · up to 99e22
-
The follow-back change is ready to merge with no identified material risk.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title "fix: show follow back on profiles and hover cards" matches the changeset. The raw summary says the profile page now passes followsYou to FollowButton, the user preview follow button shows "Follow back" when the user follows the viewer, and the docs now describe Follow back on profiles and hover cards. The PR objectives describe the same goal of showing "Follow back" when a user already follows the viewer. The title is specific and concise, and it names the main user-visible change.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 3 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Summary
Show “Follow back” on profiles and user hover cards when the developer already follows you and you do not follow them yet. The hover card previously showed “Follows you” beside a “Follow” button.
Changes
Validation
composer test:lint— passed with an isolated temporary cache after the initial run referenced a deleted checkout from Rector’s shared container cache.composer test:typesandcomposer test:type-coverage— passed; type coverage 100%.bun run test:unit— 221 passed.bunx vp test run --config tests/draft-images.config.ts tests/Unit/FollowState.test.tsx tests/Unit/GuestFollow.test.tsx— 31 passed.XDEBUG_MODE=coverage php -d memory_limit=-1 vendor/bin/pest --parallel --ci --coverage --exactly=100.0 --passthru-php="'-d' 'memory_limit=-1'"— 5,195 passed, 28,163 assertions, 100% coverage.bun run build— passed.Independent review
Independent reviewer: CODE PASS and UI behavior PASS for base
6105f8f76d3f35b30f1733d66b34b239e3fcdb3e→ head99e222b7a571aaade292c7c1fc5de54a8e88468b. Reviewer independently ran the 31 focused TSX tests and checked follower/stranger labels and responsive geometry in the running app.Limitations
Browser verification used live DOM, accessibility, and geometry without captured media. Mobile coverage used viewport emulation, not hardware or a simulator. No mobile interaction was changed. Hosted CI is checked separately before merging.
Summary by CodeRabbit