Skip to content

fix(web): categorize docs nav and stop calling sessions isolated - #173

Open
yashranaway wants to merge 1 commit into
mainfrom
feat/docs-navigation
Open

fix(web): categorize docs nav and stop calling sessions isolated#173
yashranaway wants to merge 1 commit into
mainfrom
feat/docs-navigation

Conversation

@yashranaway

Copy link
Copy Markdown
Collaborator

Summary

Implements #159.

  • Docs sidebar uses explicit `documentation` / `trust` categories. No more `slice(0, 3)`.
  • Overview no longer says sessions stay isolated. It renders the COMMANDS.md shared-profile contract.
  • Command reference has a labeled search filter over the generated groups.
  • Overview and commands pages get an on-this-page list. Skip-to-content is in the shell.
  • Provenance lint fails if the isolation claim or positional slicing comes back.

Did not add Settings, Credentials, or SDK pages. Those wait on their contracts.

Closes #159

Docs navigation is now an explicit category catalog instead of slicing
the route list. The overview pulls the shared-profile contract from
COMMANDS.md. The command reference is filterable from that same source.

@SarthakWade SarthakWade left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not merge yet because the Web app does not build and the new command directory has correctness and accessibility gaps.

The exact PR head fails provenance lint and next build because the new shared-session extraction still looks for obsolete wording. After that is corrected, the directory still omits the shipped Credential vault section, leaves table-of-contents links pointing at sections removed by filtering, and does not announce positive result-count changes to assistive technology. Please add focused search, keyboard, responsive, and accessibility coverage as required by issue #159.

GitHub currently reports the PR as mergeable with no conflicts. The Web app required check is failing; the other required checks passed. ESLint, TypeScript, and the dependency audit passed, and I found no dependency vulnerability or secret exposure in this change.

extractSection(commandReference, "Host lifecycle"),
).find(
(item) =>
item.includes("one browser profile") && item.includes("not an isolation"),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] This phrase no longer exists in the authoritative COMMANDS.md text, which now describes shared normal sessions and shipped isolated sessions. sessionModel is therefore undefined and the fail below breaks provenance lint and production prerendering. Match a stable part of the current source contract and add a fixture/assertion that catches source wording drift without making the site unbuildable after a valid docs update.

<CommandBlock>{group.usage}</CommandBlock>
</section>
))}
<CommandDirectory groups={commands.groups} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] commands.groups still contains only lifecycle, navigation, capture, and diagnostics. The authoritative Credential vault section, including auth login and credential commands, is omitted, so this page is not the complete agent surface and those commands cannot be found. Include every shipped command section from COMMANDS.md and derive the displayed count from the same complete set.

return (
<DocsShell
activePath="/docs/commands"
sections={commands.groups.map((group) => ({

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] This table of contents is built from all groups, but CommandDirectory filters the rendered sections independently. After a query hides a group, its TOC link remains and points to a missing element. The filter state needs to drive both the directory and its section links, or hidden groups must remain valid anchor targets.

autoComplete="off"
spellCheck={false}
/>
<p>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Positive result-count changes are not announced because this is an ordinary paragraph; only the zero-result branch has status semantics. Give the changing count an appropriate polite live region or role=status, and cover it with an accessibility-focused search test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Website docs: improve navigation, accuracy, and command discovery

2 participants