Skip to content

Commit f6c895f

Browse files
committed
Clean manifold names and update discord invite and improve email notifs
1 parent 23c8f17 commit f6c895f

File tree

16 files changed

+39
-56
lines changed

16 files changed

+39
-56
lines changed

backend/api/src/create-lover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const createLover: APIHandler<'create-lover'> = async (body, auth) => {
2424
const user = await getUser(auth.uid)
2525
if (!user) throw new APIError(401, 'Your account was not found')
2626
if (user.createdTime > Date.now() - HOUR_MS) {
27-
// If they just signed up for manifold via manifold.love, set their avatar to be their pinned photo
27+
// If they just signed up, set their avatar to be their pinned photo
2828
updateUser(pg, auth.uid, { avatarUrl: body.pinned_url })
2929
}
3030

File renamed without changes.

backend/email/emails/functions/mock.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const sinclairUser: User = {
1010
avatarUrl:
1111
'https://firebasestorage.googleapis.com/v0/b/mantic-markets.appspot.com/o/user-images%2FSinclair%2FbqSXdzkn1z.JPG?alt=media&token=7779230a-9f5d-42b5-839f-fbdfef31a3ac',
1212
idVerified: true,
13-
// fromManifold: true,
1413
discordHandle: 'sinclaether#5570',
1514
twitterHandle: 'singularitttt',
1615
verifiedPhone: true,

backend/email/emails/new-endorsement.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ export const NewEndorsementEmail = ({
3939
<Preview>New endorsement from {fromUser.name}</Preview>
4040
<Body style={main}>
4141
<Container style={container}>
42-
<Section style={logoContainer}>
43-
<Img
44-
src="https://manifold.love/manifold-love-banner.png"
45-
width="550"
46-
height="auto"
47-
alt="compassmeet.com"
48-
/>
49-
</Section>
42+
{/*<Section style={logoContainer}>*/}
43+
{/* <Img*/}
44+
{/* src="..."*/}
45+
{/* width="550"*/}
46+
{/* height="auto"*/}
47+
{/* alt="compassmeet.com"*/}
48+
{/* />*/}
49+
{/*</Section>*/}
5050

5151
<Section style={content}>
5252
<Text style={paragraph}>Hi {name},</Text>
@@ -147,7 +147,7 @@ const endorsementTextStyle = {
147147
}
148148

149149
const button = {
150-
backgroundColor: '#ec489a',
150+
backgroundColor: '#4887ec',
151151
borderRadius: '12px',
152152
color: '#ffffff',
153153
fontFamily: 'Helvetica, Arial, sans-serif',

backend/email/emails/new-match.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ export const NewMatchEmail = ({
3939
<Preview>You have a new match!</Preview>
4040
<Body style={main}>
4141
<Container style={container}>
42-
<Section style={logoContainer}>
43-
<Img
44-
src="https://manifold.love/manifold-love-banner.png"
45-
width="550"
46-
height="auto"
47-
alt="compassmeet.com"
48-
/>
49-
</Section>
42+
{/*<Section style={logoContainer}>*/}
43+
{/* <Img*/}
44+
{/* src="..."*/}
45+
{/* width="550"*/}
46+
{/* height="auto"*/}
47+
{/* alt="compassmeet.com"*/}
48+
{/* />*/}
49+
{/*</Section>*/}
5050

5151
<Section style={content}>
5252
<Text style={paragraph}>Hi {name},</Text>
@@ -134,7 +134,7 @@ const profileImage = {
134134
}
135135

136136
const button = {
137-
backgroundColor: '#ec489a',
137+
backgroundColor: '#4887ec',
138138
borderRadius: '12px',
139139
color: '#ffffff',
140140
fontFamily: 'Helvetica, Arial, sans-serif',

backend/email/emails/new-message.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ export const NewMessageEmail = ({
4747
<Preview>New message from {creatorName}</Preview>
4848
<Body style={main}>
4949
<Container style={container}>
50-
<Section style={logoContainer}>
51-
<Img
52-
src="https://manifold.love/manifold-love-banner.png"
53-
width="550"
54-
height="auto"
55-
alt="compassmeet.com"
56-
/>
57-
</Section>
50+
{/*<Section style={logoContainer}>*/}
51+
{/* <Img*/}
52+
{/* src="..."*/}
53+
{/* width="550"*/}
54+
{/* height="auto"*/}
55+
{/* alt="compassmeet.com"*/}
56+
{/* />*/}
57+
{/*</Section>*/}
5858

5959
<Section style={content}>
6060
<Text style={paragraph}>Hi {name},</Text>
@@ -98,7 +98,7 @@ NewMessageEmail.PreviewProps = {
9898
fromUserLover: jamesLover,
9999
toUser: sinclairUser,
100100
channelId: 1,
101-
unsubscribeUrl: 'https://manifold.love/unsubscribe',
101+
unsubscribeUrl: 'https://compassmeet.com/unsubscribe',
102102
} as NewMessageEmailProps
103103

104104
const main = {
@@ -141,7 +141,7 @@ const profileImage = {
141141
}
142142

143143
const button = {
144-
backgroundColor: '#ec489a',
144+
backgroundColor: '#4887ec',
145145
borderRadius: '12px',
146146
color: '#ffffff',
147147
fontFamily: 'Helvetica, Arial, sans-serif',

common/src/envs/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export const RESERVED_PATHS = [
7777
'live',
7878
'login',
7979
'manifest',
80-
'manifold',
8180
'market',
8281
'markets',
8382
'message',

common/src/love/og-image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ export function getLoveOgImageUrl(user: User, lover?: LoverRow | null) {
2424
gender: lover?.gender ?? '???',
2525
} as LoveOgProps
2626

27-
return buildOgUrl(loveProps, 'lover', 'manifold.love')
27+
return buildOgUrl(loveProps, 'lover', 'compassmeet.com')
2828
}

common/src/socials.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ describe('getSocialUrl', () => {
7575

7676
it('should handle discord user IDs and default invite', () => {
7777
expect(getSocialUrl('discord', '123456789012345678')).toBe('https://discord.com/users/123456789012345678')
78-
expect(getSocialUrl('discord', 'not-an-id')).toBe('https://discord.com/invite/AYDw8dbrGS')
78+
expect(getSocialUrl('discord', 'not-an-id')).toBe('https://discord.gg/8Vd7jzqjun')
7979
})
8080
})

common/src/socials.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export const SITE_ORDER = [
22
'site', // personal site
33
'x', // twitter
44
'discord',
5-
'manifold',
65
'bluesky',
76
'mastodon',
87
'substack',
@@ -30,11 +29,6 @@ const stripper: { [key in Site]: (input: string) => string } = {
3029
.replace(/^@/, '')
3130
.replace(/\/$/, ''),
3231
discord: (s) => s,
33-
manifold: (s) =>
34-
s
35-
.replace(/^(https?:\/\/)?(manifold\.markets\/)/, '')
36-
.replace(/^@/, '')
37-
.replace(/\/$/, ''),
3832
bluesky: (s) =>
3933
s
4034
.replace(/^(https?:\/\/)?(www\.)?bsky\.app\/profile\//, '')
@@ -78,8 +72,7 @@ const urler: { [key in Site]: (handle: string) => string } = {
7872
discord: (s) =>
7973
(s.length === 17 || s.length === 18) && !isNaN(parseInt(s, 10))
8074
? `https://discord.com/users/${s}` // discord user id
81-
: 'https://discord.com/invite/AYDw8dbrGS', // our server
82-
manifold: (s) => `https://manifold.markets/${s}`,
75+
: 'https://discord.gg/8Vd7jzqjun', // our server
8376
bluesky: (s) => `https://bsky.app/profile/${s}`,
8477
mastodon: (s) =>
8578
s.includes('@') ? `https://${s.split('@')[1]}/@${s.split('@')[0]}` : s,
@@ -96,7 +89,6 @@ export const PLATFORM_LABELS: { [key in Site]: string } = {
9689
site: 'Website',
9790
x: 'Twitter/X',
9891
discord: 'Discord',
99-
manifold: 'Manifold',
10092
bluesky: 'Bluesky',
10193
mastodon: 'Mastodon',
10294
substack: 'Substack',

0 commit comments

Comments
 (0)