Summary
Project Settings now links Compose, services and monorepo projects to the configuration wizard, which is the only place their configuration can be edited.
Motivation
#1738 removed the Settings link to the deploy wizard (/deploy/<slug>?projectId=...&mode=config) and replaced it with an inline editor on the application's service settings page. That page is only linked when projectApplication() returns a value, and hasSeparateApplication() returns false whenever composePath is set (lib/project-application.ts). So for a Compose project neither the old link nor the new inline form is reachable, and the Compose path and project-level settings could only be reached from the result page of a deployment.
Related issue
Fixes #1923
Changes
apps/dashboard(project Settings): whenprojectApplication()is null,BuildSettingsrenders a "Runtime configuration" card with an "Edit Configuration" link to the wizard inmode=config(saves without deploying). Single apps are unchanged and keep their inline editor.projectConfigurationHref()builds the wizard slug the same way the deployment page'sDeploymentConfigurationActiondoes: local path, then repository, then project id.- No new strings: the card reuses
projectSettings.build.runtime.titleand.descriptionand the existingimportProject.composeDeployment.editConfigurationlabel, so no locale files change. environment-scope.test.tsx: a Compose project gets the link and no application link; a single app gets no wizard link; the slug decodes correctly for repo, local path, release source and no source.
Verification
Before the change, the new Compose test fails (card disabled to simulate the old behaviour); after, it passes:
$ cd apps/dashboard && npx vitest run "src/app/(dashboard)/projects/[id]/components/environment-scope.test.tsx"
× links a Compose project's Settings to the configuration wizard, which has no inline editor
AssertionError: expected undefined to be 'Edit Configuration'
Tests 1 failed | 30 passed (31)
(after the change)
Tests 31 passed (31)$ npx vitest run # apps/dashboard
Test Files 411 passed (411)
Tests 4676 passed (4676)
$ npx vitest run "src/app/(dashboard)/projects/[id]/components/"
Test Files 35 passed (35)
Tests 481 passed (481)
$ npx tsc --noEmit # apps/dashboard (the workspace lint script): exit 0environment-scope.test.tsx and BuildSettings.tsx already fail prettier --check on main. I did not reformat them; the lines I added produce no additional prettier changes (the number of lines prettier would change is the same before and after). I ran the dashboard workspace only, not the repo-wide bun run test.
I have not run the dashboard against a live project; the check is the rendered-component test.
Screenshots
N/A
Checklist
- One change per PR — one bug, or one agreed feature, with nothing unrelated bundled in
- The diff is scoped — no reformatting or lint fixes on lines I wasn't otherwise changing
- A test fails without this change and passes with it (or I explained above why there isn't one)
-
bun run --cwd apps/dashboard lintpasses. I ran the dashboard test suite only, andprettier --checkwas not clean on these two files before my change (see Verification) - I understand every line of this diff and can explain it in review