Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event post type #682

Merged
merged 3 commits into from
Jan 14, 2024
Merged

Event post type #682

merged 3 commits into from
Jan 14, 2024

Conversation

paulrobertlloyd
Copy link
Collaborator

@paulrobertlloyd paulrobertlloyd commented Jan 14, 2024

  • Add (optional) location fields with localised strings
  • Add start and (optional) end datetime fields with localised strings
  • Show location and start/end datetime fields for event post type
  • Add validation for name and start date for event post type
  • Add event post type to list of supported post types
  • Add <event-duration> element that allows toggling between input[type=datetime-local] and input[date] depending on whether times are needed for the event
  • Update deriving location property so location can contain a venue (h-card) or address (h-adr) and/or geographic coordinates (h-geo)

In future iterations we can use geolocation to find an address and geographic coordinates from a fuzzy free-text search, but this simpler implementation means Indiekit can support creating this post type sooner.

Screenshot of event post form.

Fixes #541

@paulrobertlloyd paulrobertlloyd added enhancement New feature or request plugin-endpoint Endpoint plug-in labels Jan 14, 2024
@paulrobertlloyd paulrobertlloyd force-pushed the feat/event-post-type-form branch from bfa4037 to a9be615 Compare January 14, 2024 20:02
@paulrobertlloyd paulrobertlloyd added this to the v1.0 milestone Jan 14, 2024
@paulrobertlloyd paulrobertlloyd marked this pull request as ready for review January 14, 2024 20:10
@paulrobertlloyd paulrobertlloyd force-pushed the feat/event-post-type-form branch from a9be615 to bb2bbf0 Compare January 14, 2024 20:12
@paulrobertlloyd paulrobertlloyd merged commit 9e4158f into main Jan 14, 2024
1 check passed
@paulrobertlloyd paulrobertlloyd deleted the feat/event-post-type-form branch January 14, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin-endpoint Endpoint plug-in
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Posts endpoint: 📅 Create/update event post type
1 participant