diff --git a/public/admin/config.yml b/public/admin/config.yml index 7092bbd2a..0fddc8170 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -70,6 +70,7 @@ image_config: &image_config label: "Image" widget: "object" required: false + collapsed: true hint: Adding an image is optional. If no image is added, a default fallback image will be used automatically. Simply leave the image field empty to use the fallback. fields: - name: "src" @@ -88,7 +89,6 @@ event_sponsor_config: &event_sponsor_config - name: "website" label: "website" widget: "string" - required: false - name: "image" label: "Image" widget: "object" @@ -729,6 +729,7 @@ collections: - name: "external-link" label: "External Link URL" widget: "object" + collapsed: true required: false fields: - name: "url" @@ -746,23 +747,25 @@ collections: widget: "string" required: false hint: "Luma Calendar URL for the event. Include relevant tags when appropriate, e.g., https://lu.ma/filecoin-events?tag=fil%20bangkok%202024" + - *image_config - name: luma-events-section label: "Luma Events Section" widget: "object" + collapsed: true required: false - hint: Both the section title and the embed URL must be filled out for this section to appear on the page. + hint: The embed URL must be filled out for this section to appear on the page. fields: - name: "title" label: "Section Title" widget: "string" required: false - hint: This is the title for the section header. For example, "FIL Bangkok 2024 Events." + default: "Events" + hint: This is the title for the Luma Events section header. For example, "FIL Bangkok 2024 Main Stage Events. Defaults to 'Events'" - name: "embed-link" label: "Luma Embed URL" widget: "string" required: false hint: Paste the embed URL for your Luma event here to display the events directly on the page. Include relevant tags when appropriate, e.g., https://lu.ma/embed/calendar/cal-nlDvL4B7Ko1swF0/events?lt=light&tag=FIL%20Bangkok%202024. - - *image_config - name: "schedule" label: "Schedule" widget: "object" @@ -773,10 +776,10 @@ collections: label: "Section Title" widget: "string" required: false - hint: This is the title for the section header. For example, "FIL Bangkok 2024 Main Stage Schedule. Defaults to 'Schedule.'" + default: "Schedule" + hint: This is the title for the Schedule section header. For example, "FIL Bangkok 2024 Main Stage Schedule. Defaults to 'Schedule.'" - name: "days" widget: "list" - required: false fields: - name: "date" label: "Date" @@ -798,17 +801,16 @@ collections: - name: "end" label: "End Time" widget: "datetime" - required: false - name: "location" label: "Location" widget: "string" - name: "url" label: "URL" widget: "string" - required: false - name: "speakers" label: "Speakers" widget: "list" + collapsed: true required: false fields: - name: "name" @@ -826,7 +828,6 @@ collections: - name: "image" label: "Image" widget: "object" - required: false fields: - name: "src" label: "URL" @@ -838,6 +839,7 @@ collections: - name: "sponsors" label: "Sponsors" widget: "object" + collapsed: true required: false fields: - name: "first-tier" diff --git a/src/app/_schemas/event/SponsorSchema.ts b/src/app/_schemas/event/SponsorSchema.ts index 26335bd9a..aa59f4149 100644 --- a/src/app/_schemas/event/SponsorSchema.ts +++ b/src/app/_schemas/event/SponsorSchema.ts @@ -4,7 +4,7 @@ import { ImagePropsSchema } from '@/schemas/imagePropsSchema' const sponsorSchema = z.object({ name: z.string(), - website: z.string().url().optional(), + website: z.string().url(), image: ImagePropsSchema, })