From 26a28175fd4ea7358db242724d80f3a1615b4854 Mon Sep 17 00:00:00 2001
From: MartinBraquet
Date: Mon, 20 Oct 2025 16:24:22 +0200
Subject: [PATCH] Rename LovePage
---
web/components/markdown.tsx | 6 +++---
web/components/{love-page.tsx => page-base.tsx} | 2 +-
web/pages/404.tsx | 6 +++---
web/pages/[username]/index.tsx | 14 +++++++-------
web/pages/about.tsx | 6 +++---
web/pages/confirm-email/[tokenId].tsx | 6 +++---
web/pages/contact.tsx | 6 +++---
web/pages/help.tsx | 6 +++---
web/pages/index.tsx | 6 +++---
web/pages/loading.tsx | 6 +++---
web/pages/messages/[channelId].tsx | 6 +++---
web/pages/messages/index.tsx | 6 +++---
web/pages/notifications.tsx | 6 +++---
web/pages/organization.tsx | 6 +++---
web/pages/privacy.tsx | 6 +++---
web/pages/profile.tsx | 6 +++---
web/pages/referrals.tsx | 6 +++---
web/pages/register.tsx | 6 +++---
web/pages/security.tsx | 6 +++---
web/pages/signin.tsx | 6 +++---
web/pages/signup.tsx | 6 +++---
web/pages/social.tsx | 6 +++---
web/pages/stats.tsx | 6 +++---
web/pages/terms.tsx | 6 +++---
web/pages/vote.tsx | 6 +++---
web/public/md/faq.md | 2 +-
26 files changed, 78 insertions(+), 78 deletions(-)
rename web/components/{love-page.tsx => page-base.tsx} (99%)
diff --git a/web/components/markdown.tsx b/web/components/markdown.tsx
index 901ef6d9..692b29e3 100644
--- a/web/components/markdown.tsx
+++ b/web/components/markdown.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
import {Col} from "web/components/layout/col";
import ReactMarkdown from "react-markdown";
import React from "react";
@@ -27,7 +27,7 @@ const MarkdownLink = ({href, children}: { href?: string; children: React.ReactNo
export default function MarkdownPage({content, filename}: Props) {
return (
-
+
-
+
);
}
\ No newline at end of file
diff --git a/web/components/love-page.tsx b/web/components/page-base.tsx
similarity index 99%
rename from web/components/love-page.tsx
rename to web/components/page-base.tsx
index 0b2fc21d..d7f6a116 100644
--- a/web/components/love-page.tsx
+++ b/web/components/page-base.tsx
@@ -27,7 +27,7 @@ import {IS_MAINTENANCE} from "common/constants";
import {MdThumbUp} from "react-icons/md";
import {FaEnvelope} from "react-icons/fa";
-export function LovePage(props: {
+export function PageBase(props: {
trackPageView: string | false
trackPageProps?: Record
className?: string
diff --git a/web/pages/404.tsx b/web/pages/404.tsx
index 62f005fd..441d3356 100644
--- a/web/pages/404.tsx
+++ b/web/pages/404.tsx
@@ -1,4 +1,4 @@
-import { LovePage } from 'web/components/love-page'
+import { PageBase } from 'web/components/page-base'
import Link from 'next/link'
import { Button } from 'web/components/buttons/button'
import { Col } from 'web/components/layout/col'
@@ -9,9 +9,9 @@ import {discordLink, formLink, githubIssues} from "common/constants";
export default function Custom404(props: { customText?: string }) {
return (
-
+
-
+
)
}
diff --git a/web/pages/[username]/index.tsx b/web/pages/[username]/index.tsx
index 0ee426c8..16b6d230 100644
--- a/web/pages/[username]/index.tsx
+++ b/web/pages/[username]/index.tsx
@@ -1,7 +1,7 @@
import {useState} from 'react'
import {useRouter} from 'next/router'
import Head from 'next/head'
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {useProfileByUser} from 'web/hooks/use-profile'
import {Col} from 'web/components/layout/col'
import {SEO} from 'web/components/SEO'
@@ -86,7 +86,7 @@ type ActiveUserPageProps = {
export default function UserPage(props: UserPageProps) {
// console.debug('Starting UserPage in /[username]')
if (!props.user) {
- return
@@ -95,11 +95,11 @@ export default function UserPage(props: UserPageProps) {
This account has been deleted.
-
+
}
if (props.user.isBannedFromPosting) {
- return
@@ -108,7 +108,7 @@ export default function UserPage(props: UserPageProps) {
This account has been suspended.
-
+
}
return
@@ -136,7 +136,7 @@ function UserPageInner(props: ActiveUserPageProps) {
// console.debug('profile:', user?.username, profile, clientProfile, staticProfile)
return (
-
)}
-
+
)
}
diff --git a/web/pages/about.tsx b/web/pages/about.tsx
index 45bc6d43..f85014fc 100644
--- a/web/pages/about.tsx
+++ b/web/pages/about.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {ReactNode} from "react";
import Link from "next/link";
import {discordLink, formLink, githubRepo, stoatLink} from "common/constants";
@@ -17,7 +17,7 @@ export const AboutBlock = (props: {
export default function About() {
return (
-
+
@@ -171,6 +171,6 @@ export default function About() {
-
+
)
}
diff --git a/web/pages/confirm-email/[tokenId].tsx b/web/pages/confirm-email/[tokenId].tsx
index 074de46b..ca261f6f 100644
--- a/web/pages/confirm-email/[tokenId].tsx
+++ b/web/pages/confirm-email/[tokenId].tsx
@@ -1,14 +1,14 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {Col} from 'web/components/layout/col'
export default function ConfirmEmail() {
return (
-
+
Thank you for confirming your email!
-
+
)
}
\ No newline at end of file
diff --git a/web/pages/contact.tsx b/web/pages/contact.tsx
index 8b6534a0..81b02605 100644
--- a/web/pages/contact.tsx
+++ b/web/pages/contact.tsx
@@ -1,11 +1,11 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {SEO} from 'web/components/SEO'
import {ContactComponent} from "web/components/contact";
export default function ContactPage() {
return (
-
@@ -15,6 +15,6 @@ export default function ContactPage() {
url={`/contact`}
/>
-
+
)
}
diff --git a/web/pages/help.tsx b/web/pages/help.tsx
index 1cb90e87..a362807b 100644
--- a/web/pages/help.tsx
+++ b/web/pages/help.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {SEO} from 'web/components/SEO'
import Link from 'next/link'
import {Col} from 'web/components/layout/col'
@@ -6,7 +6,7 @@ import {Row} from 'web/components/layout/row'
export default function HelpPage() {
return (
-
+
Help & Support
@@ -73,6 +73,6 @@ export default function HelpPage() {
-
+
)
}
diff --git a/web/pages/index.tsx b/web/pages/index.tsx
index 95558916..7c6a0129 100644
--- a/web/pages/index.tsx
+++ b/web/pages/index.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {Col} from 'web/components/layout/col'
import {useUser} from 'web/hooks/use-user'
import {LoggedOutHome} from "web/components/home/home";
@@ -14,12 +14,12 @@ export default function ProfilesPage() {
}
return (
-
+
{user ? : }
-
+
)
}
diff --git a/web/pages/loading.tsx b/web/pages/loading.tsx
index 5b2e1c91..56efccf4 100644
--- a/web/pages/loading.tsx
+++ b/web/pages/loading.tsx
@@ -1,10 +1,10 @@
"use client";
import {CompassLoadingIndicator} from "web/components/widgets/loading-indicator";
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
export default function Loading() {
- return
+ return
- ;
+ ;
}
diff --git a/web/pages/messages/[channelId].tsx b/web/pages/messages/[channelId].tsx
index 93e7b267..9c63f3eb 100644
--- a/web/pages/messages/[channelId].tsx
+++ b/web/pages/messages/[channelId].tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {useRouter} from 'next/router'
import {usePrivateMessages, useSortedPrivateMessageMemberships,} from 'web/hooks/use-private-messages'
import {Col} from 'web/components/layout/col'
@@ -43,13 +43,13 @@ export default function PrivateMessagesPage() {
return
}
return (
-
+
{router.isReady && channelId && user ? (
) : (
)}
-
+
)
}
diff --git a/web/pages/messages/index.tsx b/web/pages/messages/index.tsx
index 310ee428..55ee182d 100644
--- a/web/pages/messages/index.tsx
+++ b/web/pages/messages/index.tsx
@@ -3,7 +3,7 @@ import { User } from 'common/user'
import { parseJsonContentToText } from 'common/util/parse'
import Link from 'next/link'
import { Col } from 'web/components/layout/col'
-import { LovePage } from 'web/components/love-page'
+import { PageBase } from 'web/components/page-base'
import { Row } from 'web/components/layout/row'
import NewMessageButton from 'web/components/messaging/new-message-button'
import { RelativeTimestamp } from 'web/components/relative-timestamp'
@@ -25,9 +25,9 @@ export default function MessagesPage() {
const currentUser = useUser()
return (
-
+
{currentUser && }
-
+
)
}
diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx
index a5bfb4b5..662f2a33 100644
--- a/web/pages/notifications.tsx
+++ b/web/pages/notifications.tsx
@@ -9,7 +9,7 @@ import {Fragment, useCallback, useEffect, useMemo, useState} from 'react'
import {NoSEO} from 'web/components/NoSEO'
import {Col} from 'web/components/layout/col'
import {UncontrolledTabs} from 'web/components/layout/tabs'
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {NotificationItem} from 'web/components/notification-items'
import {CompassLoadingIndicator} from 'web/components/widgets/loading-indicator'
import {Pagination} from 'web/components/widgets/pagination'
@@ -25,7 +25,7 @@ import {useRedirectIfSignedOut} from "web/hooks/use-redirect-if-signed-out";
export default function NotificationsPage() {
useRedirectIfSignedOut()
return (
-
+
Updates
-
+
)
}
diff --git a/web/pages/organization.tsx b/web/pages/organization.tsx
index dff8cb25..48ff7e61 100644
--- a/web/pages/organization.tsx
+++ b/web/pages/organization.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {GeneralButton} from "web/components/buttons/general-button";
import clsx from "clsx";
import {Col} from "web/components/layout/col";
@@ -6,7 +6,7 @@ import {Col} from "web/components/layout/col";
export default function Organization() {
return (
-
+
Organization
-
+
)
}
diff --git a/web/pages/privacy.tsx b/web/pages/privacy.tsx
index 2df0f58c..839a319e 100644
--- a/web/pages/privacy.tsx
+++ b/web/pages/privacy.tsx
@@ -1,10 +1,10 @@
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
import {supportEmail} from "common/constants";
// TODO: convert to MarkDown for better readability during modifications?
export default function PrivacyPage() {
return (
-
@@ -53,6 +53,6 @@ export default function PrivacyPage() {
For questions about this Privacy Policy, reach out at {supportEmail}.
-
+
);
}
diff --git a/web/pages/profile.tsx b/web/pages/profile.tsx
index 110b0671..3970fcad 100644
--- a/web/pages/profile.tsx
+++ b/web/pages/profile.tsx
@@ -9,7 +9,7 @@ import {useEffect, useState} from 'react'
import {Col} from 'web/components/layout/col'
import {useUser} from 'web/hooks/use-user'
import {api} from 'web/lib/api'
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
export default function ProfilePage() {
const user = useUser()
@@ -40,7 +40,7 @@ function ProfilePageInner(props: { user: User; profile: Profile }) {
const [username, setUsername] = useState(user.username)
return (
-
+
-
+
)
}
diff --git a/web/pages/referrals.tsx b/web/pages/referrals.tsx
index 1c8c942d..b714cd0d 100644
--- a/web/pages/referrals.tsx
+++ b/web/pages/referrals.tsx
@@ -1,5 +1,5 @@
import { ENV_CONFIG } from 'common/envs/constants'
-import { LovePage } from 'web/components/love-page'
+import { PageBase } from 'web/components/page-base'
import { SEO } from 'web/components/SEO'
import { CopyLinkRow } from 'web/components/buttons/copy-link-button'
import { Col } from 'web/components/layout/col'
@@ -15,7 +15,7 @@ export default function ReferralsPage() {
: `https://${ENV_CONFIG.domain}/`
return (
-
+
-
+
)
}
diff --git a/web/pages/register.tsx b/web/pages/register.tsx
index 7aee5c42..5a510890 100644
--- a/web/pages/register.tsx
+++ b/web/pages/register.tsx
@@ -8,7 +8,7 @@ import {signupThenMaybeRedirectToSignup} from "web/lib/util/signup";
import {createUserWithEmailAndPassword} from "firebase/auth";
import {auth} from "web/lib/firebase/users";
import FavIcon from "web/public/FavIcon";
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
import {getProfileRow} from "common/profiles/profile";
import {db} from "web/lib/supabase/db";
import Router from "next/router";
@@ -110,7 +110,7 @@ function RegisterComponent() {
}
return (
-
+
{registrationSuccess ? (
@@ -251,6 +251,6 @@ function RegisterComponent() {
}
-
+
);
}
diff --git a/web/pages/security.tsx b/web/pages/security.tsx
index 9aa74099..294f896f 100644
--- a/web/pages/security.tsx
+++ b/web/pages/security.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {SEO} from 'web/components/SEO'
import Link from 'next/link'
import {Col} from 'web/components/layout/col'
@@ -9,7 +9,7 @@ export default function SecurityPage() {
const mailto = `mailto:${email}?subject=${encodeURIComponent('Security vulnerability report')}`
return (
-
+
-
+
)
}
diff --git a/web/pages/signin.tsx b/web/pages/signin.tsx
index 3e1f9a4f..16b62452 100644
--- a/web/pages/signin.tsx
+++ b/web/pages/signin.tsx
@@ -10,7 +10,7 @@ import {signInWithEmailAndPassword} from "firebase/auth";
import {getProfileRow} from "common/profiles/profile";
import {db} from "web/lib/supabase/db";
import Router from "next/router";
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
import {useUser} from "web/hooks/use-user";
import {GoogleButton} from "web/components/buttons/sign-up-button";
@@ -117,7 +117,7 @@ function RegisterComponent() {
console.debug('Form rendering');
return (
-
+
@@ -192,6 +192,6 @@ function RegisterComponent() {
-
+
);
}
diff --git a/web/pages/signup.tsx b/web/pages/signup.tsx
index 018268c2..2d2187e7 100644
--- a/web/pages/signup.tsx
+++ b/web/pages/signup.tsx
@@ -13,7 +13,7 @@ import {safeLocalStorage} from 'web/lib/util/local'
import {removeNullOrUndefinedProps} from 'common/util/object'
import {useProfileByUserId} from 'web/hooks/use-profile'
import {ProfileRow} from 'common/profiles/profile'
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
export default function SignupPage() {
const [step, setStep] = useState(0)
@@ -71,7 +71,7 @@ export default function SignupPage() {
}, [existingProfile])
if (step === 1 && user) {
- return
+ return
-
+
}
if (user === null && !holdLoading) {
diff --git a/web/pages/social.tsx b/web/pages/social.tsx
index c5e1ce83..45dc2815 100644
--- a/web/pages/social.tsx
+++ b/web/pages/social.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {discordLink, githubRepo, redditLink, stoatLink, supportEmail, xLink} from "common/constants";
import {GeneralButton} from "web/components/buttons/general-button";
import clsx from "clsx";
@@ -7,7 +7,7 @@ import {Col} from "web/components/layout/col";
export default function Social() {
return (
-
+
Socials
-
+
)
}
diff --git a/web/pages/stats.tsx b/web/pages/stats.tsx
index 33e3dfd0..b376217d 100644
--- a/web/pages/stats.tsx
+++ b/web/pages/stats.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
import ChartMembers from "web/components/widgets/charts";
import {getCount} from "web/lib/supabase/users";
import {useEffect, useState} from "react";
@@ -42,7 +42,7 @@ export default function Stats() {
}, [])
return (
-
+
Growth & Stats
@@ -66,6 +66,6 @@ export default function Stats() {
{!!data.profile_comments && }
-
+
);
}
diff --git a/web/pages/terms.tsx b/web/pages/terms.tsx
index a96c54a6..7cb5dbb9 100644
--- a/web/pages/terms.tsx
+++ b/web/pages/terms.tsx
@@ -1,10 +1,10 @@
-import {LovePage} from "web/components/love-page";
+import {PageBase} from "web/components/page-base";
import {supportEmail} from "common/constants";
// TODO: convert to MarkDown for better readability during modifications?
export default function TermsPage() {
return (
-
@@ -89,6 +89,6 @@ export default function TermsPage() {
For questions regarding these Terms, please contact us at {supportEmail}.
-
+
);
}
diff --git a/web/pages/vote.tsx b/web/pages/vote.tsx
index 00bea476..529cae81 100644
--- a/web/pages/vote.tsx
+++ b/web/pages/vote.tsx
@@ -1,4 +1,4 @@
-import {LovePage} from 'web/components/love-page'
+import {PageBase} from 'web/components/page-base'
import {Col} from 'web/components/layout/col'
import {SEO} from 'web/components/SEO'
import {useUser} from 'web/hooks/use-user'
@@ -12,7 +12,7 @@ export default function VotePage() {
// console.log('user:', user)
return (
-
@@ -28,6 +28,6 @@ export default function VotePage() {
)}
-
+
)
}
diff --git a/web/public/md/faq.md b/web/public/md/faq.md
index 060f7692..5d89549b 100644
--- a/web/public/md/faq.md
+++ b/web/public/md/faq.md
@@ -81,7 +81,7 @@ The **compatibility score** comes from answers to **compatibility prompts**. Eac
Matches are scored based on how well two people’s responses and accepted answers align, weighted by importance. See this [video](https://www.youtube.com/watch?v=m9PiPlRuy6E) for the math behind it.
-The [full implementation](https://github.com/CompassConnections/Compass/blob/main/common/src/love/compatibility-score.ts) is **open source** and open to review, feedback, and improvement by the community.
+The [full implementation](https://github.com/CompassConnections/Compass/blob/main/common/src/profiles/compatibility-score.ts) is **open source** and open to review, feedback, and improvement by the community.
### What platforms does Compass run on?