Add event_type field to Events, and render tag in Event cards #2366
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses #2361. This PR:
event_type
field to the typest
andRecurringEvent.t
(and their respective metadata types) intool/ood-gen/lib/event.ml
,Event
module signature insrc/ocamlorg_data/data.mli
,event_type
value to the entries indata/events/recurring.yml
and thedata/events/*.md
files, and(expand image)
Some notes:
recurring.yml
must always specify anevent_type
value.*.md
files can omit them, but only if they have a linked recurring event.event_type
value is populated from either its*.md
metadata, or its linked recurring event (if there is one). If these two sources specify different event types, or if neither specifies one, it is an error (and an exception is raised intool/ood-gen/lib/event.ml
when that happens).src/ocamlorg_frontend/pages/events.eml
use the tag colors from the Community pages design draft.