Skip to content

Dev - #56

Merged
MohamedRamadanSaudi merged 8 commits into
mainfrom
dev
Mar 6, 2026
Merged

Dev#56
MohamedRamadanSaudi merged 8 commits into
mainfrom
dev

Conversation

@MohamedRamadanSaudi

Copy link
Copy Markdown
Owner

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 dto package, updating service and worker initialization to use more specialized repositories, and removing unused handler logic.

Code organization and modularity

  • All DTO structs previously in internal/types have been moved and renamed to the new internal/handlers/dto package, and all handler files now import from dto instead of types. This improves separation between data transfer objects and business logic. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • All handler functions have been updated to use DTO types from the new package, ensuring consistency across the codebase. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]

Dependency injection and service initialization

  • The main server initialization (main.go) now uses more specialized repositories (SummarizerSessionRepository, AudioChunkRepository, TranscriptRepository) instead of the generic SummarizerRepository. Services and workers are updated to use these repositories, improving separation of concerns and future extensibility. [1] [2]

Handler cleanup

  • Unused handler logic for lobby request responses (HTTP fallback) has been removed from 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.

MohamedRamadanSaudi and others added 8 commits March 6, 2026 22:36
…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.
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
@vercel

vercel Bot commented Mar 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mini-meeting Ready Ready Preview, Comment Mar 6, 2026 11:31pm

@MohamedRamadanSaudi
MohamedRamadanSaudi merged commit 6335f74 into main Mar 6, 2026
4 checks passed
@MohamedRamadanSaudi
MohamedRamadanSaudi deleted the dev branch March 6, 2026 23:37
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