Repository navigation
fix(site): Control robots card shows Python code under TypeScript - #6143
Open
TheWitcherish wants to merge 1 commit into
Open
TheWitcherish wants to merge 1 commit into
TheWitcherish wants to merge 1 commit into
Conversation
TheWitcherish
requested a deployment
to
manual-approval
November 13, 2026 18:17 — with
GitHub Actions
Waiting
TheWitcherish
marked this pull request as ready for review
November 13, 2026 18:27
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human Overview
Caught this live on stream prep: the homepage's "Control robots" card showed Python code even with TypeScript selected. Turned out the TS sample was Python dressed up as TypeScript
strands-robotshas no TS package. Fixed it to follow the same Python-only patternInteractiveToolkit.astroalready uses for Evals.Description
The homepage's "Control robots" use-case card labeled Python code as its TypeScript sample (filename shown as
.py, content usingfrom ... import).strands-robotshas no TypeScript package, so there was never a real TS sample to show. This omits the fabricatedtsarray for that card, adds apythonOnlyflag, and falls back to the Python panel plus a short note when TypeScript is selected — the same patternInteractiveToolkit.astroalready uses for the Python-only Evals card.Related Issues
Closes #6142
Documentation PR
Yes —
site/src/components/UseCases.astro.Type of Change
Bug fix
Testing
npx astro build— 1259 pages built, no broken links.npx prettier --check src/components/UseCases.astro— passes.Inspected the built
dist/index.html: the "robots" use case now renders only adata-lang-code="python"panel plus the hiddendata-use-case-note="robots"fallback note; notypescriptpanel is emitted for it.npx astro checkreports the same pre-existing errors in this file as onmainbefore this change (indexed-access/token-color type-inference noise unrelated to this fix) — no new error categories introduced.I ran
hatch run prepareAdditional Details
Extended context (optional)
Filed from a live repro: selecting TypeScript on the homepage and picking "Control robots" showed Python import syntax instead of TypeScript (or a Python-only note). The other three cards on the same component switch correctly.
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.