Skip to content

Repo layout: frontend/ at the top level, app/ in the root workspace - #137

Merged
ndbroadbent merged 3 commits into
mainfrom
repo-layout
Dec 3, 2026
Merged

ndbroadbent merged 3 commits into
mainfrom
repo-layout

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Two layout changes in one mechanical PR (approved by the coordinator). Nothing is kept for the old paths.

server/frontend/ → frontend/

git mv server/frontend frontend. server/ is gone; after #132 it held only the frontend. Every reference changed with it:

  • .github/workflows/ci.yml: working-directory, package_json_file, the visual job's frontend/src upload, and the dist-site artifact paths. The site job deploys from frontend/site.
  • docker/app.Dockerfile: the frontend stage now runs in /src/frontend, and the image copies /src/frontend/dist to public/.
  • scripts/ci/visual.sh, scripts/journeys/run.sh, scripts/screenshots/capture.mjs, scripts/brand/build.mjs.
  • frontend/scripts/skills.mjs, site.mjs, wasm.mjs: their repo-root paths went from ../.. to ...
  • crates/visualci-cli/src/config_file.rs: the schema test now reads ../../frontend/public/visualci.schema.json.
  • app/src/skills.rs, app/src/http/app_shell.rs, app/public/index.html (comments).
  • .gitignore, .dockerignore, AGENTS.md, docs/design.md, docs/deploy.md.
  • skills/*/SKILL.md, GEMINI.md, .cursor-plugin/plugin.json, regenerated with node scripts/skills.mjs. Only the "Generated from …" header line changed. The plugin version is bumped from 0.1.49 to 0.1.50.
  • app/tests/golden/mcp/get_skill_lists_the_skills_and_returns_one/get_skill-2.json: the same header line.

After the change, git grep server/frontend finds nothing. git grep server/ finds only an unrelated BrowserStack URL in frontend/content/pages/compare/percy.md. No blog post or doc names the old path, so no history needs listing.

app/ joins the root Cargo workspace

  • Root Cargo.toml now has members = ["crates/*", "app"]. app/'s [workspace] section is gone and app/Cargo.lock is deleted. app/ had no [workspace.dependencies], [patch] or lints to merge.
  • app/'s dev profiles moved to the root: debug = "line-tables-only", debug = false for dependencies, and opt-level = 3 for num-bigint-dig and rsa. Its image and sha2 opt-levels were already identical to the root's. The CLI's dev builds now also use line-tables-only debug info.
  • CI:
    • The app job runs from the root with cargo test --locked -p visualci-app. The rust-cache workspaces: app setting is gone. The job's fmt and clippy steps are gone too: the lint job's cargo fmt --all and cargo clippy --workspace now cover app/.
    • The test job runs cargo test --locked --workspace --exclude visualci-app. That keeps the app's dependency features (serde_json's preserve_order and others) out of the CLI's tests. It's the isolation the separate workspace used to give.
    • The visual and journeys jobs build cargo build --locked -p visualci-app --bin visualci-app from the root.
  • docker/app.Dockerfile: cargo-chef now prepares the root workspace (Cargo.toml, Cargo.lock, crates/, app/) and cooks -p visualci-app. The build runs cargo build --release --locked -p visualci-app --bin visualci-app, and the binary is copied from /src/target/release/visualci-app.
  • scripts/ci/visual.sh and scripts/journeys/run.sh now default to target/debug/visualci-app.
  • scripts/on-dev test with no package named runs --workspace --exclude visualci-app, because app/'s tests need the test database. With -p … it passes the arguments through unchanged. fix and fmt now cover app/ through the workspace.
  • AGENTS.md: the build rule now describes app/ as visualci-app in the root workspace and says how to run its tests.
  • cli-version: an app/-only change still doesn't trip it. It diffs only crates/visualci-cli and crates/visualci-core, and app's version (0.0.0) isn't the workspace version. This PR does trip it, through the schema test's path in crates/visualci-cli/src/config_file.rs, so the CLI goes to 0.2.21. Its lockfile also moved (see the table). The docs' VISUALCI_VERSION= pins move in a follow-up after the release.

Dependency versions

The root Cargo.lock is the union of the two old lockfiles, resolved by cargo, and app/'s resolved versions are all unchanged. Where both lockfiles held semver-compatible versions of the same crate, they had to unify, so these changed for the CLI's crates (the old root lock):

crate before (CLI) after
crypto-common 0.1.7 0.1.6 (app's; 0.1.7 pins generic-array =0.14.7)
generic-array 0.14.7 0.14.9
http 1.5.0 1.6.0
image-webp 0.2.4 0.2.5
rustls 0.23.46 0.23.47

Every other crate kept its version. The app's crates (sqlx, laravel-rust, rmcp and the rest) appear as additional entries.

A side effect to know about

The images job's renderer-inputs hash includes Cargo.lock. Because the lockfile now includes app/'s dependencies, a change to the app's dependencies rebuilds the renderer image and rolls the renderers. Render cache keys use RENDERER_VERSION, so pixels don't change. Narrowing the hash would be a follow-up.

Checks (agents-build-1)

  • cargo fmt --all --check
  • cargo clippy --locked --workspace --all-targets -- -D warnings, plus snapshot-diff with --no-default-features
  • cargo test --locked --workspace --exclude visualci-app, cargo test --locked -p visualci-app (Postgres 17 and RustFS), and the full cargo test --locked --workspace
  • cargo check -p visualci-wasm --target wasm32-unknown-unknown
  • Frontend: node scripts/skills.mjs --check, pnpm install --frozen-lockfile && pnpm build && pnpm test, node scripts/site.mjs
  • docker build -f docker/app.Dockerfile .
  • actionlint 1.7.7

VisualCI build

I expect it to be unchanged. The visual job uploads frontend/src with the same --prefix components/, so snapshot names don't move. No page content changed. The skills header line appears only in the MCP JSON golden (json/mcp/get_skill…), which shows that one-line path change.

Open PRs that touch these paths

  • Image ignore regions in visualci.yml (sc-9018); CLI 0.2.22 #134 (sc-9018) also bumps the CLI to 0.2.21, so whichever of the two merges second takes 0.2.22. Its server/frontend/... files move to frontend/.... Its app/Cargo.lock change has to go into the root Cargo.lock instead, regenerated on a build box. Its CLI version bump touches the root Cargo.toml and Cargo.lock.

@visualci-com

visualci-com Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #157 · 339 unchanged · no changes

This PR vs base: 1 changed since #141, across 3 builds

docspring/visualci · journeys · build #155 · 12 unchanged · no changes

This PR vs base: 2 changed since #138, across 3 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent merged commit 2af03d2 into main Dec 3, 2026
14 checks passed
@ndbroadbent
ndbroadbent deleted the repo-layout branch December 3, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant