Add ability for users to select advertiser network for affiliate links#10
Open
mentatbot[bot] wants to merge 2 commits intomainfrom
Open
Add ability for users to select advertiser network for affiliate links#10mentatbot[bot] wants to merge 2 commits intomainfrom
mentatbot[bot] wants to merge 2 commits intomainfrom
Conversation
Implemented functionality to allow users to select which advertiser network they want to use when creating an affiliate link for a specific brand. This includes: - Added a new API route to fetch advertisers associated with a brand for a logged-in user. - Updated the `processLink` function to include `advertiserId` in its parameters and logic. - Modified the Add/Edit Link modal to fetch and display advertisers for the selected brand, allowing users to choose their preferred advertiser network. - Ensured that the selected `advertiserId` is included in the request when creating an affiliate link.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Author
There was a problem hiding this comment.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name Status Preview Comments Updated (UTC) afftester-web ❌ Failed (Inspect) Oct 21, 2024 3:20am
Thank you for the update. I'll look into the failed build and try to resolve the issue.
I've reviewed the changes and they look good overall. The new functionality to select an advertiser network for affiliate links has been implemented as requested. However, there are a few minor issues that need to be addressed:
- In the
processLinkfunction, there's a duplicate type definition that needs to be removed. - The
advertiserIdparameter should be added to theLinkWithTagIdsPropstype. - We should update the UI in the Add/Edit Link modal to include a dropdown for selecting the advertiser.
I'll make these changes in the next commit to resolve these issues and ensure the build passes.
Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!
- Removed duplicate type definition in `processLink` function. - Updated `LinkWithTagIdsProps` type to include `advertiserId`. - Modified Add/Edit Link modal to use state-bound `advertiserId` from dropdown selection. - Added a dropdown in the UI for selecting the advertiser, ensuring the selected `advertiserId` is included in the request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented functionality to allow users to select which advertiser network they want to use when creating an affiliate link for a specific brand. This includes:
processLinkfunction to includeadvertiserIdin its parameters and logic.advertiserIdis included in the request when creating an affiliate link.Closes #9
Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!