Skip to content

Say that fragment mods use the prefixed resource name - #5580

Open
Eliza Farley (elizafarley) wants to merge 1 commit into
mainfrom
fragment-mods-with-prefix
Open

Eliza Farley (elizafarley) wants to merge 1 commit into
mainfrom
fragment-mods-with-prefix

Conversation

@elizafarley

Copy link
Copy Markdown
Contributor

Adds one sentence to "Override specific settings": if the fragment was added with a prefix, the fragment_mods path uses the prefixed resource name, for example components.front-motor1.attributes.max_rpm.

The backend applies the prefix before the mods (viam-app data/fragment_variable_substitution.go, applyPrefixToConfig in MergeNestedFragments), and etc/cloudfunctions/js/overwrite_fragments_test.go covers a prefixed component path. The prefix is joined with -, which matches the existing front-camera-1 example on this page.

Note for reviewers: the builder currently checks mods against the unprefixed fragment, so it shows "doesn't exist on this fragment" for a correct prefixed mod (ui/src/lib/robot-config/fragment-overwrites/apply-fragment-mod.ts). The override still applies on the machine. This PR doesn't mention the warning, since it should be fixed in the app.

Checks: prettier 3.2.5, markdownlint, vale, scripts/frontmatter_rules.py and make build-prod pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@elizafarley
Eliza Farley (elizafarley) requested a review from a team as a code owner November 23, 2026 18:15
@elizafarley
Eliza Farley (elizafarley) requested review from Jeremy Rose (jeremyrose-viam) and removed request for a team November 23, 2026 18:15
@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Nov 23, 2026
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit dedffdf
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6b0482cee0b82d297476ff32
😎 Deploy Preview https://deploy-preview-5580--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: 33 (🟢 up 1 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.

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.

2 participants