Skip to content

Update resource health docs for module status on CONFIGURE cards - #5570

Merged
Eliza Farley (elizafarley) merged 3 commits into
mainfrom
claude/update-module-status-on-config-cards
Nov 23, 2026
Merged

Eliza Farley (elizafarley) merged 3 commits into
mainfrom
claude/update-module-status-on-config-cards

Conversation

@shannonbradshaw

Copy link
Copy Markdown
Collaborator

Source changes

  • APP-17645 — viamrobotics/app#14254 (33278310a): derives one runtime status per module from machine status (inline build, Deploying, package and module states, Failed, Update failed).
  • APP-17645 — viamrobotics/app#14274 (88a66373b): shows that status on module and resource cards, hides error logs that aren't actionable until the module is ready, adds a failed-module banner with Go to module on resource cards.
  • APP-17645 — viamrobotics/app#14275 (8f809da12): shows the same states in the builder sidebar ("module failed", "build failed", "update failed" bookmarks and a state pill).

Also covers APP-7318, APP-17228 and APP-16648 (children of APP-17645). Not feature-flagged; app is continuously deployed.

Documents: no DOCS ticket found (DOCS query over APP-17645 and its children returned nothing). Docs gap: app-module-runtime-status.

Docs changes

  • docs/monitor/monitor.md, "Check resource health": what the module state pills mean (labels from module-runtime-status.ts and package-status.ts, rendered uppercase by the pill's uppercase class), the Module … prefix on resource cards (use-module-error-visibility.svelte.ts), the error-log hiding rules (getErrorLogsVisibility in error-logs.ts), the failed banner and Go to module button, the yellow UPDATE FAILED state for a failed registry update while the old version runs, and the sidebar flags.
  • docs/build-modules/write-an-inline-module.md, "Changes to code not taking effect": the card's BUILDING… and DEPLOYING states, with a link to the section above.

The PR descriptions mention that first-run failures show FAILED only on viam-server with RSDK-14850 (older servers stay pending); I left that out because no release note names a viam-server version yet.

How I found these

  • Xref lookup: none for the CONFIGURE builder cards.
  • Grep: Building, Deploying, module failed, build failed, Update failed, ERROR LOGS, status pill, build progress bar across the docs repo: monitor.md is the only page that describes resource-card errors; write-an-inline-module.md describes build progress.

Checks: prettier 3.2.5, markdownlint, vale 3.12.0, make build-prod: clean.


Generated by daily docs change agent


Generated by Claude Code

app#14254, #14274 and #14275 (APP-17645) show a module's runtime state
(Building, Deploying, Downloading, Loading, Starting, Failed, Update failed)
on module and resource cards and in the builder sidebar, and hide stale
error logs until the module is ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nja2XnkouVDxo5aWtzgeF3
@netlify

netlify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 5172772
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6b0460f96db130b812da862a
😎 Deploy Preview https://deploy-preview-5570--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: 39 (🟢 up 3 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change 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.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Nov 21, 2026

Jeremy Rose (jeremyrose-viam) commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Docs review: Needs changes

This PR documents the module runtime states now shown on CONFIGURE cards and in the builder sidebar. Labels and most behavior match the app code, but the error-hiding rule is stated more broadly than the code applies it, and the state list is incomplete.

CI: All required checks passing

Docs health: No regressions

Released: Not confirmed: the source changes (viamrobotics/app PRs 14254, 14274, 14275) are merged, but I couldn't read app deployments.

Should fix

  • docs/monitor/monitor.md:70: The page says cards hide their error logs while a module is "building, deploying, downloading, loading, or starting". In getErrorLogsVisibility only the building and in-progress kinds hide errors. For a registry (non-inline) module whose previous version is still running, deploying and downloading map to the updating kind, which keeps errors visible (viamrobotics/app ui/src/routes/(auth-required)/machine/[machine_id]/configure/builder/error-logs-section/error-logs.ts:87). Fix: say that errors are hidden for a new or inline module, and stay visible while a registry module's previous version keeps running.
  • docs/monitor/monitor.md:66: The state list stops at DOWNLOADING, LOADING and STARTING, but the app also shows PENDING, CLOSING and FIRST RUN (ui/src/lib/resource-status/module-runtime-status.ts:53, package-status.ts:10). Fix: add them, or say the list is the common states.

Needs owner sign-off

Claim Where Owning team Why unverified
The module states and banners described are live in production docs/monitor/monitor.md:62-76 App / Fleet The three source PRs merged 2026-11-20; this environment can't read app deployments.
viam-server shows FAILED or retry counts as described docs/monitor/monitor.md:67 RDK / modules The app reads consecutiveFailures from module status; whether and when viam-server reports it is not in the app code.
Verified against source (7 claims)
  • BUILDING… label for an inline build: viamrobotics/app ui/src/lib/resource-status/module-runtime-status.ts (getModuleRuntimeStatus)
  • DEPLOYING while the machine hasn't picked up the new version: same file, pendingDeployVersion
  • DOWNLOADING tooltip shows a percent downloaded: same file, fromPackage
  • FAILED tooltip includes "failed N times, retrying": same file, failureMessage
  • UPDATE FAILED (degraded) while the previous version runs, errors stay visible: same file and error-logs.ts
  • Go to module button on resource cards: .../configure/builder/card-item.svelte:446
  • Sidebar messages module failed and build failed: .../sidebar-part/sidebar-module-item.svelte:69-81

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


Generated by Claude Code

Registry modules updating while the previous version runs keep errors
visible (updating kind in getErrorLogsVisibility). Add PENDING, FIRST
RUN, and CLOSING to the state list.

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

Copy link
Copy Markdown
Contributor

Addressed both should-fix items in b1d91f1:

  • docs/monitor/monitor.md: error-hiding now applies to the in-progress states generally, with the exception that a registry module updating while its previous version keeps running keeps its errors visible (updating kind in getErrorLogsVisibility; inline modules map to in-progress and still hide).
  • Added PENDING, FIRST RUN, and CLOSING to the state list (module-runtime-status.ts ACTIVE_MODULE_STATE_LABELS, package-status.ts PACKAGE_STATE_LABELS).

The two owner sign-off items (production rollout, viam-server reporting consecutiveFailures) are unchanged and still need App/Fleet and RDK confirmation.


Generated by Claude Code

RSDK-14850 (rdk#6761, v1.17.0) made viam-server report package state
for registry modules; older servers never show FIRST RUN or a first-run
FAILED.

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

Copy link
Copy Markdown
Contributor

Checked the two owner sign-off items against source:

  • Live in production: confirmed. viamrobotics/app's Scheduled Deploy Prod run on 2026-11-23 (run 45202571825) promoted staging release 2026-11-20-release-8f809da12… and succeeded. That commit is #14275, the last of the three source PRs; #14254 and #14274 come before it on main.
  • viam-server failure counts: confirmed. rdk module/modmanager/manager.go setModuleState increments ConsecutiveFailures each time a module goes UNHEALTHY (crash, failed start, failed reconfigure) and resets it on READY. The field has been in ModuleStatus since v1.0.0 (RSDK-13904).

One correction from that check, in 5172772: RSDK-14850 (rdk#6761, released in v1.17.0 on 2026-11-17) is what makes viam-server report package state for registry modules. Older servers never show FIRST RUN, or FAILED for a first-run failure, so the page now says so.


Generated by Claude Code

@elizafarley

Copy link
Copy Markdown
Contributor

Docs review: Ready to merge

This PR documents the module runtime states shown on CONFIGURE cards and in the builder sidebar. The previous review's findings are fixed: the error-hiding rule now carves out registry updates with the old version still running, the state list is complete, and the viam-server v1.17.0 caveat for FIRST RUN is documented.

CI: All required checks passing

Docs health: No regressions

Released: All documented changes are live. viamrobotics/app#14254, #14274, and #14275 are in the production deployment of 8f809da12 (2026-11-23). The FIRST RUN state depends on viamrobotics/rdk#6761, released in v1.17.0, which the page names.

Verified against source (14 claims)
  • BUILDING… for an inline cloud build (monitor.md:64, write-an-inline-module.md:593): viamrobotics/app ui/src/lib/resource-status/module-runtime-status.ts getModuleRuntimeStatus
  • DEPLOYING until the machine picks up the new version (monitor.md:65): same file, pendingDeployVersion
  • PENDING, STARTING, CLOSING labels (monitor.md:66): same file, ACTIVE_MODULE_STATE_LABELS
  • DOWNLOADING, LOADING, FIRST RUN labels and the download-percent tooltip (monitor.md:66): ui/src/lib/resource-status/package-status.ts PACKAGE_STATE_LABELS, module-runtime-status.ts fromPackage
  • Labels render uppercase: ui/src/lib/resource-status/module-runtime-status-pill.svelte:32
  • FAILED tooltip with "failed N times, retrying" (monitor.md:67): module-runtime-status.ts failureMessage
  • viam-server reports the failure count (monitor.md:67): viamrobotics/rdk module/modmanager/manager.go setModuleState increments ConsecutiveFailures on UNHEALTHY and resets it on READY
  • Go to module button on resource cards (monitor.md:67): .../configure/builder/card-item.svelte:446
  • FIRST RUN and first-run FAILED need viam-server v1.17.0 for registry modules (monitor.md:69): viamrobotics/rdk RSDK-14850 (#6761, b6d43ced1), first tagged in v1.17.0
  • Module … prefix on resource cards (monitor.md:71): .../configure/builder/use-module-error-visibility.svelte.ts:109
  • Errors hidden in building and in-progress states, visible for a registry update with the previous version running (monitor.md:72-73): .../builder/error-logs-section/error-logs.ts getErrorLogsVisibility; inline modules map to in-progress in getModuleRuntimeStatus
  • After a failure, the module card shows errors and resource cards keep hiding them (monitor.md:74): error-logs.ts, failed case
  • UPDATE FAILED in yellow with a warning banner (monitor.md:76): module-runtime-status.ts (degraded), module-runtime-status-pill.svelte:19, card-item.svelte:199
  • Sidebar module failed, build failed, update failed (monitor.md:77): .../sidebar-part/sidebar-module-item.svelte:69-81, sidebar-resource.svelte:268-284

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

@elizafarley
Eliza Farley (elizafarley) merged commit c30960b into main Nov 23, 2026
14 checks passed
@elizafarley
Eliza Farley (elizafarley) deleted the claude/update-module-status-on-config-cards branch November 23, 2026 15:56
@github-actions

Copy link
Copy Markdown

🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs'

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.

5 participants