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

[RELEASE] #64

Merged
merged 41 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
db38b83
[FEATURE][CU-865da45qm] Athletes Feedback Survey (#36)
cgarcia-lightit Nov 16, 2023
ab9b700
[FEATURE][CU-86dqk6etj] Some Basics step (#37)
cgarcia-lightit Nov 27, 2023
bc5cd1a
Feature/86dqkm09a pass state to profiling form (#38)
cgarcia-lightit Nov 27, 2023
24be9f8
feature: add origin to redirec back, to able diferents domains redire…
cgarcia-lightit Nov 28, 2023
33694e8
[FEATURE][86dqm7ndu] Add experience with cannabis (#40)
cgarcia-lightit Nov 28, 2023
f6f3cd3
feat: changes modal on header and look and fell, add new environment …
cgarcia-lightit Dec 1, 2023
8c87967
[FEATURE][86dqp22d7] Cancer Care Signup/Pilot site Updates (#42)
cgarcia-lightit Dec 6, 2023
ab371c7
[FEATURE][86dqp22d7] Cancer Care Signup/Pilot site Updates (#43)
cgarcia-lightit Dec 6, 2023
1109452
Update UI for patient/caregiver question
LeoBLightIt Dec 6, 2023
0021d41
remove unused radio
LeoBLightIt Dec 6, 2023
1bc3e4d
Update for mobile viewing
LeoBLightIt Dec 6, 2023
78af620
Merge pull request #44 from Light-it-labs/update-patient-caregiver-qu…
LeoBLightIt Dec 6, 2023
7b46275
[FEATURE][86dqnp6fy] Update Seniors Care Plan Signup (#45)
cgarcia-lightit Dec 8, 2023
48ce2a5
[FEATURE][86dqnavqf] Implement Seniors Feedback Survey (#47)
cgarcia-lightit Dec 12, 2023
9fa7918
[FEATURE][86dqqqw1h] Updates to Thank you page (#46)
cgarcia-lightit Dec 12, 2023
880af7b
feature: change copy on creation account (#48)
cgarcia-lightit Dec 12, 2023
4d529c1
[FEATURE][86dqteqh5] Update the "Which best describes you" screen tit…
cgarcia-lightit Dec 12, 2023
b487035
fix: add compiled files
cgarcia-lightit Dec 12, 2023
efcf192
[BUGFIX] Resolve bad merge conflicts. (#50)
cgarcia-lightit Dec 12, 2023
916dadb
Update steps copy
LeoBLightIt Dec 13, 2023
54461fc
Merge branch 'develop' into update-stetps-copy
LeoBLightIt Dec 13, 2023
ce6c43a
build
LeoBLightIt Dec 13, 2023
3bb49df
Merge pull request #51 from Light-it-labs/update-stetps-copy
LeoBLightIt Dec 13, 2023
75e8e7a
deploy: add builds to deploy (#53)
cgarcia-lightit Dec 18, 2023
b56121c
[FEATURE][86dqv7bbn] Cancer Caregiver Survey (#54)
cgarcia-lightit Dec 18, 2023
aaab84d
fix: resolve typo error (#55)
cgarcia-lightit Dec 20, 2023
9d2a488
bugfix: hidde the panel eo in your inbox (#56)
cgarcia-lightit Dec 20, 2023
f43a757
feature: add title to corrousel section (#57)
cgarcia-lightit Dec 20, 2023
16c28dc
feat: add new compiles files (#58)
cgarcia-lightit Dec 20, 2023
c4858fb
fix: handle various phone number formats (#59)
sgoycoechea-lightit Dec 21, 2023
fed6ee9
feature: change query string and prevent remove the query paramas pay…
cgarcia-lightit Dec 22, 2023
aa92f1e
Bugfix/86dqubvn8/error typo (#61)
cgarcia-lightit Dec 22, 2023
66de45d
fix: new assets
cgarcia-lightit Dec 22, 2023
4a7af28
chore: update thank you page emails
sgoycoechea-lightit Dec 26, 2023
a04692e
Merge pull request #62 from Light-it-labs/chore/CU-86dqvx8r6/replace-…
sgoycoechea-lightit Dec 26, 2023
2866eb7
fix: change privacy policy link
sgoycoechea-lightit Dec 28, 2023
5b459d8
chore: add bundle
sgoycoechea-lightit Dec 28, 2023
0fb3081
Merge pull request #63 from Light-it-labs/fix/change-privacy-policy-link
sgoycoechea-lightit Dec 28, 2023
c30fe8a
Merge branch 'main' into develop
Dec 28, 2023
1d37166
merge: Fixed conflicts between main and dev:
Dec 28, 2023
47b1a21
merge: Fixed conflicts between main and dev
Dec 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions apps/eo_web/dist/assets/main-1ee8dd76.js

Large diffs are not rendered by default.

121 changes: 0 additions & 121 deletions apps/eo_web/dist/assets/main-65de2abd.js

This file was deleted.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions apps/eo_web/dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"src": "../../packages/ui/src/assets/avatar.svg"
},
"src/main.css": {
"file": "assets/main-f8165bac.css",
"file": "assets/main-e8b543da.css",
"src": "src/main.css"
},
"src/main.tsx": {
"assets": [
"assets/UploadFile-694e44b5.svg"
],
"css": [
"assets/main-f8165bac.css"
"assets/main-e8b543da.css"
],
"file": "assets/main-65de2abd.js",
"file": "assets/main-1ee8dd76.js",
"isEntry": true,
"src": "src/main.tsx"
}
Expand Down
3 changes: 2 additions & 1 deletion apps/eo_web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ interface EnvironmentsConfigs {
CANCER_INTRO_QUESTION_CAREGIVER_ID: string;
CANCER_PROFILE_PATIENT_ID: string;
CANCER_PROFILE_CAREGIVER_ID: string;
CANCER_SURVEY_FORM: string;
CANCER_PATIENT_SURVEY_ID: string;
CANCER_CAREGIVER_SURVEY_ID: string;
ATHLETE_PROFILE_FORM: string;
ATHLETE_SURVEY_FORM: string;
SENIOR_INTRO_QUESTION_PATIENT_ID: string;
Expand Down
13 changes: 6 additions & 7 deletions apps/eo_web/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Header = () => {
viewBox="0 0 42 20"
fill="none"
onClick={() => {
window.open("https://www.eo.care/you/privacy-policy", "_blank");
window.open("https://www.eo.care/web/privacy-policy", "_blank");
}}
>
<path
Expand All @@ -53,7 +53,7 @@ export const Header = () => {
<>
<icons.PrivacyPolicyIcon
onClick={() => {
window.open("https://www.eo.care/you/privacy-policy", "_blank");
window.open("https://www.eo.care/web/privacy-policy", "_blank");
}}
className="h-8 w-8 rounded-full stroke-2"
/>
Expand All @@ -67,7 +67,7 @@ export const Header = () => {
<Button
variant="tertiary-link"
onClick={() => {
window.open("https://www.eo.care/you/privacy-policy", "_blank");
window.open("https://www.eo.care/web/privacy-policy", "_blank");
}}
font="regular"
>
Expand All @@ -90,7 +90,7 @@ export const Header = () => {
)}
</div>
{/* eslint-disable-next-line @typescript-eslint/no-empty-function */}
<Modal isOpen={openModal} onClose={() => {}} controller={setOpenModal}>
<Modal isOpen={openModal} onClose={() => { }} controller={setOpenModal}>
<div
className="flex h-full w-full flex-col justify-center rounded-3xl bg-white px-10 py-[50px] leading-[48px]
shadow-lg md:px-[60px] md:py-20"
Expand All @@ -99,7 +99,6 @@ export const Header = () => {
variant="large"
className="mb-4 text-[32px] font-bold leading-7 md:mb-6"
>
{}
We’re here.
</Typography>
<Typography
Expand Down Expand Up @@ -145,10 +144,10 @@ export const Header = () => {
>
Email{" "}
<a
href="mailto:members@eo.care"
href="mailto:support@eo.care"
className="underline decoration-1 underline-offset-8"
>
members@eo.care
support@eo.care
</a>
</Typography>
</li>
Expand Down
6 changes: 4 additions & 2 deletions apps/eo_web/src/configs/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ export const CANCER_PROFILE_PATIENT_ID =
window.data.getEnv("CANCER_PROFILE_PATIENT_ID") || 232564063321650;
export const CANCER_PROFILE_CAREGIVER_ID =
window.data.getEnv("CANCER_PROFILE_CAREGIVER_ID") || 232564208467662;
export const CANCER_SURVEY_ID =
window.data.getEnv("CANCER_SURVEY_FORM") || 232885421299668;
export const CANCER_PATIENT_SURVEY_ID =
window.data.getEnv("CANCER_PATIENT_SURVEY_ID") || 232885421299668;
export const CANCER_CAREGIVER_SURVEY_ID =
window.data.getEnv("CANCER_CAREGIVER_SURVEY_ID") || 233415093176152;

export const ATHLETE_PROFILE_FORM =
window.data.getEnv("ATHLETE_PROFILE_FORM") || 233115151709146;
Expand Down
6 changes: 3 additions & 3 deletions apps/eo_web/src/copy/copy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const faqs: Copy[] = [
{
title: "How much does eo cost?",
content:
"Your care is completely free. And we’ll reimburse you for the cost of your products. Just send a picture of your receipt to members@eo.care each time you make a purchase and we’ll provide you with an Amazon gift card in an equal amount.",
"Your care is completely free. And we’ll reimburse you for the cost of your products. Just send a picture of your receipt to support@eo.care each time you make a purchase and we’ll provide you with an Amazon gift card in an equal amount.",
},
{
title:
Expand Down Expand Up @@ -145,11 +145,11 @@ export const faqs: Copy[] = [
title:
"Can I use a different dispensary or delivery provider than the one you’ve recommended?",
content:
"The answer is an honest “maybe”. If you’d like to make a change just email us at members@eo.care or call 877-707-0706. We’ll do everything we can to accommodate your request.",
"The answer is an honest “maybe”. If you’d like to make a change just email us at support@eo.care or call 877-707-0706. We’ll do everything we can to accommodate your request.",
},
{
title: "What happens if I run out of a particular product?",
content:
"No problem. Just email us at members@eo.care or call 877-707-0706. We’ll update your care plan in the very near term to accommodate the absence of that product if/as appropriate and coordinate the ordering of the needed product or a responsible replacement.",
"No problem. Just email us at support@eo.care or call 877-707-0706. We’ll update your care plan in the very near term to accommodate the absence of that product if/as appropriate and coordinate the ordering of the needed product or a responsible replacement.",
},
];
3 changes: 1 addition & 2 deletions apps/eo_web/src/router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { RegisterComplete } from "~/screens/RegisterComplete";
import { Profiling as SeniorProfiling } from "~/screens/Senior/Profiling";
import { SeniorSurveyForm } from "~/screens/Senior/SeniorSurveyForm";
import { SeniorSurveyThankYou } from "~/screens/Senior/SeniorSurveyThankYou";
import { SurveyThankYou } from "~/screens/SurveyThankYou";
import { UnavailableZipCode } from "~/screens/UnavailableZipCode";
import { UserRolSelector } from "~/screens/UserRolSelector";
import { ZipCodeValidation } from "~/screens/ZipCodeValidation";
Expand Down Expand Up @@ -100,7 +99,7 @@ export const Router = () => {
<Route element={<Profiling />} path={ROUTES.cancerForm} />

<Route element={<SurveyForm />} path={ROUTES.cancerSurvey} />
<Route element={<SurveyThankYou />} path={ROUTES.cancerSurveyThankYou} />
<Route element={<SeniorSurveyThankYou />} path={ROUTES.cancerSurveyThankYou} />

{/* ATHLETES */}
<Route element={<AthleteSurveyForm />} path={ROUTES.athleteSurvey} />
Expand Down
19 changes: 13 additions & 6 deletions apps/eo_web/src/screens/AccountCreation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ export const signUpSchema = z.object({
.min(1, { message: "Email is required" })
.email({ message: "Enter a valid email." }),
phoneNumber: z
.string()
.length(10, { message: "Contact number must be 10 digits" })
.regex(/^[0-9]+$/, { message: "Enter a valid phone number." }),
.string().superRefine((phoneNumber, ctx) => {
const phoneWithOnlyNumbers = phoneNumber.replace(/\D/g, "");
const numberOfDigits = phoneWithOnlyNumbers.length;
if (numberOfDigits !== 10) {
ctx.addIssue({
code: "custom",
message: "Contact number must be 10 digits"
});
}
}),
password: z
.string()
.regex(
Expand Down Expand Up @@ -91,7 +98,7 @@ export const AccountCreation = () => {
setValidatingForm(false);
return;
} else {
setAccountData(data);
setAccountData({ ...data, phoneNumber: data.phoneNumber.replace(/\D/g, "") });

switch (channel) {
case "cancer":
Expand Down Expand Up @@ -204,7 +211,7 @@ export const AccountCreation = () => {
className={tw(
"font-nunito text-[11px] font-light ",
errors.agreeReceiveNotifications?.message &&
"text-red-500",
"text-red-500",
)}
>
I agree to receive emails and text messages.
Expand All @@ -225,7 +232,7 @@ export const AccountCreation = () => {
className={tw(
"font-nunito text-[11px] font-light !leading-4",
errors.agreeTermsAndConditions?.message &&
"text-red-500",
"text-red-500",
)}
>
I have read and agree to the{" "}
Expand Down
2 changes: 1 addition & 1 deletion apps/eo_web/src/screens/Athlete/AthleteSurveyThankYou.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const AthleteSurveyThankYou = () => {
<br />
Thank you! <br />
<br />
Have questions? We’re here. Email members@eo.care, call{" "}
Have questions? We’re here. Email support@eo.care, call{" "}
<a href="tel:+1-877-707-0706">877-707-0706</a>, or schedule a free
consultation.
</Typography>
Expand Down
29 changes: 20 additions & 9 deletions apps/eo_web/src/screens/Cancer/SurveyForm.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,44 @@
import { useEffect } from "react";
import { useSearchParams } from "react-router-dom";

import { CANCER_SURVEY_ID } from "~/configs/env";
import {
CANCER_CAREGIVER_SURVEY_ID,
CANCER_PATIENT_SURVEY_ID,
} from "~/configs/env";
import { jotformScript } from "~/helpers/jotform_script";
import { LayoutDefault } from "~/layouts";





export const SurveyForm = () => {
const [searchParams] = useSearchParams();
const email = searchParams.get("email") ?? "";
const profiled = searchParams.get("profiled") ?? "patient";
const symptoms = searchParams.get("symptoms") ?? "";

const formId =
profiled === "patient"
? CANCER_PATIENT_SURVEY_ID
: CANCER_CAREGIVER_SURVEY_ID;

const email = searchParams.get("email") || "";
const params = new URLSearchParams({
email,
symptoms,
});

useEffect(() => {
jotformScript(CANCER_SURVEY_ID);
}, []);
jotformScript(formId);
}, [formId]);
return (
<LayoutDefault>
<div className="mb-10 flex h-screen flex-col">
<iframe
id={`JotFormIFrame-${CANCER_SURVEY_ID}`}
id={`JotFormIFrame-${formId}`}
title=""
onLoad={() => window.parent.scrollTo(0, 0)}
allow="geolocation; microphone; camera"
allowTransparency={true}
allowFullScreen={true}
src={`https://form.jotform.com/${CANCER_SURVEY_ID}?email=${email}`}
src={`https://form.jotform.com/${formId}?${params.toString()}`}
className="h-full w-full"
style={{
minWidth: "100%",
Expand Down
7 changes: 3 additions & 4 deletions apps/eo_web/src/screens/PrePlanV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export const PrePlanV2 = () => {
following phone number: 877-707-0706. Our representatives
will be delighted to assist you and address any inquiries
you may have. Alternatively, you can also send us an email
at members@eo.care. Our support team regularly checks this
at support@eo.care. Our support team regularly checks this
email and will respond to you as soon as possible.
</Typography>
</div>
Expand Down Expand Up @@ -291,9 +291,8 @@ export const PrePlanV2 = () => {
}
className="mx-auto my-3"
onClick={() => {
window.location.href = `/${union}/profile-onboarding?malady=${
jotformAnswers?.malady || "Pain"
}&union=${union}`;
window.location.href = `/${union}/profile-onboarding?malady=${jotformAnswers?.malady || "Pain"
}&union=${union}`;
}}
>
<Typography font="medium">Redirect</Typography>
Expand Down
11 changes: 7 additions & 4 deletions apps/eo_web/src/screens/ProfilingThankYou.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,26 @@ export const ProfilingThankYou = () => {
font="regular"
className="text-center text-[22px] font-normal leading-[36px]"
>
You’ll be able to review your your initial, personalized,
You’ll be able to review your initial, personalized,
clinician-approved
<br /> care plan within 24 hours. When you’re care plan is ready, we
<br /> care plan within 24 hours. When your care plan is ready, we
will send you an email
<br /> with a link to{" "}
<span className="cursor-pointer underline" onClick={goToWebApp}>
log into your account.
</span>
<br />
<br />
Have questions? We’re here. Email members@eo.care, call
Have questions? We’re here. Email support@eo.care, call
<br />
<a href="tel:+1-877-707-0706">877-707-0706</a>, or schedule a free
consultation.
</Typography>
</section>
<section className="bg-white px-6 py-12 md:px-[50px] md:py-[100px] ">
<Typography font="bold" variant="large" className="mb-20 text-center">
How eo care plans work
</Typography>
<EoCarousel>
{CarrouselItems.map(({ title, content, step, icon: Icon }) => (
<article
Expand Down Expand Up @@ -146,7 +149,7 @@ export const ProfilingThankYou = () => {
</div>
</div>
</section>
<section className="w-full bg-white px-6 py-12 md:px-[50px] md:py-[100px]">
<section className="hidden w-full bg-white px-6 py-12 md:px-[50px] md:py-[100px]">
<div className="flex flex-col items-center">
<Typography
font="bold"
Expand Down
2 changes: 1 addition & 1 deletion apps/eo_web/src/screens/Senior/SeniorSurveyThankYou.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const SeniorSurveyThankYou = () => {
<br />
Thank you! <br />
<br />
Have questions? We’re here. Email members@eo.care, call{" "}
Have questions? We’re here. Email support@eo.care, call{" "}
<a href="tel:+1-877-707-0706">877-707-0706</a>, or schedule a free
consultation.
</Typography>
Expand Down
17 changes: 7 additions & 10 deletions apps/eo_web/src/screens/SurveyThankYou.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ import { useMount } from "~/hooks/useMount";
import { LayoutDefault } from "~/layouts";





export const SurveyThankYou = () => {
export const SeniorSurveyThankYou = () => {
const [searchParams] = useSearchParams();

const submission_id = searchParams.get("submission_id") || "";
Expand All @@ -24,11 +21,11 @@ export const SurveyThankYou = () => {
navigate("/");
}

const { postCancerSurveyFormSubmission } = useApi();
const { postSeniorSurveyFormSubmission } = useApi();

const { mutate } = useMutation({
mutationFn: postCancerSurveyFormSubmission,
mutationKey: ["postCancerSurveyFormSubmission", submission_id],
mutationFn: postSeniorSurveyFormSubmission,
mutationKey: ["postSeniorSurveyFormSubmission", submission_id],
onError: (result) => {
if (axios.isAxiosError(result)) {
if (result.response?.status !== 200) {
Expand All @@ -55,16 +52,16 @@ export const SurveyThankYou = () => {
<Typography
variant="base"
font="regular"
className="font-nunito text-center text-[28px] font-light leading-[40px]"
className="text-center font-nunito text-[28px] font-light leading-[40px]"
>
We receive your feedback! <br />
<br />
Thank you! <br />
<br />
Have a question? We’re here to help.
Email members@eo.care, call 877.707.0706, or schedule a free consultation.
Email support@eo.care, call 877.707.0706, or schedule a free consultation.
<br />
Have questions? We’re here to help. Email <a href="mailto:members@eo.care">members@eo.care</a>, call&nbsp;
Have questions? We’re here to help. Email <a href="mailto:support@eo.care">support@eo.care</a>, call&nbsp;
<a href="tel:+1-877-707-0706">877.707.0706</a>, or&nbsp;
<span className="underline">schedule a free consultation</span>.
</Typography>
Expand Down
Loading