-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/416 Added support for multiple call to actions per project. #447
Conversation
…mits for the amount of CTA's and duplicate CTA's.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good Tristan! Code looks code, it's amazing how fast you were able to get familiar with the codebase. Good job! I have one small remark (nothing spectacular). I noticed that I'm able to add 2 call to actions with the same option-value while in the create function this is not possible. Could you take a look into this please?
Overall it looks really good, keep up the good work.
I will fix that as soon as possible, thanks for the remark! |
Please note that the frontend is not yet ready for this PR to be merged. See comment: DigitalExcellence/dex-frontend#454 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one minor change requested!
Nice first PR 👍
API/Controllers/ProjectController.cs
Outdated
Instance = "965D9C50-064F-4AFD-8CEB-28E556E47906" | ||
}; | ||
return BadRequest(problem); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this check if there are duplicate OptionValues
instead of Values
? Option value is the type of call to action (e.g "Join today") and value is the url ("https://github.com/digitalexellence/dex-frontend"). Right now it's not possible to link the same page twice, I don't think that that is the behaviour we want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, as this is the second pull-request for this issue, it may be a little unclear. But in the previous PR #440 it was asked to also check for the values. So currently it's not possible to add any duplicate buttons as that could be unclear and it's not possible to add multiple of the same URL's.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think people should be able to add the same url on different buttons, maybe @RubenFricke & @niraymak can give their opinion on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion, the URL can be the same in multiple added call to actions. However, you should not be able to add 2 the same call to action (I think I also mentioned this in the other pull request, but I can't remember anything said about checking on the values). @niraymak do you have any opinions about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you. @RubenFricke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, I'll update this today.
….com/DigitalExcellence/dex-backend into feature/416-2-multiple-calltoactions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will approve when frontend is ready for it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just finished the front-end implementation, everything worked as expected. Good work!
Description
Added support for multiple call to actions per project, with the limits and conditions discussed in #440 .
Type of change
Checklist
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
These steps will be used during release testing.
Add a single call to action
Add Multiple call to actions
Add call to action with invalid action value
Add call to action with duplicate action values
Add more than four call to actions
Link to issue
Closes: #416