Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
397023d
feat(bubble): compute the Style face
HMarzban Nov 22, 2026
1386276
feat(slash): suggest recent insert kinds
HMarzban Nov 22, 2026
b0c73d5
feat(toolbar): group the row's more menu
HMarzban Nov 22, 2026
b157a51
docs(toolbar): screenshots of the grouped more menu
HMarzban Nov 22, 2026
16a81cb
feat(toolbar): turn-into menu shared by the bubble and the row
HMarzban Nov 22, 2026
a9c0f1a
feat(slash): inline hint, footer tip and close button
HMarzban Nov 22, 2026
6ba7416
feat(phone): insert sheet
HMarzban Nov 22, 2026
07bf97d
fix(toolbar): logical check slot and a real box for Simplified toolbar
HMarzban Nov 22, 2026
5b483e1
feat(slash): plus button on empty lines
HMarzban Nov 22, 2026
a3d455d
fix(ui): logical radio, submenu chevron and shortcut spacing in dropd…
HMarzban Nov 22, 2026
54a3a5e
refactor(slash): mount the + from the bubble chunk
HMarzban Nov 22, 2026
0744dfa
feat(slash): alias hints and a label contract test
HMarzban Nov 22, 2026
8a79e21
feat(phone): style first in the format sheet; words on tablet stand-ins
HMarzban Nov 22, 2026
a5a6c39
refactor(toolbar): use logical inline spacing in menu check rows
HMarzban Nov 22, 2026
f1e3b3f
feat(bubble): fuller bubble with style, strike, code and clear
HMarzban Nov 22, 2026
99f0a38
docs(toolbar): dark and RTL submenu shots for the grouped more menu
HMarzban Nov 22, 2026
f6df0d9
fix(phone): keep the insert sheet above the keyboard and say why in it
HMarzban Nov 22, 2026
b8a7f84
fix(slash): follow the trigger for the + origin
HMarzban Nov 22, 2026
f8203e3
feat(links): parse document links and give library entries link keys
HMarzban Nov 22, 2026
9af2a96
Merge remote-tracking branch 'origin/main' into feat/quick-insert
HMarzban Nov 22, 2026
d69122f
feat(editor): pass the host's document-link options to Hyperlink
HMarzban Nov 22, 2026
e37fc12
feat(bubble): settle keyboard selections before showing in the contro…
HMarzban Nov 22, 2026
5d3f1f9
fix(bubble): live Style face, unwrapping Turn into and narrower inlin…
HMarzban Nov 22, 2026
14e88fd
feat(links): add the links-only pass and the share-consent line
HMarzban Nov 22, 2026
f78386d
feat(links): resolve, draw and follow document links
HMarzban Nov 22, 2026
10f1e9d
test(links): keep links from a newer version unchanged
HMarzban Nov 22, 2026
1b84738
docs(slash): record quick insert P2 in the changelog and A19
HMarzban Nov 22, 2026
5d61b17
fix(bubble): set the keyboard flag before ProseMirror handles the key
HMarzban Nov 22, 2026
5414d72
feat(color): named colour rows on desktop surfaces
HMarzban Nov 22, 2026
4847904
test(links): follow document links on the library harness
HMarzban Nov 22, 2026
d8d6749
docs(phone): insert sheet, Aa sheet order and tablet stand-in words
HMarzban Nov 22, 2026
cb71ab5
Merge remote-tracking branch 'origin/main' into claude/feat-lk1-doc-l…
HMarzban Nov 22, 2026
283a682
feat(bubble): show at once on Alt+F10 and follow the motion token
HMarzban Nov 22, 2026
9a8d345
fix(color): mark low-contrast rows and keep the note inside its column
HMarzban Nov 22, 2026
5aa9be3
test(color): cover the named colour rows and the phone pick pill
HMarzban Nov 22, 2026
325716e
feat(bubble): hand off to the link field without a gap
HMarzban Nov 22, 2026
ac8e875
fix(slash): outline the New badge on the active row
HMarzban Nov 22, 2026
eeb00ff
docs(slash): quick insert P2 design-review screenshots
HMarzban Nov 22, 2026
df8f8c1
refactor(phone): title insert steps from the registry labels
HMarzban Nov 22, 2026
ceccd8e
docs(contract): amend A21 for the phone insert sheet, sheet order and…
HMarzban Nov 22, 2026
5e146b9
fix(color): draw the More chevron in CSS so the editor chunk stays flat
HMarzban Nov 22, 2026
176b5a1
docs: record the document links core
HMarzban Nov 22, 2026
a856ea0
fix(color): read Recent as stored so the editor chunk keeps no new ex…
HMarzban Nov 22, 2026
8aed264
fix(bubble): render the icon face as a component and pin the brush re…
HMarzban Nov 22, 2026
8d5025e
fix(links): register the tinydocy scheme when the link host is made
HMarzban Nov 22, 2026
b9e647c
docs(slash): say which slash-items helper reads memory
HMarzban Nov 22, 2026
5e981a7
perf(slash): write nothing per keystroke while the + is hidden
HMarzban Nov 22, 2026
5efe70e
fix(toolbar): keep turn-into rows on one line and the check rows' end…
HMarzban Nov 22, 2026
66eb6ec
docs(bubble): add the phase 1 design-review screenshots
HMarzban Nov 22, 2026
85c594e
docs(bubble): record phase 1 in the changelog and contract A20
HMarzban Nov 22, 2026
0046d27
fix(a11y): name the row's stand-ins by the words tablets show
HMarzban Nov 22, 2026
71e0830
fix(phone): load the insert sheet body on its own and tighten the sheets
HMarzban Nov 22, 2026
7178c4d
docs(contract): record the stand-in names and the sheet body chunk in…
HMarzban Nov 22, 2026
ff3d3ac
docs(bubble): add the flipped, paint and narrow-window screenshots
HMarzban Nov 22, 2026
6e451fb
refactor(toolbar): drop the duplicate group label and reserve the pag…
HMarzban Nov 22, 2026
3010a8c
Merge branch 'feat/bubble-v2-settle' into feat/bubble-v2
HMarzban Nov 22, 2026
a8a3c17
docs(toolbar): re-shoot the before baseline and add other-menu checks
HMarzban Nov 22, 2026
6ba77ab
docs(changelog): re-measure the editor chunk for the grouped more menu
HMarzban Nov 22, 2026
d2fe250
feat(links): derive headings in the links pass and map rows to format 2
HMarzban Nov 22, 2026
25fee12
build: upgrade Bun to 1.4.5
HMarzban Nov 22, 2026
5ed65be
build: add test:fast and typecheck:fast for local runs
HMarzban Nov 22, 2026
6908e90
ci(deploy): refuse a commit that pins another Bun than the host's
HMarzban Nov 22, 2026
075d767
docs(changelog): record the Bun 1.4.5 upgrade and its deploy steps
HMarzban Nov 22, 2026
84c5f89
feat(bubble): settle keyboard selections before showing
HMarzban Nov 22, 2026
49ff973
fix(ui): open submenus on the inline end
HMarzban Nov 22, 2026
5bcb2a8
feat(toolbar): turn list items and quotes into a text style from the …
HMarzban Nov 22, 2026
5117bc1
docs(bubble): record the settle, the registry unwrap and the new sizes
HMarzban Nov 22, 2026
427f1c9
fix(phone): follow the visual viewport's height while the keyboard is up
HMarzban Nov 22, 2026
f8670e0
Merge remote-tracking branch 'origin/main' into feat/overflow-groups
HMarzban Nov 22, 2026
2b29cd9
docs(toolbar): re-measure the grouped more menu against main
HMarzban Nov 22, 2026
38480c7
fix(editor): never open a tinydocy: link without a link host
HMarzban Nov 22, 2026
204eddb
Merge remote-tracking branch 'origin/main' into feat/quick-insert
HMarzban Nov 22, 2026
aa8ac84
chore(build): record LK1's linkHost line in the chunk ledger
HMarzban Nov 22, 2026
e4ba565
test(links): pin snapshot identity and the no-host safety gate
HMarzban Nov 22, 2026
ada48de
feat(links): state icons with names, one copy module and the preview
HMarzban Nov 22, 2026
17c6a6c
feat(links): cap link text, track link changes and keep the pass fast
HMarzban Nov 22, 2026
1751306
fix(toolbar): draw the tablet stand-in words from first paint
HMarzban Nov 22, 2026
6a28ee5
docs: update the P4 changelog entry and A21 for the review fixes
HMarzban Nov 22, 2026
bb2c928
feat(links): one announcement per follow, a Back position and quiet r…
HMarzban Nov 22, 2026
d010832
fix(color): lay named rows out in a line and open More on the inline …
HMarzban Nov 22, 2026
5cfd7cb
test(color): align the colour suites with the named rows
HMarzban Nov 22, 2026
9171cb3
Merge remote-tracking branch 'origin/main' into chore/bun-1.4.5
HMarzban Nov 22, 2026
41ed325
fix(links): allow only https, http and mailto beside document links
HMarzban Nov 22, 2026
0ae452a
fix(slash): an ordinary + slash, quiet typing and RTL hints
HMarzban Nov 22, 2026
fe7d476
test(slash): check shortcuts and JSX text, with the app input rules
HMarzban Nov 22, 2026
5a16754
feat(links): cap a document at 2,000 distinct link rows
HMarzban Nov 22, 2026
9356f5f
docs(color): screenshots of the named colour rows and the phone pick …
HMarzban Nov 22, 2026
33da950
docs(slash): re-shoot the RTL screenshots with left-to-right hints
HMarzban Nov 22, 2026
f582873
docs(slash): update the P2 changelog entry after review
HMarzban Nov 22, 2026
1301c11
test(bubble): wait out the scale-in and keep setup marks out of undo
HMarzban Nov 22, 2026
deb9103
fix(bubble): keep the keyboard flag while Shift is held
HMarzban Nov 22, 2026
0a754b5
Merge remote-tracking branch 'origin/main' into feat/phone-insert-sheet
HMarzban Nov 22, 2026
175dc01
Merge branch 'feat/quick-insert' into feat/phone-insert-sheet
HMarzban Nov 22, 2026
0ad5ecb
Merge branch 'feat/bubble-v2-settle' into feat/bubble-v2
HMarzban Nov 22, 2026
bfe928c
feat(links): final link states, private links stripped on share
HMarzban Nov 22, 2026
2c2380e
test(links): gesture table, previews and the visual matrix
HMarzban Nov 22, 2026
c54e459
refactor(phone): take Suggested and New badges from the slash menu's …
HMarzban Nov 22, 2026
90871cc
docs(phone): re-shoot the insert sheet, Aa sheet and tablet stand-in …
HMarzban Nov 22, 2026
8b40031
docs: re-measure P4 against main 1548d5e with P2 merged
HMarzban Nov 22, 2026
630bff6
test(slash): raise the slash chunk budget to 7 KB
HMarzban Nov 22, 2026
4ff290e
test(slash): name the budget test after the 7 KB budget
HMarzban Nov 22, 2026
c6c2be3
fix(color): open bubble colour menus past the selection's lines, neve…
HMarzban Nov 22, 2026
4f7cb73
fix(phone): 44px pill actions and six-swatch lines in the Aa sheet
HMarzban Nov 22, 2026
ab51bd4
feat(color): named rows pick and close, wrap, typeahead and announce
HMarzban Nov 22, 2026
e89b981
Merge branch 'feat/quick-insert' into feat/phone-insert-sheet
HMarzban Nov 22, 2026
00dbdad
test(links): cards from the keyboard, settled previews and the app's …
HMarzban Nov 22, 2026
c95aeb3
docs(changelog): record the final LK1 links core
HMarzban Nov 22, 2026
83f08da
Merge remote-tracking branch 'origin/main' into feat/overflow-groups
HMarzban Nov 22, 2026
a0fb1c2
Merge remote-tracking branch 'origin/main' into feat/phone-insert-sheet
HMarzban Nov 22, 2026
3ff9f07
Merge remote-tracking branch 'origin/main' into claude/feat-lk1-doc-l…
HMarzban Nov 22, 2026
9d58096
docs(phone): tablet stand-in words decision pack
HMarzban Nov 22, 2026
36018d3
docs(toolbar): re-measure the grouped more menu against main 84a9458
HMarzban Nov 22, 2026
1c7c510
docs: cite the P4 editor-chunk measurement against main 84a9458
HMarzban Nov 22, 2026
39782f8
perf(editor): pass every DocumentEditor prop through as given
HMarzban Nov 22, 2026
add71cc
test(links): wait for the editor's own selection before Mod-K
HMarzban Nov 22, 2026
f40bb62
fix(color): shrink the sheet's swatch gaps, never the swatches, on 32…
HMarzban Nov 22, 2026
6218d28
test(color): picks close the menu and return focus to the text
HMarzban Nov 22, 2026
89a4ab3
docs(color): re-shoot the bubble colour menu and the phone sheet
HMarzban Nov 22, 2026
229ff21
docs(changelog): say what the no-host check closes and what waits for…
HMarzban Nov 22, 2026
e9e6d49
Merge branch 'feat/overflow-groups' into feat/phone-insert-sheet
HMarzban Nov 22, 2026
9b58ab1
feat(toolbar): give touch tablets the stand-in words at every width
HMarzban Nov 22, 2026
60bc13b
docs: record option (b) for the tablet stand-in words
HMarzban Nov 22, 2026
ba3fc25
fix(color): announce picks from the panel so the editor chunk keeps i…
HMarzban Nov 22, 2026
8e93fde
docs(color): note the e2e that guards the untrusted Esc close
HMarzban Nov 22, 2026
b8864fd
Merge branch 'feat/bubble-v2-color' into feat/bubble-v2
HMarzban Nov 22, 2026
f29198d
Merge remote-tracking branch 'origin/feat/phone-insert-sheet' into fe…
HMarzban Nov 22, 2026
604637d
refactor(toolbar): drop the physical padding stopgap in menu check rows
HMarzban Nov 22, 2026
c579fae
test(links): give the 10,000-link check twice the budget on CI
HMarzban Nov 22, 2026
ef12763
fix(toolbar): turn only the selected list items and quote lines into …
HMarzban Nov 22, 2026
ab0f26c
refactor(toolbar): name the paragraph style Text in the registry
HMarzban Nov 22, 2026
d9065b3
fix(bubble): keep Turn into off the selection's lines when it flips
HMarzban Nov 22, 2026
5e74f58
feat(toolbar): skip the title, lift for code and quote and name what …
HMarzban Nov 22, 2026
6fec72f
fix(bubble): cancel a pending bubble on Esc and tighten its smaller e…
HMarzban Nov 22, 2026
9038c90
refactor(toolbar): lift wrapped text blocks with less code
HMarzban Nov 22, 2026
8975a49
docs(bubble): fold the colour rows, the lift and the new sizes into P…
HMarzban Nov 22, 2026
1550854
test(bubble): load the bubble chunk before timing Esc against the delay
HMarzban Nov 22, 2026
28c6982
perf(toolbar): inject the per-item style lift from the lazy chunks
HMarzban Nov 22, 2026
adf7aaa
fix(ui): keep menu shortcut glyphs left to right in RTL
HMarzban Nov 22, 2026
135cb2d
perf(bubble): draw face and More headings icons from the registry
HMarzban Nov 22, 2026
5427def
docs(bubble): record the injected style lift and the flat editor chunk
HMarzban Nov 22, 2026
1f8ddad
perf(slash): leave the style lift to the bubble's idle chunk
HMarzban Nov 22, 2026
367c3fa
perf(slash): give the phone Insert sheet the slash helpers through th…
HMarzban Nov 22, 2026
224512a
perf(phone): hand the Insert sheet the slash helpers at load, not by …
HMarzban Nov 22, 2026
b0fd152
perf(slash): build the menu's and the phone sheet's items with one ex…
HMarzban Nov 22, 2026
09d4eb2
fix(slash): keep Markdown hint caps at the row's inline end in RTL
HMarzban Nov 22, 2026
f319ed3
test(toolbar): ⋯ rows line up their labels in RTL
HMarzban Nov 22, 2026
c46c703
fix(phone): keep an Insert cell's note with its label
HMarzban Nov 22, 2026
00bcedb
docs(bubble): record the slash budget fix and the RTL fixes
HMarzban Nov 22, 2026
ce9408c
fix(bubble): read a pending keyboard selection before Alt+F10 shows t…
HMarzban Nov 22, 2026
379fff2
Merge remote-tracking branch 'origin/main' into claude/feat-lk1-doc-l…
HMarzban Nov 22, 2026
7d186e1
refactor(links): share one isWebLink between the editor and the link …
HMarzban Nov 22, 2026
a3d14e2
test(links): time the 10,000-link pass as a stress probe
HMarzban Nov 22, 2026
388206e
docs(changelog): record LK1 on #168's policy at -3 B
HMarzban Nov 22, 2026
b2a6fbf
fix(toolbar): lift list items as list commands do and keep cells out …
HMarzban Nov 22, 2026
1fa5b69
fix(bubble): refuse only a pending show on Esc and tidy the review's …
HMarzban Nov 22, 2026
3857a4d
fix(toolbar): line up menu labels and shortcuts, and give Text its icon
HMarzban Nov 22, 2026
d912c80
fix(phone): line up More headings with the Aa sheet's Style rows
HMarzban Nov 22, 2026
3b56450
fix(toolbar): install Text's icon with the style lift, not in the reg…
HMarzban Nov 22, 2026
6687194
fix(phone): install Text's icon from the Aa sheet, not the shared lift
HMarzban Nov 22, 2026
7190551
fix(toolbar): keep Text's icon in the registry after all
HMarzban Nov 22, 2026
01e444b
perf(toolbar): dry-run Turn into's lift once per editor state
HMarzban Nov 22, 2026
a3a2261
test(bubble): name the spec's waits after the bubble's delays
HMarzban Nov 22, 2026
4fb9e83
revert(toolbar): leave Text without a registry icon, as on main
HMarzban Nov 22, 2026
65d065d
test(bubble): wait for the editor's focus before pressing keys
HMarzban Nov 22, 2026
449232c
Merge remote-tracking branch 'origin/main' into feat/bubble-v2
HMarzban Nov 22, 2026
4f48944
fix(bubble): show Comment only where comments are offered
HMarzban Nov 22, 2026
672c91d
docs(bubble): re-measure P1 against main 7b9fdc7
HMarzban Nov 22, 2026
54d34d6
fix(toolbar): split a list item before lifting a block after its first
HMarzban Nov 22, 2026
301fb23
test(toolbar): assert the exact shape after lifting a middle child
HMarzban Nov 22, 2026
a93ffd0
fix(toolbar): refuse a style lift whose step throws
HMarzban Nov 22, 2026
7aa7940
perf(toolbar): stop Turn into's scan once marks and cells are known
HMarzban Nov 22, 2026
266a57a
test(bubble): wait for the comments hook before selecting for Comment
HMarzban Nov 22, 2026
5351bd5
docs(design): add the bubble and quick insert design review page
HMarzban Nov 22, 2026
79cf4d6
Merge remote-tracking branch 'origin/main' into feat/bubble-v2
HMarzban Nov 22, 2026
796d73e
Merge remote-tracking branch 'origin/main' into chore/bun-1.4.5
HMarzban Nov 22, 2026
16b0810
Merge remote-tracking branch 'origin/main' into claude/feat-lk1-doc-l…
HMarzban Nov 22, 2026
71c947e
feat(desktop): carry link keys and trashed documents through the libr…
HMarzban Nov 22, 2026
ad0f280
docs(bubble): record the owner's design review decisions
HMarzban Nov 22, 2026
3145ff4
fix(desktop): wait for briefly held SQLite locks instead of failing
HMarzban Nov 22, 2026
215040a
perf(desktop): commit derived rows without waiting for the disk
HMarzban Nov 22, 2026
f44d782
test(desktop): run T21 five times and gate on the median of the runs
HMarzban Nov 22, 2026
49baec2
test(desktop): cover trashed subfolders and a refused link key on create
HMarzban Nov 22, 2026
f9d929a
test(platform): check the link key format with the harness's matchers
HMarzban Nov 22, 2026
1bf2204
test(toolbar): compare only the style shortcuts' widths off macOS too
HMarzban Nov 22, 2026
cc5c873
Merge remote-tracking branch 'origin/main' into claude/fix-storage-bu…
HMarzban Nov 22, 2026
630ad05
Merge remote-tracking branch 'origin/main' into feat/bubble-v2
HMarzban Nov 22, 2026
4fc591e
perf(toolbar): give the lazy menus their own Type icon
HMarzban Nov 22, 2026
481bf61
perf(toolbar): keep the title reason and insert-kind check out of the…
HMarzban Nov 22, 2026
d8f06c3
build: add the bubble and quick insert work's 26 B D23 ledger line
HMarzban Nov 22, 2026
688407f
Merge #160 (chore/bun-1.4.5) into integrate/phase-2-batch-11
HMarzban Nov 22, 2026
a967f2b
Merge #185 (claude/fix-storage-busy-lock) into integrate/phase-2-batc…
HMarzban Nov 22, 2026
fbd8745
Merge #154 (claude/feat-lk1-doc-links) into integrate/phase-2-batch-11
HMarzban Nov 22, 2026
9cf9792
Merge #183 (feat/bubble-v2) into integrate/phase-2-batch-11
HMarzban Nov 22, 2026
d5abb66
docs(agents): byte budgets are a tripwire, not an approval gate
HMarzban Nov 22, 2026
6e9cf5f
test(toolbar): allow a pixel between style shortcut widths without ta…
HMarzban Nov 22, 2026
1916c6c
Merge #183 test fix (6e9cf5f) into integrate/phase-2-batch-11
HMarzban Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bun 1.4.4
bun 1.4.5
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

