Skip to content

Conversation

@AlexVOiceover
Copy link
Contributor

Summary

  • Add Event types (src/lib/types/event.ts)
  • Add Events Airtable client (src/lib/airtable/events.ts) with CRUD operations
  • Export event functions from sveltekit-wrapper
  • Add unit tests and manual test script

Functions

Function Description
listEvents(filters?) List events with optional cohort/date filters
getEvent(id) Get single event by ID
createEvent(data) Create new event
updateEvent(id, data) Update existing event
deleteEvent(id) Delete event

Files Changed

  • src/lib/types/event.ts - Event types
  • src/lib/airtable/events.ts - CRUD functions
  • src/lib/airtable/events.spec.ts - Unit tests (6 tests)
  • src/lib/airtable/sveltekit-wrapper.ts - Export event functions
  • scripts/test-events.ts - Manual test script
  • README.md - Document field names and event types

Test plan

  • Unit tests pass (34 total)
  • Lint passes
  • Type check passes
  • Manual test with real Airtable data

Related

Closes AP-16

@AlexVOiceover AlexVOiceover merged commit eb981d0 into main Dec 27, 2025
2 checks passed
@AlexVOiceover AlexVOiceover deleted the feature/ap-16-event-service-module branch January 7, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants