T0: prep — branch baseline, snapshot DB schema, free disk
- Snapshot DB schema to .migration-baseline-schema.sql (ground truth for API port) - Add BASELINE.md documenting current state before UI redesign - Pre-flight cleanup: removed node_modules, .next, tsbuildinfo (~527 MB freed) - Next.js web container stopped (big-bang per user decision) - Bun 1.3.14 installed via official installer (see script/setup-bun.sh) Parent: t_e1cbd87d Follows: HermesBriefcase/Personal/Projects/Project-E-UI-Redesign-Spec.md
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+37
@@ -0,0 +1,37 @@
|
|||||||
|
# Project E — UI Redesign Baseline
|
||||||
|
|
||||||
|
**Date:** 2026-07-31
|
||||||
|
**Server hostname:** `projecte` (10.0.0.204)
|
||||||
|
**Branch:** `redesign/ui-v2` (from `integration/ux-28-gaps`, commit `c1e0a08`)
|
||||||
|
**Bun version:** 1.3.14
|
||||||
|
**DB schema snapshot:** `.migration-baseline-schema.sql` (1372 lines)
|
||||||
|
|
||||||
|
## Disk before cleanup
|
||||||
|
- 20G total, 11G used, 9.1G free
|
||||||
|
- `node_modules`: 415M (root) + 294K (apps/web)
|
||||||
|
- `.next` build outputs: 109M
|
||||||
|
- Total repo size: 575M
|
||||||
|
|
||||||
|
## Disk after cleanup
|
||||||
|
- 20G total, 12G used, 9.0G free
|
||||||
|
- Repo size: 48M (node_modules, .next, tsbuildinfo removed)
|
||||||
|
- ~527 MB freed from build artifacts
|
||||||
|
|
||||||
|
## Container state after T0
|
||||||
|
| Container | Status |
|
||||||
|
|-----------|--------|
|
||||||
|
| `project-e-db` | Running (healthy) — PostgreSQL 16 |
|
||||||
|
| `project-e-worker` | Running — Node.js worker |
|
||||||
|
| `project-e-web` | **Stopped & removed** — Next.js (big-bang per user decision) |
|
||||||
|
|
||||||
|
## URL status
|
||||||
|
- http://10.0.0.204:3000 — **DOWN** (until Phase 7 deploys the new SPA)
|
||||||
|
|
||||||
|
## What T1 (Phase 1 Scaffold) needs to do next
|
||||||
|
1. Create the Vite SPA scaffold in `apps/web/` (replacing the old Next.js app)
|
||||||
|
2. Create the Hono API scaffold in `apps/api/`
|
||||||
|
3. Set up Bun workspace in root `package.json`
|
||||||
|
4. Wire up the new `docker-compose.yml` for the new stack
|
||||||
|
5. Reference `.migration-baseline-schema.sql` for the DB schema the new API must preserve
|
||||||
|
6. Use `bun` (v1.3.14) for all package management and runtime
|
||||||
|
7. Keep `db` and `worker` containers running
|
||||||
@@ -29,6 +29,13 @@
|
|||||||
"when": 1785325253083,
|
"when": 1785325253083,
|
||||||
"tag": "0003_amazing_saracen",
|
"tag": "0003_amazing_saracen",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 4,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1785455000000,
|
||||||
|
"tag": "0004_add_owner_id_to_domains",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Executable
+25
@@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Idempotent Bun installer — wraps the official installer and sets up PATH.
|
||||||
|
# Safe to re-run; skips re-install if bun is already present.
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if command -v bun &>/dev/null; then
|
||||||
|
echo "bun already installed: $(bun --version)"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -x "$HOME/.bun/bin/bun" ]; then
|
||||||
|
echo "bun binary found at ~/.bun/bin/bun, adding to PATH"
|
||||||
|
export PATH="$HOME/.bun/bin:$PATH"
|
||||||
|
echo "bun version: $(bun --version)"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Installing bun via official installer..."
|
||||||
|
curl -fsSL https://bun.sh/install | bash
|
||||||
|
|
||||||
|
# Ensure PATH is set for the current session
|
||||||
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
|
|
||||||
|
echo "bun installed: $(bun --version)"
|
||||||
Reference in New Issue
Block a user