Skip to content

Commit a5069fd

Browse files
committed
bluesky
1 parent e8d91b3 commit a5069fd

File tree

9 files changed

+39
-1
lines changed

9 files changed

+39
-1
lines changed

bun.lockb

56 Bytes
Binary file not shown.

src/components/icons/Bluesky.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { createSvgIcon } from '@mui/material/utils'
2+
3+
export const Bluesky = createSvgIcon(
4+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 530">
5+
<path
6+
d="m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z"
7+
fill="#ffffff"
8+
/>
9+
</svg>,
10+
'Bluesky'
11+
)

src/events/actions/sessions/generation/generateSessionTeasingContent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export enum TeasingPostSocials {
77
LinkedIn = 'linkedin',
88
Facebook = 'facebook',
99
Instagram = 'instagram',
10+
Bluesky = 'bluesky',
1011
}
1112

1213
export const GenerateSessionsTeasingContentPrompts = {

src/events/actions/social/bupherAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type BupherDraftPostResponse = {
3333

3434
export type BupherProfile = {
3535
id: string
36-
type: 'twitter' | 'instagram' | 'facebook' | 'linkedin' | 'youtube' | 'tiktok'
36+
type: 'twitter' | 'instagram' | 'facebook' | 'linkedin' | 'youtube' | 'tiktok' | 'bluesky'
3737
}
3838

3939
export const bupherAPI = {

src/events/page/sessions/EventSessionForm.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const EventSessionForm = ({ event, session, onSubmit }: EventSessionFormP
6969
twitter: data.teasingPosts?.twitter || null,
7070
instagram: data.teasingPosts?.instagram || null,
7171
facebook: data.teasingPosts?.facebook || null,
72+
bluesky: data.teasingPosts?.bluesky || null,
7273
}
7374
return onSubmit({
7475
title: data.title,
@@ -95,6 +96,7 @@ export const EventSessionForm = ({ event, session, onSubmit }: EventSessionFormP
9596
linkedin: data.announcedOn?.linkedin || false,
9697
facebook: data.announcedOn?.facebook || false,
9798
instagram: data.announcedOn?.instagram || false,
99+
bluesky: data.announcedOn?.bluesky || false,
98100
},
99101
} as Session)
100102
}}>
@@ -407,6 +409,19 @@ export const EventSessionForm = ({ event, session, onSubmit }: EventSessionFormP
407409
disabled={false}
408410
/>
409411
</Grid>
412+
<Grid item xs={12} md={6}>
413+
<TextFieldElement
414+
margin="dense"
415+
fullWidth
416+
multiline
417+
minRows={4}
418+
maxRows={40}
419+
label="Bluesky teasing post"
420+
name="teasingPosts.bluesky"
421+
variant="filled"
422+
disabled={false}
423+
/>
424+
</Grid>
410425
</>
411426
)}
412427
</Grid>
@@ -427,6 +442,9 @@ export const EventSessionForm = ({ event, session, onSubmit }: EventSessionFormP
427442
<Grid item xs={3}>
428443
<CheckboxElement label="Instagram" name="announcedOn.instagram" />
429444
</Grid>
445+
<Grid item xs={3}>
446+
<CheckboxElement label="Bluesky" name="announcedOn.bluesky" />
447+
</Grid>
430448
</Grid>
431449
</Grid>
432450

src/events/page/sessions/EventSessionItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Box, Button, Chip, Grid, Link, Typography, useTheme } from '@mui/materi
33
import { Session } from '../../../types'
44
import { dateTimeToDayMonthHours } from '../../../utils/dates/timeFormats'
55
import { Twitter, LinkedIn, Facebook, Instagram } from '@mui/icons-material'
6+
import { Bluesky } from '../../../components/icons/Bluesky'
67

78
type EventSessionItem = {
89
selectFormat: (formatId: string) => void
@@ -54,6 +55,7 @@ export const EventSessionItem = ({ selectFormat, session }: EventSessionItem) =>
5455
{session.announcedOn.linkedin && <LinkedIn fontSize="small" />}
5556
{session.announcedOn.facebook && <Facebook fontSize="small" />}
5657
{session.announcedOn.instagram && <Instagram fontSize="small" />}
58+
{session.announcedOn.bluesky && <Bluesky fontSize="small" />}
5759
</Box>
5860
)}
5961
</Grid>

src/events/page/social/BupherChannels.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const getChannelUrl = (type: string, handle: string) => {
3030
return `https://youtube.com/${handle}`
3131
case 'tiktok':
3232
return `https://tiktok.com/@${handle}`
33+
case 'bluesky':
34+
return `https://bsky.app/profile/${handle}`
3335
default:
3436
return `https://${type}.com/${handle}`
3537
}

src/public/event/session/components/SpeakerLinks.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import GitHubIcon from '@mui/icons-material/GitHub'
66
import LanguageIcon from '@mui/icons-material/Language'
77
import InstagramIcon from '@mui/icons-material/Instagram'
88
import YouTubeIcon from '@mui/icons-material/YouTube'
9+
import { Bluesky } from '../../../../components/icons/Bluesky'
910

1011
type SpeakerLinksProps = {
1112
socials: Social[]
@@ -20,6 +21,7 @@ const socialIcons: Record<string, React.ReactNode> = {
2021
instagram: <InstagramIcon sx={{ height: iconSize, width: iconSize }} />,
2122
youtube: <YouTubeIcon sx={{ height: iconSize, width: iconSize }} />,
2223
website: <LanguageIcon sx={{ height: iconSize, width: iconSize }} />,
24+
bluesky: <Bluesky sx={{ height: iconSize, width: iconSize }} />,
2325
}
2426

2527
// Add a helper function to check if a URL is valid

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export interface TeasingPosts {
6565
linkedin?: string | null
6666
facebook?: string | null
6767
instagram?: string | null
68+
bluesky?: string | null
6869
}
6970

7071
export interface Session {
@@ -103,6 +104,7 @@ export interface Session {
103104
linkedin?: boolean
104105
facebook?: boolean
105106
instagram?: boolean
107+
bluesky?: boolean
106108
}
107109
}
108110

0 commit comments

Comments
 (0)