#1923

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

OpenMichaelOgunjimiopened 4d ago

Existing issue

  • I have searched the existing issues and found no duplicate.

Problem description

For a project that uses a Compose file (composePath set), the project's Overview, Settings and Deployments tabs have no way to edit its configuration. Settings shows only environment variables, build cache and resource limits.

The only "Edit configuration" button is on the deployment result view (DeploymentConfigurationAction, shown when a deployment is ready, failed or cancelled), so a user who never opens a deployment's result page does not find it.

Cause, from reading the code on main (f298dc810):

  • #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 (ApplicationSettingsForm), which covers install, build, start, output and root directory.
  • Settings only links to that page when projectApplication() returns something, and hasSeparateApplication() returns false whenever project.composePath is set (apps/dashboard/src/lib/project-application.ts:29).
  • So for a Compose project neither the old link nor the new inline form is reachable. The Compose path and the project-level root directory have no other editor in the project UI.
  • Comments in DraftProjectView.tsx and deploy/[slug]/components/Sidebar.tsx still describe the wizard as opened from project Settings.

Steps to reproduce

  1. Import a repository that has a Compose file and deploy it, so the project has a compose path.
  2. Open the project and look for a way to edit its configuration on Overview, Settings and Deployments.
  3. There is none. Only the result page of a deployment shows "Edit configuration".

Environment

Desktop app 1.0.1 on macOS. Code read at main f298dc810.

Logs and screenshots

N/A (missing control, no error).

Additional context

Single-app projects are not affected; they edit inline.

Suggested fix: for Compose projects, show the same "Edit configuration" link in project Settings, pointing at the existing wizard edit mode. That is a small change and needs no new endpoint. Alternatively add the project-level fields inline.

Related, not the same: #1666 (the wizard hid the compose-path controls after a failed scan, already fixed) is about the controls inside the wizard; this is about reaching the wizard.

Activity

0

No activity yet.