Skip to content

feat: add follow button to contributor cards on about page - #1100

Open
tooinfinity wants to merge 1 commit into
dev-null-sh:productionfrom
tooinfinity:add_contributor_card_about
Open

tooinfinity wants to merge 1 commit into
dev-null-sh:productionfrom
tooinfinity:add_contributor_card_about

Conversation

@tooinfinity

Copy link
Copy Markdown
Contributor

Summary

Adds a follow icon button to each contributor card on /about so users can follow contributors directly on /dev/null, matching the "Who to follow" style.

Changes

  • resources/js/pages/about/show.tsx: Added FollowIconButton to contributor cards while preserving the 3-columns-per-row grid layout; hidden on the user's own card.
  • resources/js/components/follow-button.tsx: Handled guests (signIn()) and contributors not yet registered on /dev/null (toast notification on 404).
  • app/Http/Controllers/AboutController.php: Passed followingLogins lazy prop to initialize following states.
  • Tests: Added unit test (ContributorCard.test.tsx) and feature test (AboutControllerTest.php).

Validation

  • bun run test:types — Passed
  • bun run test:lint — Passed
  • bun run test:unit — Passed
  • ./node_modules/.bin/vp test tests/Unit/ContributorCard.test.tsx — Passed
  • ./vendor/bin/pest tests/Feature/Controllers/AboutControllerTest.php — Passed
  • Verified visual alignment (3 columns per row) and follow interaction in browser.

Visual evidence

  • Before
before-follow-contributer
  • After
after-follow-contributer

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