Skip to content

Feature: Finish Mega Components#81

Merged
sephynox merged 35 commits intomainfrom
feat/finish-mega-components
Feb 27, 2026
Merged

Feature: Finish Mega Components#81
sephynox merged 35 commits intomainfrom
feat/finish-mega-components

Conversation

@sephynox
Copy link
Contributor

@sephynox sephynox commented Jan 14, 2026

Summary

Complete mega-components work started in #77.

Introduces high-level component resources which compose the existing primitives (VPC, Cloud SQL, Cloud Run, GCS, load balancers, MIGs) into deploy-ready application stacks.

  • StaticWebApp -- GCS bucket + CDN backend bucket for static site hosting
  • CloudRunService -- Cloud Run service with optional VPC, Cloud SQL database, migration jobs,
  • FullStackApp -- StaticWebApp + CloudRunService
  • Adds full end-to-end integration tests

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 pull request refactors callback functions from arrow function syntax to regular function declarations and includes several functional improvements to the GCP infrastructure components.

Changes:

  • Converted arrow functions to regular function declarations throughout the codebase for consistency
  • Added null safety checks for object type guards
  • Introduced resource limits (CPU/memory) for Cloud Run services
  • Added validation to prevent secret environment variables in MIG configurations
  • Created a reusable extractServiceUrl helper function
  • Added instance count parameter support for MIG
  • Included documentation explaining VPC connector configuration for Cloud Run Jobs API v2

Reviewed changes

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

File Description
src/packages/gcp/common.ts Added extractServiceUrl helper function and extra blank line
src/packages/gcp/apps.ts Converted arrow functions to function declarations, added null checks, resource limits, MIG validation, instance count support, and VPC documentation

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

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

Copilot reviewed 13 out of 16 changed files in this pull request and generated 7 comments.


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

@sephynox sephynox marked this pull request as ready for review January 17, 2026 02:30
@sephynox sephynox requested a review from ezraripps January 17, 2026 02:30
@sephynox sephynox requested review from Srayman and rkeene January 21, 2026 18:06
@sephynox sephynox requested a review from rkeene January 23, 2026 02:25
@sephynox sephynox changed the base branch from feature/mega-components to main February 17, 2026 21:34
Copy link
Member

@ezraripps ezraripps left a comment

Choose a reason for hiding this comment

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

Seems fine, did not review examples.

Only thing to be resolved is if we want to add parents to the sub-components.

@sephynox sephynox requested a review from ezraripps February 18, 2026 17:08
Copy link
Member

@ezraripps ezraripps left a comment

Choose a reason for hiding this comment

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

Looks good enough, if anything comes up while we use it can fix then

Deploys a containerized backend service to Cloud Run with optional PostgreSQL database.

**Use cases:**
- Footprint KYC Anchor (backend-only service)
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit, but doesn’t this example have a minor front end?

Combines StaticWebApp and CloudRunService with a unified HTTPS load balancer.

**Use cases:**
- Demo FX Anchor (SPA + API)
Copy link
Contributor

Choose a reason for hiding this comment

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

FX anchor is all backend isn’t it?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 25, 2026

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.5% Duplication on New Code

See analysis details on SonarQube Cloud

@sephynox sephynox merged commit 3bb0133 into main Feb 27, 2026
2 checks passed
@sephynox sephynox mentioned this pull request Feb 27, 2026
This was referenced Mar 2, 2026
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.

6 participants