refactor(events): expand eventType taxonomy with central config

Replaces the four-value enum (community/workshop/social/showcase) with
seven values: talk, workshop, community-meetup, coworking, peer-session,
skills-share, info-session. Default is now community-meetup.

Adds app/config/eventTypes.js as the single source of truth for value→label
mapping. Updates the model enum, seed scripts, and admin event list/filter
+ admin dashboard to read from it via EVENT_TYPES and eventTypeLabel().
This commit is contained in:
Jennie Robinson Faber 2026-05-21 17:50:40 +01:00
parent 31144617d7
commit 2ffaf0ef09
6 changed files with 54 additions and 24 deletions

View file

@ -32,7 +32,7 @@ const sampleEvents = [
content: 'This informal meetup is perfect for connecting with other developers interested in cooperative business models. We\'ll have brief presentations, open discussions, and time for networking.\n\nAgenda:\n- Welcome & introductions\n- Member spotlight presentations\n- Open discussion on cooperative challenges and successes\n- Networking and social time',
startDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 7, 19, 0),
endDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 7, 21, 0),
eventType: 'community',
eventType: 'community-meetup',
location: '#general',
isOnline: true,
membersOnly: false,
@ -107,7 +107,7 @@ const sampleEvents = [
content: 'Our quarterly showcase featuring presentations from Ghost Guild member studios. Learn about ongoing projects, cooperative development processes, and the unique challenges and benefits of collaborative game creation.\n\nFeatured presentations:\n- "Collaborative Level Design in Practice"\n- "Democratic Decision Making in Creative Projects"\n- "Balancing Individual Creativity with Group Consensus"\n- Q&A with presenting studios',
startDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 21, 18, 30),
endDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 21, 21, 0),
eventType: 'showcase',
eventType: 'skills-share',
location: '#showcase',
isOnline: true,
membersOnly: true,
@ -134,7 +134,7 @@ const sampleEvents = [
content: 'Join us for a casual evening of celebration, networking, and community building. Perfect for new members to meet the community and for existing members to catch up.\n\nActivities:\n- Welcome reception\n- Casual networking\n- Community achievements celebration\n- Light refreshments provided\n- Optional lightning talks (5 min, informal)',
startDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 3, 18, 0),
endDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 3, 21, 0),
eventType: 'social',
eventType: 'community-meetup',
location: '#social',
isOnline: true,
membersOnly: true,
@ -234,7 +234,7 @@ const sampleEvents = [
content: 'Our February meetup has been cancelled but will be rescheduled soon. Stay tuned for updates!',
startDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 42, 19, 0),
endDate: new Date(today.getFullYear(), today.getMonth(), today.getDate() + 42, 21, 0),
eventType: 'community',
eventType: 'community-meetup',
location: '#general',
isOnline: true,
membersOnly: false,