Skip to content

Docs pages join the app shell on desktop: one appearance, no top bar, both entry points and every old docs link kept (#36107 item 11) #37150

Done

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Filing gate ③ — maintainer-dispatched epic work, ruled. Source: topic #36107. The maintainer, verbatim, in seat repo:objectstack#4's session: 「#36062、#36107:后续拆卡继续」. Split summary: #36107 comment 7146718835.

Ruling (record 7142354097 on #36107), verbatim: 「「文档页并入应用外壳」(#36107 第三阶段 F A(推荐):统一成一种外观,两个入口和旧链接都保留。」
Meaning, as recorded: docs render in ONE appearance (inside the app shell); both entry points stay; every existing docs link keeps resolving to the same shell page; closed #35424 is voided only in its "with the top bar" clause.

Business reason. Every other desktop page lost the top bar in phase 1 (#36112); docs pages are the one place that still draws it, and the standalone /docs portal draws a third look. A reader moving between an app and its manual meets two different shells; the epic's direction (「Studio、设置、文档这些页面,一起改。」, board figure 6) is one shell.

Where it lives (read at origin/main 2af9729).

Change.

  1. An app's docs pages (/apps/:packageId/docs…) draw in the app shell like every other desktop page: no top bar, the persistent sidebar, the page header's action group.
  2. The standalone docs entry (/docs) renders the same appearance — the shell's sidebar carries the docs navigation, 「全部文档」 (All docs) first — instead of DefaultHomeLayout.
  3. Both entry points stay, and every existing docs URL keeps resolving to the same page in the shell (pin the old URL forms).
  4. Phone unchanged.

Acceptance. At desktop width, an app's docs page and /docs show no top bar, the same sidebar and header as an app page; every docs URL that resolved before resolves to the same content; the #35424 behaviour other than the top bar is unchanged; phone unchanged. Tests pin the route exception's removal and the old URL forms; browser screenshots of both entries.

Grade: area:ux · Task · the last desktop surface off the shell, met on every docs visit · p2 (epic grade). Size M.
Reader: zone a4-C of seat repo:objectstack#4 dispatches it to an os-dev after #37149.
Dedupe: docs page app shell top bar (objectstack, open) → 8 hits, none about this (seat posts, #36737, #35445, #31908, #34571, #36107); 文档页 外壳 → 1 (#36107 itself).

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim: PM loop round 1
    Session: session_01QSeKYnagJvGbCtNg2PhvgW
    Account: os-justin
    Branch: claude/issue-37150-docs-in-app-shell
    Worktree: objectstack-issue-37150
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-C
    Epic: #36107 (sub-issue; split summary 7146718835)
    File surface: ui/packages/app-shell/src/layout/{ConsoleLayout.tsx,consoleRoutePaths.ts}, ui/packages/app-shell/src/console/ConsoleBootShell.tsx (its docs-page branch), ui/apps/console/src/App.tsx (the /docs route frame), the docs portal / docs viewer components it mounts and the shell sidebar's docs navigation, ui/packages/app-shell/src/console/home/HomeLayout.tsx (the docs variant only), their tests, ui/packages/i18n/src/locales/*.ts, .changeset/* (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate … the PM picks floor or default per card"; default — route and shell restructuring across two entry points), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform UI code in objectstack (desktop docs pages still draw the top bar and /docs a third frame, after phase 1 removed the top bar everywhere else) | none | every desktop reader opening an app's manual or the docs portal; reached today
    Thread-read: 7142354097
    Premise: holds
    Serial constraints cleared: none — open-PR search for ConsoleLayout / DocsPortal / HomeLayout finds only #37159 (names ConsoleLayout in its body, does not change it; file list read) and #37085 (no file on this surface); the predecessor #37149 is in the merge queue

    Pre-claim lane: domain:ui — every path is under ui/**.
    Pre-claim deps: no Blocked-by: line; the card says "after #37149" — its PR #37159 is in the merge queue and shares no file with this surface.
    Prior rulings read: check-prior-rulings.mjs --card 37150 at 49c8e0f — 137 ADR hits on broad title terms, none on the docs frame; the governing ones are the maintainer's ruling on #36107 (record 7142354097: 「统一成一种外观,两个入口和旧链接都保留」, which voids closed #35424 only in its "with the top bar" clause) and ADR-0046 §6 (docs are name-addressed, so links stay stable; the card keeps every URL). Code rulings on the surface: ConsoleLayout.tsx:197 / :291 and consoleRoutePaths.ts:21 (#35424, the clause being voided), App.tsx:228 / :434 (#35424 portal frame, same), App.tsx:450 (#7245, forms route, untouched).

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 37150,
      "status": "needs_decision",
      "branch": "claude/issue-37150-docs-in-app-shell",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37193",
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Resumed the lost run at 096ac6732 and verified it: Change items 1, 3 and 4 were done (an app's docs pages, /apps/APP/docs..., draw in the app shell from 768 px up: sidebar mounted with its usual head and foot, its body the docs column via a new portal slot, no top bar, the page header's button group; phone unchanged), item 2 was NOT: /docs still renders in DefaultHomeLayout variant=docs (the old changeset says so). Item 2 needs a frame choice the ruling does not settle (which app, if any, heads the shell sidebar on an app-less route), so it is the open question below; the PR is 'Part of #37150'. This run merged origin/main, added '@object-ui/app-shell' to the changeset, pinned four more old URL forms in the shell (book NAME, book NAME/DOC, doc-name-that-is-also-a-book-name, canonical SLUG/DOC), found and corrected a test the previous run missed (ConsoleLayout.noTopBar-36112 still pinned the old docs-page top bar), ran two ablations, verified the six screenshots on claude/issue-37150-screenshots (da446f108), ran overlap-check and the derived gates, and opened draft PR #37193 through the relay. The card's assignee was not touched (os-justin, set by the dispatch). The card stays size M; item 2 option B would likely make a card of its own.",
      "tests": "At fd2011e51 (head), under os-verify-lock, --maxWorkers=2. ConsoleLayout.noTopBar-36112 + ConsoleLayout.phoneRecordOneBar-28483: 'Test Files 2 passed (2) / Tests 23 passed (23)', VERDICT command-exit 0. At 827b3c75a (the implementation is unchanged since): UnifiedSidebar.footerSlot-36739 + ConsoleBootShell-35981 + phoneRecordOneBar: 'Test Files 3 passed (3) / Tests 27 passed (27)'; docs-portal.test.tsx 'Tests 62 passed (62)'. At 2ec431259: the 37150 block with the new URL pins 'Tests 13 passed | 53 skipped (66)'. Narrowed suite at 2ec431259 (128 app-shell files naming ConsoleLayout/UnifiedSidebar/ConsoleBootShell/consoleRoutePaths/sidebarDocsNavSlot/isAppDocsPath + 13 console docs files): app-shell 'Test Files 1 failed | 127 passed (128) / Tests 1 failed | 1145 passed (1146)', the one red being noTopBar-36112's stale docs-bar control, fixed in fd2011e51 and green above; console 'Test Files 13 passed (13) / Tests 122 passed (122)'. type-check for @object-ui/app-shell and @object-ui/console after building '@object-ui/app-shell^...' (the first attempt was red only from a stale plugin-chatbot dist after the merge): VERDICT command-exit 0. DECLARED NARROWING: the full app-shell + console suites were stopped by me (own process group) after 38 min holding the shared lock while other agents queued; they are left to CI Test UI. Ablations (both via scripts/ablation-replace.mjs; anchor 1->0 on disk; restored blob == HEAD; git diff HEAD empty; tests import src directly, so there is no dist leg): (1) ConsoleLayout.tsx 'phoneDocsPage ? undefined : (' -> 'docsPage ? undefined : (' turned the 768/1440 px docs test red, 'Tests 1 failed | 14 passed (15)', and the phone control stayed green; (2) DocPage.tsx 'const pageNav = sidebarNav ? null : docsNav;' -> 'const pageNav = docsNav;' gave 'Tests 9 failed | 4 passed | 53 skipped (66)' (the one-column test and all 8 URL-form pins). Both went red, as expected.",
      "gates": "Local: dispatch-gates --commands (objectstack-ai/objectstack at 2ec431259, 14 paths vs merge base 95734fef7) derived 38 commands. 37 exited 0. 'pnpm --dir ui exec vitest run scripts/' was OOM-SIGKILLed while it ran beside the closure build; it was re-run under the lock with --maxWorkers=2: 'Test Files 172 passed | 2 skipped (174)', VERDICT command-exit 0. --ran reconciliation: '38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN' (exit 0; the tool notes the run file recorded no exit codes, which are in my per-gate log). After fd2011e51 (test-only) the derived list was identical; nul-bytes, cross-package-test-inputs, test-source-alias, type-check-debt and tier-file-adoption were re-run: all 0. overlap-check at fd2011e51: 'VERDICT clean exit 0' (origin/main 3b4f0b9832 merges cleanly; #37166 shares app-shell/src/index.ts and merges cleanly). CI on #37193 head fd2011e51 at report time: every required family in_progress (Type Check, Lint, Check Changeset, Governed Surface Queue Guard, PR-body guards), opt-in jobs skipped; not waited on.",
      "dogfood_battery": "n/a — no '!' in the PR title and Clause-② no without the (narrowing) arm",
      "mcp_calls": "5 — all reads: issue_read get, issue_read get_comments, pull_request_read get, pull_request_read get_check_runs (+1 ToolSearch load); no write tool",
      "api_writes": "2 relay writes — pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft forced, then assignees os-justin on #37193) via fleet-write run 45537951006, read back as 9800 bytes sent and 9800 stored; os-dev-report comment on #37150 via post-stamped. git push x4 (not REST).",
      "open_questions": [
        {
          "question": "Change item 2: /docs (the app-less portal) should render 'the same appearance' as the app shell, but ConsoleLayout is app-scoped by construction (activeAppName becomes the shell's current app, and the sidebar head is that app's menu). Which frame should /docs get?",
          "options": [
            "A — Mount ConsoleLayout around /docs with the last-opened app (useLastApp), else the default or first app. Cost: small (~1 day). Risk: it is the 'guessed app sidebar' the objectui#4280 ruling rejected for app-less /forms/:name (InternalFormRoute.tsx header); it writes the guess into shared navigation state; on a cold deep link the app is arbitrary.",
            "B — An app-less shell variant: the same AppShell and sidebar chrome (search, bell, account foot, no top bar), with a neutral 「文档」 head and the app switcher instead of an app's menu, and the body the docs navigation with 「全部文档」 first. URLs are unchanged. Cost: medium (new app-shell structure, about 2-3 days, its own card). It guesses no app and matches the card's wording.",
            "C — Redirect /docs... to /apps/APP/docs... of a chosen app. Cost: small. It changes the address bar (against ADR-0046 section 6 and 'both entry points stay') and guesses the app as A does."
          ],
          "recommendation": "B, because it is the only option that guesses no app (honouring objectui#4280) and keeps both entry points and every URL as the ruling requires. It is new shell structure, so it is best filed as its own card; this PR lands items 1, 3 and 4 as 'Part of #37150'."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — ConsoleLayout.noTopBar-36112.test.tsx pinned the old docs-page top bar and the previous run did not update it; fixed in this PR (same defect class, same file family), not a separate finding."
      ]
    }
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Ruling recorded · 2026-11-25T03:13Z · item 2 (the frame of the /docs portal), the dev's needs_decision in a4-C's report, put to the maintainer in seat repo:objectstack#4's session.

  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Condition added to ruling B · 2026-11-25T03:14Z · the maintainer's words, in seat repo:objectstack#4's session: 「docs 新外壳先画设计图给我看」.

    The item-2 card runs in two stages.

    1. Design first. Mockups of the app-less shell go to the maintainer, built from the real AppShell and sidebar components on a scratch branch, or as a static page. They cover:

      • desktop /docs landing;
      • one doc open;
      • the 「文档」 header with the app switcher open;
      • the collapsed sidebar;
      • phone, which stays unchanged.

      Each view gets a one-line note on what differs from the app shell.

    2. Build after approval. No implementation PR until the maintainer approves the design on the card. An approval with changes is recorded on the card before the build starts.

  7. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Delivered (2026-11-25T08:54Z): closed by hand under landing rule B. Both PRs carrying this card have merged:

    With both merged, the docs pages have one appearance on desktop, as ruled on #36107 (「统一成一种外观,两个入口和旧链接都保留」).

    Nothing left on this card; pm:dispatched removed.

  8. removed
    pm:dispatched
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions