Repository navigation
Conversation
Create database
Lists a site's steward events via ?siteId, sorted by date then time, with eventType 'steward' so clients can mark them as steward-run. Adds a name column to steward_events (migration backfills from description) and seeds a second event to exercise sorting.
…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
force-pushed
the
bffc-3-get-stewardEvent-list-steward-published-events
branch
from
October 22, 2026 19:50
1b09a35 to
6bff8c1
Compare
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>
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
…e-id #21 - Add GET /media/:siteId endpoint
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>
…hema bffc-15 Update Database Schema
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>
…bles bffc-17 Update Database Tables
25 - Add Cognito admin user management functions
Renamed 'time' to 'startTime' and added 'endTime' property.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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) andeventType.eventTypeis always"steward", so the frontend can label these events as steward-run when they're listed next to admin (Luma) events.Changes:
steward-eventsmodule (controller, service, response DTO) and registered it inAppModule.[]. A missing or invalidsiteIdreturns 400.namecolumn tosteward_events. The migration fills existing rows with theirdescriptionbefore making the column required.Eventstag) and unit tests for the service and controller.