Repository navigation
fix(dashboard): link Compose projects' Settings to the configuration wizard - #1928
Open
MichaelOgunjimi wants to merge 1 commit into
Open
MichaelOgunjimi wants to merge 1 commit into
MichaelOgunjimi wants to merge 1 commit into
Conversation
…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
force-pushed
the
fix/compose-project-edit-configuration-link
branch
from
December 1, 2026 06:08
393e692 to
1311ba9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 whenprojectApplication()returns a value, andhasSeparateApplication()returns false whenevercomposePathis 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.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:
environment-scope.test.tsxandBuildSettings.tsxalready failprettier --checkonmain. 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-widebun run test.I have not run the dashboard against a live project; the check is the rendered-component test.
Screenshots
N/A
Checklist
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)