Skip to content

Conversation

@BenjaminMichaelis
Copy link
Member

@BenjaminMichaelis BenjaminMichaelis commented Feb 13, 2025

Fixes #296

This pull request introduces a new feature for tracking user referrals.

Referral Tracking Feature:

  • User Model Updates:

    • Added ReferrerId and ReferralCount properties to the EssentialCSharpWebUser class to store referral information.
  • New Referral Management Pages:

    • Created Referrals.cshtml and Referrals.cshtml.cs to display and manage user referrals. [1] [2]
    • Updated Index.cshtml.cs to include ReferralCount in the user profile management page. [1] [2]
  • Navigation Adjustments:

    • Added referral navigation links and classes in ManageNavPages.cs and _ManageNav.cshtml. [1] [2] [3]

Middleware for Referral Tracking:

  • ReferralTrackingMiddleware:
    • Implemented ReferralTrackingMiddleware to handle referral tracking logic, including processing referral IDs from query strings and updating user referral counts.

@BenjaminMichaelis BenjaminMichaelis force-pushed the 296-referrer-ids branch 2 times, most recently from b48bd1a to d74d604 Compare February 13, 2025 23:27
@BenjaminMichaelis BenjaminMichaelis changed the title feat: Allow referral id's feat: Create Referrer Id's to track link shares for users Feb 13, 2025
@BenjaminMichaelis BenjaminMichaelis self-assigned this Feb 13, 2025
@BenjaminMichaelis BenjaminMichaelis marked this pull request as ready for review February 13, 2025 23:37
@BenjaminMichaelis BenjaminMichaelis force-pushed the 296-referrer-ids branch 3 times, most recently from 5b2de1b to 2b892c0 Compare February 14, 2025 20:35
@BenjaminMichaelis BenjaminMichaelis added the enhancement New feature or request label Feb 14, 2025
@BenjaminMichaelis BenjaminMichaelis force-pushed the 296-referrer-ids branch 4 times, most recently from 9823896 to a664d00 Compare February 14, 2025 23:25
@BenjaminMichaelis BenjaminMichaelis enabled auto-merge (squash) March 12, 2025 23:26
@BenjaminMichaelis BenjaminMichaelis merged commit 7177b74 into main Mar 12, 2025
5 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the 296-referrer-ids branch March 12, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Referrer Id's?

4 participants