Skip to content

DOCS-5091: Fix docs that send users to a Test section generic resources don't have - #5522

Open
Eliza Farley (elizafarley) wants to merge 3 commits into
mainfrom
claude/docs-5091-pr-dbb655
Open

Eliza Farley (elizafarley) wants to merge 3 commits into
mainfrom
claude/docs-5091-pr-dbb655

Conversation

@elizafarley

@elizafarley Eliza Farley (elizafarley) commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Fixes DOCS-5091.

In the Viam app, generic components and services don't have a Test section. Their configuration card has top-level DoCommand and GetStatus sections instead. Several pages said every type has a test panel, or told readers to open a generic service's Test section.

Changes

  • Generic resources (add-a-generic.md, write-an-inline-module.md, write-a-logic-module.md): describe the top-level DoCommand and GetStatus sections in place of the Test section, with the Input / Execute / Output flow.
  • "Every component has a Test section" claims (common-components/_index.md, configure-hardware.md, add-a-camera.md, try/quality-inspection/part-1.md): now say most types have one and generic types don't.
  • Part must be online: noted where readers use the Test, DoCommand, or GetStatus sections.
  • Camera Test section buttons (add-a-camera.md, configure-hardware.md): replaced the nonexistent Get image button with Screenshot and Add to dataset.
  • Audio input/output (common-components/_index.md): removed the "No test panel" notes. Both types now have Test sections in the app. Generic's Features cell now says "No Test section".
Verification
  • Checked which types get a Test section, the generic DoCommand/GetStatus sections, and the "part must be online" condition against the current app source. Labels come from the @viamrobotics/test-widgets version the app uses.
  • Checks: prettier 3.2.5, markdownlint, vale 3.12.0 (CI-pinned, 0 errors), frontmatter_rules.py, and make build-prod all pass.

🤖 Generated with Claude Code

…es don't have

Generic components and services get top-level DoCommand and GetStatus
sections in the Viam app, not a Test section. Also note that test controls
need the part to be online, fix camera button labels (Screenshot, Add to
dataset), and drop the stale "No test panel" notes for audio input/output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Nov 10, 2026
@netlify

netlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit dc2b937
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6b049c09f2817c069ada06ed
😎 Deploy Preview https://deploy-preview-5522--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 32 (🔴 down 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (🟢 up 8 from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeremyrose-viam

Copy link
Copy Markdown
Member

Docs review: Needs changes

Corrects seven pages that told readers every resource has a Test section, including generic resources, which instead get top-level DoCommand and GetStatus sections. Every UI claim the PR makes matches the current app source. One page in the same tutorial still sends readers to a generic service's Test section.

CI: All required checks passing

Docs health: No regressions

Should fix

  • docs/try/quality-inspection/part-4.md:244-246: "Expand the Test section at the bottom", then "Expand DoCommand", on inspector-service. That service registers as rdk:service:generic (same file, lines 63 and 86), so it has no Test section: readers will find DoCommand as a top-level section on the card. This is the case DOCS-5091 describes, in the same tutorial whose part 1 this PR edits. Fix: "Expand the DoCommand section on the service's configuration card", and drop step 2.

Nits

  • docs/try/quality-inspection/part-1.md:104,108: the heading still says "Open the test panel" and step 3 says "Expand the TEST section", while line 102 now says Test section. Fix: "Open the Test section" and "Expand the Test section".
  • docs/hardware/common-components/_index.md:26: "Every type except generic also shows a Test section". Pose tracker components don't get one either: the app's Test section list doesn't include pose_tracker, so they get the same top-level DoCommand and GetStatus sections as generic. Pose tracker isn't in this page's tables, so this only matters if it's added later. Fix: optional; "Every type listed here except generic".
Verified against source (9 claims)

App claims are checked against viamrobotics/app at b3c0b18 (private; paths only), and widget labels against @viamrobotics/test-widgets 0.17.3, the version the app pins in pnpm-workspace.yaml.

  • Types with a Test section: arm, audio input, audio output, base, board, button, camera, encoder, gantry, gripper, input controller, motor, movement sensor, power sensor, sensor, servo, switch, plus the discovery, SLAM, vision and ML model services. Generic is not among them: ui/src/routes/(auth-required)/machine/[machine_id]/configure/builder/test-section-group.svelte:111-134
  • Resources without a Test section get top-level DoCommand and GetStatus sections instead: same file, :687-713
  • Audio input and audio output now have Test sections (the removed "No test panel" notes): same file, :113-114,516-525
  • Test, DoCommand and GetStatus show an offline state instead of their controls when the part isn't live, and the Test controls also wait while the resource is configuring or unhealthy: same file, :494-500, :305-311, :353-359, and .../section-state/section-state-types.ts
  • Camera controls are a refresh menu with Live, Screenshot (downloads a frame) and Add to dataset, and there is no Get image button: test-widgets components/refetch-interval-store.svelte.js:3, components/widgets/camera/export-screenshot.svelte:75-87, components/widgets/camera/camera.svelte:264
  • Add to dataset is enabled on machine pages: app ui/src/routes/(auth-required)/machine/[machine_id]/+layout.svelte:1187
  • DoCommand labels Input, Execute, Output: test-widgets components/widgets/do-command/do-command.svelte:85,101,106
  • The inline module and logic module services are generic services: docs/build-modules/write-a-logic-module.md:52,694, and the inline-module page's own wording
  • Generic components and services count as known resources, so they always get the DoCommand and GetStatus sections: test-widgets is-known-resource.js:5, resource-triplet.js

Automated review by Claude. Rerunning the review updates this comment.

@elizafarley
Eliza Farley (elizafarley) requested a review from a team as a code owner November 23, 2026 20:03

This branch has not been deployed

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

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants