Make event end date optional with sensible defaults #27
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When creating an event, users must specify both start and end dates. For simple single-day events ("Concert on July 20th"), requiring an end date is friction. NIP-52 makes
endoptional — if omitted, clients should treat the event as ending at the end of the start date (for date-based) or after a reasonable duration (for time-based).Proposed behavior
Date-based events (kind 31922):
Time-based events (kind 31923):
Files to modify
src/modules/activities/components/CreateEventDialog.vue— make end date optional in form schemasrc/modules/activities/types/ticket.ts— makeevent_end_dateoptional inCreateEventRequest~/dev/shared/extensions/events/models.py— makeevent_end_dateoptional inCreateEventmodel, default to start date if not provided