Skip to content
Draft
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
18 changes: 9 additions & 9 deletions .claude/skills/logs/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Query Cloud Run logs for any app in this monorepo. Defaults to **auth** on **sta

See `apps.conf` for the full registry. Currently:

| App | Staging Project | Prod Project | Region |
| ------ | ----------------------------- | -------------------- | ------------ |
| `auth` | `f3-authentication-staging` | `f3-authentication` | `us-east1` |
| `api` | `f3-api-472214` | `f3-api-472214` | `us-central1`|
| `map` | `pin-mastery` | `pin-mastery` | `us-central1`|
| App | Staging Project | Prod Project | Region |
| ------ | --------------------------- | ------------------- | ------------- |
| `auth` | `f3-authentication-staging` | `f3-authentication` | `us-east1` |
| `api` | `f3-api-472214` | `f3-api-472214` | `us-central1` |
| `map` | `pin-mastery` | `pin-mastery` | `us-central1` |

## Instructions

Expand Down Expand Up @@ -79,10 +79,10 @@ If there are errors, offer to dig deeper into specific log entries by their `ins

The following app + environment combinations have been verified working:

| App | Staging | Prod | Notes |
| ------ | ------- | ---- | ----- |
| `auth` | βœ… | βœ… | Primary use case β€” originally built for this app |
| `api` | βœ… | βœ… | GCP project `f3-api-472214`, service names differ per env |
| App | Staging | Prod | Notes |
| ------ | ------- | ---- | ----------------------------------------------------------------------- |
| `auth` | βœ… | βœ… | Primary use case β€” originally built for this app |
| `api` | βœ… | βœ… | GCP project `f3-api-472214`, service names differ per env |
| `map` | βœ… | βœ… | GCP project `pin-mastery`, Cloud Run service is `f3-2` / `f3-2-staging` |

## Adding a New App
Expand Down
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,25 @@
"outFiles": ["${workspaceFolder}/**/*.js"],
"console": "integratedTerminal"
},
{
"name": "Next.js: Full Stack Debug",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/apps/nextjs",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["dev"],
"serverReadyAction": {
Comment on lines +27 to +30

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚑ Quick win

Debug configuration points to the wrong app directory.

At Line 27, cwd is set to apps/nextjs, but this PR’s app context is apps/map. This launch config will likely fail or target the wrong workspace.

Suggested fix
-      "cwd": "${workspaceFolder}/apps/nextjs",
+      "cwd": "${workspaceFolder}/apps/map",
       "runtimeExecutable": "pnpm",
-      "runtimeArgs": ["dev"],
+      "runtimeArgs": ["dev:inspect"],

Based on learnings: The apps/map directory contains the Next.js 15 map UI (port 3000).

πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"cwd": "${workspaceFolder}/apps/nextjs",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["dev"],
"serverReadyAction": {
"cwd": "${workspaceFolder}/apps/map",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["dev:inspect"],
"serverReadyAction": {
πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.vscode/launch.json around lines 27 - 30, Update the debug launch
configuration to target the correct app by changing the "cwd" setting from
"apps/nextjs" to "apps/map" so the runtimeExecutable ("pnpm") and runtimeArgs
(["dev"]) will run the Next.js 15 map UI; verify the "serverReadyAction" and any
port settings still match the app (port 3000) after the cwd change.

"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
},
"skipFiles": ["<node_internals>/**"],
"outFiles": ["${workspaceFolder}/**/*.js"],
"console": "integratedTerminal",
"env": {
"NODE_OPTIONS": "--inspect"
}
},
{
"type": "node",
"request": "launch",
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- Use Node >=24.14 (see `.nvmrc`), pnpm 10, and Turborepo for workspace orchestration.
- The `apps/map` directory contains the Next.js 15 map UI (port 3000).
- Shared code is organized in `packages/`: `api` (tRPC routers), `auth` (auth helpers), `db` (Drizzle schema/migrations), `ui` (shared components), `validators` (Zod schemas), and `shared` (utilities).
- Shared code is organized in `packages/`: `api` (oRPC routers), `auth` (auth helpers), `db` (Drizzle schema/migrations), `ui` (shared components), `validators` (Zod schemas), and `shared` (utilities).
- Configuration files are in `tooling/`; pnpm patches go in `patches/`; Turbo generators live in `turbo/`.

## Build, Test, and Development Commands
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,12 @@ Environment variables are application-specific in this monorepo. The `.env` file
- For dev migrations use the `dev_generic` user
- For staging migrations use the `dev_generic` user
- For production migrations use the `f3slackbot` user

# WIP

- ensure we can't submit with no time and no events for new events
- add tests for approvals in the admin portal
- test image issues
- better text of where we're moving aos and regions
- decide which things you can change region and and which you can't

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟑 Minor | ⚑ Quick win

Fix duplicated wording in WIP bullet.

Line 188 has a typo (and and) that reduces clarity in the action item.

Suggested doc fix
-- decide which things you can change region and and which you can't
+- decide which things you can change regions for and which you can't
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- decide which things you can change region and and which you can't
- decide which things you can change regions for and which you can't
πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 188, Fix the duplicated word in the WIP bullet "decide
which things you can change region and and which you can't" by removing the
extra "and" and optionally adding a comma for clarity so it reads e.g. "decide
which things you can change region and which you can't" or "decide which things
you can change, and which you can't"; update the sentence in README.md
accordingly.

- TODO: Think through AO and location appearance
3 changes: 3 additions & 0 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
"@acme/eslint-config/base",
"@acme/eslint-config/nextjs",
"@acme/eslint-config/react"
],
"ignorePatterns": [
"vitest.config.ts"
]
},
"prettier": "@acme/prettier-config"
Expand Down
Loading
Loading