Skip to content

Shell: single-product (primary-product) mode so a sole-product app owns the root surface #63

Closed

Description

@AojdevStudio

Problem

The desktop shell assumes multiple product modules navigated under /<namespace>. But a single-product app (e.g. OrinSync, the first real product built on this kit) IS the app: its primary screen should be the root experience, not a tab inside generic multi-product chrome. Today there is no first-class way to make one product the root without forking the shell, which violates the never-modify-foundation rule (PRODUCT-MODULE-SEAM.md).

Solution

Add a configurable "primary product" / single-product shell mode to apps/desktop: when set (e.g. shell.primaryProduct = "<namespace>"), the shell boots directly into that product's root screen and hides the multi-product chrome/nav. Pure configuration + presentation. The product-module seam (BackendModule, LocalModule, ProductFeatureKey, products/<ns>/ screens) is unchanged. Multi-product apps are unaffected when the option is unset.

Why

OrinSync (acp-church-media/acp-church-media#120) is the first single-product app on the kit and needs to own its operator console as the root surface while keeping the backend/data/feature-key seams intact. This pays forward to every future single-product app. Chosen over forking the vendored shell (which creates re-vendor reconciliation friction) during the OrinSync grill.

Acceptance

  • A config point designates one product as primary.
  • With it set, the shell boots into that product's root screen with no generic product nav.
  • With it unset, existing multi-product behavior is unchanged.
  • The product-module seam contract is unchanged; this is added as a first-class foundation feature, not a per-product fork.
  • A shell test covers both modes.

Consumer

OrinSync vendors a kit commit that includes this and sets primaryProduct = "orinsync".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions