mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-26 02:21:06 -04:00
Add headline
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -4,7 +4,7 @@ export type Database = {
|
||||
// Allows to automatically instantiate createClient with right options
|
||||
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(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: {
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -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 (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user