Skip to content

Commit 1578147

Browse files
committed
Rename Love to Profile
1 parent 26a2817 commit 1578147

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+97
-105
lines changed

backend/api/src/like-profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createSupabaseDirectClient } from 'shared/supabase/init'
22
import { APIError, APIHandler } from './helpers/endpoint'
3-
import { createProfileLikeNotification } from 'shared/create-love-notification'
3+
import { createProfileLikeNotification } from 'shared/create-profile-notification'
44
import { getHasFreeLike } from './has-free-like'
55
import { log } from 'shared/utils'
66
import { tryCatch } from 'common/util/try-catch'

backend/api/src/ship-profiles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createSupabaseDirectClient } from 'shared/supabase/init'
22
import { APIError, APIHandler } from './helpers/endpoint'
3-
import { createLoveShipNotification } from 'shared/create-love-notification'
3+
import { createProfileShipNotification } from 'shared/create-profile-notification'
44
import { log } from 'shared/utils'
55
import { tryCatch } from 'common/util/try-catch'
66
import { insert } from 'shared/supabase/utils'
@@ -61,8 +61,8 @@ export const shipProfiles: APIHandler<'ship-profiles'> = async (props, auth) =>
6161

6262
const continuation = async () => {
6363
await Promise.all([
64-
createLoveShipNotification(data, data.target1_id),
65-
createLoveShipNotification(data, data.target2_id),
64+
createProfileShipNotification(data, data.target1_id),
65+
createProfileShipNotification(data, data.target2_id),
6666
])
6767
}
6868

backend/email/emails/new-match.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const NewMatchEmail = ({
2121
email
2222
}: NewMatchEmailProps) => {
2323
const name = onUser.name.split(' ')[0]
24-
// const userImgSrc = getLoveOgImageUrl(matchedWithUser, matchedProfile)
24+
// const userImgSrc = getOgImageUrl(matchedWithUser, matchedProfile)
2525
const userUrl = `https://${DOMAIN}/${matchedWithUser.username}`
2626

2727
return (

backend/email/emails/new-message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const NewMessageEmail = ({
2525
const name = toUser.name.split(' ')[0]
2626
const creatorName = fromUser.name
2727
const messagesUrl = `https://${DOMAIN}/messages/${channelId}`
28-
// const userImgSrc = getLoveOgImageUrl(fromUser, fromUserProfile)
28+
// const userImgSrc = getOgImageUrl(fromUser, fromUserProfile)
2929

3030
return (
3131
<Html>

backend/scripts/import-love-finalize.sql renamed to backend/scripts/import-profile-finalize.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ select
1414
from
1515
temp_users;
1616

17-
-- Rename temp_love_messages
18-
-- alter table temp_love_messages
19-
-- rename to private_user_messages;
20-
2117
-- alter table private_user_messages
2218
-- alter column channel_id set not null,
2319
-- alter column content set not null,

backend/shared/src/create-love-notification.ts renamed to backend/shared/src/create-profile-notification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const createProfileLikeNotification = async (like: Row<'profile_likes'>)
3939
return await insertNotificationToSupabase(notification, pg)
4040
}
4141

42-
export const createLoveShipNotification = async (
42+
export const createProfileShipNotification = async (
4343
ship: Row<'profile_ships'>,
4444
recipientId: string
4545
) => {

common/src/api/schema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
contentSchema,
3-
combinedLoveUsersSchema,
3+
combinedProfileSchema,
44
baseProfilesSchema,
55
arraybeSchema,
66
} from 'common/api/zod-types'
@@ -11,7 +11,7 @@ import {Profile, ProfileRow} from 'common/profiles/profile'
1111
import {Row} from 'common/supabase/utils'
1212
import {PrivateUser, User} from 'common/user'
1313
import {z} from 'zod'
14-
import {LikeData, ShipData} from './love-types'
14+
import {LikeData, ShipData} from './profile-types'
1515
import {DisplayUser, FullUser} from './user-types'
1616
import {PrivateMessageChannel} from 'common/supabase/private-messages'
1717
import {Notification} from 'common/notifications'
@@ -160,7 +160,7 @@ export const API = (_apiTypeCheck = {
160160
method: 'POST',
161161
authed: true,
162162
rateLimited: true,
163-
props: combinedLoveUsersSchema.partial(),
163+
props: combinedProfileSchema.partial(),
164164
returns: {} as ProfileRow,
165165
},
166166
'update-notif-settings': {

common/src/api/zod-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ const optionalProfilesSchema = z.object({
9494
pref_romantic_styles: z.array(z.string()),
9595
})
9696

97-
export const combinedLoveUsersSchema =
97+
export const combinedProfileSchema =
9898
baseProfilesSchema.merge(optionalProfilesSchema)

0 commit comments

Comments
 (0)