Skip to content

Commit 3bca354

Browse files
committed
Revamp MPA interface and remove SPA rollout
1 parent a76008a commit 3bca354

100 files changed

Lines changed: 11134 additions & 21215 deletions

File tree

Some content is hidden

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

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,6 @@ HOME_RADIUS_MILES=8
8080

8181
# Compose/API
8282
API_PORT=1609
83-
DOCKER_IMAGE=seanap/chronicle:latest
83+
# Optional image tag for local builds or pushed registry images.
84+
# Leave blank to use the compose default image name and build from this repo checkout.
85+
DOCKER_IMAGE=

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ android/captures/
3131
*.keystore
3232
*.aab
3333

34-
# SPA workspace artifacts
35-
chronicle-ui/node_modules/
36-
chronicle-ui/dist/
37-
chronicle-ui/coverage/
38-
3934
# Local AI/dev orchestration artifacts
4035
.codex/
4136
_bmad*/

Dockerfile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
FROM node:22-alpine AS ui-builder
2-
3-
WORKDIR /ui
4-
5-
COPY chronicle-ui/package.json chronicle-ui/package-lock.json ./
6-
RUN npm ci
7-
8-
COPY chronicle-ui/ ./
9-
RUN npm run build
10-
111
FROM python:3.12-slim
122

133
ENV PYTHONDONTWRITEBYTECODE=1 \
@@ -23,7 +13,6 @@ COPY requirements.txt /app/requirements.txt
2313
RUN pip install --no-cache-dir -r /app/requirements.txt
2414

2515
COPY . /app
26-
COPY --from=ui-builder /ui/dist /app/chronicle-ui/dist
2716
RUN mkdir -p /app/state
2817

2918
CMD ["python", "-m", "chronicle.worker"]

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
Chronicle automatically builds rich Strava activity descriptions by combining data from Strava and your connected stat sources.
99

10+
## UI Direction
11+
- The MPA is the product and the active refinement target.
12+
- Future styling changes should be reviewed in-browser with `A` vs `B` comparisons at `/design-review`.
13+
- Product direction details: [`docs/UI_DIRECTION.md`](docs/UI_DIRECTION.md)
14+
- Refinement process and page order: [`docs/MPA_REFINEMENT_ROADMAP.md`](docs/MPA_REFINEMENT_ROADMAP.md)
15+
1016
## Key Features
1117
- Auto-processes new activities on a worker heartbeat.
1218
- Writes description templates back to Strava based on activity profile.
@@ -47,9 +53,11 @@ cp .env.example .env
4753

4854
### Step 3: Start Chronicle
4955
```bash
50-
docker compose up -d
56+
docker compose up -d --build
5157
```
5258

59+
- Re-run the same command after pulling new code so the latest backend and frontend assets are rebuilt into the image.
60+
5361
### Step 4: Open the app
5462
```bash
5563
http://localhost:1609
@@ -60,6 +68,7 @@ http://localhost:1609
6068
- Template Editor (`Build`): http://localhost:1609/editor
6169
- Source Setup (`Sources`): http://localhost:1609/setup
6270
- API Control (`Control`): http://localhost:1609/control
71+
- Design review: `http://localhost:1609/design-review`
6372

6473
### Step 5: Add your credentials in `Sources`
6574
- Go to `Sources` and fill in your source keys/tokens.
@@ -71,16 +80,13 @@ http://localhost:1609
7180
- Android widget APK downloads: [GitHub Releases](https://github.com/seanap/Chronicle/releases)
7281
- Misery Index report: [`docs/MISERY_INDEX_REPORT.md`](docs/MISERY_INDEX_REPORT.md)
7382

74-
## SPA Scaffold (Story 1.1)
83+
## Updating a Docker Deploy
7584

76-
A parallel SPA workspace now exists at `chronicle-ui/` (Vite + React + TypeScript + MUI).
85+
If you already have Chronicle running and want the current MPA product build to show up:
7786

78-
### Run frontend locally
7987
```bash
80-
cd chronicle-ui
81-
npm install
82-
npm run dev
88+
git pull
89+
docker compose up -d --build
8390
```
8491

85-
- Vite proxy defaults to `http://localhost:1609` and can be overridden with `VITE_API_PROXY_TARGET`.
86-
- Backend endpoints and response contracts remain source-of-truth and unchanged.
92+
Then hard refresh the browser on `/dashboard` or `/control`.

chronicle-ui/README.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

chronicle-ui/index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)