Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ STRIPE_PRODUCT_PREMIUM_YEARLY_PRICE_ID=price_premium_yearly_price_id_here
# Development/Testing Flags, for convenience
SKIP_OTP=true
EMAIL_USE_CONSOLE=true
GCP_USE_FAKE_GCS_SERVER=true
GCP_USE_FAKE_GCS_SERVER=true

# AI API keys
GOOGLE_AI_API_KEY=your_api_key
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.3.5
deno-version: v2.4.0

- name: Build Deno SPA
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.3.5
deno-version: v2.4.0

- name: Build Deno application
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.3.5
deno-version: v2.4.0

- name: Install dependencies
run: |
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
image: pgvector/pgvector:pg17
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.3.5
deno-version: v2.4.0

- name: Install dependencies
run: |
Expand Down
5 changes: 3 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"workspace": [
"./packages/app",
"./packages/core"
"./packages/core",
"./packages/shared"
],
"nodeModulesDir": "auto",
"lock": false,
Expand All @@ -12,7 +13,7 @@
"build:app": "deno task --config ./packages/app/deno.json build",
"build:core": "deno task --config ./packages/core/deno.json build",
"test": "STRIPE_USE_MOCK=true GCP_USE_FAKE_GCS_SERVER=true deno test -A",
"db:docker": "docker container rm stackcore-pg --force || true && docker run --name stackcore-pg -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=core -p 5432:5432 -d postgres:17",
"db:docker": "docker container rm stackcore-pg --force || true && docker run --name stackcore-pg -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=core -p 5432:5432 -d pgvector/pgvector:pg17",
"db:migrate": "deno task --config ./packages/core/deno.json migrate -A",
"stripe:create-products": "deno run -A --env-file=.env ./packages/core/src/stripe/scripts/createProducts.ts",
"stripe:cli": "docker run --rm -it --env-file=.env stripe/stripe-cli:latest",
Expand Down
3 changes: 1 addition & 2 deletions packages/app/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
"@radix-ui/react-slot": "npm:@radix-ui/react-slot@^1.2.3",
"@radix-ui/react-tabs": "npm:@radix-ui/react-tabs@^1.1.12",
"@radix-ui/react-tooltip": "npm:@radix-ui/react-tooltip@^1.2.7",
"@stackcore/core/responses": "../core/src/api/responseType.ts",
"@stackcore/core/manifest": "../core/src/manifest/types.ts",
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.4",
"@std/path": "jsr:@std/path@^1.1.1",
"@tailwindcss/vite": "npm:@tailwindcss/vite@^4.1.8",
"@tanstack/react-table": "npm:@tanstack/react-table@^8.21.3",
"@types/cytoscape-fcose": "npm:@types/cytoscape-fcose@^2.2.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useState } from "react";
import { useSearchParams } from "react-router";
import type {
AuditManifest,
DependencyManifest,
} from "@stackcore/core/manifest";
auditManifestTypes,
dependencyManifestTypes,
} from "@stackcore/shared";
import { SidebarProvider, SidebarTrigger } from "../shadcn/Sidebar.tsx";
import { FileExplorerSidebar } from "./components/FileExplorerSidebar.tsx";
import BreadcrumbNav from "./components/BreadcrumNav.tsx";
Expand All @@ -13,8 +13,8 @@ import SymbolVisualizer from "./visualizers/SymbolVisualizer.tsx";

export interface VisualizerContext {
manifestId: number;
dependencyManifest: DependencyManifest;
auditManifest: AuditManifest;
dependencyManifest: dependencyManifestTypes.DependencyManifest;
auditManifest: auditManifestTypes.AuditManifest;
highlightedCytoscapeRef: {
filePath: string;
symbolId: string | undefined;
Expand All @@ -23,11 +23,10 @@ export interface VisualizerContext {

export default function DependencyVisualizer(props: {
manifestId: number;
dependencyManifest: DependencyManifest;
auditManifest: AuditManifest;
dependencyManifest: dependencyManifestTypes.DependencyManifest;
auditManifest: auditManifestTypes.AuditManifest;
}) {
const [searchParams] = useSearchParams();

const [highlightedCytoscapeRef, setHighlightedCytoscapeRef] = useState<
{
filePath: string;
Expand All @@ -45,6 +44,7 @@ export default function DependencyVisualizer(props: {
className="grow flex min-h-0"
>
<FileExplorerSidebar
dependencyManifestId={props.manifestId}
dependencyManifest={props.dependencyManifest}
auditManifest={props.auditManifest}
onHighlightInCytoscape={(node) => {
Expand Down
Loading