Skip to content

Add social media links to create events#2093

Open
hei98 wants to merge 25 commits intomasterfrom
heiheidi/web-75-add-social-media-links-to-create-events
Open

Add social media links to create events#2093
hei98 wants to merge 25 commits intomasterfrom
heiheidi/web-75-add-social-media-links-to-create-events

Conversation

@hei98
Copy link
Copy Markdown
Contributor

@hei98 hei98 commented Mar 3, 2026

No description provided.

@hei98 hei98 self-assigned this Mar 3, 2026
@hei98 hei98 marked this pull request as ready for review March 10, 2026 20:43
@hei98 hei98 requested review from andsamfu and robines as code owners March 10, 2026 20:43
Copy link
Copy Markdown
Contributor

@BragonSB BragonSB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, a few things to look at though, the translation thingy might be out of scope and better to do in a seperate issue like WEB-130

Comment thread frontend/src/PagesAdmin/EventCreatorAdminPage/EventCreatorAdminPage.module.scss Outdated
Comment thread frontend/src/schema/event.ts Outdated
Comment thread frontend/src/schema/event.ts Outdated
Comment thread frontend/src/schema/event.ts Outdated
Comment thread frontend/src/schema/event.ts Outdated
Comment thread frontend/src/i18n/translations.ts Outdated
Comment thread frontend/src/i18n/translations.ts Outdated
Comment thread frontend/src/i18n/translations.ts Outdated
Comment thread frontend/src/i18n/translations.ts Outdated
Comment thread frontend/src/PagesAdmin/EventCreatorAdminPage/EventCreatorSchema.ts Outdated
Comment thread frontend/src/PagesAdmin/EventCreatorAdminPage/EventCreatorAdminPage.tsx Outdated
Copy link
Copy Markdown
Contributor

@BragonSB BragonSB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice approved, just a few things to look at:)

Comment thread frontend/src/PagesAdmin/EventCreatorAdminPage/EventCreatorAdminPage.module.scss Outdated
Comment thread frontend/src/PagesAdmin/EventCreatorAdminPage/EventCreatorAdminPage.module.scss Outdated
Comment thread frontend/src/dto.ts Outdated
Comment thread frontend/src/schema/event.ts
Comment on lines +44 to +55
const SOCIAL_LABELS: Record<SocialLinkKey, string> = {
spotify_uri: 'Spotify URI',
youtube_link: 'YouTube link',
youtube_embed: 'YouTube embed',
facebook_link: 'Facebook link',
soundcloud_link: 'SoundCloud link',
instagram_link: 'Instagram link',
x_link: 'X link',
lastfm_link: 'Last.fm link',
vimeo_link: 'Vimeo link',
general_link: t(KEY.event_general_link),
};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bruke translation her? Er vell egentlig "lenke" istedenfor "link" på norsk. Usikker på "Spotify URI" og "YouTube embed" for det blir jo likt mellom norsk og engelsk.

Har lav betydning, for folk forstår "link".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La til oversettelse for link/lenke nå

Comment on lines +61 to +72
const SOCIAL_FIELDS = [
'spotify_uri',
'youtube_link',
'youtube_embed',
'facebook_link',
'soundcloud_link',
'instagram_link',
'x_link',
'lastfm_link',
'vimeo_link',
'general_link',
] as const;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er samme liste som i SocialMediaStep.tsx. Har derfor to av samme listen man må vedlikeholde.

Forslag er å heller eksportere listen fra SocialMediaStep.tsx og importere her slik at det kun blir en liste å vedlikeholde.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment on lines +114 to +120
.gridItemFull {
grid-column: 1 / -1;
}

.gridItemFull .socialGrid {
max-width:max-content ;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kan ikke se at dette har blitt brukt noe sted. Fjerne?

Lav viktighet.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja, glemte å fjerne så fjernet dem nå

Comment on lines 63 to 66
}


.half {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funnet noen steder med ekstra tomme linjer i denne filen. Kjøre linter?

Lav viktighet.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@hei98 hei98 requested review from andsamfu and robines April 23, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants