Conversation
* fix(server): update roast controller, repository, routes and service * fix(firebase): update firebase-admin server initialization * fix(services): update roast client service and firestore subscription hook * fix(hooks): update useRoastProfile and useProfilesRealtime hooks * fix(ui): add delete confirm modal and update roast and profile card components * test: add unit tests for roast controller, service and client hooks * chore: update package-lock.json * fix: update import
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (19)
📝 WalkthroughWalkthroughThe PR converts roast generation from a single JSON response to SSE streaming on both the Express server ( ChangesRoast SSE Streaming and Delete Feature
Sequence Diagram(s)sequenceDiagram
actor User
participant DiscoverPage
participant useRoastProfile
participant requestRoast as requestRoast (SSE client)
participant ExpressServer as Express /roast
participant generateRoastStream
User->>DiscoverPage: click "Generate Roast"
DiscoverPage->>useRoastProfile: executeRoast(persona)
useRoastProfile->>requestRoast: requestRoast(payload, onChunk)
requestRoast->>ExpressServer: POST /roast (fetch)
ExpressServer->>generateRoastStream: iterate async generator
loop SSE chunks
generateRoastStream-->>ExpressServer: yield text chunk
ExpressServer-->>requestRoast: data: { chunk }
requestRoast-->>useRoastProfile: onChunk(text)
useRoastProfile-->>DiscoverPage: streamingText updated
end
ExpressServer-->>requestRoast: data: [DONE]
requestRoast-->>useRoastProfile: resolve { roast: fullText }
useRoastProfile-->>DiscoverPage: selectedProfile.roastBrutal set, streamingText cleared
User->>DiscoverPage: click "Delete Roast"
DiscoverPage->>DiscoverPage: setConfirmDeleteOpen(true)
User->>DiscoverPage: confirm deletion
DiscoverPage->>useRoastProfile: executeDeleteRoast(persona)
useRoastProfile->>ExpressServer: DELETE /roast/:memberId?persona=brutal
ExpressServer-->>useRoastProfile: { success: true }
useRoastProfile-->>DiscoverPage: onDeleteSuccess() → setConfirmDeleteOpen(false)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
fix(server): update roast controller, repository, routes and service
fix(firebase): update firebase-admin server initialization
fix(services): update roast client service and firestore subscription hook
fix(hooks): update useRoastProfile and useProfilesRealtime hooks
fix(ui): add delete confirm modal and update roast and profile card components
test: add unit tests for roast controller, service and client hooks
chore: update package-lock.json
fix: update import
Summary by CodeRabbit
New Features
Style