Skip to content
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

[CU-86dth9nnd] add channel to surveys #164

Merged

Conversation

cgarcia-lightit
Copy link
Collaborator

@cgarcia-lightit cgarcia-lightit commented Jun 6, 2024

Light It Pull Request Template ⚡⚡⚡

Resolve: CU-86dth9nnd

feat: implement the channel in the survey screens

Checklist ✅

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@martinopp
Copy link

@github-actions github-actions bot changed the title [FEATURE][86dth9nnd] Refactor Laravel Backend Architecture [CU-86dth9nnd] add channel to surveys Jun 6, 2024
Copy link
Collaborator

@sgoycoechea-lightit sgoycoechea-lightit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just hardcode the channels instead of saving it on the store, it isn't necessary, no?

@@ -21,30 +23,31 @@ const flowsWithSmallFooter: FlowType[] = [
];

export const CancerSurveyThankYou = () => {
const { flow, email, phase } = useSurveyStore();
const { flow, email, phase, channel } = useSurveyStore();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why grab it from the store if we already know it's cancer? This is the CancerSurveyThankYou component


export const SeniorSurveyThankYou = () => {
const { email, phase } = useSurveyStore();
const { email, phase, channel } = useSurveyStore();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Comment on lines +11 to +13
channel?: Channel;

setChannel(channel: Channel): void;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this

@github-actions github-actions bot removed the draft label Jun 6, 2024
@cgarcia-lightit cgarcia-lightit merged commit 5d372f7 into develop Jun 10, 2024
7 checks passed
@sgoycoechea-lightit sgoycoechea-lightit deleted the feature/CU-86dth9nnd/add-channel-to-surveys branch June 14, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants