Skip to content

Conversation

@DanilsGit
Copy link
Collaborator

This pull request introduces significant improvements to the CI/CD workflows, Docker configurations, and authentication forms. Key changes include adding Firebase-related build arguments to Docker workflows, enhancing the Docker setup for both local and production environments, and updating the login and registration forms for better usability and functionality.

CI/CD Workflow Enhancements:

  • Updated .github/workflows/develop-CD.yml and .github/workflows/master-CD.yml to include Firebase-related build arguments in the Docker image build process. This ensures environment variables are properly injected during the build. [1] [2]
  • Added steps to update .env files on the GCP VM with the new Docker image references for both development and production workflows. [1] [2]
  • Simplified deployment steps by removing redundant docker pull and docker compose down commands. [1] [2]

Docker Configuration Improvements:

  • Created a new Dockerfile.local for local development, exposing port 3000 and running the app in development mode.
  • Enhanced Dockerfile.prod to include Firebase environment variables as build arguments and set them as runtime environment variables, ensuring proper configuration for production builds.

Authentication Form Updates:

  • Replaced the LoginGest page with updated login and registration forms for both desktop (DesktopForm.tsx) and mobile (MobileForm.tsx) views. These forms now support actions for login and registration, integrate with a GoogleLoginButton component, and include a SubmitButton with loading states. [1] [2]
  • Added name attributes to input fields in both forms to align with form handling best practices. [1] [2]

Miscellaneous Changes:

  • Updated .dockerignore to include node_modules, ensuring it is ignored during Docker builds.

valtimore and others added 28 commits April 29, 2025 14:40
- Updated the background gradient for a smoother visual
- Reorganized text alignment for better readability
- Added hover effects for interactive feedback
- Added subtle animations to enhance user engagement
- Improved responsive layout for better display on all screen sizes
- Adjusted color scheme for better visual consistency and contrast
Adjust on landing page visuals and responsiveness
- Changed header color palette to match new design
- Added hover transitions for interactive elements
update header colors and add hover effects
Fixing pipelines placeholders
add middleware, add axios, add register and add login
Fix CD and add backend conections
add websockets and create rooms
Add login with google and direct chats
fixing images in profile and add aside room
add names in dashboard chats
@DanilsGit DanilsGit requested review from LifeRIP and Copilot June 25, 2025 04:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces significant improvements to CI/CD workflows by integrating Firebase environment variables into Docker builds, refines Docker configurations for production and local development, and updates the authentication forms for enhanced usability.

  • CI/CD: Firebase build arguments have been added to both master and develop workflows to ensure proper environment variable injection.
  • Docker: Separate Dockerfiles for production and local environments have been created and updated.
  • Authentication & UI: Login/registration forms (both mobile and desktop) have been updated and integrated with Google authentication, with several UI and code refactoring improvements across various components.

Reviewed Changes

Copilot reviewed 64 out of 72 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Added dependencies needed for Firebase, React Query, Toast notifications, etc.
.github/workflows/*.yml Updated Docker build commands to include Firebase build arguments and updated deploy steps.
Dockerfile.prod / Dockerfile.local Refactored Docker configurations for improved consistency and environment variable management.
app/(auth)/login/_components/MobileForm.tsx Updated mobile authentication forms; minor spelling and label inconsistencies noted.
app/(protected)/dashboard/_components/RoomList.tsx Refactored UI components; commented code blocks exist that could be removed for clarity.
Comments suppressed due to low confidence (1)

app/(auth)/login/_components/MobileForm.tsx:6

  • The label for the username field contains a spelling error ('Tu ususuario'); please change it to 'Tu usuario' for clarity and consistency with other forms.
  registerAction: (payload: FormData) => void;

Comment on lines +35 to +48
{/* <div className="flex gap-5 justify-end flex-2/12">
{CanExitRoom(sala) && (
<Tooltip title="Salir de la sala" placement="top">
<button className="bg-purple rounded-full">
<CancelIcon className="w-10 h-10 cursor-pointer" />{' '}
</button>
</Tooltip>
)}
<Tooltip title="Notificaciones" placement="top">
<button className="bg-purple rounded-full">
<DoorBellIcon className="w-10 h-10 cursor-pointer" />{' '}
</button>
</Tooltip>
</div>
</div> */}
Copy link

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] There is a large commented-out block of code in RoomList.tsx related to exit buttons and notifications. If this code is no longer needed, consider removing it to improve maintainability and reduce clutter.

Copilot uses AI. Check for mistakes.
@DanilsGit DanilsGit merged commit 7119e2b into master Jun 25, 2025
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.

4 participants