Skip to content

Dev to qa#63

Merged
fpittelo merged 19 commits intoqafrom
dev
Nov 22, 2025
Merged

Dev to qa#63
fpittelo merged 19 commits intoqafrom
dev

Conversation

@fpittelo
Copy link
Owner

Dev to qa

fpittelo and others added 19 commits November 22, 2025 10:29
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
…ation

Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Integrate Azure App Service authentication with React frontend
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Add web.config for Azure App Service IIS deployment
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
…flow

Modularize deployment workflows into independent triggerable components
@fpittelo fpittelo self-assigned this Nov 22, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @fpittelo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request marks a significant step in the AlpineBot project by establishing the foundational frontend application and its authentication mechanism, alongside a major overhaul of the CI/CD pipeline. It introduces a React-based user interface with Google and Microsoft login capabilities, addressing a prior deployment failure on Azure App Service by correctly configuring IIS for SPA routing. The changes are thoroughly documented with new guides for OAuth setup and detailed summaries of implementation tasks. Furthermore, the deployment workflows have been modularized to provide greater flexibility and control over environment management.

Highlights

  • Frontend Application Setup & Authentication: A new React frontend application is introduced, complete with a login page, home page, and integration with Azure App Service's Easy Auth for Google and Microsoft OAuth.
  • Azure App Service Deployment Fix: A critical deployment issue for React Single Page Applications (SPAs) on Azure App Service (IIS) is resolved by adding a web.config file to handle client-side routing, MIME types, and secure error handling.
  • Comprehensive Documentation: Extensive new documentation is added, including detailed guides for OAuth application setup (OAUTH_SETUP.md), frontend development (frontend/app/README.md), and summaries of key implementation tasks and deployment fixes (TASK_1.2.1_SUMMARY.md, DEPLOYMENT_FIX_SUMMARY.md). The main README.md, GEMINI.md, plan.md, requirements.md, specs.md, and VERIFICATION.md files are also updated to reflect these changes.
  • Modular CI/CD Workflows: The deployment strategy is significantly refactored from a monolithic fixed_deploy.yaml to a modular system with independent and orchestrator workflows for backend, infrastructure, and application deployment/destruction, enhancing efficiency and control. This is detailed in WORKFLOW_MODULARIZATION_SUMMARY.md.
  • Terraform Configuration for Authentication: Terraform configurations are updated across infra and modules/linux_web_app to enable and configure Google and Microsoft OAuth providers within Azure App Service, including handling sensitive client IDs and secrets.
Ignored Files
  • Ignored by pattern: .github/workflows/** (9)
    • .github/workflows/README.md
    • .github/workflows/deploy-app.yaml
    • .github/workflows/deploy-backend.yaml
    • .github/workflows/deploy-infra.yaml
    • .github/workflows/deploy.yaml
    • .github/workflows/destroy-app.yaml
    • .github/workflows/destroy-backend.yaml
    • .github/workflows/destroy-infra.yaml
    • .github/workflows/destroy.yaml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a significant amount of work, including a new React frontend, a fix for deployment on Azure App Service, and extensive, high-quality documentation. The approach to fixing the deployment with a web.config is correct, and the new React components are well-implemented.

However, there is a critical issue: the fixed_deploy.yaml workflow file is removed, but the new modular workflow files that are supposed to replace it (as described in WORKFLOW_MODULARIZATION_SUMMARY.md) are missing from this pull request. This will break the deployment pipeline. Please add the new workflow files to this PR.

I have also included a couple of suggestions to improve maintainability and align with best practices.

Comment on lines +43 to +44
# Package lock files (optional - remove if you want to commit them)
package-lock.json

Choose a reason for hiding this comment

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

medium

For application development, it's a best practice to commit the package-lock.json file. This ensures that all developers, as well as the CI/CD pipeline, use the exact same dependency versions, leading to more reproducible and stable builds across all environments (dev, qa, prod). This helps prevent "works on my machine" issues. Please consider removing package-lock.json from this file, along with its comment.

Comment on lines +10 to +24
useEffect(() => {
// Check authentication status by calling Azure App Service's .auth/me endpoint
fetch('/.auth/me')
.then(response => response.json())
.then(data => {
if (data && data.length > 0 && data[0].user_id) {
setUser(data[0]);
}
setLoading(false);
})
.catch(() => {
// Silently handle auth check failure - user is not authenticated
setLoading(false);
});
}, []);

Choose a reason for hiding this comment

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

medium

The useEffect hook for checking authentication can be refactored using async/await for better readability and structure. This also allows for a finally block to ensure setLoading(false) is always called, simplifying the logic.

  useEffect(() => {
    const checkAuth = async () => {
      try {
        const response = await fetch('/.auth/me');
        if (response.ok) {
          const data = await response.json();
          if (data && data.length > 0 && data[0].user_id) {
            setUser(data[0]);
          }
        }
      } catch (error) {
        // Silently handle auth check failure - user is not authenticated.
      } finally {
        setLoading(false);
      }
    };

    checkAuth();
  }, []);

Copy link
Contributor

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 pull request merges changes from the dev branch to the qa branch, representing a promotion of features that have been developed and tested in the development environment. The PR includes workflow modularization, frontend application setup with authentication, and extensive documentation updates.

Key Changes:

  • Modularized GitHub Actions workflows for granular deployment control
  • Added React frontend application with Azure App Service authentication integration
  • Created comprehensive documentation for OAuth setup, workflows, and deployment procedures

Reviewed changes

Copilot reviewed 31 out of 51 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/*.yaml New modular deployment and destroy workflows replacing monolithic approach
frontend/app/src/* New React application with login page, home page, and authentication integration
frontend/app/public/* React app configuration including web.config for IIS deployment
OAUTH_SETUP.md New comprehensive guide for configuring Google and Microsoft OAuth
WORKFLOW_MODULARIZATION_SUMMARY.md Documentation of workflow refactoring approach
TASK_1.2.1_SUMMARY.md Summary of frontend authentication implementation
DEPLOYMENT_FIX_SUMMARY.md Documentation of IIS web.config fix for SPA deployment
Various .md and .tf files Formatting changes only (whitespace/indentation) - no functional changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fpittelo fpittelo merged commit 2dbc2a3 into qa Nov 22, 2025
9 checks passed
@fpittelo fpittelo deleted the dev branch November 22, 2025 13:28
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.

3 participants