Repository navigation
feat(studio): the top bar reads ‹ Back to app · APP · Studio; home icon, package switcher and Open app removed - #36519
Conversation
… and the Studio mark WIP: tests follow. Claude-Session: https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY Co-authored-by: Claude <noreply@anthropic.com>
…witcher carried Claude-Session: https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY Co-authored-by: Claude <noreply@anthropic.com>
…ack to app link Claude-Session: https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY Co-authored-by: Claude <noreply@anthropic.com>
…ce tests Claude-Session: https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY Co-authored-by: Claude <noreply@anthropic.com>
…ed PKG and waitFor, import act Claude-Session: https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY 维护者速读(席位记录 · head
|
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY Contract-review-claim: Taking the review (declaration face, TIER_DEFAULT): the size limb hands this pull to a human, and the hand-off owes a same-head record. |
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY Contract reviewServed-tier: Face: declaration. ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY Hand-off for approval: L1 ACCEPT at head |
Requested by Steve · project thread
Fixes #36501
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
StudioBackToApp(new) draws the top bar's left end: 「‹ Back to app」, the app's name, and the "Studio" mark. Where it goes, first match wins:ConsoleLayoutrecords the app page in view on every app route (utils/appReturnPage.ts, module memory, never browser storage); the link names that app and returns to that exact page, query and hash kept./apps/PACKAGEfor a one-app package,/apps/APPNAMEfor the first of several, the same addressing the removed Open app used).useHomePath(): the declared default app, else the single app, else the launcher — the same policy/resolves).Leaving asks first when a pillar holds unsaved work (
confirmLeavePillar, the header's existing guard).PackageSwitchercomponent), and the top-right Open app (StudioOpenApp.tsx, deleted).PackageSwitcher.tsxkeeps only the three helpers other code still imports (PACKAGE_LIST_TOAST_ID,STUDIO_LANDING_PATH,fetchInstalledPackageRow);offeredPackagesandSTUDIO_PKG_READONLY_WORDhad no other reader and went with it.engine.studio.backToApp(Back to app / 返回应用),engine.studio.backToAppTitle,engine.studio.backToAppTitleNoApp,engine.studio.mark; the three Open app keys are removed;engine.studio.app.willOpenAfterPublishnames 「Back to app」 instead of Open app.Tests
New
StudioDesignSurface.backToApp-36501.test.tsx(real surface + real metadata client over a fetch stub): came-from-app names that app and returns to its page with the query; an app other than the package's own is the one named; opened directly names the published app and lands on its home; several apps → the first, by name; no app → no name, to the landing; draft-only app counts as none; the home icon, the switcher and Open app are absent; narrow-bar classes (the name truncates, the link and the mark do not);studioBackTargetorder unit cases.pillarNavGuard: the Studio-home guard case became 「Back to app」 — dirty → confirm, cancel keeps the matrix edit, confirm leaves; clean → no prompt.New
fetchInstalledPackageRow-7881.test.ts: the objectui#7881 / objectui#7938 wire cases, asserted at the helper the Studio landing's Manage still reads.Updated (each asserted on a removed control):
homeLoop-12513,narrowHeader-12509,desktopHint-11795,entryReadsOnce-11797,noAppPackageLabel-12718,notFound-26708,readOnlyPosture-12453,kernelReadOnly-29567,packageLessFlows-11553,oneSurface-28572,autosaveSwitch-11232,packageListErrorPosture; e2e livestudio-customize-journey(read-only chip line) andstudio-object-designer(F1, the switcher's create-package refresh, removed).Deleted (their subject code is deleted):
openApp-34593(its kernel-row list CONTROL moved into the new file),narrowChip-12611,packageDeletionInference,manageSnapshotRefresh(the switcher's ownonManageChanged),packageLookupFailure,packageUserMessage(their wire cases moved tofetchInstalledPackageRow-7881).homeRecoveryRedirectsFollowDeclaration-7373: the Studio site now readsStudioBackToApp.tsx(where the header's no-app landing readsuseHomePath()); its behavioural pointer moves from the deletedpackageDeletionInferenceto the new back-link test.Six edited surface tests gained the module-top
import '@objectstack/lint'thatcheck:test-source-aliasasks of an edited file reaching the surface.Local gate readings (derived by
dispatch-gates.mjs --commands, HEAD a07beaa)37 derived
check:*/ self-test commands ran outside the lock: 35 at EXIT=0;check:test-source-aliaswas red (EXIT=1, the six files above) and is green after the fix (check-test-source-alias OK — ... the source reach judged 36 test file(s) changed since 9abc732132);check:type-check-debtexited 3 (its closure build waits on the shared verification lock and did not get it): NOT MEASURED locally, CI runs it.check:nul-bytesOK (27026 files, no raw control bytes).views/studio-design/, the 7373 scan,layout/, and the app-shelltype-check. The shared verification lock was held by a full dogfood battery for over 75 minutes, then by a ten-deep build queue; every acquisition this round timed out. The readings land in theos-dev-reportcomment on Studio 左上角改成「‹ 返回应用」加应用名;去掉首页图标、应用切换和右上角的「打开应用」(外壳专题第 12 项,设计板图 47) #36501 if a later acquisition succeeds; CI's Test UI and type-check runs are the verdict otherwise.Acceptance notes
?surface=, e.g. that object's list); 「Back to app」 lands on the app's first screen, as the card asks. Theapp-shellREADME paragraph on the way back is rewritten to match.engine.studio.pkg.switchTitle,pkg.heading,pkg.none,pkg.new,pkg.withPair,org.hint,pkg.manage) are left in place for a dead-key sweep;packageApp'sicon/branding(read only by the removed chip) are left as well.Verification
Read first:
StudioBackToApp.tsx(studioBackTarget, the three-way order),ConsoleLayout.tsx(the one recording effect), the header block inStudioDesignSurface.tsx.Two-minute check: open an object's list in an app, enter Studio from it, click 「‹ Back to app」 — you land on the same list; reload Studio and click again — you land on the package app's first screen.
🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmRY38EZf38Yy3zthbY