From 579c173ad81fcc5b0654796c0f069ba1b1870fea Mon Sep 17 00:00:00 2001 From: Heather Lee Date: Thu, 22 Feb 2024 13:11:18 -0800 Subject: [PATCH] SKY-4462 More updates to remove favicon and also move userId logic to hook --- package.json | 2 +- public/favicons/favicon-16x16.png | Bin 805 -> 0 bytes public/favicons/favicon-32x32.png | Bin 1199 -> 0 bytes public/favicons/favicon.ico | Bin 7406 -> 4520 bytes public/favicons/mstile-150x150.png | Bin 5332 -> 0 bytes .../features/hero-banner/HeroBanner.tsx | 10 ++-------- .../ExperimentProvider/ExperimentProvider.tsx | 13 +++++++++++-- src/components/templates/header/header.tsx | 6 +++++- src/components/templates/layout/layout.tsx | 2 +- 9 files changed, 20 insertions(+), 13 deletions(-) delete mode 100644 public/favicons/favicon-16x16.png delete mode 100644 public/favicons/favicon-32x32.png delete mode 100644 public/favicons/mstile-150x150.png diff --git a/package.json b/package.json index cd8e279..dc62577 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "predev": "yarn generate-theme-typings", "prebuild": "yarn generate-theme-typings", "prepare": "husky install", - "dev": "next dev", + "dev": "next dev -p 3001", "build": "next build", "start": "next start", "lint": "next lint", diff --git a/public/favicons/favicon-16x16.png b/public/favicons/favicon-16x16.png deleted file mode 100644 index 34d9ac4fd2d58a89c80342957444b502f95df581..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 805 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstU$g(vPY0F z14ES>14Ba#1H&(%P{RubhEf9thF1v;3|2E37{m+a>-X>9f3l0J9X&(OoV)n+*^6h-U*5cZci!TaWi_oA zFJB9ZPSZDceev?u&!4{v%Ns47{O{d=2-FlBlVM=#zIXo-F$IJ9i&vgJeO^-8XyUZF zYd36@Q8n4U@9?WvZxYf9iz}PHefu67o1tawc;wir8@KLUzj=HAp<_iAjV+xM-@bkS z;Nj!%KYo1t^!fVDJ9#CwuU@}Baq66mn(3r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cQ??eqd)}yLsR!e_~yqG@qcF2R^ zfXJl_*R}aOmiG4g>e{iEe&y};{UKtqJ!6Z}!@vo*uH`Lm(qCX@^>o*+Kv9cTtHTe9 zWRx!X`sLfgqpth=&aw1&PHsr}G-c)GW#?)FK#IZ0z{p6~&`{UdAjHtn%Fw{dz);%&NE$rZyf`04 zLvDUbW?Cg~4O8DqUj}NB1lbUrpH@hddb|v z%EI20MVN&ZTpCOcr!XsT4pBIL diff --git a/public/favicons/favicon.ico b/public/favicons/favicon.ico index e31bddd33c9166b966593dca83abbcd45c5b7ce2..85ab26197a547baf850d24bf4883a72d2052023c 100644 GIT binary patch literal 4520 zcmV;Z5m)YsP)005u}1^@s6i_d2*000qhNklkO-~IrJtazu zQ{~hY*z}UNK??36QcNYBst9_C9aT+}6U(1UJv3UIggE^1yuRPej=ekH*?qs+_h#Ok zeILnxcD)$y&Ub(R-+K%kOAJ)%0~-O#p7>zkZ3E^%1kBsQI4^VYV+cQxa>B2ei$0k6 z@R|6^`8D9)RSy0&AE5T1>fkImmSE7Qpx8D6>=iG-2=~|y#$g1Kg{7KV&Y;G8{*e&n z^cUjxTy<~``jEa6U_)?EGloKA2OvAK$s$C_X2JI-?}_jKTOF)HA5drkZmrb!dY-q3 zbB>m7FIa^5d#5>P=NG~MpvZ2!Z~`n>>Sf>a4gu#CFwe@Rr3Sz!?{b(Znq@460MWf} z2JaAO{At@P9hJZ`f>*tMcJo_M0IU|^H-xoY6I#1tu$-ax3pEilPT%wWaht88l>)@r zjxlzk=+;gaA;hY!LbOVNPI#TMQHWLu5MAwR#?Ct7$zhWajTT^#TzKAzMvUhmVuKKk z72xpb{88}v81!Fqp_&?iH)d+qY@7hURjH47jGc1sRyno1oIhcjHT1wBhL6mjC^0tU z#HWSw8pf{TYYYZqgar)hd5pa)z8wKa78qjk0AAfD>Pq;2VBsxKhtOxy#K0 zx(wG0M5a9PxyY3B8VAcofX?L_M{X`Ta~F)=4Ciu<0}aAOtUy46XHQv!(j`Ija@&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S#i} T3bL}P*U;J6x;0<^)sN**3l3|Y diff --git a/public/favicons/mstile-150x150.png b/public/favicons/mstile-150x150.png deleted file mode 100644 index fbefcb63e866bf515b22b1ff46a179ee4ba96fe9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5332 zcmd5=X&_r$*G{jtymhG#N(t4fsv2XSX-zd>L(JitY6wM%d1zH@3NA`pDte7E6QV?E zQ4}R&Cat(tVxEVJ>D{^a{`r1<|Gpnzl9Q91z4tn6?ftB0J^RG}W~9S%j_Vu*0%6g; zuW1T_oMNRPOlQHB;F|qHa60XF*YGX`Qj@}b=y(SF=X1VqY6yXZ-hx0L$3P%7aOv?p z1cH))Ko)<8Konm=ARNAL2qwy);jELsjwa-U{(jqBoDQxq2Iv}UG0rjbGM_u8=M)eH zfm}lAYTh*uo?Q7B^1^&Jr*nfkWs86#nu9dt^lQa&;+3!qmIl)K&Ux_(Ju#fyH#Kt_ zK9#4xl6UTZ)$!UuyB}Ixl8)6OT^GCA5W~sSfyIhM|ANyPVs3`RgW%r|`mgZ~-5ZKX z9M}uYUZX-;$rbG>Hki=02+Bd20C4F4@DV6h{QS@ z6tb!93;E35dWz5IG~?s>f z3-NFso*cbmr5Ad|83u(J21PFniiR-;rAHsD(z{=zmAo)5sT*8iEmTq*CXq^#`;Ab6 z4~AcN-%jtoo!uvt-FGL5Puh-{P7U2e3p%6Gu(VXPsyx}NJI&Shk(X`iea#vx^JmZe z*g4os%FE5+?6aknyakRLNOPrdtY_@`k%25vINSnTEg|**b|SleXYWQF3QDXDzDqft z%F!ztTwGo@ce@oft&y9)6w0V`b+DaUXm>v8Qygr)aS!X~Ws#KgY}CylpdGySJ2GC9MlhJ@9q)B{d$oyQ6a0 z%1Zm4BtuVcZ?jw383M=?Y{6Ug__l^S!aZI0c~by$IH zIMTLhicCNdKUABh#^vJ%FDCIwnF{7g*t&h$k289uf_PebhtVr;+V_20Gn3P&jrl=W z0*uxHejqakx5XP@-$V$6NwxmbIW?}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/components/features/hero-banner/HeroBanner.tsx index 864fdfc..a4799e7 100644 --- a/src/components/features/hero-banner/HeroBanner.tsx +++ b/src/components/features/hero-banner/HeroBanner.tsx @@ -28,17 +28,11 @@ export const HeroBanner = ({ sys: { id: entryId }, }: PageLandingFieldsFragment) => { const inspectorProps = useContentfulInspectorMode({ entryId }); - const { demoExperimentMode, experimentVariant } = useContext(ExperimentContext); + const { demoExperimentMode, experimentVariant, userId } = useContext(ExperimentContext); const [hero, setHero] = useState(null); useEffect(() => { const matchExperimentData = async () => { - const userId = demoExperimentMode - ? experimentVariant === 'control' - ? 'heather.lee@amplitude.com' - : 'anotheruser@amplitude.com' - : 'heather.lee@amplitude.com'; - await experiment.fetch({ user_id: userId, }); @@ -54,7 +48,7 @@ export const HeroBanner = ({ } }; matchExperimentData(); - }, [heroBanner, demoExperimentMode, experimentVariant]); + }, [heroBanner, userId]); return ( ({ export const ExperimentProvider = ({ children }: { children: React.ReactElement | React.ReactElement[] }) => { const [demoExperimentMode, setDemoExperimentMode] = useState(false); const [experimentVariant, setExperimentVariant] = useState('control'); + + const userId = useMemo(() => { + return demoExperimentMode + ? experimentVariant === 'control' + ? 'control@amplitude.com' + : 'treatment@amplitude.com' + : 'control@amplitude.com'; + }, [demoExperimentMode, experimentVariant]); + return ( - + {children} ); diff --git a/src/components/templates/header/header.tsx b/src/components/templates/header/header.tsx index d179b3f..753e049 100644 --- a/src/components/templates/header/header.tsx +++ b/src/components/templates/header/header.tsx @@ -21,7 +21,7 @@ export const HEADER_HEIGHT = 70; export const Header = (props: BoxProps) => { const { t } = useTranslation(); - const { demoExperimentMode, setDemoExperimentMode, setExperimentVariant } = + const { demoExperimentMode, setDemoExperimentMode, setExperimentVariant, userId } = useContext(ExperimentContext); return ( @@ -85,6 +85,10 @@ export const Header = (props: BoxProps) => { + + + Currently signed in user: {userId} + ); }; diff --git a/src/components/templates/layout/layout.tsx b/src/components/templates/layout/layout.tsx index 07d4f0e..86294dd 100644 --- a/src/components/templates/layout/layout.tsx +++ b/src/components/templates/layout/layout.tsx @@ -12,7 +12,7 @@ interface LayoutPropsInterface { children: ReactNode; } -export const experiment = Experiment.initialize(`${process.env.CONTENTFUL_ACCESS_TOKEN || ''}`, { +export const experiment = Experiment.initialize(process.env.NEXT_PUBLIC_AMPLITUDE_EXPERIMENT_CLIENT_KEY || "", { debug: true, });