Rename to Compass (2)

This commit is contained in:
MartinBraquet
2025-08-27 22:17:07 +02:00
parent 2e332707ff
commit b707439de7
7 changed files with 8 additions and 13 deletions

View File

@@ -74,7 +74,7 @@ export const lookupUser = async (creds: Credentials): Promise<AuthedUser> => {
switch (creds.kind) {
case 'jwt': {
if (typeof creds.data.user_id !== 'string') {
throw new APIError(401, 'JWT must contain Manifold user ID.')
throw new APIError(401, 'JWT must contain user ID.')
}
return { uid: creds.data.user_id, creds }
}

View File

@@ -269,7 +269,7 @@ import { runScript } from 'run-script'
runScript(async ({ pg }) => {
const userPrompt = process.argv[2]
// E.g.:
// I want to create a new page which shows off what's happening on manifold right now. Can you use our websocket api to get recent bets on markets and illustrate what's happening in a compelling and useful way?
// I want to create a new page which shows off what's happening right now. Can you use our websocket api to get recent bets on markets and illustrate what's happening in a compelling and useful way?
if (!userPrompt) {
console.log('Please provide a prompt on what code to change.')
return

View File

@@ -16,11 +16,11 @@ export function SEO<P extends Record<string, string | undefined>>(props: {
(ogProps &&
buildOgUrl(removeUndefinedProps(ogProps.props) as any, ogProps.endpoint))
const absUrl = 'https://manifold.love' + url
const absUrl = 'https://compassmeet.com' + url
return (
<Head>
<title>{`${title} | Manifold`}</title>
<title>{`${title} | Compass`}</title>
<meta
property="og:title"

View File

@@ -55,7 +55,7 @@ export const getLinkTarget = (href: string, newTab?: boolean) => {
// TODO: make this more robust against domain changes?
if (
href.startsWith('http') &&
!href.startsWith(`https://manifold`) // covers manifold.markets and manifold.love
!href.startsWith(`https://compassmeet`)
)
return '_blank'
return newTab ? '_blank' : '_self'

View File

@@ -96,11 +96,7 @@ function OgLover(props: LoveOgProps) {
height={48}
/>
<span className="text-2xl font-thin">
manifold
<span className="mx-[1px]">.</span>
<span className="font-semibold text-pink-700 dark:text-pink-300">
love/{username}
</span>
compassmeet.com/{username}
</span>
</div>
</div>

View File

@@ -116,7 +116,7 @@ export const PrivateChat = (props: {
.map((message) => message.userId)
)
// Note: we may have messages from users not in the channel, e.g. a system message from manifold
// Note: we may have messages from users not in the channel, e.g. a system message
const otherUsers = useUsersInStore(
uniq(messageUserIds.concat(memberIds)),
`${channelId}`,

View File

@@ -13,8 +13,7 @@ export default function ManifoldLove() {
<HeartIcon className="text-scarlet-600 h-8 w-8" />
<HeartIcon className="text-scarlet-600 h-8 w-8" />
<h1 className="mx-auto text-3xl">
Manifold
<span className="text-scarlet-600 font-semibold">.love</span>
CompassMeet.com
</h1>
<HeartIcon className="text-scarlet-600 h-8 w-8" />
<HeartIcon className="text-scarlet-600 h-8 w-8" />