Loading
Add social share buttons to rewards table
What does this MR do and why?
Related to #79
Adds share buttons on each row of the Rewards table, visible only on your own profile (surface 2 of #79).
- Refactors
ShareButtons.vueto accept generictextandurlprops instead of profile-specific props (contributorLevel,points,username) - Moves
profileShareTextandprofileShareUrlcomputation toUserPage.vue - Adds a conditional
actionscolumn to the Rewards table, only visible whenownProfileistrue - Each reward row shows share buttons with the text: "I just earned a reward on the GitLab contributor platform!
🎁 " linking to the reward issue
Screenshots or screen recordings
Validation steps
- Navigate to your own profile
- Expand the Rewards section
- Verify share buttons (X, Bluesky, Mastodon, Copy link) appear on each reward row
- Verify share buttons do not appear when viewing another user's profile
- Verify the existing profile share button at the top of the page still works correctly