diff --git a/backend/supabase/profiles.sql b/backend/supabase/profiles.sql index 4b5189b9..e2b1d396 100644 --- a/backend/supabase/profiles.sql +++ b/backend/supabase/profiles.sql @@ -28,6 +28,7 @@ CREATE TABLE IF NOT EXISTS profiles gender TEXT, geodb_city_id TEXT, has_kids INTEGER, + headline TEXT, height_in_inches float4, id BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL, image_descriptions jsonb, diff --git a/common/src/profiles/og-image.ts b/common/src/profiles/og-image.ts index 1b44ee32..d592ad54 100644 --- a/common/src/profiles/og-image.ts +++ b/common/src/profiles/og-image.ts @@ -8,6 +8,7 @@ export type ogProps = { avatarUrl: string username: string name: string + headline: string // profile props age: string city: string @@ -19,9 +20,10 @@ export function getProfileOgImageUrl(user: User, profile?: ProfileRow | null) { avatarUrl: profile?.pinned_url, username: user.username, name: user.name, - age: profile?.age?.toString() ?? '25', - city: profile?.city ?? 'Internet', - gender: profile?.gender ?? '???', + age: profile?.age?.toString() ?? '', + city: profile?.city ?? '', + gender: profile?.gender ?? '', + headline: profile?.headline ?? '', } as ogProps return buildOgUrl(props, 'profile') diff --git a/common/src/supabase/schema.ts b/common/src/supabase/schema.ts index 14527b37..a9099dd3 100644 --- a/common/src/supabase/schema.ts +++ b/common/src/supabase/schema.ts @@ -4,7 +4,7 @@ export type Database = { // Allows to automatically instantiate createClient with right options // instead of createClient(URL, KEY) __InternalSupabase: { - PostgrestVersion: '13.0.5' + PostgrestVersion: '13.0.4' } public: { Tables: { @@ -804,17 +804,14 @@ export type Database = { Row: { data: Json id: string - locale: string | null } Insert: { data: Json id: string - locale?: string | null } Update: { data?: Json id?: string - locale?: string | null } Relationships: [ { @@ -1106,6 +1103,7 @@ export type Database = { gender: string | null geodb_city_id: string | null has_kids: number | null + headline: string | null height_in_inches: number | null id: number image_descriptions: Json | null @@ -1114,6 +1112,7 @@ export type Database = { last_modification_time: string looking_for_matches: boolean mbti: string | null + messaging_status: string occupation: string | null occupation_title: string | null photo_urls: string[] | null @@ -1176,6 +1175,7 @@ export type Database = { gender?: string | null geodb_city_id?: string | null has_kids?: number | null + headline?: string | null height_in_inches?: number | null id?: number image_descriptions?: Json | null @@ -1184,6 +1184,7 @@ export type Database = { last_modification_time?: string looking_for_matches?: boolean mbti?: string | null + messaging_status?: string occupation?: string | null occupation_title?: string | null photo_urls?: string[] | null @@ -1246,6 +1247,7 @@ export type Database = { gender?: string | null geodb_city_id?: string | null has_kids?: number | null + headline?: string | null height_in_inches?: number | null id?: number image_descriptions?: Json | null @@ -1254,6 +1256,7 @@ export type Database = { last_modification_time?: string looking_for_matches?: boolean mbti?: string | null + messaging_status?: string occupation?: string | null occupation_title?: string | null photo_urls?: string[] | null @@ -1466,7 +1469,15 @@ export type Database = { ts?: string user_id?: string | null } - Relationships: [] + Relationships: [ + { + foreignKeyName: 'user_events_user_id_fkey' + columns: ['user_id'] + isOneToOne: false + referencedRelation: 'users' + referencedColumns: ['id'] + }, + ] } user_notifications: { Row: { diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index cc962566..77d077e3 100644 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -71,12 +71,6 @@ const logoFont = Major_Mono_Display({ subsets: ['latin'], }) -// const mainFont = Figtree({ -// weight: ['300', '400', '500', '600', '700'], -// variable: '--font-main', -// subsets: ['latin'], -// }) - function printBuildInfo() { if (IS_VERCEL) { const env = process.env.NEXT_PUBLIC_VERCEL_ENV diff --git a/web/pages/api/og/Figtree-Light.ttf b/web/pages/api/og/Figtree-Light.ttf deleted file mode 100644 index 246b77d9..00000000 Binary files a/web/pages/api/og/Figtree-Light.ttf and /dev/null differ diff --git a/web/pages/api/og/Figtree-Medium.ttf b/web/pages/api/og/Figtree-Medium.ttf deleted file mode 100644 index 13ab96ca..00000000 Binary files a/web/pages/api/og/Figtree-Medium.ttf and /dev/null differ diff --git a/web/pages/api/og/profile.tsx b/web/pages/api/og/profile.tsx index 1aa6fa3d..96cbf833 100644 --- a/web/pages/api/og/profile.tsx +++ b/web/pages/api/og/profile.tsx @@ -18,8 +18,7 @@ export const getCardOptions = async () => ({ // } function OgProfile(props: ogProps) { - const {avatarUrl, name, city} = props - const headline = 'Engineer & Researcher | AI Safety, Climate Solutions, and Ethical Technology' + const {avatarUrl, name, city, headline} = props return (