Skip to content

Commit 2533ca8

Browse files
committed
Merge branch 'main' of https://github.com/uwblueprint/food4kids into eddy/get-polyline-from-stops
2 parents c3537ed + d96429d commit 2533ca8

File tree

121 files changed

+5822
-14350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+5822
-14350
lines changed

.env.example

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
POSTGRES_DB_DEV=
2+
POSTGRES_DB_TEST=
3+
POSTGRES_USER=
4+
POSTGRES_PASSWORD=
5+
DB_HOST=
6+
7+
APP_ENV=
8+
APP_NAME=
9+
10+
ADMIN_AUTH_ID=
11+
12+
# Firebase config
13+
FIREBASE_WEB_API_KEY=
14+
FIREBASE_REQUEST_URI=
15+
FIREBASE_PROJECT_ID=
16+
FIREBASE_SVC_ACCOUNT_PRIVATE_KEY_ID=
17+
FIREBASE_SVC_ACCOUNT_PRIVATE_KEY=
18+
FIREBASE_SVC_ACCOUNT_CLIENT_EMAIL=
19+
FIREBASE_SVC_ACCOUNT_CLIENT_ID=
20+
FIREBASE_SVC_ACCOUNT_AUTH_URI=
21+
FIREBASE_SVC_ACCOUNT_TOKEN_URI=
22+
FIREBASE_SVC_ACCOUNT_AUTH_PROVIDER_X509_CERT_URL=
23+
FIREBASE_SVC_ACCOUNT_CLIENT_X509_CERT_URL=
24+
25+
# Email config
26+
MAILER_REFRESH_TOKEN=
27+
MAILER_CLIENT_ID=
28+
MAILER_CLIENT_SECRET=
29+
MAILER_USER=
30+
31+
#Google Maps API
32+
GOOGLE_MAPS_API_KEY=

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## JIRA ticket link
22
<!-- Please replace with your ticket's URL -->
3-
[Ticket Name](https://f4kblueprint.atlassian.net/browse/F4KRP-21)
3+
[Ticket Name](https://f4kblueprint.atlassian.net/browse/F4KRP)
44

55

66
<!-- Give a quick summary of the implementation details, provide design justifications if necessary -->

.github/workflows/claude-code-review.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ name: Claude Code Review
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
6-
# Optional: Only run on specific file changes
7-
# paths:
8-
# - "src/**/*.ts"
9-
# - "src/**/*.tsx"
10-
# - "src/**/*.js"
11-
# - "src/**/*.jsx"
5+
types: [ready_for_review, opened]
6+
issue_comment:
7+
types: [created]
128

139
jobs:
1410
claude-review:
11+
if: |
12+
(github.event_name == 'pull_request' && !github.event.pull_request.draft) ||
13+
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
14+
contains(github.event.comment.body, '@claude review')) ||
15+
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
16+
contains(github.event.comment.body, '@colin review'))
1517
runs-on: ubuntu-latest
1618
permissions:
1719
contents: read
@@ -24,6 +26,7 @@ jobs:
2426
uses: actions/checkout@v4
2527
with:
2628
fetch-depth: 1
29+
ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || github.event.pull_request.head.ref }}
2730

2831
- name: Run Claude Code Review
2932
id: claude-review
@@ -32,7 +35,7 @@ jobs:
3235
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3336
prompt: |
3437
REPO: ${{ github.repository }}
35-
PR NUMBER: ${{ github.event.pull_request.number }}
38+
PR NUMBER: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
3639
3740
Please review this pull request and provide feedback on:
3841
- Code quality and best practices
@@ -48,4 +51,3 @@ jobs:
4851
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4952
# or https://code.claude.com/docs/en/cli-reference for available options
5053
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
51-

.github/workflows/lint.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,29 @@ jobs:
3131
python-backend:
3232
- "backend/python/**"
3333
34+
- name: Set up pnpm
35+
if: steps.changes.outputs.frontend == 'true'
36+
uses: pnpm/action-setup@v4
37+
with:
38+
version: 9
39+
3440
- name: Set up Node.js
3541
if: steps.changes.outputs.frontend == 'true'
3642
uses: actions/setup-node@v4
3743
with:
3844
node-version: "20.11.1"
39-
cache: "yarn"
40-
cache-dependency-path: frontend/yarn.lock
45+
cache: "pnpm"
46+
cache-dependency-path: frontend/pnpm-lock.yaml
4147

4248
- name: Install Node.js dependencies
4349
if: steps.changes.outputs.frontend == 'true'
44-
run: yarn --cwd ./frontend --prefer-offline
50+
run: pnpm install --frozen-lockfile
51+
working-directory: ./frontend
4552

4653
- name: Lint frontend
4754
if: steps.changes.outputs.frontend == 'true'
4855
working-directory: ./frontend
49-
run: yarn lint
56+
run: pnpm lint
5057

5158

5259
- name: Set up Python
@@ -81,6 +88,15 @@ jobs:
8188
working-directory: ./backend/python
8289
run: ruff format --check . --config pyproject.toml
8390

91+
- name: Cache mypy cache
92+
if: steps.changes.outputs.python-backend == 'true'
93+
uses: actions/cache@v3
94+
with:
95+
path: backend/python/.mypy_cache
96+
key: ${{ runner.os }}-mypy-${{ hashFiles('backend/python/**/*.py') }}
97+
restore-keys: |
98+
${{ runner.os }}-mypy-
99+
84100
- name: Run MyPy type checker
85101
if: steps.changes.outputs.python-backend == 'true'
86102
working-directory: ./backend/python

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
**/build
44
**/venv
55
**/__pycache__
6+
**/.mypy_cache
67
**/*.log
78
**/firebaseServiceAccount.json
89
**/.DS_Store

0 commit comments

Comments
 (0)