Skip to content

Bffc-3 get steward event list steward published events - #234

Open
ducan-le wants to merge 63 commits into
mainfrom
bffc-3-get-stewardEvent-list-steward-published-events
Open

ducan-le wants to merge 63 commits into
mainfrom
bffc-3-get-stewardEvent-list-steward-published-events

Conversation

@ducan-le

Copy link
Copy Markdown

Adds GET /api/stewardEvent?siteId=<uuid>, which returns the informational events a site's steward has published (e.g. recurring workdays). Steward events have no RSVP tracking. Because each site has one steward, filtering by site gives the steward dashboard only that steward's events, and the same call works for the site page, map popup, and events page.

Each event returns id, name, description, date, time, place (meeting/location info) and eventType. eventType is always "steward", so the frontend can label these events as steward-run when they're listed next to admin (Luma) events.

Changes:

  1. Added a steward-events module (controller, service, response DTO) and registered it in AppModule.
  2. Results are sorted by date, then time. A site with no steward events returns []. A missing or invalid siteId returns 400.
  3. Added a name column to steward_events. The migration fills existing rows with their description before making the column required.
  4. The seed script now gives events a name and adds a second, earlier-dated steward event so the sorting shows up in seeded data.
  5. Added Swagger docs (under the Events tag) and unit tests for the service and controller.

@ducan-le
ducan-le requested a review from maxn990 as a code owner October 13, 2026 16:56
jxuistrying and others added 11 commits October 14, 2026 18:58
…endpoint

bffc-14 Added GET sites endpoint
…nt-list-steward-published-events

# Conflicts:
#	apps/backend/src/app.module.ts
Inline the DTO mapping and event type constant, collapse Swagger
decorators, drop the unused module export, and remove tests that
duplicated other cases or only exercised Nest's ParseUUIDPipe.
@ducan-le
ducan-le force-pushed the bffc-3-get-stewardEvent-list-steward-published-events branch from 1b09a35 to 6bff8c1 Compare October 22, 2026 19:50
Returns all images and videos for a single site in one paginated
response, newest first, with an optional ?type=image|video filter.

- Extend Image/Video entities with title, description, uploadedAt
  (+ migration and updated seed data)
- New media module: controller, service, DTOs mirroring the sites pattern
- uploadedBy derived from the site steward; URLs are unsigned S3 URLs
- ParseUUIDPipe -> 400 for malformed ids, NotFoundException -> 404
- Unit tests for both-types, single-type, empty, each filter, 400, 404

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bodhiYG and others added 30 commits October 28, 2026 18:05
Removed eventType property from steward event response DTO.
Refactor findBySite method to return detailed event properties.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
bffc-6 GET /announcement_id/{site_id}: List announcements published for a given site
bffc-2 GET /adminEvent: List staff endpoint
Add createUser, addUserToGroup, removeUserFromGroup, disableUser and
enableUser, plus CreateCognitoUserDto and role-to-group mapping.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve seed.ts conflict and adapt the new admin events endpoint to the
startTime/endTime columns; drop the volunteer opportunity seed since that
entity was removed on this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 - Add Cognito admin user management functions
Renamed 'time' to 'startTime' and added 'endTime' property.
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.

8 participants