Skip to content

to main#227

Merged
JoshuaVSherman merged 2 commits into
mainfrom
dev
Jun 3, 2026
Merged

to main#227
JoshuaVSherman merged 2 commits into
mainfrom
dev

Conversation

@JoshuaVSherman

Copy link
Copy Markdown
Contributor

No description provided.

JoshuaVSherman and others added 2 commits June 3, 2026 12:31
…225)

Full, consistent rename of the tour domain to gig, plus the two new gig fields,
on the SocketCluster side (closes #225):

- src/model/tour/ -> src/model/gig/: `Gig` model bound to collection `gigs`,
  `gig-controller`/`gig-facade`/`reset-gig` (export key tour->gig). New schema
  fields `duration` (Number, default 0) and `promoImageUrl` (String). Dropped
  dead commented `tour-router.ts`.
- AgController + utils renamed to gig (`sendGigs`, `newGig`, `removeGig`,
  `updateGig`, `assertCanCreateGig`, `handleGig`).
- Migration safety (dropped in the Phase-4 cleanup once all clients are on gig):
  - read: `sendGigs` transmits BOTH `allGigs` and legacy `allTours`.
  - write: handlers registered for BOTH new and legacy names (`newGig`+`newTour`,
    `deleteGig`+`deleteTour`, `editGig`+`editTour`), and normalize both
    `{gig}`/`{tour}` and `gigId`/`tourId` payload shapes.
  - `assertCanCreateGig` accepts `gig:create` OR legacy `tour:create`.
- One-time DB migration script `src/scripts/migrate-tours-to-gigs.ts`
  (idempotent: renames collection `tours`->`gigs`, no-ops if already done).
- Tests renamed/updated. typecheck + 68 tests + eslint all green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat(gig): rename tour->gig + add duration & promoImageUrl (Phase 1, #225)
@JoshuaVSherman JoshuaVSherman merged commit 4e84268 into main Jun 3, 2026
2 checks passed
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.

1 participant