Skip to content

feat: implement social sharing, data export, referral program, and se…#843

Open
teslims2 wants to merge 2 commits into
StellarDevHub:mainfrom
teslims2:feature/issues-826-824-827-828
Open

feat: implement social sharing, data export, referral program, and se…#843
teslims2 wants to merge 2 commits into
StellarDevHub:mainfrom
teslims2:feature/issues-826-824-827-828

Conversation

@teslims2

Copy link
Copy Markdown
Contributor

PR: Implement Social Sharing, Contribution Export, Referral Program, and Contract Search

Description

This PR delivers four new platform features across the frontend, backend, and Soroban smart contracts. It introduces social sharing for the learning roadmap, contribution export APIs, a referral program contract, and enhanced search/filter capabilities for the smart contract playground.

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 change)
  • Documentation update
  • Dependency update
  • CI/CD improvement

Related Issues

Closes #824
Closes #826
Closes #827
Closes #828

Changes Made

#826 — Social Media Sharing

  • Added a reusable ShareButton component for the Web3 Learning Roadmap.

  • Supports sharing via:

    • Twitter/X
    • LinkedIn
    • Copy Link
  • Integrated the sharing controls into the roadmap node detail overlay.

  • Added component tests covering rendering and user interactions.

#824 — Contribution Data Export

  • Added contributionExportService supporting:

    • JSON export
    • CSV export
  • Added REST endpoints for exporting user contribution history.

  • Added tests validating response structure and content types.

#827 — Referral Program (Soroban)

  • Implemented a referral program smart contract with:

    • register_referral
    • get_referral_count
    • get_referrer
  • Prevents duplicate referrals and self-referrals.

  • Added unit tests for contract behavior.

  • Exported the referral module through lib.rs.

#828 — Smart Contract Playground Search

  • Added a ContractSearch component.

  • Supports:

    • Text-based search
    • Contract type filtering
    • Categories: All, Token, DeFi, Governance, NFT
  • Integrated into the Smart Contract Playground.

  • Added component tests for search and filtering behavior.

Testing

  • Unit tests added/updated
  • Component tests added
  • Backend API tests added
  • Manual testing performed

Documentation

  • README updated (not required)
  • Code comments added where appropriate
  • API documentation updated

Breaking Changes

  • No breaking changes

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code where necessary
  • My changes generate no new warnings
  • I have added tests that verify the new functionality
  • New and existing tests pass locally
  • No secrets or sensitive information were committed

Additional Context

This PR enhances multiple areas of the platform by improving content sharing, enabling contribution data portability, introducing referral tracking through Soroban smart contracts, and making the Smart Contract Playground easier to navigate with search and filtering capabilities.

…arch enhancements

- closes StellarDevHub#826: Add ShareButton component to Web3 Learning Roadmap with Twitter/X, LinkedIn, and copy-link sharing
- closes StellarDevHub#824: Add Data Export Feature for Open Source Contribution Trainer (JSON/CSV export service + routes + tests)
- closes StellarDevHub#827: Add Referral Program System as Soroban contract (register_referral, get_referral_count, get_referrer)
- closes StellarDevHub#828: Add ContractSearch component to Smart Contract Playground with text search and type filter
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@teslims2 is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@teslims2 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant