From 9574eea940bf9f47f167396b59056b11566b5a4f Mon Sep 17 00:00:00 2001 From: Emmanuel Nwanguma Date: Wed, 4 Feb 2026 18:02:17 +0100 Subject: [PATCH] fix: stabilize frontend CI env --- .github/workflows/ci.yml | 28 ++++++++++++--------------- backend/.env.example | 5 +++++ backend/pyproject.toml | 3 +++ frontend/package.json | 3 ++- frontend/src/app/(dashboard)/page.tsx | 8 ++++---- 5 files changed, 26 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d278c0f..69ab8da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,10 @@ jobs: frontend-build: name: Frontend Build runs-on: ubuntu-latest + env: + NEXT_PUBLIC_API_URL: "http://localhost:8000" + NEXT_PUBLIC_SUPABASE_URL: "https://example.supabase.co" + NEXT_PUBLIC_SUPABASE_ANON_KEY: "test-key" defaults: run: working-directory: frontend @@ -38,16 +42,12 @@ jobs: uses: actions/setup-node@v4 with: node-version: "18" - cache: "pnpm" - cache-dependency-path: frontend/pnpm-lock.yaml - - name: Set up pnpm - uses: pnpm/action-setup@v4 - with: - version: 9 + cache: "npm" + cache-dependency-path: frontend/package-lock.json - name: Install dependencies - run: pnpm install + run: npm install - name: Build frontend - run: pnpm build + run: npm run build lint: name: Lint @@ -68,15 +68,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: "18" - cache: "pnpm" - cache-dependency-path: frontend/pnpm-lock.yaml - - name: Set up pnpm - uses: pnpm/action-setup@v4 - with: - version: 9 + cache: "npm" + cache-dependency-path: frontend/package-lock.json - name: Install frontend deps working-directory: frontend - run: pnpm install + run: npm install - name: ESLint working-directory: frontend - run: pnpm lint + run: npm run lint diff --git a/backend/.env.example b/backend/.env.example index 8526328..995939e 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -4,15 +4,20 @@ APP_NAME=iOpsData DEBUG=false FERNET_KEY= +ENCRYPTION_KEY= CORS_ORIGINS=http://localhost:3000 +FRONTEND_URL=http://localhost:3000 SUPABASE_URL= SUPABASE_ANON_KEY= +SUPABASE_SERVICE_KEY= SUPABASE_MAX_CONNECTIONS=50 SUPABASE_MAX_KEEPALIVE=10 SUPABASE_TIMEOUT=30 +ENVIRONMENT=development OPENAI_API_KEY= OPENAI_BASE_URL=https://api.openai.com/v1 ANTHROPIC_API_KEY= ANTHROPIC_BASE_URL=https://api.anthropic.com/v1 +GROQ_API_KEY= diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 1398b81..2b98a06 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -28,6 +28,9 @@ dependencies = [ "duckdb>=0.10.0", "httpx>=0.26.0", "python-dotenv>=1.0.0", + "supabase>=2.0.0", + "sqlglot>=25.0.0", + "cryptography>=42.0.0", "sqlalchemy>=2.0.0", ] diff --git a/frontend/package.json b/frontend/package.json index da4abb7..6d8e767 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,8 +26,9 @@ "react-dom": "19.2.3", "tailwind-merge": "^2.5.4", "@monaco-editor/react": "^4.6.0", - "@tanstack/react-table": "^8.13.2" + "@tanstack/react-table": "^8.13.2", "react-hook-form": "^7.54.2", + "reactflow": "^11.11.4", "zustand": "^5.0.3" }, "devDependencies": { diff --git a/frontend/src/app/(dashboard)/page.tsx b/frontend/src/app/(dashboard)/page.tsx index 1b0f869..51d4b2f 100644 --- a/frontend/src/app/(dashboard)/page.tsx +++ b/frontend/src/app/(dashboard)/page.tsx @@ -1,9 +1,9 @@ -\"use client\"; +"use client"; -import { useCallback, useEffect, useState } from \"react\"; -import { useSearchParams } from \"next/navigation\"; +import { useCallback, useEffect, useState } from "react"; +import { useSearchParams } from "next/navigation"; -import { Button } from \"@/components/ui/button\"; +import { Button } from "@/components/ui/button"; import { Card, CardContent,