From dcb85bbbe2ba908d6aedffc9c75fa22a15e85a4a Mon Sep 17 00:00:00 2001 From: humuhumu33 <68450279+humuhumu33@users.noreply.github.com> Date: Mon, 16 Nov 2026 18:53:55 +0000 Subject: [PATCH] Theater: Prism apps played one after another, beside what plays next A new sidebar entry right after Library opens /theater: one app on a 16:9 stage, its name, maker, bookmark, share and builder actions, a quiet details card, and an up next rail (All, Featured, My apps, Bookmarked) on the floor's own pill track. A visitor's app runs through the build preview's run state and sandbox; an unpublished featured app carries its idea to Home's box. Keys f, t and Shift N; the address names the app on the stage. Registered as FA-92 with its scenario, theaterBoundary in the Foundry specification, five look statements in FoundryExperience, and the Theater feature, surface and Watch apps journey in app/product.json. Planted defect (Theater dropped from the sidebar) fails theater_fa_92. Upstream pages/apps.tsx, replaced whole at build, is reduced to its export so non-Prism lines shrink. Co-Authored-By: Claude Opus 5.5 --- CONFORMANCE.md | 6 + app/product.json | 40 ++ app/src/Compliance.lex.tex | 2 +- app/src/Design.lex.tex | 294 ++++++++++ app/src/Features.lex.tex | 28 + app/src/FoundrySpecification.lex.tex | 7 + app/src/Users.lex.tex | 10 +- .../conformance/tests/sidebar_tool_access.rs | 62 +++ features/suites/theater.feature | 11 + model/ids.toml | 6 + .../experience/src/FoundryExperience.lex.tex | 35 ++ studio/tools/shell_ui.test.mjs | 2 +- studio/vendor/dyad/VENDORED.md | 1 + studio/vendor/dyad/hologram.screens.mjs | 12 + .../dyad/hologram.screens/AppSidebar.tsx | 3 + .../hologram.screens/FeaturedAppShowcase.tsx | 233 +++++++- studio/vendor/dyad/src/pages/apps.tsx | 502 +----------------- verification/theater.md | 52 ++ 18 files changed, 797 insertions(+), 509 deletions(-) create mode 100644 features/suites/theater.feature create mode 100644 verification/theater.md diff --git a/CONFORMANCE.md b/CONFORMANCE.md index c35e602f..1c67ddda 100644 --- a/CONFORMANCE.md +++ b/CONFORMANCE.md @@ -552,6 +552,12 @@ model does not sanction. | `TL-27` | `build` | The time an app or a site was last seen never moves back | | `TL-28` | `build` | The device never keeps more than 256 apps | +## theater + +| ID | Level | Statement | +| --- | --- | --- | +| `FA-92` | `build` | Theater, right after Library in the sidebar, plays Prism apps one after another on a stage beside an up next rail, under the build preview's own sandbox, with the floor's catalogue, covers and bookmarks, and its look is the experience spec's five Theater statements | + ## verified-host-bundle | ID | Level | Statement | diff --git a/app/product.json b/app/product.json index e7e9237d..7d697719 100644 --- a/app/product.json +++ b/app/product.json @@ -962,6 +962,21 @@ ], "acceptance": [] }, + { + "name": "Theater", + "text": "Prism apps play one after another on a stage beside an up next rail, each run as the build preview runs it.", + "ids": [ + "FA-92" + ], + "calls": [ + "FoundrySpecification::theaterBoundary" + ], + "registry": [], + "components": [ + "studio" + ], + "acceptance": [] + }, { "name": "Release integration", "text": "Current main integrates every protocol, only superseded pull request runs are cancelled, and every main and release run keeps its full acceptance.", @@ -1020,6 +1035,16 @@ "Chat" ] }, + { + "name": "Watch apps", + "stakeholder": "App builder", + "outcome": "Prism apps are played one after another, and the one worth changing is opened in the builder.", + "steps": [ + "Theater", + "App details", + "Chat" + ] + }, { "name": "Shape the studio", "stakeholder": "App builder", @@ -1686,6 +1711,21 @@ ], "on": "studio" }, + { + "name": "Theater", + "stakeholder": "App builder", + "text": "Prism apps play one after another on a stage, with what plays next beside it, and one is taken to the builder.", + "requires": [ + "Theater", + "Project store", + "Versions and preview", + "Host boundary" + ], + "renderer": [ + "components/FeaturedAppShowcase.tsx" + ], + "on": "studio" + }, { "name": "Settings", "stakeholder": "App builder", diff --git a/app/src/Compliance.lex.tex b/app/src/Compliance.lex.tex index 6c80d32a..188e537e 100644 --- a/app/src/Compliance.lex.tex +++ b/app/src/Compliance.lex.tex @@ -50,7 +50,7 @@ name: obligations, parameters: [], result: (List Obligation), - body: (cons (record Obligation {index := 0, standard := "ISO/IEC/IEEE 42010:2022", subject := "Architecture description", text := "Stakeholders, concerns, viewpoints and views are declared and their references resolve.", evidence := (cons "Architecture::architectureDescriptionHolds" (nil String))}) (cons (record Obligation {index := 1, standard := "ISO/PAS 19450:2015 and OMG UML 2.5.1", subject := "Design views", text := "Building an app from an idea is an OPM view; every journey is a UML sequence along the data flows, and the build-phase machine is the kernel's own rules (10 views).", evidence := (cons "Design::viewOpmBuild" (cons "Design::viewUmlComponents" (cons "Design::viewUmlIdeaToAProvedApp" (cons "Design::viewUmlPublishAnApp" (cons "Design::viewUmlReturnToAnApp" (cons "Design::viewUmlShapeTheStudio" (cons "Design::viewUmlUseAPublishedApp" (cons "Design::viewUmlReplayAHolo" (cons "Design::viewUmlChangeFoundry" (cons "Design::viewUmlPhases" (nil String)))))))))))}) (cons (record Obligation {index := 2, standard := "ISO 9241-11:2018", subject := "Context of use", text := "Every stakeholder is a user group with a goal; every goal is a journey whose tasks are screens, each accepted (7 goals, 18 tasks).", evidence := (cons "Users::everyGoalHasItsUser" (cons "Users::everyTaskServesAGoal" (cons "Users::everyTaskIsAccepted" (cons "Users::everyMeasureNamesAGoal" (nil String)))))}) (cons (record Obligation {index := 3, standard := "ISO/IEC 25010:2023", subject := "Product quality", text := "All 9 characteristics and 40 subcharacteristics are declared; each is stated by a requirement with a measure or listed open (30 open); every budget and experience rule of the kernel is a measure whose threshold is the kernel's term.", evidence := (cons "Quality::qualityModelHolds" (cons "Quality::openSubcharacteristicCount" (nil String)))}) (cons (record Obligation {index := 4, standard := "ISO/IEC 27034-1:2011, ISO/IEC 27005:2022 and STRIDE per element", subject := "Application security and risk", text := "Every threat has a STRIDE category and a mapped control with evidence, or an accepted risk with its rationale; every category STRIDE per element opens on the 42 components and data flows is answered by a threat or stated open (132 open).", evidence := (cons "Security::strideEnumerated" (cons "Security::strideOpenCount" (cons "Security::controlSet" (nil String))))}) (cons (record Obligation {index := 5, standard := "Prism R4 (afflom/me app/specs/r4)", subject := "Own language and reasoning", text := "Every chat turn is decided by R4 before its request is made and before its answer is shown; Foundry grants no route, so only its own model answers.", evidence := (cons "PrismR4Proofs::r4Inv001Holds" (cons "PrismR4Proofs::r4Inv002Holds" (cons "PrismR4Proofs::r4Inv003Holds" (cons "PrismR4Proofs::r4Inv004Holds" (cons "PrismR4Proofs::r4Inv005Holds" (cons "PrismR4Proofs::r4Inv006Holds" (cons "PrismR4Proofs::r4Inv007Holds" (nil String))))))))}) (cons (record Obligation {index := 6, standard := "Prism Foundry specification", subject := "authority", text := "Every product-owned behavior has exactly one canonical semantic owner. An imported behavior names its external authority and an independently checked typed boundary. Authoring front ends and generated projections cannot independently redefine behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 7, standard := "Prism Foundry specification", subject := "features", text := "Features declare versioned identity, vocabulary, inputs, outputs, state, events, errors, effects, dependencies, conflicts, projection targets, resource budgets, accessibility and applicable quality obligations.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 8, standard := "Prism Foundry specification", subject := "routing", text := "A replaceable semantic router proposes ranked features, dependencies, ambiguities and unresolved constraints from typed intent. Held-out relevance, dependency completeness, abstention and latency measurements qualify routing; proposal confidence grants no acceptance authority.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 9, standard := "Prism Foundry specification", subject := "composition", text := "Prism independently admits interfaces, dependency closure, conflicts, permissions, budgets and evidence obligations. Both the Foundry application and each generated application have separate finite declared release scopes.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 10, standard := "Prism Foundry specification", subject := "projection", text := "Product behavior is generated from the accepted model or crosses a declared typed adapter. Independent runtime comparison and qualified compiler evidence bind execution to the exact accepted semantics. An unsupported channel cannot report empty success as capability fulfillment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 11, standard := "Prism Foundry specification", subject := "proofScope", text := "Every assurance claim binds its property, model, source, executable, toolchain, oracle and dependency identities. Specification proofs, projection preservation, runtime acceptance, measurements and live release acceptance remain separate claims.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 12, standard := "Prism Foundry specification", subject := "effects", text := "Network, inference, storage, preview, build and publication effects require explicit permission, transmitted-data disclosure, provider and credential ownership, timeout, malformed-response, revocation and offline behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 13, standard := "Prism Foundry specification", subject := "identity", text := "An identity includes object kind, canonicalization profile, algorithm, digest and version. Recompute identities independently and retain transformation relationships among model, source, executable, assets, evidence, archive and deployment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 14, standard := "Prism Foundry specification", subject := "packaging", text := "A complete locked production dependency closure reproduces the accepted artifacts. Independently validate the archive and reconstruction. Dependency or manifest mutation prevents promotion.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 15, standard := "Prism Foundry specification", subject := "journeys", text := "Declared creation, editing, preview, verification, restore, cancellation, recovery and publication journeys have positive and negative runtime acceptance. State, view, effects, diagnostics, focus and publication decisions share an authoritative command boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 16, standard := "Prism Foundry specification", subject := "quality", text := "Functional correctness does not imply accessibility, audiovisual fidelity, usability or performance. Each declared quality requirement has an appropriate independent oracle, measurement or human assessment and a threshold fixed before acceptance.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 17, standard := "Prism Foundry specification", subject := "release", text := "The release receipt binds the declared scope to exact models, source, toolchain, dependencies, artifacts, evidence and destination. Independent retrieval and live replay establish deployment acceptance; a successful process exit alone does not.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 18, standard := "Prism Foundry specification", subject := "representation", text := "Exact byte compression retains original-object identity separately from representation, decoder and basis identities. Self-contained and conditional-basis accounting are distinct. Missing bases fail explicitly. Application optimization requires its own behavioral-preservation contract.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 19, standard := "Prism Foundry specification", subject := "ownership", text := "Admit and reserve work before executing effects. Retain achieved state, outstanding owners, spent work, unused reservations and resumable obligations after failure or cancellation. Semantic work, scheduling reservations and physical resource measurements remain distinct.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 20, standard := "Prism Foundry specification", subject := "factory", text := "Use the qualified PrismPM factory for dependency-scoped obligations. Bind declared input closures, prerequisite identities, commands, environments, policy and oracles. Materialized closures reject undeclared inputs. Scheduling weights affect order only; receipt reuse never weakens the complete acceptance boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 21, standard := "SPDX MIT OR Apache-2.0", subject := "Licensing", text := "Foundry and its model are offered under MIT OR Apache-2.0.", evidence := (cons "ForgeKernel::application" (nil String))}) (nil Obligation))))))))))))))))))))))) + body: (cons (record Obligation {index := 0, standard := "ISO/IEC/IEEE 42010:2022", subject := "Architecture description", text := "Stakeholders, concerns, viewpoints and views are declared and their references resolve.", evidence := (cons "Architecture::architectureDescriptionHolds" (nil String))}) (cons (record Obligation {index := 1, standard := "ISO/PAS 19450:2015 and OMG UML 2.5.1", subject := "Design views", text := "Building an app from an idea is an OPM view; every journey is a UML sequence along the data flows, and the build-phase machine is the kernel's own rules (11 views).", evidence := (cons "Design::viewOpmBuild" (cons "Design::viewUmlComponents" (cons "Design::viewUmlIdeaToAProvedApp" (cons "Design::viewUmlPublishAnApp" (cons "Design::viewUmlReturnToAnApp" (cons "Design::viewUmlWatchApps" (cons "Design::viewUmlShapeTheStudio" (cons "Design::viewUmlUseAPublishedApp" (cons "Design::viewUmlReplayAHolo" (cons "Design::viewUmlChangeFoundry" (cons "Design::viewUmlPhases" (nil String))))))))))))}) (cons (record Obligation {index := 2, standard := "ISO 9241-11:2018", subject := "Context of use", text := "Every stakeholder is a user group with a goal; every goal is a journey whose tasks are screens, each accepted (8 goals, 21 tasks).", evidence := (cons "Users::everyGoalHasItsUser" (cons "Users::everyTaskServesAGoal" (cons "Users::everyTaskIsAccepted" (cons "Users::everyMeasureNamesAGoal" (nil String)))))}) (cons (record Obligation {index := 3, standard := "ISO/IEC 25010:2023", subject := "Product quality", text := "All 9 characteristics and 40 subcharacteristics are declared; each is stated by a requirement with a measure or listed open (30 open); every budget and experience rule of the kernel is a measure whose threshold is the kernel's term.", evidence := (cons "Quality::qualityModelHolds" (cons "Quality::openSubcharacteristicCount" (nil String)))}) (cons (record Obligation {index := 4, standard := "ISO/IEC 27034-1:2011, ISO/IEC 27005:2022 and STRIDE per element", subject := "Application security and risk", text := "Every threat has a STRIDE category and a mapped control with evidence, or an accepted risk with its rationale; every category STRIDE per element opens on the 42 components and data flows is answered by a threat or stated open (132 open).", evidence := (cons "Security::strideEnumerated" (cons "Security::strideOpenCount" (cons "Security::controlSet" (nil String))))}) (cons (record Obligation {index := 5, standard := "Prism R4 (afflom/me app/specs/r4)", subject := "Own language and reasoning", text := "Every chat turn is decided by R4 before its request is made and before its answer is shown; Foundry grants no route, so only its own model answers.", evidence := (cons "PrismR4Proofs::r4Inv001Holds" (cons "PrismR4Proofs::r4Inv002Holds" (cons "PrismR4Proofs::r4Inv003Holds" (cons "PrismR4Proofs::r4Inv004Holds" (cons "PrismR4Proofs::r4Inv005Holds" (cons "PrismR4Proofs::r4Inv006Holds" (cons "PrismR4Proofs::r4Inv007Holds" (nil String))))))))}) (cons (record Obligation {index := 6, standard := "Prism Foundry specification", subject := "authority", text := "Every product-owned behavior has exactly one canonical semantic owner. An imported behavior names its external authority and an independently checked typed boundary. Authoring front ends and generated projections cannot independently redefine behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 7, standard := "Prism Foundry specification", subject := "features", text := "Features declare versioned identity, vocabulary, inputs, outputs, state, events, errors, effects, dependencies, conflicts, projection targets, resource budgets, accessibility and applicable quality obligations.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 8, standard := "Prism Foundry specification", subject := "routing", text := "A replaceable semantic router proposes ranked features, dependencies, ambiguities and unresolved constraints from typed intent. Held-out relevance, dependency completeness, abstention and latency measurements qualify routing; proposal confidence grants no acceptance authority.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 9, standard := "Prism Foundry specification", subject := "composition", text := "Prism independently admits interfaces, dependency closure, conflicts, permissions, budgets and evidence obligations. Both the Foundry application and each generated application have separate finite declared release scopes.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 10, standard := "Prism Foundry specification", subject := "projection", text := "Product behavior is generated from the accepted model or crosses a declared typed adapter. Independent runtime comparison and qualified compiler evidence bind execution to the exact accepted semantics. An unsupported channel cannot report empty success as capability fulfillment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 11, standard := "Prism Foundry specification", subject := "proofScope", text := "Every assurance claim binds its property, model, source, executable, toolchain, oracle and dependency identities. Specification proofs, projection preservation, runtime acceptance, measurements and live release acceptance remain separate claims.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 12, standard := "Prism Foundry specification", subject := "effects", text := "Network, inference, storage, preview, build and publication effects require explicit permission, transmitted-data disclosure, provider and credential ownership, timeout, malformed-response, revocation and offline behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 13, standard := "Prism Foundry specification", subject := "identity", text := "An identity includes object kind, canonicalization profile, algorithm, digest and version. Recompute identities independently and retain transformation relationships among model, source, executable, assets, evidence, archive and deployment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 14, standard := "Prism Foundry specification", subject := "packaging", text := "A complete locked production dependency closure reproduces the accepted artifacts. Independently validate the archive and reconstruction. Dependency or manifest mutation prevents promotion.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 15, standard := "Prism Foundry specification", subject := "journeys", text := "Declared creation, editing, preview, verification, restore, cancellation, recovery and publication journeys have positive and negative runtime acceptance. State, view, effects, diagnostics, focus and publication decisions share an authoritative command boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 16, standard := "Prism Foundry specification", subject := "quality", text := "Functional correctness does not imply accessibility, audiovisual fidelity, usability or performance. Each declared quality requirement has an appropriate independent oracle, measurement or human assessment and a threshold fixed before acceptance.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 17, standard := "Prism Foundry specification", subject := "release", text := "The release receipt binds the declared scope to exact models, source, toolchain, dependencies, artifacts, evidence and destination. Independent retrieval and live replay establish deployment acceptance; a successful process exit alone does not.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 18, standard := "Prism Foundry specification", subject := "representation", text := "Exact byte compression retains original-object identity separately from representation, decoder and basis identities. Self-contained and conditional-basis accounting are distinct. Missing bases fail explicitly. Application optimization requires its own behavioral-preservation contract.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 19, standard := "Prism Foundry specification", subject := "ownership", text := "Admit and reserve work before executing effects. Retain achieved state, outstanding owners, spent work, unused reservations and resumable obligations after failure or cancellation. Semantic work, scheduling reservations and physical resource measurements remain distinct.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 20, standard := "Prism Foundry specification", subject := "factory", text := "Use the qualified PrismPM factory for dependency-scoped obligations. Bind declared input closures, prerequisite identities, commands, environments, policy and oracles. Materialized closures reject undeclared inputs. Scheduling weights affect order only; receipt reuse never weakens the complete acceptance boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 21, standard := "SPDX MIT OR Apache-2.0", subject := "Licensing", text := "Foundry and its model are offered under MIT OR Apache-2.0.", evidence := (cons "ForgeKernel::application" (nil String))}) (nil Obligation))))))))))))))))))))))) } definition{ diff --git a/app/src/Design.lex.tex b/app/src/Design.lex.tex index 89ab1546..f69ad47a 100644 --- a/app/src/Design.lex.tex +++ b/app/src/Design.lex.tex @@ -419,6 +419,13 @@ body: (record Foundation.Arch::SystemProcess {owner := "Architecture::componentStudio"}) } +definition{ + name: processShowTheater, + parameters: [], + result: Foundation.Arch::SystemProcess, + body: (record Foundation.Arch::SystemProcess {owner := "Architecture::componentStudio"}) +} + definition{ name: processShowSettings, parameters: [], @@ -559,6 +566,13 @@ body: (record Foundation.Arch::DesignView {title := "Return to an app", viewpoint := "Architecture::viewpointAppBuilderWholeModelFromOneIdea", diagram := (ctor Foundation.Arch::DesignDiagram.umlSequence)}) } +definition{ + name: viewUmlWatchApps, + parameters: [], + result: Foundation.Arch::DesignView, + body: (record Foundation.Arch::DesignView {title := "Watch apps", viewpoint := "Architecture::viewpointAppBuilderWholeModelFromOneIdea", diagram := (ctor Foundation.Arch::DesignDiagram.umlSequence)}) +} + definition{ name: viewUmlShapeTheStudio, parameters: [], @@ -1273,6 +1287,48 @@ body: (record Foundation.Arch::UmlLifeline {view := "Design::viewUmlReturnToAnApp", component := "Architecture::componentPrismBuilder", order := 5}) } +definition{ + name: seqWatchAppsBrowser, + parameters: [], + result: Foundation.Arch::UmlLifeline, + body: (record Foundation.Arch::UmlLifeline {view := "Design::viewUmlWatchApps", component := "Architecture::componentBrowser", order := 0}) +} + +definition{ + name: seqWatchAppsStudio, + parameters: [], + result: Foundation.Arch::UmlLifeline, + body: (record Foundation.Arch::UmlLifeline {view := "Design::viewUmlWatchApps", component := "Architecture::componentStudio", order := 1}) +} + +definition{ + name: seqWatchAppsDeviceStore, + parameters: [], + result: Foundation.Arch::UmlLifeline, + body: (record Foundation.Arch::UmlLifeline {view := "Design::viewUmlWatchApps", component := "Architecture::componentDeviceStore", order := 2}) +} + +definition{ + name: seqWatchAppsFoundryKernelGuest, + parameters: [], + result: Foundation.Arch::UmlLifeline, + body: (record Foundation.Arch::UmlLifeline {view := "Design::viewUmlWatchApps", component := "Architecture::componentFoundryKernelGuest", order := 3}) +} + +definition{ + name: seqWatchAppsModelInPrism, + parameters: [], + result: Foundation.Arch::UmlLifeline, + body: (record Foundation.Arch::UmlLifeline {view := "Design::viewUmlWatchApps", component := "Architecture::componentModelInPrism", order := 4}) +} + +definition{ + name: seqWatchAppsPrismBuilder, + parameters: [], + result: Foundation.Arch::UmlLifeline, + body: (record Foundation.Arch::UmlLifeline {view := "Design::viewUmlWatchApps", component := "Architecture::componentPrismBuilder", order := 5}) +} + definition{ name: seqShapeTheStudioBrowser, parameters: [], @@ -2533,6 +2589,244 @@ body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlReturnToAnApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 35, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processLibrariesAndSettingsInDeviceStore"}) } +definition{ + name: msgWatchApps0, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 0, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowTheater"}) +} + +definition{ + name: msgWatchApps1, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 1, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowTheater"}) +} + +definition{ + name: msgWatchApps2, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 2, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processProjectStoreInDeviceStore"}) +} + +definition{ + name: msgWatchApps3, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 3, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processProjectStoreInDeviceStore"}) +} + +definition{ + name: msgWatchApps4, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 4, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processVersionsAndPreviewInDeviceStore"}) +} + +definition{ + name: msgWatchApps5, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 5, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processVersionsAndPreviewInDeviceStore"}) +} + +definition{ + name: msgWatchApps6, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 6, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processVersionsAndPreviewInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps7, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 7, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processVersionsAndPreviewInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps8, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 8, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowAppDetails"}) +} + +definition{ + name: msgWatchApps9, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 9, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowAppDetails"}) +} + +definition{ + name: msgWatchApps10, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 10, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowChat"}) +} + +definition{ + name: msgWatchApps11, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 11, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowChat"}) +} + +definition{ + name: msgWatchApps12, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 12, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processChatInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps13, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 13, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processChatInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps14, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 14, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processChatInDeviceStore"}) +} + +definition{ + name: msgWatchApps15, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 15, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processChatInDeviceStore"}) +} + +definition{ + name: msgWatchApps16, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 16, source := "Architecture::componentStudio", target := "Architecture::componentModelInPrism", process := "Design::processOwnLanguageAndReasoningInModelInPrism"}) +} + +definition{ + name: msgWatchApps17, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 17, source := "Architecture::componentModelInPrism", target := "Architecture::componentStudio", process := "Design::processOwnLanguageAndReasoningInModelInPrism"}) +} + +definition{ + name: msgWatchApps18, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 18, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processIdeaRoutingInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps19, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 19, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processIdeaRoutingInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps20, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 20, source := "Architecture::componentStudio", target := "Architecture::componentModelInPrism", process := "Design::processIdeaRoutingInModelInPrism"}) +} + +definition{ + name: msgWatchApps21, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 21, source := "Architecture::componentModelInPrism", target := "Architecture::componentStudio", process := "Design::processIdeaRoutingInModelInPrism"}) +} + +definition{ + name: msgWatchApps22, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 22, source := "Architecture::componentStudio", target := "Architecture::componentPrismBuilder", process := "Design::processFullModelExtrapolationInPrismBuilder"}) +} + +definition{ + name: msgWatchApps23, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 23, source := "Architecture::componentPrismBuilder", target := "Architecture::componentStudio", process := "Design::processFullModelExtrapolationInPrismBuilder"}) +} + +definition{ + name: msgWatchApps24, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 24, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processCanonicalModelInDeviceStore"}) +} + +definition{ + name: msgWatchApps25, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 25, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processCanonicalModelInDeviceStore"}) +} + +definition{ + name: msgWatchApps26, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 26, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processFeatureCompositionInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps27, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 27, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processFeatureCompositionInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps28, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 28, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processBuildPhaseInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps29, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 29, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processBuildPhaseInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps30, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 30, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processExperienceRulesInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps31, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 31, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processExperienceRulesInFoundryKernelGuest"}) +} + +definition{ + name: msgWatchApps32, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 32, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processLibrariesAndSettingsInDeviceStore"}) +} + +definition{ + name: msgWatchApps33, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlWatchApps", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 33, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processLibrariesAndSettingsInDeviceStore"}) +} + definition{ name: msgShapeTheStudio0, parameters: [], diff --git a/app/src/Features.lex.tex b/app/src/Features.lex.tex index f89e6f33..58991325 100644 --- a/app/src/Features.lex.tex +++ b/app/src/Features.lex.tex @@ -1417,6 +1417,13 @@ body: "crates/conformance/tests/sidebar_tool_access.rs::sidebar_tool_access_fa_68" } +definition{ + name: testFA92, + parameters: [], + result: String, + body: "crates/conformance/tests/sidebar_tool_access.rs::theater_fa_92" +} + definition{ name: testFA24, parameters: [], @@ -1690,6 +1697,13 @@ body: (record Foundation.Arch::Feature {statement := "Windows and tools (FA-57, FA-68): Windows coordinate focus and interests, and Foundry's tools stay reachable on every width.", calls := (cons "FoundrySpecification::sidebarToolAccessBoundary" (cons "FoundrySpecification::windowCoordinationBoundary" (nil String))), acceptance := (cons "Features::testFA57" (cons "Features::testFA68" (nil String)))}) } +definition{ + name: featureTheater, + parameters: [], + result: Foundation.Arch::Feature, + body: (record Foundation.Arch::Feature {statement := "Theater (FA-92): Prism apps play one after another on a stage beside an up next rail, each run as the build preview runs it.", calls := (cons "FoundrySpecification::theaterBoundary" (nil String)), acceptance := (cons "Features::testFA92" (nil String))}) +} + definition{ name: featureReleaseIntegration, parameters: [], @@ -1767,6 +1781,13 @@ body: (record Foundation.Arch::Feature {statement := "Library screen, for the app builder: Prompts, themes and templates kept on this device for the next app.", calls := (cons "Features::featureLibrariesAndSettings" (cons "Features::featureProjectStore" (cons "Features::featureHostBoundary" (nil String)))), acceptance := (cons "Features::featureLibrariesAndSettings" (cons "Features::featureProjectStore" (cons "Features::featureHostBoundary" (nil String))))}) } +definition{ + name: screenTheater, + parameters: [], + result: Foundation.Arch::Feature, + body: (record Foundation.Arch::Feature {statement := "Theater screen, for the app builder: Prism apps play one after another on a stage, with what plays next beside it, and one is taken to the builder.", calls := (cons "Features::featureTheater" (cons "Features::featureProjectStore" (cons "Features::featureVersionsAndPreview" (cons "Features::featureHostBoundary" (nil String))))), acceptance := (cons "Features::featureTheater" (cons "Features::featureProjectStore" (cons "Features::featureVersionsAndPreview" (cons "Features::featureHostBoundary" (nil String)))))}) +} + definition{ name: screenSettings, parameters: [], @@ -1816,6 +1837,13 @@ body: (record Foundation.Arch::Journey {actor := "Architecture::stakeholderAppBuilder", steps := (cons "Features::screenApps" (cons "Features::screenAppDetails" (cons "Features::screenCode" (cons "Features::screenChat" (nil String)))))}) } +definition{ + name: journeyWatchApps, + parameters: [], + result: Foundation.Arch::Journey, + body: (record Foundation.Arch::Journey {actor := "Architecture::stakeholderAppBuilder", steps := (cons "Features::screenTheater" (cons "Features::screenAppDetails" (cons "Features::screenChat" (nil String))))}) +} + definition{ name: journeyShapeTheStudio, parameters: [], diff --git a/app/src/FoundrySpecification.lex.tex b/app/src/FoundrySpecification.lex.tex index f0f9551d..085a77a0 100644 --- a/app/src/FoundrySpecification.lex.tex +++ b/app/src/FoundrySpecification.lex.tex @@ -1143,6 +1143,13 @@ body: "Foundry preview permission management, interactive application opening and application discovery entries are ordinary controls on the Settings page, in its first card, titled Tools. They are not in the sidebar on any page, which holds only navigation. They do not use fixed viewport positioning or cover the composer, auxiliary menu, send control or navigation. One page-owned dock retains the original control nodes and listeners through renderer page replacement, resizing and route navigation. The visible Settings page owns the dock; on any other page the controls remain detached until Settings is shown, reachable from the sidebar's Settings entry. The dock does not grant any application, preview, network, storage or audio effect. Native tool dialogs retain their existing disclosure, close, focus and keyboard behavior. A native modal owns pointer events even when an imported renderer drawer temporarily disables pointer events on the document body; this presentation rule changes no approval predicate or permission result. Repeated DOM reconciliation cannot duplicate entries or observers, and resize, sidebar mutation and CSS animation or transition completion schedule at most one pending reconciliation. Acceptance measures actual pointer hit targets and activates each original tool on the Settings page at desktop and mobile sizes, including repeated route lifetimes, and finds no tool in the sidebar." } +definition{ + name: theaterBoundary, + parameters: [], + result: String, + body: "Theater is a navigation item right after Library, always shown. It plays one Prism app at a time on a stage and lists the rest beside it to play next: the featured apps every visitor is shown and the apps this browser holds, with the covers and bookmarks Home's floor already keeps. A visitor's app is started through the same run state as the build preview and shown at the address that state answers, under exactly the preview's sandbox; Theater grants no application, preview, network, storage or audio effect of its own. A featured app that is not published is never run: its idea is placed in Home's box and nothing is sent. The address names the app on the stage. Its look is the experience specification's five Theater statements." +} + definition{ name: liveMainIntegrationBoundary, parameters: [], diff --git a/app/src/Users.lex.tex b/app/src/Users.lex.tex index c59be27a..bbd56226 100644 --- a/app/src/Users.lex.tex +++ b/app/src/Users.lex.tex @@ -25,14 +25,14 @@ name: goals, parameters: [], result: (List Foundation.Experience.V1.Model::Goal), - body: (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyIdeaToAProvedApp), outcome := "An idea typed on Home becomes a previewed app whose every facet is defined and whose theorems Lean proved."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyPublishAnApp), outcome := "A proved app is published as a holo under its address."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyReturnToAnApp), outcome := "An app made earlier is found, opened, read and changed."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyShapeTheStudio), outcome := "Prompts, themes and settings are kept for the next app."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 1, journey := (Features::journeyUseAPublishedApp), outcome := "A published app opens and runs from its address."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 2, journey := (Features::journeyReplayAHolo), outcome := "The holo's answers and proofs are checked before an answer is trusted."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 3, journey := (Features::journeyChangeFoundry), outcome := "A change is checked once, only where it reaches, and Foundry's model stays complete."}) (nil Foundation.Experience.V1.Model::Goal)))))))) + body: (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyIdeaToAProvedApp), outcome := "An idea typed on Home becomes a previewed app whose every facet is defined and whose theorems Lean proved."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyPublishAnApp), outcome := "A proved app is published as a holo under its address."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyReturnToAnApp), outcome := "An app made earlier is found, opened, read and changed."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyWatchApps), outcome := "Prism apps are played one after another, and the one worth changing is opened in the builder."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 0, journey := (Features::journeyShapeTheStudio), outcome := "Prompts, themes and settings are kept for the next app."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 1, journey := (Features::journeyUseAPublishedApp), outcome := "A published app opens and runs from its address."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 2, journey := (Features::journeyReplayAHolo), outcome := "The holo's answers and proofs are checked before an answer is trusted."}) (cons (record Foundation.Experience.V1.Model::Goal {user := 3, journey := (Features::journeyChangeFoundry), outcome := "A change is checked once, only where it reaches, and Foundry's model stays complete."}) (nil Foundation.Experience.V1.Model::Goal))))))))) } definition{ name: tasks, parameters: [], result: (List Foundation.Experience.V1.Model::Task), - body: (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 0, feature := (Features::screenStudioShell)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 1, feature := (Features::screenHome)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 2, feature := (Features::screenChat)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 3, feature := (Features::screenPreview)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 4, feature := (Features::screenProofStatus)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 1, order := 0, feature := (Features::screenChat)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 1, order := 1, feature := (Features::screenProofStatus)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 1, order := 2, feature := (Features::screenPublish)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 0, feature := (Features::screenApps)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 1, feature := (Features::screenAppDetails)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 2, feature := (Features::screenCode)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 3, feature := (Features::screenChat)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 3, order := 0, feature := (Features::screenSettings)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 3, order := 1, feature := (Features::screenLibrary)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 4, order := 0, feature := (Features::screenHoloViewer)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 5, order := 0, feature := (Features::screenHoloViewer)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 5, order := 1, feature := (Features::screenReplay)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 6, order := 0, feature := (Features::screenChecks)}) (nil Foundation.Experience.V1.Model::Task))))))))))))))))))) + body: (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 0, feature := (Features::screenStudioShell)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 1, feature := (Features::screenHome)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 2, feature := (Features::screenChat)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 3, feature := (Features::screenPreview)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 0, order := 4, feature := (Features::screenProofStatus)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 1, order := 0, feature := (Features::screenChat)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 1, order := 1, feature := (Features::screenProofStatus)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 1, order := 2, feature := (Features::screenPublish)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 0, feature := (Features::screenApps)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 1, feature := (Features::screenAppDetails)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 2, feature := (Features::screenCode)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 2, order := 3, feature := (Features::screenChat)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 3, order := 0, feature := (Features::screenTheater)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 3, order := 1, feature := (Features::screenAppDetails)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 3, order := 2, feature := (Features::screenChat)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 4, order := 0, feature := (Features::screenSettings)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 4, order := 1, feature := (Features::screenLibrary)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 5, order := 0, feature := (Features::screenHoloViewer)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 6, order := 0, feature := (Features::screenHoloViewer)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 6, order := 1, feature := (Features::screenReplay)}) (cons (record Foundation.Experience.V1.Model::Task {goal := 7, order := 0, feature := (Features::screenChecks)}) (nil Foundation.Experience.V1.Model::Task)))))))))))))))))))))) } definition{ @@ -46,7 +46,7 @@ name: measures, parameters: [], result: (List Foundation.Experience.V1.Model::UsabilityMeasure), - body: (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 0, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 47), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 0, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 5), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 0, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 1, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 25), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 1, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 3), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 1, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 2, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 25), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 2, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 4), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 2, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 3, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 8), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 3, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 2), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 3, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 4, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 6), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 4, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 1), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 4, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 5, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 9), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 5, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 2), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 5, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 6, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 6), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 6, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 1), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 6, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (nil Foundation.Experience.V1.Model::UsabilityMeasure)))))))))))))))))))))) + body: (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 0, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 47), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 0, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 5), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 0, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 1, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 25), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 1, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 3), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 1, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 2, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 25), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 2, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 4), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 2, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 3, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 21), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 3, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 3), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 3, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 4, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 8), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 4, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 2), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 4, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 5, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 6), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 5, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 1), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 5, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 6, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 9), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 6, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 2), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 6, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 7, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.effectiveness), observed := (ctor Option.some [Nat] 6), method := "acceptance rows of the goal's tasks: each is a feature or a theorem the screen is accepted by"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 7, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.efficiency), observed := (ctor Option.some [Nat] 1), method := "screens the goal takes, from its journey's steps"}) (cons (record Foundation.Experience.V1.Model::UsabilityMeasure {goal := 7, outcome := (ctor Foundation.Experience.V1.Model::UsabilityOutcome.satisfaction), observed := (ctor Option.none [Nat]), method := "open: no instrument in the model measures it"}) (nil Foundation.Experience.V1.Model::UsabilityMeasure))))))))))))))))))))))))) } theorem{ @@ -59,7 +59,7 @@ theorem{ name: everyTaskServesAGoal, parameters: [], - statement: ((Foundation.Experience.V1.Model::tasksOfGoals (tasks) 7) = true), + statement: ((Foundation.Experience.V1.Model::tasksOfGoals (tasks) 8) = true), proof: decide{} } @@ -73,7 +73,7 @@ theorem{ name: everyMeasureNamesAGoal, parameters: [], - statement: ((Foundation.Experience.V1.Model::measuresOfGoals (measures) 7) = true), + statement: ((Foundation.Experience.V1.Model::measuresOfGoals (measures) 8) = true), proof: decide{} } \end{semanticmodule} diff --git a/crates/conformance/tests/sidebar_tool_access.rs b/crates/conformance/tests/sidebar_tool_access.rs index d7accf63..c428d59f 100644 --- a/crates/conformance/tests/sidebar_tool_access.rs +++ b/crates/conformance/tests/sidebar_tool_access.rs @@ -34,3 +34,65 @@ fn sidebar_tool_access_fa_68() { ); } } + +/// `FA-92`: Theater, right after Library in the sidebar, plays Prism apps one after another on a stage beside an up next rail, under the build preview's own sandbox, with the floor's catalogue, covers and bookmarks, and its look is the experience spec's five Theater statements +#[test] +fn theater_fa_92() { + // The screen is read as built: the sidebar, the router patch and the floor's module that holds the stage. + let spec = include_str!("../../../studio/experience/src/FoundryExperience.lex.tex"); + let sidebar = include_str!("../../../studio/vendor/dyad/hologram.screens/AppSidebar.tsx"); + let screens = include_str!("../../../studio/vendor/dyad/hologram.screens.mjs"); + let theater = + include_str!("../../../studio/vendor/dyad/hologram.screens/FeaturedAppShowcase.tsx"); + let preview = + include_str!("../../../studio/vendor/dyad/src/components/preview_panel/PreviewIframe.tsx"); + for name in [ + "theaterInSidebar", + "theaterStage", + "theaterDetails", + "theaterUpNext", + "theaterKeys", + ] { + assert!(spec.contains(&format!("name: {name},")), "{name}"); + } + let library = sidebar + .find(r#"{ title: "Library", to: "/library""#) + .expect("Library"); + let next = &sidebar[library..]; + let next = &next[next.find('\n').expect("line") + 1..]; + assert!(next + .trim_start() + .starts_with(r#"{ title: "Theater", to: "/theater", icon: MonitorPlay },"#)); + assert!(sidebar.contains(r#"["/theater", "Theater"],"#)); + assert!( + !sidebar.contains(r#"const OPTIONAL = ["/templates", "/library", "/plugins", "/theater"]"#) + ); + assert!(screens.contains(r#"path: "/theater", component: TheaterPage"#)); + assert!(screens.contains(r#"import { TheaterPage } from "./components/FeaturedAppShowcase";"#)); + assert!(theater.contains("export function TheaterPage()")); + let sandbox = preview + .split(r#"sandbox=""#) + .nth(1) + .expect("preview sandbox"); + let sandbox = &sandbox[..sandbox.find('"').expect("end")]; + assert!(theater.contains(&format!(r#"sandbox="{sandbox}""#))); + for token in [ + "useCurrentAppUrl(", + "runApp(", + "featuredApps as Featured[]", + "useBookmarks()", + " { // The preferences are a LexLean module of their own, outside the kernel's proof inputs. const spec = read("../experience/src/FoundryExperience.lex.tex"); - for (const name of ["oneLook", "popupsCentred", "goldenRatio", "questionAsNotification", "whyHowWhat", "sidebarIsNavigation", "toolsOnSettings", "homeAsksOneThing", "homeIsAWorkspace", "composerRow", "featuredCovers", "modelMenu", "appsOnDevice"]) assert.ok(spec.includes("name: " + name + ","), name); + for (const name of ["oneLook", "popupsCentred", "goldenRatio", "questionAsNotification", "whyHowWhat", "sidebarIsNavigation", "toolsOnSettings", "homeAsksOneThing", "homeIsAWorkspace", "composerRow", "featuredCovers", "modelMenu", "appsOnDevice", "theaterInSidebar", "theaterStage", "theaterDetails", "theaterUpNext", "theaterKeys"]) assert.ok(spec.includes("name: " + name + ","), name); assert.equal(read("../../app/src/FoundrySpecification.lex.tex").includes("foundrySurfaceExperienceBoundary"), false, "a look-and-feel preference is back in the kernel's specification"); for (const input of fs.readdirSync(new URL("../../app/src/", import.meta.url)).filter((n) => n.endsWith(".lex.tex"))) assert.equal(read("../../app/src/" + input).includes("FoundryExperience"), false, input + " reads the look-and-feel module, which makes it a kernel proof input"); assert.ok(read("../../.github/workflows/studio.yml").includes("key: experience-check-v1-${{ hashFiles('studio/experience/**', 'prismpm.lock') }}")); diff --git a/studio/vendor/dyad/VENDORED.md b/studio/vendor/dyad/VENDORED.md index 18376856..7fc1e90c 100644 --- a/studio/vendor/dyad/VENDORED.md +++ b/studio/vendor/dyad/VENDORED.md @@ -71,3 +71,4 @@ The browser-owned preview startup patch reads the imported app-run snapshot and - A sent prompt is on screen at once. Upstream keeps the prompt in the composer until the host accepts the turn and draws the message from the host's first chunk; in the browser host a turn is admitted through the durable chat queue first, so that was 250 to 400 ms after Enter. `hologram.pending-message-patches.mjs` (ours, applied by `hologram.screens.mjs`): `src/components/chat/ChatInput.tsx` hands a text-only prompt, exactly as typed, to `hologram.screens/PendingMessage.tsx` (ours) when it is sent and clears the composer, and takes both back if the send is refused or fails before acceptance; a prompt sent while a turn is running, or left in a paused queue, is shown by upstream's queue instead. `src/components/chat/MessagesList.tsx` draws the pending prompt with upstream's own `ChatMessage` as the last thing in the conversation (inert), lets it stand for an empty conversation's first message, and stops showing it once the conversation is longer than it was at the send, so it is never on screen beside its stored message. Nothing is written to the conversation's state or sent to the host. Decisions: `hologram.pending-message.mjs`. Gates: `tools/instant_user_message.test.mjs`, `tools/instant_user_message_browser.mjs`. - `hologram.no-remote-model.mjs` (ours, merged into `hologram.screens.mjs`'s patches so the build and the typecheck apply them, each refusing the build when its passage is gone): Foundry answers with its own model only, so the renderer has no remote-provider or API-key screens. `src/hooks/useLanguageModelProviders.ts` counts the studio's own model as always set up; `src/first_prompt/FirstPromptProvider.tsx` drops upstream's "You're almost ready to build" setup dialog (provider buttons, "use your own API key", the walkthrough) and never opens it; `src/components/chat/MessagesList.tsx` draws no setup banner; `src/pages/settings.tsx` and `src/lib/settingsSearchIndex.ts` drop the Model Providers section; `src/app/TitleBar.tsx` drops the Pro button. Whether a browser can run the model is the R4 route's answer (Local or NoGpu), never a provider question. `tools/no_remote_provider_browser.mjs` checks it in a fresh browser without WebGPU. +- Theater (FA-92, `verification/theater.md`): `hologram.screens/FeaturedAppShowcase.tsx` also exports `TheaterPage`, and two patches to `src/router.ts` (`hologram.screens.mjs`) declare its `/theater` route there; `hologram.screens/AppSidebar.tsx` lists Theater right after Library. `src/pages/apps.tsx` is reduced to its typed default export, as `src/components/app-sidebar.tsx` is: the build replaces it whole with `hologram.screens/AppsPage.tsx`. diff --git a/studio/vendor/dyad/hologram.screens.mjs b/studio/vendor/dyad/hologram.screens.mjs index 8b90b6d0..de82f66c 100644 --- a/studio/vendor/dyad/hologram.screens.mjs +++ b/studio/vendor/dyad/hologram.screens.mjs @@ -148,6 +148,18 @@ const SCREEN_PATCHES = [

Themes, prompts and media you can use in any app.

`, }, + { + // Theater (FA-92) lives in the floor's module, which already holds the catalogue, the covers and the + // bookmarks it plays from, so the route is declared here rather than in a route file of its own. + file: "src/router.ts", + from: `import { mediaRoute } from "./routes/media";`, + to: `import { mediaRoute } from "./routes/media"; +import { Route } from "@tanstack/react-router"; +import { TheaterPage } from "./components/FeaturedAppShowcase"; +const theaterRoute = new Route({ getParentRoute: () => rootRoute, path: "/theater", component: TheaterPage, + validateSearch: (search: Record): { play?: string } => (typeof search.play === "string" ? { play: search.play } : {}) });`, + }, + { file: "src/router.ts", from: ` mediaRoute,\n chatRoute,`, to: ` mediaRoute,\n theaterRoute,\n chatRoute,` }, { // The page sits in the sidebar's inset, under a site header, as in dashboard-01. file: "src/app/layout.tsx", diff --git a/studio/vendor/dyad/hologram.screens/AppSidebar.tsx b/studio/vendor/dyad/hologram.screens/AppSidebar.tsx index fcc7f177..12afd6e9 100644 --- a/studio/vendor/dyad/hologram.screens/AppSidebar.tsx +++ b/studio/vendor/dyad/hologram.screens/AppSidebar.tsx @@ -16,6 +16,7 @@ import { LayoutGrid, Menu, MessageSquare, + MonitorPlay, Search, Settings, Star, @@ -112,6 +113,7 @@ const NAV: Nav[] = [ { title: "Apps", to: "/apps", icon: LayoutGrid }, { title: "Templates", to: "/templates", icon: Store }, { title: "Library", to: "/library", icon: BookOpen }, + { title: "Theater", to: "/theater", icon: MonitorPlay }, { title: "Plugins", to: "/plugins", icon: Blocks }, ]; // What the visitor keeps in the sidebar; the rest waits under More. Home, Search and Apps always stay. The choice is a @@ -379,6 +381,7 @@ const TITLES: [string, string][] = [ ["/apps", "Apps"], ["/templates", "Templates"], ["/library", "Library"], + ["/theater", "Theater"], ["/plugins", "Plugins"], ["/settings", "Settings"], ]; diff --git a/studio/vendor/dyad/hologram.screens/FeaturedAppShowcase.tsx b/studio/vendor/dyad/hologram.screens/FeaturedAppShowcase.tsx index 0f624c87..53dd7c38 100644 --- a/studio/vendor/dyad/hologram.screens/FeaturedAppShowcase.tsx +++ b/studio/vendor/dyad/hologram.screens/FeaturedAppShowcase.tsx @@ -11,12 +11,18 @@ // // This file is given to the build as the source of src/components/FeaturedAppShowcase.tsx, so what it // imports is resolved from there: two levels up is the vendored renderer's own folder. -import { useCallback, useEffect, useMemo, useState, type ReactNode } from "react"; -import { useNavigate } from "@tanstack/react-router"; -import { ArrowRight, Search, Star } from "lucide-react"; +import { useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from "react"; +import { useNavigate, useSearch } from "@tanstack/react-router"; +import { useSetAtom } from "jotai"; +import { ArrowRight, Maximize, Play, RectangleHorizontal, RotateCw, Search, Share2, SquarePen, Star } from "lucide-react"; +import { homeChatInputValueAtom } from "@/atoms/chatAtoms"; import { useLoadApps } from "@/hooks/useLoadApps"; import { useOpenApp } from "@/hooks/useOpenApp"; -import { useAppThumbnails } from "@/hooks/useAppThumbnails"; +import { useRunApp } from "@/hooks/useRunApp"; +import { useCurrentAppUrl } from "@/hooks/useAppRun"; +import { useAppCard, useAppThumbnails } from "@/hooks/useAppThumbnails"; +import { Button } from "@/components/ui/button"; +import { cn } from "@/lib/utils"; import { sortAppsForShowcase } from "@/lib/sortApps"; import { featuredApps, featuredOnHome } from "../../hologram.featured-apps.mjs"; @@ -276,3 +282,222 @@ export function FeaturedAppShowcase() { ); } + +// Theater (FA-92; FoundryExperience theaterInSidebar to theaterKeys): Prism apps played one after another, as a +// viewer watches a stream. It plays from this module's catalogue, covers and bookmarks, so a star on the floor +// is the same star here. A visitor's app runs exactly as the build preview runs it: started through the run +// state, at the address the run state answers, under the preview's own sandbox. +type Playable = { key: string; name: string; by: string; tag: string; sentence: string; idea: string; hue: number; picture: string | null; url: string | null; appId: number | null }; +type Shelf = "all" | View; +// The floor's glass (appearance.css, home-featured): it reads over Immersive's photo and stays quiet on Dark and Light. +const GLASS = "border border-foreground/10 bg-popover/60 backdrop-blur-[21px] backdrop-saturate-150"; + +const typing = (target: EventTarget | null) => + target instanceof HTMLElement && (target.isContentEditable || ["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName)); + +function Art({ item }: { item: Playable }) { + return item.picture ? : ; +} + +function StageButton({ label, onClick, children }: { label: string; onClick: () => void; children: ReactNode }) { + return ( + + ); +} + +export function TheaterPage() { + const navigate = useNavigate(); + const openApp = useOpenApp(); + const setIdea = useSetAtom(homeChatInputValueAtom); + const { apps } = useLoadApps(); + const { kept, toggle } = useBookmarks(); + const { runApp, restartApp } = useRunApp(); + const { play } = useSearch({ strict: false }) as { play?: string }; + const [shelf, setShelf] = useState("all"); + const [wide, setWide] = useState(false); + const [more, setMore] = useState(false); + const [copied, setCopied] = useState(false); + const [reload, setReload] = useState(0); + const stage = useRef(null); + + const mine = useMemo(() => sortAppsForShowcase(apps), [apps]); + const thumbnails = useAppThumbnails(useMemo(() => mine.map((app) => app.id), [mine])); + const all = useMemo( + () => [ + ...(featuredApps as Featured[]).map((app) => ({ key: "featured:" + app.id, name: app.name, by: app.by, tag: app.tag, sentence: app.sentence, idea: app.idea, hue: app.hue, picture: null, url: app.url || null, appId: null })), + ...mine.map((app) => ({ key: "app:" + app.id, name: app.name, by: "Yours", tag: "My app", sentence: "", idea: "", hue: (app.id * 47) % 360, picture: thumbnails.get(app.id) ?? null, url: null, appId: app.id })), + ], + [mine, thumbnails], + ); + const current = all.find((item) => item.key === play) ?? all[0]; + const card = useAppCard(current.appId ?? 0); + const { appUrl } = useCurrentAppUrl(current.appId); + const source = current.url ?? appUrl; + const sentence = current.sentence || card.description || "An app you made with Prism, kept in this browser."; + const tag = current.appId === null ? current.tag : (card.tag ?? current.tag); + const shown = all.filter((item) => + shelf === "all" ? true : shelf === "featured" ? item.appId === null : shelf === "mine" ? item.appId !== null : kept.includes(item.key), + ); + + const choose = useCallback((key: string) => { + setMore(false); + navigate({ to: "/theater", search: { play: key } }); + }, [navigate]); + const next = useCallback(() => choose(all[(all.indexOf(current) + 1) % all.length].key), [all, current, choose]); + const full = useCallback(() => { + if (document.fullscreenElement) void document.exitFullscreen(); + else void stage.current?.requestFullscreen(); + }, []); + + useEffect(() => { + if (current.appId !== null) void runApp(current.appId); + }, [current.appId, runApp]); + useEffect(() => { + const onKey = (event: KeyboardEvent) => { + if (typing(event.target) || event.ctrlKey || event.metaKey || event.altKey) return; + if (event.key === "f") full(); + else if (event.key === "t") setWide((was) => !was); + else if (event.key === "N" && event.shiftKey) next(); + else return; + event.preventDefault(); + }; + window.addEventListener("keydown", onKey); + return () => window.removeEventListener("keydown", onKey); + }, [full, next]); + + const share = () => { + void navigator.clipboard?.writeText(window.location.href).then(() => { + setCopied(true); + setTimeout(() => setCopied(false), 1597); + }); + }; + const build = () => { + setIdea(current.idea); + navigate({ to: "/" }); + }; + const builder = () => { + if (current.appId !== null) openApp(current.appId); + else if (current.url) window.open(current.url, "_blank", "noopener,noreferrer"); + else build(); + }; + const restart = () => { + if (current.appId !== null) void restartApp({ appId: current.appId }); + else setReload((was) => was + 1); + }; + const live = Boolean(source); + const unpublished = current.appId === null && !current.url; + const saved = kept.includes(current.key); + + return ( +
+
+
+
+ {source ? ( +