Skip to content

Commit 0eeec6f

Browse files
authored
Merge pull request #9 from RideControlOrg/feat/bikegpx-backend
Move BikeGPX processing off-device and add FIT support
2 parents 9ffa972 + 6775bf1 commit 0eeec6f

48 files changed

Lines changed: 3107 additions & 538 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy GitHub Pages
1+
name: Deploy Worker
22

33
on:
44
workflow_run:
@@ -12,20 +12,20 @@ on:
1212

1313
permissions:
1414
contents: read
15-
pages: write
1615
pull-requests: read
17-
id-token: write
1816

1917
concurrency:
20-
group: pages
18+
group: production-worker
2119
cancel-in-progress: false
2220

2321
jobs:
24-
25-
build:
26-
name: Build site
22+
deploy:
23+
name: Deploy Worker
2724
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
2825
runs-on: ubuntu-latest
26+
environment:
27+
name: production
28+
url: https://ridecontrol.xyz
2929
steps:
3030
- name: Check out verified revision
3131
uses: actions/checkout@v7
@@ -35,8 +35,6 @@ jobs:
3535
uses: oven-sh/setup-bun@v2
3636
with:
3737
bun-version: latest
38-
- name: Set up GitHub Pages
39-
uses: actions/configure-pages@v6
4038
- name: Install dependencies
4139
run: bun install --frozen-lockfile
4240
- name: Resolve build metadata
@@ -50,21 +48,11 @@ jobs:
5048
build_pr_url="https://github.com/${GITHUB_REPOSITORY}/pulls?q=is%3Apr+is%3Aclosed"
5149
fi
5250
echo "VITE_BUILD_PR_URL=${build_pr_url}" >> "$GITHUB_ENV"
53-
- name: Build site
51+
- name: Build Worker
5452
run: bun run build
55-
- name: Upload site artifact
56-
uses: actions/upload-pages-artifact@v5
53+
- name: Deploy Worker
54+
uses: cloudflare/wrangler-action@v3
5755
with:
58-
path: dist
59-
60-
deploy:
61-
name: Deploy site
62-
needs: build
63-
runs-on: ubuntu-latest
64-
environment:
65-
name: github-pages
66-
url: ${{ steps.deployment.outputs.page_url }}
67-
steps:
68-
- name: Deploy to GitHub Pages
69-
id: deployment
70-
uses: actions/deploy-pages@v5
56+
accountId: c1e6e1378d9461aa07039950b1bf8b89
57+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
58+
command: deploy

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
node_modules/
22
dist/
3+
.wrangler/
4+
.dev.vars
5+
.dev.vars.*
6+
!.dev.vars.example
37
.DS_Store

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Project instructions
22

33
- After making any changes, always run `bun run ci` before handing work back.
4+
- Run `bun run ci` again immediately before every push, and do not push unless it passes for the exact commit being pushed. While GitHub Actions is unavailable, local CI is the required merge gate; do not wait for a GitHub Actions status check to merge.
45
- `bun run ci` must run the Ultracite-configured Biome checks and Tailwind CSS language-server diagnostics automatically, followed by the unit tests, TypeScript check, and production build.
56
- Fix all reported issues rather than bypassing or disabling checks unless the project requirements explicitly demand an exception.
67
- Keep the codebase as DRY as practical: before adding constants, calculations, formatting, parsing, labels, or state-derivation logic, search for an existing domain utility and reuse or extend it. Consolidate meaningful duplication into clearly named domain modules, but do not introduce generic abstractions that hide simple behavior or couple unrelated concepts solely because their implementations look similar.
@@ -14,6 +15,6 @@
1415
- When the user says "add, commit", group all existing changes into logical sets, stage and commit each group, and repeat until every change is committed and the working tree is clean.
1516
- At the start of every new work request, check the current Git branch before changing files. If the current branch is `main`, create and switch to a descriptively named task branch first.
1617
- Never push work directly to `main`. If `main` already contains uncommitted changes or commits that have not been pushed, create the task branch from its current state so all of that work moves forward on the new branch, then continue the normal workflow there.
17-
- When the user says "add, commit, push, pr, merge" or otherwise confirms that the work is ready, complete the delivery workflow in order: group and commit all changes until the tree is clean, push the task branch, open a pull request targeting `main`, wait for required checks to pass, and merge the pull request. If checks fail or the pull request cannot merge, fix the problem on the same task branch and repeat the relevant steps.
18+
- When the user says "add, commit, push, pr, merge" or otherwise confirms that the work is ready, complete the delivery workflow in order: group and commit all changes until the tree is clean, run `bun run ci` for the exact commit being delivered, push the task branch, open a pull request targeting `main`, and merge the pull request without depending on GitHub Actions while it is unavailable. If local CI fails or the pull request cannot merge, fix the problem on the same task branch and repeat the relevant steps.
1819
- Keep React component modules compatible with Vite Fast Refresh: export only React components from component files, and move non-component runtime exports such as constants, helpers, and metadata into separate modules to avoid incompatible-export invalidations.
1920
- Record every new user-facing feature in the README as part of implementing it.

README.md

Lines changed: 9 additions & 8 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)