Commit df970ef
authored
feat: rename form-copilot/ → copilot/ + brand → SimplePDF Copilot (#31)
## Background
Renames the standalone demo from "Form Copilot" to "SimplePDF Copilot"
and reorganises the folder. Stacked with the parent SimplePDF repo PR
SimplePDF/simple-pdf#196.
## Changes
- `git mv form-copilot/ copilot/` (history preserved).
- `package.json` `name`, `.cta.json` `projectName`,
`.do/deploy.template.yaml` `name` + `source_dir` updated to `copilot`.
- README: brand "Form Copilot" → "SimplePDF Copilot" everywhere; live
URL `form-copilot.simplepdf.com` → `copilot.simplepdf.com`; deploy
folder ref `/form-copilot` → `/copilot`; default
`VITE_SIMPLEPDF_COMPANY_IDENTIFIER` documentation flipped to
`spdf-copilot`.
- `skills/fork-and-go/SKILL.md`: same brand + path + placeholder
identifier sweep.
- Source-tag query param `?s=form-copilot` → `?s=copilot` across info /
layout / download modals.
- GitHub source-code chip URL `tree/main/form-copilot` →
`tree/main/copilot`.
- ASCII architecture diagrams in the info modal: brand box width
preserved (`│ Form Copilot │` → `│ Copilot │`, both 17 chars; header
`┌── Form Copilot demo ──┐` → `┌── SimplePDF Copilot ──┐`, both 25
chars).
- `mode.ts` `COPILOT_DEMO_IDENTIFIER` `'copilot'` → `'spdf-copilot'`
(matches the renamed SimplePDF account that hosts the iframe editor).
- `en.json`: every "Form Copilot" → "SimplePDF Copilot" (one-shot
replace_all).
- 22 non-EN locales (`ar, cs, da, de, el, es, et, fi, fr, he, hi, it,
nl, no, pl, pt, ro, sv, tr, uk, vi, zh`) translated by the translator
agent. Inflected forms preserved (et `Form Copiloti`, fi `-in/-ia/-iin`,
pl instrumental `-em`, tr apostrophe-suffixed). Brand kept Latin in
every locale.
## Notes
Kept intentionally for backward compatibility (commented):
- `WELCOME_DISMISSED_COOKIE = 'form-copilot-welcome-dismissed'` —
renaming would force returning visitors back through the welcome flow.
- `DB_NAME = 'form-copilot-vault'` — renaming would orphan stored BYOK
credentials.
- CDN paths under `/simple-pdf/assets/form-copilot/*` —
operator-controlled assets, not yet moved.
`copilot/.env.example` is sandboxed in this session (not editable via
tooling) — operator must change
`VITE_SIMPLEPDF_COMPANY_IDENTIFIER=form-copilot` to
`VITE_SIMPLEPDF_COMPANY_IDENTIFIER=spdf-copilot`.
Operator follow-ups (post-merge):
- DNS / DO App Platform: deploy `form-copilot.simplepdf.com` →
`copilot.simplepdf.com`.
- SimplePDF account: rename `copilot` → `spdf-copilot` (the
iframe-editor host).
- CDN: move `/simple-pdf/assets/form-copilot/*` and
`/simple-pdf/assets/meta/form-copilot-*.png` under a `copilot/` prefix.
## Test plan
- [x] `cd copilot && npx tsc --noEmit` clean
- [x] `cd copilot && npx vitest run` 53/53
- [x] `cd copilot && npx biome check src/` clean (2 pre-existing
warnings, unchanged)
- [x] All 23 locale JSON files parse1 parent 8f6feb7 commit df970ef
115 files changed
Lines changed: 735 additions & 703 deletions
File tree
- .do
- copilot
- .vscode
- skills/fork-and-go
- src
- components
- chat
- hooks
- demo
- easter-eggs
- ui
- lib
- byok
- demo
- embed-bridge-adapters
- client-tools
- react
- embed-bridge
- error-classifier
- locales
- routes
- api
- server
- demo
- form-copilot/src/lib
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 number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments