Repository navigation
Description
pkgs/web-gen-api-axum crate split — step 2: extract start-axum-ui (dark_mode + app)
Template: doc/2026-11-01T16-53-00Z_design_id_crate_split/2026-11-01T16-53-00Z_design_id_crate_split.md (design of record for the pkgs/id split, from #3195). Worked example: pkgs/id umbrella #3447, step issues #4403-#4411. Program: fleet-wide crate-splitting program (Drew's order, 2026-11-11); this issue set comes from the Part 2 inventory, 2026-11-12.
Scope
Move src/dark_mode.rs (109 LOC) and src/app.rs (435 LOC) into member crate start-axum-ui, depending on start-axum-error. Scan evidence: app is the only consumer of dark_mode, and app's only local references are to the two leaves — after step 1 its remaining local edge is dark_mode, which moves with it. The visitor server fns in app.rs (AddVisitorData, GetVisitorRows) move with app as one unit; no server-fn sub-split in this step. Facade re-exports start_axum::app and start_axum::dark_mode keep lib.rs/main.rs paths working.
Acceptance
Acceptance discipline (from the id template; applies to every step):
- One PR per step; no step bundles another step's extraction.
- Full test suite green on that PR. Baseline is recorded in step 0 (this project currently has 0 tests, so the gate is:
cargo testpasses, the workspace builds clean, and any tests added by a step pass). - Behavior-preserving: no functional changes, no dependency version bumps, no renames beyond the crate-path moves in scope.
- Facade re-exports where consumers exist: the facade crate keeps the pre-split public paths working for the whole migration, and a step is complete only when the moved code exists solely in its new crate (the old location holds at most the re-export). The 2026-11-12 inventory found no external/Nix consumers of this project (grep of
*.nixoutside the project dir: no hits); the known consumer is the project's own binary/lib entry points. - Never leave main red: a step that cannot go green stops and reports here instead of merging partial state.
Activity
developing-today commentedon Nov 12, 2026
CODE-2728
dezren39 commentedon Nov 17, 2026
🤖 Agent note · blocked (dependency — step 1 has not landed)
Evidence (fresh, 2026-11-16):
Gate: task 18787 blocked with --blocked-by-issue #8967 (broker rechecks on its sweep cadence; the task returns to queued by itself when #8967 closes, max TTL 3 days). Whoever works step 1 does not need to touch this task.
Triage labels for when it releases: work kind small-fix (one extraction PR per the umbrella's acceptance discipline), priority/normal, effort/m.
dezren39 commentedon Nov 20, 2026
agent-note:v1 — picked up by repo-worker-code (lane any-o, task 18787). Revalidating triage state; current issue remains open and step 1 prerequisite #8967 is still open, so I am restoring the dependency block with fresh evidence.
dezren39 commentedon Nov 20, 2026
🤖 Agent note · blocked — task 18787 (lane any-o, repo-worker-code)
dezren39 commentedon Nov 22, 2026
Lane lane-n (archer) picking up queue task 18787: step 2 extraction of
start-axum-ui(dark_mode + app). Premise revalidated 2026-11-22: prerequisite step 1 (#8967) closed as completed today via PR #12395 (merge e8cb56e) —pkgs/start-axum-errorexists on main and the facade'serror_template.rsis a re-export shim;src/app.rs/src/dark_mode.rsare still full sources in the facade, so step 2 is live and unblocked.dezren39 commentedon Nov 22, 2026
🤖 Agent note · picked up — task 18787 (repo-worker-code, lane oc-code-06)
start-axum-errorlanded.src/app.rsandsrc/dark_mode.rsare still the in-scope facade sources.8 remaining items
dezren39 commentedon Nov 22, 2026
agent-note:v1 — picked up: task 21056 claimed by repo-worker-code on lane code-i; origin=openchamber-scheduled-lane. Revalidating issue and preparing an isolated worktree.
dezren39 commentedon Nov 22, 2026
agent-note:v1 — parked: task 21056 paused because open PR #12617 (archer-lane-n/8968-start-axum-ui) covers the exact requested extraction. Resume after fresh PR disposition/scope verification; no parallel PR will be created.
dezren39 commentedon Nov 22, 2026
🤖 Agent note · done — task 18787 (lane lane-n, archer)
Step 2 is landed. The earlier dependency block is resolved: step 1 (#8967) closed as completed 2026-11-22 via PR #12395, which unblocked this step.
79e9097de2a9057f52cd5d840cd3c816f59efc90. This issue auto-closed viaCloses #8968.pkgs/start-axum-uinow ownsapp.rs(435 LOC, moved; single change =AppError/ErrorTemplateimported fromstart_axum_error) anddark_mode.rs(109 LOC, byte-identical), depending onstart-axum-errorper scope. Facadesrc/app.rs/src/dark_mode.rsare re-export shims (pub use start_axum_ui::app::*;/dark_mode::*), sostart_axum::appandstart_axum::dark_modekeep working for lib.rs, main.rs and fileserv.rs. Visitor server fns moved with app as one unit.nix develop .#fleet): baseline on main all green (run 45038657750); final branch run all green (run 45040690050) —cargo check --features ssr,cargo check --locked --features hydrate,cargo check --locked --features ssr,cargo test --locked --features ssr(0 tests, matching the step-0 baseline). Two intermediate runs caught the macro-wiring deps the extraction needs as direct deps of the new crate (serdefor#[server],tracingfor#[component]— the same trap step 1 recorded), fixed in-PR; details in the PR evidence.