Skip to content

Add Ability for Users to select which advertiser network they want to use to make an affiliate link for a specific brand #9

Description

@afftester

Facts:

  • User can have multiple UserBrandRelationship with the same brand through different advertisers
  • Currently, if a user wants to create an affiliate link for a brand, the system sends the request to the first advertiser returned by the logic in:
    const userBrandRelationship = await prisma.userBrandRelationship.findFirst({
    where: {
    user: {
    id: userId,
    },
    brand: {
    url: modifiedUrl,
    },
    },
    include: {
    brand: true,
    userAdvertiserRelation: true,
    brandAdvertiserRelation: true,
    },

Desired end-state:

  • Add another tab in the user settings section (apps/web/app/app.affeasy.link/(dashboard)/settings/layout.tsx) which shows users all brands that the user is partnered with, through which advertisers (if multiple). also allow users to select which advertiser they want to use to create an affiliate link (will also have to modify function processLink in apps/web/lib/api/links.ts)

@MentatBot can you make this happen please.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions