Skip to content

Commit 2fec7fb

Browse files
committed
wip(studio): declare Clause-② yes (widening); document that an empty segment is dropped (#36895)
@objectstack/types is published and its entry gains studioChangesReviewLink and studioItemReviewLink, a widening of its public surface. Metadata-protocol stays none, so the bumps stay patch. Doc only in studioAddress.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
1 parent 2a9f6e9 commit 2fec7fb

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.changeset/36895-studio-address-builder.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
refactor(studio): every Studio address comes from one builder; no address changes
1010

11-
Clause-②: no
11+
Clause-②: yes (widening)
1212
Metadata-protocol: none
1313

1414
Studio redesign groundwork (#36895, epic #36890). Every place that produced a `/studio...` URL now calls one builder, so a later change can move an item type to its metadata address in one place. Every address is byte-for-byte what it was: no link, bookmark or redirect changes.

‎ui/packages/app-shell/src/views/studio-design/studioAddress.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ export interface StudioPathOptions {
140140
* in its URL form (`object/account`), then the query and the fragment. Every
141141
* part is optional from the right; a part after an absent one is not allowed
142142
* (a section names nothing without its scope).
143+
*
144+
* An empty segment counts as absent and drops the section and rest with it, so
145+
* `studioHomePath('')` is `/studio`, not `/studio//data`. Callers guard a
146+
* missing package themselves; the builder does not stand in for that check.
143147
*/
144148
export function studioPath(
145149
segment?: string | null,

0 commit comments

Comments
 (0)