Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8107bca
Rename/Relocate files
jpaoad31 Dec 12, 2025
ee1a9d8
delete unused files
jpaoad31 Dec 12, 2025
ee56d16
Add Svelte
jpaoad31 Dec 12, 2025
62954d4
GitHub Pages Configuration
jpaoad31 Dec 12, 2025
52e847e
add globalThis to navigator
jpaoad31 Dec 12, 2025
ae5cca3
move platform code into components
jpaoad31 Dec 12, 2025
12feb62
update paths for GitHub Pages
jpaoad31 Dec 12, 2025
ca80be4
update paths for GitHub Pages
jpaoad31 Dec 12, 2025
754b438
Set Svelte Build for my own repository
jpaoad31 Dec 12, 2025
384181e
Merge branch 'master' of https://github.com/jpaoad31/flash
jpaoad31 Dec 12, 2025
a7b357a
Update svelte.config.js
jpaoad31 Dec 12, 2025
d460d77
update platform functions
jpaoad31 Dec 13, 2025
20cf631
fix tests
jpaoad31 Dec 13, 2025
6779749
Fix GitHub Actions
jpaoad31 Dec 13, 2025
350f43c
Update BASE_PATH in deploy workfloW
jpaoad31 Dec 14, 2025
2bc37af
Re-encode svg base image
jpaoad31 Dec 14, 2025
15e7362
Merge branch 'master' of https://github.com/jpaoad31/flash
jpaoad31 Dec 14, 2025
a2aa54b
undo fmt on readme.md
jpaoad31 Dec 14, 2025
09765a9
update styles
jpaoad31 Dec 14, 2025
b96dc18
Changes from #177 #178 #179
jpaoad31 Dec 20, 2025
564d571
Create Components for Flash Stages
jpaoad31 Dec 20, 2025
609b333
refactor FAST_MODE for front-end
jpaoad31 Dec 20, 2025
4e88867
working on flash.svelte
jpaoad31 Dec 21, 2025
1e145aa
update onclick handlers
jpaoad31 Dec 24, 2025
e50b88c
browser guard isLinux
jpaoad31 Dec 24, 2025
db15d1e
Merge pull request #1 from jpaoad31/merge-guided-flow
jpaoad31 Dec 24, 2025
a7fceff
fix styles and presentation
jpaoad31 Dec 24, 2025
14c1153
fix missing import
jpaoad31 Dec 24, 2025
9587cc8
Merge pull request #2 from jpaoad31/merge-guided-flow
jpaoad31 Dec 24, 2025
4d3c4de
prevent page rendering instability
jpaoad31 Dec 25, 2025
255f5f7
Merge pull request #3 from jpaoad31/merge-guided-flow
jpaoad31 Dec 25, 2025
666f651
Move console interception to context
jpaoad31 Dec 25, 2025
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
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ jobs:
- id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- run: bun install
- run: bun run build
- name: "Install Dependencies"
run: bun install

- name: "Build"
run: bun run build
env:
BASE_PATH: ''
VITE_PUBLIC_GIT_SHA: ${{ steps.vars.outputs.sha_short }}

- uses: actions/upload-pages-artifact@v3
with:
path: ./dist
path: ./build

deploy:
environment:
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ concurrency:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 1
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun run test
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Install Dependencies
run: bun install
- name: Install Playwright Chromium
run: bunx playwright install chromium
- name: Run Tests
run: bun run test

manifest:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2

- run: bun install
- name: test manifest in master
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/.pnp
.pnp.js
/.pnpm-store
/.svelte-kit

# testing
/coverage
Expand Down Expand Up @@ -41,3 +42,7 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# flash

Built on [Svelte 5](https://svelte.dev).

► [flash.comma.ai](https://flash.comma.ai)

This tool allows you to flash AGNOS onto your comma device. Uses [qdl.js](https://github.com/commaai/qdl.js).
Expand All @@ -14,3 +16,10 @@ bun dev
Open [http://localhost:5173](http://localhost:5173) with your browser to see the result.

You can start editing the page by modifying `src/app/index.jsx`. The page auto-updates as you edit the file.


**Helpful for debugging**
* [chrome://usb-internals/](chrome://usb-internals/)
* [chrome://device-log/](chrome://device-log/)
* Add `?fast=1` to the URL to skip flashing the system partition (the slowest). Useful for testing the full flow quickly.
* Add `?windows=1` to the URL to force Windows mode (shows Zadig driver instructions). Useful for testing the Windows flow on other platforms.
504 changes: 504 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

Binary file removed bun.lockb
Binary file not shown.
10 changes: 10 additions & 0 deletions deploy-preview.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e

BRANCH="${1:-$(git branch --show-current)}"

bun run build
bunx wrangler pages deploy dist --project-name=connect --branch="$BRANCH"

echo ""
echo "Preview URL: https://${BRANCH}.connect-d5y.pages.dev"
34 changes: 16 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,27 @@
"engines": {
"node": ">=20.11.0"
},
"dependencies": {
"devDependencies": {
"@commaai/qdl": "git+https://github.com/commaai/qdl.js.git#21d7be79fa5178f253d32a0879bd8bdd4fa37e30",
"@fontsource-variable/inter": "^5.2.5",
"@fontsource-variable/jetbrains-mono": "^5.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.48.5",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.17",
"@vitest/browser-playwright": "^4.0.10",
"jsdom": "^27.3.0",
"playwright": "^1.56.1",
"svelte": "^5.43.8",
"svelte-check": "^4.3.4",
"tailwindcss": "^4.1.17",
"typescript": "^5.9.3",
"vite": "^7.2.7",
"vitest": "^4.0.10",
"vitest-browser-svelte": "^2.0.1",
"xz-decompress": "^0.2.2"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.16",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/react": "^18.3.20",
"@types/react-dom": "^18.3.6",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "10.4.21",
"jsdom": "^26.0.0",
"postcss": "^8.5.3",
"tailwindcss": "^3.4.17",
"vite": "^6.2.6",
"vite-svg-loader": "^5.1.0",
"vitest": "^3.1.1"
},
"trustedDependencies": [
"@commaai/qdl",
"esbuild",
Expand Down
6 changes: 0 additions & 6 deletions postcss.config.js

This file was deleted.

16 changes: 8 additions & 8 deletions index.html → src/app.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./src/app/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="%sveltekit.assets%/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="Update your comma device to the latest software"
content="Restore your comma device to a fresh factory state"
/>
<title>flash.comma.ai</title>
%sveltekit.head%
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/main.jsx"></script>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
<script
defer
data-domain="flash.comma.ai"
Expand Down
10 changes: 0 additions & 10 deletions src/app/App.test.jsx

This file was deleted.

Loading