Skip to content

fix(dashboard): link Compose projects' Settings to the configuration wizard - #1928

Open
MichaelOgunjimi wants to merge 1 commit into
oblien:mainfrom
MichaelOgunjimi:fix/compose-project-edit-configuration-link
Open

MichaelOgunjimi wants to merge 1 commit into
oblien:mainfrom
MichaelOgunjimi:fix/compose-project-edit-configuration-link

Conversation

@MichaelOgunjimi

Copy link
Copy Markdown
Contributor

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): when projectApplication() is null, BuildSettings renders a "Runtime configuration" card with an "Edit Configuration" link to the wizard in mode=config (saves without deploying). Single apps are unchanged and keep their inline editor.
  • projectConfigurationHref() builds the wizard slug the same way the deployment page's DeploymentConfigurationAction does: local path, then repository, then project id.
  • No new strings: the card reuses projectSettings.build.runtime.title and .description and the existing importProject.composeDeployment.editConfiguration label, 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 0

environment-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 lint passes. I ran the dashboard test suite only, and prettier --check was not clean on these two files before my change (see Verification)
  • I understand every line of this diff and can explain it in review

…wizard

- Add an "Edit Configuration" card to project Settings for projects without a
  single application (Compose, services, monorepo); it opens the deploy wizard
  in `mode=config`, which saves without deploying
- Add projectConfigurationHref() to build the wizard slug the same way the
  deployment page's "Edit configuration" button does
- Reuse the existing runtime card strings and the existing label, so no
  locale changes
- Cover it in environment-scope.test.tsx: a Compose project gets the link, a
  single app does not, and the slug is right for repo, local, release and
  no-source projects

oblien#1738 replaced the Settings link to the wizard with an inline editor, but that
editor is only reachable when projectApplication() returns a value, which is
never the case when composePath is set. Those projects had no way to reach
their configuration from the project pages.

Fixes oblien#1923
@MichaelOgunjimi
MichaelOgunjimi force-pushed the fix/compose-project-edit-configuration-link branch from 393e692 to 1311ba9 Compare December 1, 2026 06:08
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.

[Bug]: Compose projects have no way to reach build configuration from the project pages since #1738

1 participant