Dev - #56
Merged
Merged
Conversation
…d transcript repos Replace the monolithic SummarizerRepository with three focused repositories: SummarizerSessionRepository, AudioChunkRepository, and TranscriptRepository. Update service constructors and logic (summarizer, transcription, normalization, summarization, user, meeting) to use the new repos and adjusted method names, update workers and main wiring accordingly, and remove the old summarizer repository file. This refactor separates concerns for session, chunk, and transcript operations and updates cleanup/status flows to use the new repository interfaces.
- Create internal/handlers/dto package with five files: meeting.go, user.go, livekit.go, lobby.go, summarizer.go - Move all HTTP DTOs and mapper functions from internal/types into dto - Update handlers (livekit, lobby, meeting, user) to import from dto - Update services (user, summarizer) to import from dto - Delete internal/types package
- Break routes.go into auth.go, user.go, meeting.go, livekit.go, lobby.go (same package, single SetupRoutes entry point delegates to each) - Remove POST /lobby/respond (HTTP fallback) — lobby approval is handled exclusively over WebSocket; delete RespondToRequest handler, LobbyRespondRequest DTO, and related route/middleware wiring - Remove frontend createUser / updateUser from userAdminService — these called POST /users and PATCH /users/:id which never existed in the backend; drop unused CreateUserRequest, UpdateUserRequest, and UserUpdateResponse types
Replace the boolean fetch lock with a shared fetch promise in userFetcher so concurrent requests return the same promise instead of erroring. This keeps the existing logging and error handling but clears the promise once complete. Update authActions to remove early returns that depended on the old lock, allowing token storage and initialization to proceed even if a user fetch is in progress.
Refactor/backend
Add @vercel/analytics as a dependency and integrate its Analytics component into the app root. App.tsx now imports Analytics from @vercel/analytics/react and renders it alongside AppRouter. package.json and package-lock.json were updated to include the new dependency and lockfile changes.
…tics feat: add vercel analytics and integrate in App
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
This pull request refactors the backend code to improve modularity and clarity by reorganizing DTOs, updating dependency injection patterns, and cleaning up unused code. The most significant changes include moving DTO definitions to a dedicated
dtopackage, updating service and worker initialization to use more specialized repositories, and removing unused handler logic.Code organization and modularity
internal/typeshave been moved and renamed to the newinternal/handlers/dtopackage, and all handler files now import fromdtoinstead oftypes. This improves separation between data transfer objects and business logic. [1] [2] [3] [4] [5] [6] [7] [8] [9]Dependency injection and service initialization
main.go) now uses more specialized repositories (SummarizerSessionRepository,AudioChunkRepository,TranscriptRepository) instead of the genericSummarizerRepository. Services and workers are updated to use these repositories, improving separation of concerns and future extensibility. [1] [2]Handler cleanup
lobby_handler.go, simplifying the lobby handler and reducing dead code. [1] [2]These changes collectively improve the maintainability and clarity of the backend code by enforcing better modularity and reducing unnecessary complexity.