Editing and file upload and admin section for campaign applications - finalizes first alpha version of the whole process
feat: file upload and summary
handle file upload one by one to allow for handling errors individually (otherwise the server just returns response failed for any one file that fails and no information about the successful uploads)
add summary where the uploaded and failed (if any) files are top and center
add a short explanation of what to do about failed files
feat: validation of create campaign application
fix: send campaignTypeId + editing + visuals
send campaignTypeId instead of the category (which is a property of the campaign type and is not enough to uniquely distinguish the type)
allow for editing and re-editing
style the summary
fix linting errors
chore: test create application
moved the useCreateOrEditApplication hook to own file to reuse for the admin campaign edit
added campaign end date handling (if the user selects a date for the end it pops up an input and fills in the preselected by user date or today if none)
removed some unused props from the cam app details
visit the create/edit campaign for organizers i.e. /campaigns/application and /campaigns/application/:id (i.e. https://localhost:3040/campaigns/application) and create a new campaign
expected
to be able to edit it from the created successful campaign application summary page
to receive an email (working email integration required )
login as admin and visit admin/campaign-applications
expected - list of applications
click on name of an application should navigate to admin edit (e.g. admin/campaign-applications/edit/eb4347a2-c8b4-47f1-83e5-67457b20909c) where everything from organizer edit should be available + admin edit props + the "organizer can edit at" link
Editing and file upload and admin section for campaign applications - finalizes first alpha version of the whole process
feat: file upload and summary
send campaignTypeId instead of the category (which is a property of the campaign type and is not enough to uniquely distinguish the type)
chore: test create application
chore: add tests for the createOrEdit application hook
feat: admin edit
feat: actual list of campaign applications
1842
Screenshots:
Testing
Steps to test
Affected urls
/campaigns/application /campaigns/application/eb4347a2-c8b4-47f1-83e5-67457b20909c /admin/campaign-applications /admin/campaign-applications/edit/eb4347a2-c8b4-47f1-83e5-67457b20909c
New or updated dependencies:
msw
v1.x.x