- TinyDocy is a lightweight collaborative editor testbed for docs.plus, positioned as an online-capable demo where abuse and OWASP-minded guardrails matter; stack is Next.js 16 App Router + Tiptap 3 + Yjs + Hocuspocus + SQLite, with Bun runtime
- Persistence is Hocuspocus 4 WebSocket + SQLite via custom `bun run hocus` (`scripts/hocus-server.ts`: `Bun.serve` + `Hocuspocus.handleConnection`, `bun:sqlite`) with fetch/store persistence in `lib/hocus-persistence.ts` on the `extension-sqlite`-compatible `documents` table, custom WS guardrails in `lib/security/*`, and optional official `extension-logger` / `extension-throttle` / `extension-redis` toggled by `HOCUS_*` env; local dev starts both services with `make dev` (`make -j2`)
- Runtime: everything runs on Bun ≥ 1.4.4 (`.tool-versions`) — `bunfig.toml` `[run] bun = true` makes `bun <bin>` and `bun run` start package bins (Next.js, ESLint, Playwright, commitlint) on the Bun runtime, but plain `bunx` ignores it and uses Node when installed, so call local bins as `bun <bin>` (e.g. `bun playwright test`) and remote ones as `bunx --bun`; CI puts a failing `node` stub on PATH after install so nothing falls back to Node; SQLite is `bun:sqlite` everywhere (`openSqlite()` in `lib/sqlite-open.ts`, used by the Next.js API, Hocus and scripts; `.get()` returns `null` for no row); the app `tsconfig.json` uses Bun types and `bun run typecheck` checks it plus `tsconfig.sw.json`
- Runtime: everything runs on Bun ≥ 1.4.5 (`.tool-versions`) — `bunfig.toml` `[run] bun = true` makes `bun <bin>` and `bun run` start package bins (Next.js, ESLint, Playwright, commitlint) on the Bun runtime, but plain `bunx` ignores it and uses Node when installed, so call local bins as `bun <bin>` (e.g. `bun playwright test`) and remote ones as `bunx --bun`; CI puts a failing `node` stub on PATH after install so nothing falls back to Node; SQLite is `bun:sqlite` everywhere (`openSqlite()` in `lib/sqlite-open.ts`, used by the Next.js API, Hocus and scripts; `.get()` returns `null` for no row); the app `tsconfig.json` uses Bun types and `bun run typecheck` checks it plus `tsconfig.sw.json`
- Root `README.md` is the only README (reader-first: features, quick start, architecture, config tables, deploy requirements, docs index); release history lives in `CHANGELOG.md`; tests docs live in `tests/TESTING.md`; operations runbooks live in `docs/operations/` (abuse guardrails, analytics, service worker); avoid full PM2/Traefik step-by-step guides
- Code quality/tooling: Biome for formatting/linting, ESLint scoped to Next.js rules, strict TypeScript; Husky runs lint-staged pre-commit and commitlint on commit-msg
- Naming and exports: kebab-case files, PascalCase components with title-case acronyms, camelCase hooks/utils, named exports by default
Expand All @@ -46,7 +46,7 @@
- **Desktop renderer:** the static export (`bun run build:desktop`, `NEXT_PUBLIC_APP_TARGET=desktop`).
- **Library UI:** `components/library/`, shared with the web library, styled in its own CSS so the web build stays +0 B.
- **Landing dark:** server and library features ship behind flags that default to off, because every merge deploys.
- Editor-chunk budget: the fence is `main` plus the D23 ledger (details spec §1 rule 5). As of 2026-11-22 only about 6 B of slack remains beyond the unspent ledger lines, so a PR without a ledger line must add 0 B to the editor chunk group (lazy chunks). Spending more needs an owner-approved ledger amendment.
- Editor-chunk budget: the CI fence (`scripts/check-editor-chunk-size.ts`, `main` plus the D23 ledger in details spec §1 rule 5) is a tripwire, not a gate on product work: the owner decided on 2026-11-22 that byte budgets must not block features or need their approval. A PR that grows the editor chunk group measures the growth with clean builds, records a ledger line with the measured bytes and raises `EDITOR_CHUNK_LEDGER_BYTES` by the same amount in the same PR; keep lazy-loading what is cheap to keep lazy, but never trade visible behaviour or UX to save bytes, and call out growth above about 1 KB gz of first load in the PR body
- Merging many parallel PRs: batch reviewed PRs on an `integrate/…` branch so CI runs once (GitHub then marks the included PRs merged). `main`'s CI no longer cancels a started run (#143), so every merge's run finishes and the newest commit deploys. Once the owner turns on the merge queue, queue PRs instead of hand-built batches.
- Tabs are synced through Y.Doc `global-tabs` behind the `DocumentIndex` port (`lib/platform/document-index.ts`; web implementation `GlobalTabsIndex` in `lib/platform/web/global-tabs-index.ts`, React adapter `useSyncedTabs`, contract suite in `tests/unit/platform/`) with Playground fixed at index 0; `activeTabId` is local per user; close operations call `DELETE /api/documents/[id]`, which is HTTP rate-limited separately from WS throttles on Hocuspocus; the canonical editor implementation lives in `components/document-editor/` (legacy `components/tiptap-templates/simple` has been removed)
- Simplified toolbar (contract A15) is CSS only: `data-toolbar-density="simple"` on the row applies the ladder's T2–T4 `collapse-tier` mixin at every width (the ladder still collapses further below T4/T5); the setting is the `toolbarDensity` slot in `tinydocy-ui` (survives Forget), read by `useToolbarDensity` (`useSyncExternalStore`, no ready flag: the editor is `ssr: false` and a ready effect would flash the full row); `view.simpleToolbar` writes it, ⋯ shows it as a checkbox from the lazy menu chunk
Expand Down
Loading
Loading