Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Add ability to duplicate Capacity Assignments, Check-In lists & Event Covers
Dave Earley41aae653f0c1
diff --git a/backend/app/DomainObjects/EventDomainObject.php b/backend/app/DomainObjects/EventDomainObject.phpindex a4ac36913..e55caf5bd 100644--- a/backend/app/DomainObjects/EventDomainObject.php+++ b/backend/app/DomainObjects/EventDomainObject.php@@ -22,6 +22,10 @@ class EventDomainObject extends Generated\EventDomainObjectAbstract implements Iprivate ?Collection $promoCodes = null;+ private ?Collection $checkInLists = null;++ private ?Collection $capacityAssignments = null;+private ?EventSettingDomainObject $settings = null;private ?OrganizerDomainObject $organizer = null;@@ -218,4 +222,28 @@ class EventDomainObject extends Generated\EventDomainObjectAbstract implements Ireturn $this;}++ public function getCheckInLists(): ?Collection+ {+ return $this->checkInLists;+ }++ public function setCheckInLists(?Collection $checkInLists): self+ {+ $this->checkInLists = $checkInLists;++ return $this;+ }++ public function getCapacityAssignments(): ?Collection+ {+ return $this->capacityAssignments;+ }++ public function setCapacityAssignments(?Collection $capacityAssignments): self+ {+ $this->capacityAssignments = $capacityAssignments;++ return $this;+ }}diff --git a/backend/app/Http/Actions/Events/DuplicateEventAction.php b/backend/app/Http/Actions/Events/DuplicateEventAction.phpindex 337b10e5b..2f6063da0 100644--- a/backend/app/Http/Actions/Events/DuplicateEventAction.php+++ b/backend/app/Http/Actions/Events/DuplicateEventAction.php@@ -33,6 +33,9 @@ class DuplicateEventAction extends BaseActionduplicateQuestions: $request->validated('duplicate_questions'),duplicateSettings: $request->validated('duplicate_settings'),duplicatePromoCodes: $request->validated('duplicate_promo_codes'),+ duplicateCapacityAssignments: $request->validated('duplicate_capacity_assignments'),+ duplicateCheckInLists: $request->validated('duplicate_check_in_lists'),+ duplicateEventCoverImage: $request->validated('duplicate_event_cover_image'),description: $request->validated('description'),endDate: $request->validated('end_date'),));diff --git a/backend/app/Http/Request/Event/CreateEventImageRequest.php b/backend/app/Http/Request/Event/CreateEventImageRequest.phpindex 23ed1924d..be266c5be 100644--- a/backend/app/Http/Request/Event/CreateEventImageRequest.php+++ b/backend/app/Http/Request/Event/CreateEventImageRequest.php@@ -15,7 +15,7 @@ class CreateEventImageRequest extends FormRequest'required','image','max:8192', //8mb- 'dimensions:min_width=600,min_height=50,max_width=3000,max_height=2000',+ 'dimensions:min_width=600,min_height=50,max_width=4000,max_height=4000','mimes:jpeg,png,jpg,webp',],'type' => Rule::in(EventImageType::valuesArray()),diff --git a/backend/app/Http/Request/Event/DuplicateEventRequest.php b/backend/app/Http/Request/Event/DuplicateEventRequest.phpindex 62b7ce635..70e0420ab 100644--- a/backend/app/Http/Request/Event/DuplicateEventRequest.php+++ b/backend/app/Http/Request/Event/DuplicateEventRequest.php@@ -18,6 +18,9 @@ class DuplicateEventRequest extends BaseRequest'duplicate_questions' => ['boolean', 'required'],'duplicate_settings' => ['boolean', 'required'],'duplicate_promo_codes' => ['boolean', 'required'],+ 'duplicate_capacity_assignments' => ['boolean', 'required'],+ 'duplicate_check_in_lists' => ['boolean', 'required'],+ 'duplicate_event_cover_image' => ['boolean', 'required'],];return array_merge($eventValidations, $duplicateValidations);diff --git a/backend/app/Models/Event.php b/backend/app/Models/Event.phpindex e559180bc..75fc847ec 100644--- a/backend/app/Models/Event.php+++ b/backend/app/Models/Event.php@@ -4,11 +4,11 @@ declare(strict_types=1);namespace HiEvents\Models;+use HiEvents\DomainObjects\Generated\EventDomainObjectAbstract;+use HiEvents\Models\Traits\HasImages;use Illuminate\Database\Eloquent\Relations\BelongsTo;use Illuminate\Database\Eloquent\Relations\HasMany;use Illuminate\Database\Eloquent\Relations\HasOne;-use HiEvents\DomainObjects\Generated\EventDomainObjectAbstract;-use HiEvents\Models\Traits\HasImages;class Event extends BaseModel{@@ -44,6 +44,16 @@ class Event extends BaseModelreturn $this->hasMany(PromoCode::class);}+ public function check_in_lists(): HasMany+ {+ return $this->hasMany(CheckInList::class);+ }++ public function capacity_assignments(): HasMany+ {+ return $this->hasMany(CapacityAssignment::class);+ }+public static function boot(){parent::boot();diff --git a/backend/app/Services/Domain/Event/CreateEventImageService.php b/backend/app/Services/Domain/Event/CreateEventImageService.phpnew file mode 100644index 000000000..a2b6eb73b--- /dev/null+++ b/backend/app/Services/Domain/Event/CreateEventImageService.php@@ -0,0 +1,50 @@+<?php++namespace HiEvents\Services\Domain\Event;++use HiEvents\DomainObjects\Enums\EventImageType;+use HiEvents\DomainObjects\EventDomainObject;+use HiEvents\DomainObjects\ImageDomainObject;+use HiEvents\Repository\Interfaces\ImageRepositoryInterface;+use HiEvents\Services\Domain\Image\ImageUploadService;+use Illuminate\Database\DatabaseManager;+use Illuminate\Http\UploadedFile;+use Throwable;++class CreateEventImageService+{+ public function __construct(+ private readonly ImageUploadService $imageUploadService,+ private readonly ImageRepositoryInterface $imageRepository,+ private readonly DatabaseManager $databaseManager,+ )+ {+ }++ /**+ * @throws Throwable+ */+ public function createImage(+ int $eventId,+ UploadedFile $image,+ EventImageType $type,+ ): ImageDomainObject+ {+ return $this->databaseManager->transaction(function () use ($image, $eventId, $type) {+ if ($type === EventImageType::EVENT_COVER) {+ $this->imageRepository->deleteWhere([+ 'entity_id' => $eventId,+ 'entity_type' => EventDomainObject::class,+ 'type' => EventImageType::EVENT_COVER->name,+ ]);+ }++ return $this->imageUploadService->upload(+ image: $image,+ entityId: $eventId,+ entityType: EventDomainObject::class,+ imageType: EventImageType::EVENT_COVER->name,+ );+ });+ }+}diff --git a/backend/app/Services/Domain/Event/DTO/DuplicateEventDataDTO.php b/backend/app/Services/Domain/Event/DTO/DuplicateEventDataDTO.phpindex c16f3022a..83262ea5e 100644--- a/backend/app/Services/Domain/Event/DTO/DuplicateEventDataDTO.php+++ b/backend/app/Services/Domain/Event/DTO/DuplicateEventDataDTO.php@@ -15,6 +15,9 @@ class DuplicateEventDataDTO extends BaseDTOpublic bool $duplicateQuestions = true,public bool $duplicateSettings = true,public bool $duplicatePromoCodes = true,+ public bool $duplicateCapacityAssignments = true,+ public bool $duplicateCheckInLists = true,+ public bool $duplicateEventCoverImage = true,public ?string $description = null,public ?string $endDate = null,)diff --git a/backend/app/Services/Domain/Event/DuplicateEventService.php b/backend/app/Services/Domain/Event/DuplicateEventService.phpindex 6cd2db6b1..96b7112a4 100644--- a/backend/app/Services/Domain/Event/DuplicateEventService.php+++ b/backend/app/Services/Domain/Event/DuplicateEventService.php@@ -2,8 +2,12 @@namespace HiEvents\Services\Domain\Event;+use HiEvents\DomainObjects\CapacityAssignmentDomainObject;+use HiEvents\DomainObjects\CheckInListDomainObject;+use HiEvents\DomainObjects\Enums\EventImageType;use HiEvents\DomainObjects\EventDomainObject;use HiEvents\DomainObjects\EventSettingDomainObject;+use HiEvents\DomainObjects\ImageDomainObject;use HiEvents\DomainObjects\PromoCodeDomainObject;use HiEvents\DomainObjects\QuestionDomainObject;use HiEvents\DomainObjects\Status\EventStatus;@@ -12,6 +16,9 @@ use HiEvents\DomainObjects\TicketDomainObject;use HiEvents\DomainObjects\TicketPriceDomainObject;use HiEvents\Repository\Eloquent\Value\Relationship;use HiEvents\Repository\Interfaces\EventRepositoryInterface;+use HiEvents\Repository\Interfaces\ImageRepositoryInterface;+use HiEvents\Services\Domain\CapacityAssignment\CreateCapacityAssignmentService;+use HiEvents\Services\Domain\CheckInList\CreateCheckInListService;use HiEvents\Services\Domain\PromoCode\CreatePromoCodeService;use HiEvents\Services\Domain\Question\CreateQuestionService;use HiEvents\Services\Domain\Ticket\CreateTicketService;@@ -22,13 +29,16 @@ use Throwable;class DuplicateEventService{public function __construct(- private readonly EventRepositoryInterface $eventRepository,- private readonly CreateEventService $createEventService,- private readonly CreateTicketService $createTicketService,- private readonly CreateQuestionService $createQuestionService,- private readonly CreatePromoCodeService $createPromoCodeService,- private readonly DatabaseManager $databaseManager,- private readonly HTMLPurifier $purifier,+ private readonly EventRepositoryInterface $eventRepository,+ private readonly CreateEventService $createEventService,+ private readonly CreateTicketService $createTicketService,+ private readonly CreateQuestionService $createQuestionService,+ private readonly CreatePromoCodeService $createPromoCodeService,+ private readonly CreateCapacityAssignmentService $createCapacityAssignmentService,+ private readonly CreateCheckInListService $createCheckInListService,+ private readonly ImageRepositoryInterface $imageRepository,+ private readonly DatabaseManager $databaseManager,+ private readonly HTMLPurifier $purifier,){}@@ -45,38 +55,52 @@ class DuplicateEventServicebool $duplicateQuestions = true,bool $duplicateSettings = true,bool $duplicatePromoCodes = true,+ bool $duplicateCapacityAssignments = true,+ bool $duplicateCheckInLists = true,+ bool $duplicateEventCoverImage = true,?string $description = null,?string $endDate = null,): EventDomainObject{- $this->databaseManager->beginTransaction();+ try {+ $this->databaseManager->beginTransaction();- $event = $this->getEventWithRelations($eventId, $accountId);+ $event = $this->getEventWithRelations($eventId, $accountId);- $event- ->setTitle($title)- ->setStartDate($startDate)- ->setEndDate($endDate)- ->setDescription($this->purifier->purify($description))- ->setStatus(EventStatus::DRAFT->name);+ $event+ ->setTitle($title)+ ->setStartDate($startDate)+ ->setEndDate($endDate)+ ->setDescription($this->purifier->purify($description))+ ->setStatus(EventStatus::DRAFT->name);- $newEvent = $this->cloneExistingEvent(- event: $event,- cloneEventSettings: $duplicateSettings,- );-- if ($duplicateTickets) {- $this->cloneExistingTickets(+ $newEvent = $this->cloneExistingEvent(event: $event,- newEventId: $newEvent->getId(),- duplicateQuestions: $duplicateQuestions,- duplicatePromoCodes: $duplicatePromoCodes,+ cloneEventSettings: $duplicateSettings,);- }- $this->databaseManager->commit();+ if ($duplicateTickets) {+ $this->cloneExistingTickets(+ event: $event,+ newEventId: $newEvent->getId(),+ duplicateQuestions: $duplicateQuestions,+ duplicatePromoCodes: $duplicatePromoCodes,+ duplicateCapacityAssignments: $duplicateCapacityAssignments,+ duplicateCheckInLists: $duplicateCheckInLists,+ );+ }++ if ($duplicateEventCoverImage) {+ $this->cloneEventCoverImage($event, $newEvent->getId());+ }- return $this->getEventWithRelations($newEvent->getId(), $newEvent->getAccountId());+ $this->databaseManager->commit();++ return $this->getEventWithRelations($newEvent->getId(), $newEvent->getAccountId());+ } catch (Throwable $e) {+ $this->databaseManager->rollBack();+ throw $e;+ }}/**@@ -112,7 +136,9 @@ class DuplicateEventServiceint $newEventId,bool $duplicateQuestions,bool $duplicatePromoCodes,- ): void+ bool $duplicateCapacityAssignments,+ bool $duplicateCheckInLists,+ ): array{$oldTicketToNewTicketMap = [];@@ -133,6 +159,16 @@ class DuplicateEventServiceif ($duplicatePromoCodes) {$this->clonePromoCodes($event, $newEventId, $oldTicketToNewTicketMap);}++ if ($duplicateCapacityAssignments) {+ $this->cloneCapacityAssignments($event, $newEventId, $oldTicketToNewTicketMap);+ }++ if ($duplicateCheckInLists) {+ $this->cloneCheckInLists($event, $newEventId, $oldTicketToNewTicketMap);+ }++ return $oldTicketToNewTicketMap;}/**@@ -180,6 +216,57 @@ class DuplicateEventService}}+ private function cloneCapacityAssignments(EventDomainObject $event, int $newEventId, $oldTicketToNewTicketMap): void+ {+ /** @var CapacityAssignmentDomainObject $capacityAssignment */+ foreach ($event->getCapacityAssignments() as $capacityAssignment) {+ $this->createCapacityAssignmentService->createCapacityAssignment(+ capacityAssignment: (new CapacityAssignmentDomainObject())+ ->setName($capacityAssignment->getName())+ ->setEventId($newEventId)+ ->setCapacity($capacityAssignment->getCapacity())+ ->setAppliesTo($capacityAssignment->getAppliesTo())+ ->setStatus($capacityAssignment->getStatus()),+ ticketIds: $capacityAssignment->getTickets()+ ?->map(fn($ticket) => $oldTicketToNewTicketMap[$ticket->getId()])?->toArray() ?? [],+ );+ }+ }++ private function cloneCheckInLists(EventDomainObject $event, int $newEventId, $oldTicketToNewTicketMap): void+ {+ foreach ($event->getCheckInLists() as $checkInList) {+ $this->createCheckInListService->createCheckInList(+ checkInList: (new CheckInListDomainObject())+ ->setName($checkInList->getName())+ ->setDescription($checkInList->getDescription())+ ->setExpiresAt($checkInList->getExpiresAt())+ ->setActivatesAt($checkInList->getActivatesAt())+ ->setEventId($newEventId),+ ticketIds: $checkInList->getTickets()+ ?->map(fn($ticket) => $oldTicketToNewTicketMap[$ticket->getId()])?->toArray() ?? [],+ );+ }+ }++ private function cloneEventCoverImage(EventDomainObject $event, int $newEventId): void+ {+ /** @var ImageDomainObject $coverImage */+ $coverImage = $event->getImages()?->first(fn(ImageDomainObject $image) => $image->getType() === EventImageType::EVENT_COVER->name);+ if ($coverImage) {+ $this->imageRepository->create([+ 'entity_id' => $newEventId,+ 'entity_type' => EventDomainObject::class,+ 'type' => EventImageType::EVENT_COVER->name,+ 'disk' => $coverImage->getDisk(),+ 'path' => $coverImage->getPath(),+ 'filename' => $coverImage->getFileName(),+ 'size' => $coverImage->getSize(),+ 'mime_type' => $coverImage->getMimeType(),+ ]);+ }+ }+private function getEventWithRelations(string $eventId, string $accountId): EventDomainObject{return $this->eventRepository@@ -194,6 +281,13 @@ class DuplicateEventService->loadRelation(new Relationship(QuestionDomainObject::class, [new Relationship(TicketDomainObject::class),]))+ ->loadRelation(new Relationship(CapacityAssignmentDomainObject::class, [+ new Relationship(TicketDomainObject::class),+ ]))+ ->loadRelation(new Relationship(CheckInListDomainObject::class, [+ new Relationship(TicketDomainObject::class),+ ]))+ ->loadRelation(ImageDomainObject::class)->findFirstWhere(['id' => $eventId,'account_id' => $accountId,diff --git a/backend/app/Services/Domain/PromoCode/CreatePromoCodeService.php b/backend/app/Services/Domain/PromoCode/CreatePromoCodeService.phpindex 6cde42a58..9e5609ce4 100644--- a/backend/app/Services/Domain/PromoCode/CreatePromoCodeService.php+++ b/backend/app/Services/Domain/PromoCode/CreatePromoCodeService.php@@ -30,10 +30,12 @@ class CreatePromoCodeService{$this->checkForDuplicateCode($promoCode);- $this->eventTicketValidationService->validateTicketIds(- ticketIds: $promoCode->getApplicableTicketIds(),- eventId: $promoCode->getEventId()- );+ if (!empty($promoCode->getApplicableTicketIds())) {+ $this->eventTicketValidationService->validateTicketIds(+ ticketIds: $promoCode->getApplicableTicketIds(),+ eventId: $promoCode->getEventId()+ );+ }$event = $this->eventRepository->findById($promoCode->getEventId());diff --git a/backend/app/Services/Handlers/Event/CreateEventImageHandler.php b/backend/app/Services/Handlers/Event/CreateEventImageHandler.phpindex 495427878..483548b8d 100644--- a/backend/app/Services/Handlers/Event/CreateEventImageHandler.php+++ b/backend/app/Services/Handlers/Event/CreateEventImageHandler.php@@ -2,21 +2,15 @@namespace HiEvents\Services\Handlers\Event;-use HiEvents\DomainObjects\Enums\EventImageType;-use HiEvents\DomainObjects\EventDomainObject;use HiEvents\DomainObjects\ImageDomainObject;-use HiEvents\Repository\Interfaces\ImageRepositoryInterface;-use HiEvents\Services\Domain\Image\ImageUploadService;+use HiEvents\Services\Domain\Event\CreateEventImageService;use HiEvents\Services\Handlers\Event\DTO\CreateEventImageDTO;-use Illuminate\Database\DatabaseManager;use Throwable;-readonly class CreateEventImageHandler+class CreateEventImageHandler{public function __construct(- private ImageUploadService $imageUploadService,- private ImageRepositoryInterface $imageRepository,- private DatabaseManager $databaseManager,+ private readonly CreateEventImageService $createEventImageService,){}@@ -26,21 +20,10 @@ readonly class CreateEventImageHandler*/public function handle(CreateEventImageDTO $imageData): ImageDomainObject{- return $this->databaseManager->transaction(function () use ($imageData) {- if ($imageData->type === EventImageType::EVENT_COVER) {- $this->imageRepository->deleteWhere([- 'entity_id' => $imageData->event_id,- 'entity_type' => EventDomainObject::class,- 'type' => EventImageType::EVENT_COVER->name,- ]);- }-- return $this->imageUploadService->upload(- image: $imageData->image,- entityId: $imageData->event_id,- entityType: EventDomainObject::class,- imageType: EventImageType::EVENT_COVER->name,- );- });+ return $this->createEventImageService->createImage(+ eventId: $imageData->event_id,+ image: $imageData->image,+ type: $imageData->type,+ );}}diff --git a/backend/app/Services/Handlers/Event/DuplicateEventHandler.php b/backend/app/Services/Handlers/Event/DuplicateEventHandler.phpindex fa6f54fb0..1ebc2e20c 100644--- a/backend/app/Services/Handlers/Event/DuplicateEventHandler.php+++ b/backend/app/Services/Handlers/Event/DuplicateEventHandler.php@@ -29,6 +29,9 @@ class DuplicateEventHandlerduplicateQuestions: $data->duplicateQuestions,duplicateSettings: $data->duplicateSettings,duplicatePromoCodes: $data->duplicatePromoCodes,+ duplicateCapacityAssignments: $data->duplicateCapacityAssignments,+ duplicateCheckInLists: $data->duplicateCheckInLists,+ duplicateEventCoverImage: $data->duplicateEventCoverImage,description: $data->description,endDate: $data->endDate,);diff --git a/frontend/src/components/modals/DuplicateEventModal/index.tsx b/frontend/src/components/modals/DuplicateEventModal/index.tsxindex 8c2c9a0ef..b0a5db686 100644--- a/frontend/src/components/modals/DuplicateEventModal/index.tsx+++ b/frontend/src/components/modals/DuplicateEventModal/index.tsx@@ -11,6 +11,8 @@ import {useNavigate} from "react-router-dom";import {useEffect} from "react";import {utcToTz} from "../../../utilites/dates.ts";import {showSuccess} from "../../../utilites/notifications.tsx";+import {useFormErrorResponseHandler} from "../../../hooks/useFormErrorResponseHandler.tsx";+import {Card} from "../../common/Card";interface DuplicateEventModalProps extends GenericModalProps {eventId: IdParam;@@ -27,12 +29,15 @@ export const DuplicateEventModal = ({onClose, eventId}: DuplicateEventModalPropsduplicate_questions: true,duplicate_settings: true,duplicate_promo_codes: true,+ duplicate_capacity_assignments: true,+ duplicate_check_in_lists: true,+ duplicate_event_cover_image: true,}});const mutation = useDuplicateEvent();const eventQuery = useGetEvent(eventId);const nav = useNavigate();-+ const errorHandler = useFormErrorResponseHandler();useEffect(() => {if (eventQuery?.data) {@@ -50,6 +55,9 @@ export const DuplicateEventModal = ({onClose, eventId}: DuplicateEventModalPropsonSuccess: ({data}) => {nav(`/manage/event/${data.id}`);showSuccess(t`Event duplicated successfully`);+ },+ onError: (error) => {+ errorHandler(form, error);}});}@@ -90,22 +98,40 @@ export const DuplicateEventModal = ({onClose, eventId}: DuplicateEventModalProps/></InputGroup>- <Switch- {...form.getInputProps('duplicate_tickets', {type: 'checkbox'})}- label={t`Duplicate Tickets`}- />- <Switch- {...form.getInputProps('duplicate_questions', {type: 'checkbox'})}- label={t`Duplicate Questions`}- />- <Switch- {...form.getInputProps('duplicate_settings', {type: 'checkbox'})}- label={t`Duplicate Settings`}- />- <Switch- {...form.getInputProps('duplicate_promo_codes', {type: 'checkbox'})}- label={t`Duplicate Promo Codes`}- />+ <h3 style={{marginTop: 0, marginBottom: 15}}>+ {t`Duplicate Options`}+ </h3>+ <Card variant={'lightGray'}>+ <Switch+ {...form.getInputProps('duplicate_tickets', {type: 'checkbox'})}+ label={t`Duplicate Tickets`}+ />+ <Switch+ {...form.getInputProps('duplicate_questions', {type: 'checkbox'})}+ label={t`Duplicate Questions`}+ />+ <Switch+ {...form.getInputProps('duplicate_settings', {type: 'checkbox'})}+ label={t`Duplicate Settings`}+ />+ <Switch+ {...form.getInputProps('duplicate_promo_codes', {type: 'checkbox'})}+ label={t`Duplicate Promo Codes`}+ />+ <Switch+ {...form.getInputProps('duplicate_capacity_assignments', {type: 'checkbox'})}+ label={t`Duplicate Capacity Assignments`}+ />+ <Switch+ {...form.getInputProps('duplicate_check_in_lists', {type: 'checkbox'})}+ label={t`Duplicate Check-In Lists`}+ />+ <Switch+ mb={0}+ {...form.getInputProps('duplicate_event_cover_image', {type: 'checkbox'})}+ label={t`Duplicate Event Cover Image`}+ />+ </Card></fieldset><Button type="submit" fullWidth disabled={mutation.isLoading}>{mutation.isLoading ? t`Working...` : t`Duplicate Event`}@@ -113,4 +139,4 @@ export const DuplicateEventModal = ({onClose, eventId}: DuplicateEventModalProps</form></Modal>)-}\ No newline at end of file+}diff --git a/frontend/src/components/routes/event/HomepageDesigner/CoverUpload/index.tsx b/frontend/src/components/routes/event/HomepageDesigner/CoverUpload/index.tsxindex d37048de5..8ee5c40bd 100644--- a/frontend/src/components/routes/event/HomepageDesigner/CoverUpload/index.tsx+++ b/frontend/src/components/routes/event/HomepageDesigner/CoverUpload/index.tsx@@ -42,8 +42,8 @@ export const CoverUpload = () => {const image = new Image();image.src = URL.createObjectURL(files[0]);image.onload = () => {- if (image.width > 3000 || image.height > 2000) {- showError(t`Image dimensions must be between 3000px by 2000px. With a max height of 2000px and max width of 3000px`);+ if (image.width > 4000 || image.height > 4000) {+ showError(t`Image dimensions must be between 4000px by 4000px. With a max height of 4000px and max width of 4000px`);setFiles([]);} else if (files[0].size > 5000000) {showError(t`Image must be less than 5MB`);@@ -120,4 +120,4 @@ export const CoverUpload = () => {</fieldset></form>);-}\ No newline at end of file+}diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex e4ab59d6e..150c5b947 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -137,6 +137,10 @@ export interface EventDuplicatePayload extends EventBase {duplicate_tickets: boolean;duplicate_questions: boolean;duplicate_settings: boolean;+ duplicate_promo_codes: boolean;+ duplicate_capacity_assignments: boolean;+ duplicate_check_in_lists: boolean;+ duplicate_event_cover_image: boolean;}export enum EventStatus {