web: link profiles to shared config editor

This commit is contained in:
2026-08-14 10:03:36 +09:00
parent c0f4e80320
commit 5c57e10de9
2 changed files with 7 additions and 1 deletions
@@ -20,6 +20,11 @@ function assert(condition: unknown, message: string): asserts condition {
Deno.test("settings section navigation stays under the settings route", () => {
assert(SETTINGS_ROUTE === "/settings", "settings route should be stable");
assert(
settingsSectionHref("configuration-sources") === "/settings/configuration",
"shared configuration editor route should stay canonical",
);
for (const section of SETTINGS_SECTIONS) {
const href = settingsSectionHref(section.id);
assert(
@@ -1,5 +1,6 @@
<script lang="ts">
import DiagnosticsList from "$lib/workspace/settings/DiagnosticsList.svelte";
import { settingsSectionHref } from "$lib/workspace/settings/model";
import { fetchProfileSettings } from "$lib/workspace/settings/profile-api";
import type { ProfileSettingsResponse } from "$lib/workspace/settings/profile-types";
import type { PageProps } from "./$types";
@@ -44,7 +45,7 @@
<p class="eyebrow">Workspace configuration projection</p>
<h2 id="profiles-title">Profiles</h2>
</div>
<a class="badge" href={`/w/${encodeURIComponent(workspaceId)}/settings/configuration-sources`}>
<a class="badge" href={`/w/${encodeURIComponent(workspaceId)}${settingsSectionHref("configuration-sources")}`}>
Edit configuration
</a>
</header>