From 11362ac715857a6721873ffbff08ad2ba4a2d938 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Tue, 27 Oct 2026 19:13:21 -0500 Subject: [PATCH 1/4] docs: path map for the #1433 module split; drop CLAUDE.md references to the gitignored plan/ directory --- CLAUDE.md | 6 ++-- docs/module-split-map.md | 67 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 docs/module-split-map.md diff --git a/CLAUDE.md b/CLAUDE.md index 67853ff06..334385580 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ Read [AGENTS.md](AGENTS.md) first: its rules (asset policy, clean room, never cr win over anything here. ## Start every session -1. Read `plan/STATUS.md`, then the current milestone in `plan/execution-plan.md`. +1. Read `ROADMAP.md` and `docs/roadmap.md`. 2. Read `../../craftrules/AGENTS.md` and the standards it lists for your task. 3. Run `cargo xtask ci` before you change anything, so you know the tree is green. @@ -13,5 +13,5 @@ win over anything here. - Look at UI changes: `deckcraft --sample --control 7990` + `ui.screenshot`, or `deckcraft-cli render`. - Commit after each landed arc (`M.: what`) and push to `origin main`. -- Keep `ROADMAP.md`, the progress docs in `docs/` (AGENTS.md §7) and `plan/STATUS.md` current. -- Don't ask the user questions; record genuinely-theirs decisions in `plan/STATUS.md`. +- Keep `ROADMAP.md` and the progress docs in `docs/` (AGENTS.md §7) current. +- Don't ask the user questions; record genuinely-theirs decisions in `ROADMAP.md`. diff --git a/docs/module-split-map.md b/docs/module-split-map.md new file mode 100644 index 000000000..fc1ba1d38 --- /dev/null +++ b/docs/module-split-map.md @@ -0,0 +1,67 @@ +# Where things moved in #1433 + +[#1433](https://github.com/storytold/deckcraft/pull/1433) (merge `ee875abf`) split the largest +source files into modules. Nothing changed in behaviour, but a branch that edits an old file now +conflicts with it. This note says which new modules received each old file's code, so you can place +your hunks by hand after `git merge origin/main`. Paths are relative to `crates/` unless noted; each +old file stays as the parent module and keeps its re-exports, so import paths are unchanged. + +To find the exact new home of one function: `git grep -n 'fn name' origin/main -- crates` (or +`git log -S'fn name' --oneline origin/main -- crates`). + +## Plain renames (content unchanged) + +| Old | New | +|---|---| +| `engine/src/cmd/mod.rs` | `engine/src/cmd.rs` | +| `opus/src/celt/mod.rs`, `opus/src/silk/mod.rs` | `opus/src/celt.rs`, `opus/src/silk.rs` | +| `pptx/src/read/mod.rs`, `pptx/src/write/mod.rs` | `pptx/src/read.rs`, `pptx/src/write.rs` | +| `ui-egui/src/backstage_tests.rs` | `ui-egui/src/backstage/tests.rs` | +| `ui-egui/src/selpane_tests.rs`, `sorter_tests.rs` | `ui-egui/src/panels/selpane/ui_tests.rs`, `ui-egui/src/sorter/ui_tests.rs` | + +`ui-egui/src` files moved into a folder: `guides_tests`, `preview`, `ruler_tests`, `squiggles` → +`canvas/`; `columns_dialog_tests`, `credits`, `font_dialog_tests`, `paragraph_dialog_tests`, +`photo_album_tests`, `preferences_tests`, `size_position_tests`, `spelling_tests`, +`theme_colors_tests`, `theme_fonts_tests`, `updates_ui` → `dialogs/`; `animtimeline`, +`background_tests`, `fillui`, `notes`, `pattern_fill_tests`, `smartart_tests`, `thesaurus_tests`, +`thumbs` → `panels/`; `align_tests`, `drawtable_tests`, `effects_tests`, `icons_popup_tests`, +`inktoshape_tests`, `master_layout_tests`, `qat` → `ribbon/`. + +## Split files (old file → new modules, all under the old file's folder) + +Each old file now holds only the module list and shared items. + +| Old file | New modules | +|---|---| +| `apps/deckcraft/src/control_server.rs` | `control_server/tests.rs` (its tests) | +| `engine/src/cmd/design.rs` | `design/{colors, master_view, slide_background, slide_setup, browse_theme_tests, tests}.rs` | +| `engine/src/cmd/format.rs` | `format/{font, paragraph, painter, ruler, text_effects}.rs` | +| `engine/src/cmd/insert.rs` | `insert/{album, chart, links, picture, text_fields, icon_and_picture_tests}.rs` | +| `engine/src/cmd/shape.rs` | `shape/{appearance, freeform, picture, size}.rs` | +| `engine/src/cmd/smartart.rs` | `smartart/{diagrams, edit, layout, nodes, paint}.rs` | +| `engine/src/cmd/text.rs` | `text/{autocorrect, caret, editing, formatting, ime, layout}.rs` | +| `engine/src/tools.rs` | `tools/{click, drag, geometry, hit, pointer}.rs` | +| `fonts/src/lib.rs`, `format/src/lib.rs` | `src/tests.rs` (their tests) | +| `geom/src/preset.rs` | `preset/{build, builder, catalog, shapes, tests}.rs` | +| `media/src/player.rs` | `player/tests.rs` | +| `render/src/lib.rs` | `src/{geometry, opts, raster, renderer, slide, stroke, text_draw}.rs` | +| `text/src/lib.rs` | `src/{autonum, breaking, layout, run, shape, symbol}.rs` | +| `ui-egui/src/lib.rs` | `src/{app, state, services, clock, ime_hooks, tests}.rs`; the `SlideApp` impl is in `app.rs` and `app/{clipboard, commands, control, files, frame, ime, input, keys, playback}.rs` | +| `ui-egui/src/panes.rs` (deleted) | `panels.rs` and `panels/{animation, background, comments, designer, format_shape, smartart, thesaurus}.rs` (format-shape pane → `format_shape.rs`, slide background → `background.rs`, animation pane → `animation.rs`, comments and revisions → `comments.rs`) | +| `ui-egui/src/backstage.rs` | `backstage/{files, info, print}.rs` | +| `ui-egui/src/canvas.rs` | `canvas/{context_menu, guides, ime, input, media, overlays, rulers, scroll, tests}.rs` | +| `ui-egui/src/capture.rs` | `capture/tests.rs` | +| `ui-egui/src/dialogs.rs` | `dialogs/{about, alt_text, body, columns, date_time, equation, export, find, font, grid_options, hyperlink, language, paragraph, photo_album, preferences, size_position, slide_size, tabs, theme_colors, theme_fonts, trim, zoom, tests}.rs`; dialogs not listed (for example most bodies) are in `body.rs` | +| `ui-egui/src/icons.rs` | `icons/{draw, geometry}.rs` | +| `ui-egui/src/ribbon.rs` | `ribbon/{animations, arrange, chart, design, draw, galleries, home, insert, masters, picture_format, playback, review, shape_format, slide_show, smartart, table, title_bar, transitions, view}.rs`; one file per ribbon tab, plus `galleries.rs` for the shared gallery popups | +| `ui-egui/src/show.rs` | `show/{keys, media, presenter, render, ui, zoom, tests}.rs` | + +Also touched: `engine/src/file_access.rs` (16 lines), `docs/file-format-parity.md`, `docs/gaps.md` +and `packaging/common.sh` (one line each, path references). + +## Carrying a branch forward + +1. `git merge origin/main` (never rebase) and let git list the conflicting old files. +2. For each conflicting hunk, find the new module above, apply the hunk there by hand, and keep + the old file's side only for module declarations. +3. Run `cargo xtask ci`. From 1da4e33490aefdeae565bbb2ac63fdc0b162d0d9 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Tue, 27 Oct 2026 20:53:24 -0500 Subject: [PATCH 2/4] docs: qualify what the old files keep, list style.rs, say where panes.rs hunks go --- docs/module-split-map.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/module-split-map.md b/docs/module-split-map.md index fc1ba1d38..7ee0f7ce1 100644 --- a/docs/module-split-map.md +++ b/docs/module-split-map.md @@ -29,7 +29,8 @@ To find the exact new home of one function: `git grep -n 'fn name' origin/main - ## Split files (old file → new modules, all under the old file's folder) -Each old file now holds only the module list and shared items. +Each old file keeps its module declarations and any code that was not moved; several rows move +only the tests. | Old file | New modules | |---|---| @@ -45,7 +46,7 @@ Each old file now holds only the module list and shared items. | `geom/src/preset.rs` | `preset/{build, builder, catalog, shapes, tests}.rs` | | `media/src/player.rs` | `player/tests.rs` | | `render/src/lib.rs` | `src/{geometry, opts, raster, renderer, slide, stroke, text_draw}.rs` | -| `text/src/lib.rs` | `src/{autonum, breaking, layout, run, shape, symbol}.rs` | +| `text/src/lib.rs` | `src/{autonum, breaking, layout, run, shape, style, symbol}.rs` | | `ui-egui/src/lib.rs` | `src/{app, state, services, clock, ime_hooks, tests}.rs`; the `SlideApp` impl is in `app.rs` and `app/{clipboard, commands, control, files, frame, ime, input, keys, playback}.rs` | | `ui-egui/src/panes.rs` (deleted) | `panels.rs` and `panels/{animation, background, comments, designer, format_shape, smartart, thesaurus}.rs` (format-shape pane → `format_shape.rs`, slide background → `background.rs`, animation pane → `animation.rs`, comments and revisions → `comments.rs`) | | `ui-egui/src/backstage.rs` | `backstage/{files, info, print}.rs` | @@ -63,5 +64,7 @@ and `packaging/common.sh` (one line each, path references). 1. `git merge origin/main` (never rebase) and let git list the conflicting old files. 2. For each conflicting hunk, find the new module above, apply the hunk there by hand, and keep - the old file's side only for module declarations. + the old file's side only for module declarations. `ui-egui/src/panes.rs` is deleted: do not + restore it, move its hunks into `panels.rs` or the listed `panels/` modules (the crate exposes + `panels` and aliases it as `panes`). 3. Run `cargo xtask ci`. From d403e047cf88200a6abd7424ba2daba30ca61949 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:22:02 -0500 Subject: [PATCH 3/4] docs: preserve optional local session context --- CLAUDE.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1f8193103..88256c23a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,9 +8,10 @@ New workspace crates must include `[lints] workspace = true` in `Cargo.toml` to before modules or other crate items; crate-level `//!` documentation may precede them. ## Start every session -1. Read `ROADMAP.md` and `docs/roadmap.md`. -2. Read `../../craftrules/AGENTS.md` and the standards it lists for your task. -3. Run `cargo xtask ci` before you change anything, so you know the tree is green. +1. Read `plan/STATUS.md` when it exists. +2. Read `ROADMAP.md` and `docs/roadmap.md`. +3. Read `../../craftrules/AGENTS.md` and the standards it lists for your task. +4. Run `cargo xtask ci` before you change anything, so you know the tree is green. ## Habits - Every user-visible action is a command with tests (`crates/engine/src/cmd/*`). From 5529c695bf04b6149019c0964a2cd72fe1164151 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:32:09 -0500 Subject: [PATCH 4/4] docs: complete module split path mappings --- docs/module-split-map.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/module-split-map.md b/docs/module-split-map.md index 7ee0f7ce1..e56464c52 100644 --- a/docs/module-split-map.md +++ b/docs/module-split-map.md @@ -16,8 +16,9 @@ To find the exact new home of one function: `git grep -n 'fn name' origin/main - | `engine/src/cmd/mod.rs` | `engine/src/cmd.rs` | | `opus/src/celt/mod.rs`, `opus/src/silk/mod.rs` | `opus/src/celt.rs`, `opus/src/silk.rs` | | `pptx/src/read/mod.rs`, `pptx/src/write/mod.rs` | `pptx/src/read.rs`, `pptx/src/write.rs` | +| `ui-egui/src/selpane.rs` | `ui-egui/src/panels/selpane.rs` | | `ui-egui/src/backstage_tests.rs` | `ui-egui/src/backstage/tests.rs` | -| `ui-egui/src/selpane_tests.rs`, `sorter_tests.rs` | `ui-egui/src/panels/selpane/ui_tests.rs`, `ui-egui/src/sorter/ui_tests.rs` | +| `ui-egui/src/selpane_tests.rs`, `ui-egui/src/sorter_tests.rs` | `ui-egui/src/panels/selpane/ui_tests.rs`, `ui-egui/src/sorter/ui_tests.rs` | `ui-egui/src` files moved into a folder: `guides_tests`, `preview`, `ruler_tests`, `squiggles` → `canvas/`; `columns_dialog_tests`, `credits`, `font_dialog_tests`, `paragraph_dialog_tests`,