diff --git a/apps/portal/prisma/salaries.xlsx b/apps/portal/prisma/salaries.xlsx index 3ff67944..17509c79 100644 Binary files a/apps/portal/prisma/salaries.xlsx and b/apps/portal/prisma/salaries.xlsx differ diff --git a/apps/portal/src/components/global/AppShell.tsx b/apps/portal/src/components/global/AppShell.tsx index aa98eca6..c601257b 100644 --- a/apps/portal/src/components/global/AppShell.tsx +++ b/apps/portal/src/components/global/AppShell.tsx @@ -38,16 +38,16 @@ function ProfileJewel() { if (session == null) { return router.pathname !== loginHref.pathname ? ( - Log In + Sign In ) : null; } const userNavigation = [ - // { href: '/profile', name: 'Profile' }, + { href: '/settings', name: 'Settings' }, { href: '/api/auth/signout', - name: 'Log out', + name: 'Sign Out', onClick: (event: MouseEvent) => { event.preventDefault(); signOut(); @@ -80,6 +80,15 @@ function ProfileJewel() { leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95"> + {!!session?.user?.name && ( + + {() => ( + + {session?.user?.name ?? ''} + + )} + + )} {userNavigation.map((item) => ( {({ active }) => ( diff --git a/apps/portal/src/components/global/GoogleAnalytics.tsx b/apps/portal/src/components/global/GoogleAnalytics.tsx index 1d7d4f75..f0fe9efb 100644 --- a/apps/portal/src/components/global/GoogleAnalytics.tsx +++ b/apps/portal/src/components/global/GoogleAnalytics.tsx @@ -17,13 +17,11 @@ function pageview(measurementID: string, url: string) { return; } - window.gtag('config', measurementID, { + window.gtag('event', 'page_view', { + page_location: window.location.href, page_path: url, - }); - - window.gtag('event', url, { - event_category: 'pageview', - event_label: document.title, + page_title: document.title, + send_to: measurementID, }); } diff --git a/apps/portal/src/components/offers/OffersNavigation.tsx b/apps/portal/src/components/offers/OffersNavigation.tsx index 11bc1856..53e4b4c8 100644 --- a/apps/portal/src/components/offers/OffersNavigation.tsx +++ b/apps/portal/src/components/offers/OffersNavigation.tsx @@ -8,7 +8,7 @@ const navigation: ProductNavigationItems = [ const navigationAuthenticated: ProductNavigationItems = [ { href: '/offers/submit', name: 'Analyze your offers' }, - { href: '/offers/dashboard', name: 'Your dashboard' }, + { href: '/offers/dashboard', name: 'My dashboard' }, { href: '/offers/features', name: 'Features' }, { href: '/offers/about', name: 'About' }, ]; diff --git a/apps/portal/src/components/offers/profile/EducationCard.tsx b/apps/portal/src/components/offers/profile/EducationCard.tsx index 9549e423..603b3c67 100644 --- a/apps/portal/src/components/offers/profile/EducationCard.tsx +++ b/apps/portal/src/components/offers/profile/EducationCard.tsx @@ -3,6 +3,8 @@ import { LightBulbIcon, } from '@heroicons/react/24/outline'; +import type { EducationType } from '~/components/offers/EducationFields'; +import { getLabelForEducationFieldType } from '~/components/offers/EducationFields'; import type { EducationDisplayData } from '~/components/offers/types'; type Props = Readonly<{ @@ -19,7 +21,16 @@ export default function EducationCard({
- {field ? `${type ?? 'N/A'}, ${field}` : type ?? `N/A`} + {field + ? `${ + type ? type.charAt(0).toUpperCase() + type.slice(1) : 'N/A' + }, ${ + getLabelForEducationFieldType(field as EducationType) ?? + 'N/A' + }` + : type + ? type.charAt(0).toUpperCase() + type.slice(1) + : `N/A`}
{school && ( diff --git a/apps/portal/src/components/offers/profile/ProfileComments.tsx b/apps/portal/src/components/offers/profile/ProfileComments.tsx index a9357d92..326ca3e1 100644 --- a/apps/portal/src/components/offers/profile/ProfileComments.tsx +++ b/apps/portal/src/components/offers/profile/ProfileComments.tsx @@ -91,7 +91,7 @@ export default function ProfileComments({ }, ); } else { - // If not the OP and not logged in, direct users to log in + // If not the OP and not logged in, direct users to sign in signIn(); } } diff --git a/apps/portal/src/components/offers/profile/comments/CommentCard.tsx b/apps/portal/src/components/offers/profile/comments/CommentCard.tsx index 7c198d32..2b1022ba 100644 --- a/apps/portal/src/components/offers/profile/comments/CommentCard.tsx +++ b/apps/portal/src/components/offers/profile/comments/CommentCard.tsx @@ -89,7 +89,7 @@ export default function CommentCard({ }, ); } else { - // If not the OP and not logged in, direct users to log in + // If not the OP and not logged in, direct users to sign in signIn(); } } diff --git a/apps/portal/src/components/offers/table/OffersRow.tsx b/apps/portal/src/components/offers/table/OffersRow.tsx index f80802e4..52cfbb4e 100644 --- a/apps/portal/src/components/offers/table/OffersRow.tsx +++ b/apps/portal/src/components/offers/table/OffersRow.tsx @@ -23,6 +23,7 @@ export default function OfferTableRow({ company, id, income, + location, monthYearReceived, profileId, stocks, @@ -32,9 +33,12 @@ export default function OfferTableRow({ }: OfferTableRowProps) { return ( - - {company.name} - + +
{company.name}
+
+ {location.cityName} ({location.countryCode}) +
+ {getLabelForJobTitleType(title as JobTitleType)} diff --git a/apps/portal/src/components/offers/table/OffersTable.tsx b/apps/portal/src/components/offers/table/OffersTable.tsx index b200380b..7b2f4811 100644 --- a/apps/portal/src/components/offers/table/OffersTable.tsx +++ b/apps/portal/src/components/offers/table/OffersTable.tsx @@ -235,7 +235,8 @@ export default function OffersTable({ (); const register = useFormRegister(formRegister); @@ -51,6 +51,7 @@ export default function CreateListDialog({ autoComplete="off" label="Name" placeholder="List name" + required={true} type="text" /> @@ -62,6 +63,7 @@ export default function CreateListDialog({ onClick={handleDialogCancel} />