Skip to content

Conversation

@amrit110
Copy link
Member

@amrit110 amrit110 commented Dec 5, 2025

This pull request introduces the initial implementation of the catalog-analytics service, including infrastructure for deployment, authentication, and frontend styling. The main changes set up a secure, branded analytics dashboard for the Vector Institute, deployable via Google Cloud Run and protected by Google OAuth restricted to institutional accounts.

Deployment and Infrastructure

  • Added .github/workflows/deploy-catalog-analytics.yml to automate building and deploying the catalog-analytics service to Google Cloud Run, including Docker image creation, Artifact Registry setup, deployment, verification, and summary output.
  • Added catalog-analytics/Dockerfile and supporting files (.dockerignore, .gitignore, .env.example) to enable containerized Next.js builds and secure environment management for production deployment. [1] [2] [3] [4]

Authentication and Security

  • Implemented Google OAuth authentication endpoints (/api/auth/login, /api/auth/callback, /api/auth/logout, /api/auth/session) with PKCE flow, domain restriction to vectorinstitute.ai, secure session management, and error handling. [1] [2] [3] [4]

Frontend and Branding

  • Added global CSS styles in globals.css for Vector Institute branding, light/dark theme support, and reusable card/gradient components.
  • Created a branded login page (app/login/page.tsx) with Google sign-in, institutional access note, and responsive design.
  • Added a minimal Next.js root layout with metadata for the analytics dashboard.

Pre-commit and Workflow Updates

  • Updated pre-commit configuration to exclude analytics data files from typo checks and removed the legacy GitHub Pages deployment workflow for the catalog. [1] [2]
    [Copilot is generating a summary...]

amrit110 and others added 5 commits December 4, 2025 15:05
- Create catalog-analytics Next.js service with Google OAuth
- Implement authentication using @vector-institute/aieng-auth-core
- Add protected /analytics route with session management
- Create multi-stage Dockerfile optimized for Cloud Run
- Add GitHub Actions workflow for automated deployment
- Copy analytics page from main catalog with auth wrapper
- Configure for deployment at catalog.vectorinstitute.ai/analytics
- Fix TypeScript error in logout route by providing fallback redirect URI
- Fix Tailwind CSS configuration (use v3 syntax instead of v4)
- Add missing dependencies (tailwindcss, postcss, autoprefixer, framer-motion, lucide-react)
- Fix auth callback to use GoogleOAuthClient directly for user info
- Add postcss and tailwind config files

Build now completes successfully with no errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@amrit110 amrit110 self-assigned this Dec 5, 2025
@amrit110 amrit110 added enhancement New feature or request refactor Refactor code to improve overall structure labels Dec 5, 2025
@amrit110 amrit110 merged commit 8dcda7d into main Dec 5, 2025
5 checks passed
@amrit110 amrit110 deleted the add-catalog-analytics-auth branch December 5, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactor Refactor code to improve overall structure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants