Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/collections/durianpy-website/Partners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export const Partners: CollectionConfig = {
relationTo: 'media',
required: true,
},
{
name: 'logoMobile',
type: 'upload',
relationTo: 'media',
required: false,
},
{
name: 'websiteUrl',
type: 'text',
Expand Down
4 changes: 2 additions & 2 deletions src/collections/durianpy-website/Sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Sponsors: CollectionConfig = {
access: createCollectionAccess(COLLECTIONS.DURIANPY_WEBSITE_SPONSORS, true),

admin: {
defaultColumns: ['name', 'logo', 'websiteUrl', 'tier'],
defaultColumns: ['name', 'logo', 'logoMobile', 'websiteUrl', 'tier'],
group: getSidebarGroupLabel(SIDEBAR_GROUPS.DURIANPY_WEBSITE),
},
versions: {
Expand All @@ -28,7 +28,7 @@ export const Sponsors: CollectionConfig = {
required: true,
},
{
name: 'banner',
name: 'logoMobile',
type: 'upload',
relationTo: COLLECTIONS.MEDIA,
required: false,
Expand Down
6 changes: 4 additions & 2 deletions src/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export interface DurianpyWebsiteSponsor {
id: string;
name: string;
logo: string | Media;
banner?: (string | null) | Media;
logoMobile?: (string | null) | Media;
websiteUrl?: string | null;
description?: string | null;
tier: 'gold' | 'silver' | 'venue' | 'community';
Expand Down Expand Up @@ -486,6 +486,7 @@ export interface DurianpyWebsitePartner {
id: string;
name: string;
logo: string | Media;
logoMobile?: (string | null) | Media;
websiteUrl?: string | null;
description?: string | null;
updatedAt: string;
Expand Down Expand Up @@ -1097,7 +1098,7 @@ export interface DurianpyWebsiteEventsSelect<T extends boolean = true> {
export interface DurianpyWebsiteSponsorsSelect<T extends boolean = true> {
name?: T;
logo?: T;
banner?: T;
logoMobile?: T;
websiteUrl?: T;
description?: T;
tier?: T;
Expand All @@ -1124,6 +1125,7 @@ export interface DurianpyWebsiteSigsSelect<T extends boolean = true> {
export interface DurianpyWebsitePartnersSelect<T extends boolean = true> {
name?: T;
logo?: T;
logoMobile?: T;
websiteUrl?: T;
description?: T;
updatedAt?: T;
Expand Down
2 changes: 2 additions & 0 deletions src/seed/durianpy-website/collections/Partners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ export async function seedPartners({ payload, req }: { payload: Payload; req?: P
{
name: 'AWS User Group Davao',
logo: mediaId,
logoMobile: mediaId,
websiteUrl: 'https://awsugdavao.ph/',
description: 'A community of AWS enthusiasts, cloud practitioners, and developers in Davao.',
_status: 'published',
},
{
name: 'Python Software Foundation',
logo: mediaId,
logoMobile: mediaId,
websiteUrl: 'https://www.python.org/psf',
description: 'The organization behind the Python programming language.',
_status: 'draft',
Expand Down
4 changes: 2 additions & 2 deletions src/seed/durianpy-website/collections/Sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function seedSponsors({ payload, req }: { payload: Payload; req?: P
websiteUrl: 'https://techcorp.example.com',
tier: 'gold',
logo: mediaId,
banner: mediaId,
logoMobile: mediaId,
description: 'Leading technology solutions provider.',
_status: 'published',
},
Expand All @@ -24,7 +24,7 @@ export async function seedSponsors({ payload, req }: { payload: Payload; req?: P
websiteUrl: 'https://localdevs.example.com',
tier: 'community',
logo: mediaId,
banner: mediaId,
logoMobile: mediaId,
description: 'A community of local developers.',
_status: 'published',
},
Expand Down
Loading