Repository navigation
Render inline code in decision question text - #276
MaggieAppleton wants to merge 2 commits into
Conversation
|
The preview deployment for chopin is ready. 🟢 Open app | Open Build Logs | Open Application Logs Last updated at: 2026-10-05 09:34:38 CET |
|
Review: Changes needed (minor; visuals look good) Checked in a browser (desktop 1440x900, phone 390x844) with a backtick fixture. Spans render as inset-chip mono at the inherited size, prompt/option/description wrap cleanly, and the card design is otherwise unchanged. Tokens only ( Findings
Accessible names otherwise look right: the |
|
Addressed in 23270f4:
|
Fixes that only exist because several open PRs now share one tree: - Drop #290's duplicate ImageIcon and its LineIcon titles, which #287 removed. - Remove the import #302 left unused after #276's inline code. - Renew design-contract pins for files more than one PR edited, and record #290's new icons and #295's face colours as reviewed exceptions. - Find icons by path rather than the titles #287 removed, and faces by the label #295 gives them. - A tool that returns after its turn was stopped ends as failed, so #314's early completion keeps #272's stopped-question outcome. Assistant-model: Claude Opus 5.5 Assistant-workflow: inline Assistant-verification: typecheck passed: bun run types Assistant-verification: dprint/oxlint/design checks passed: bun run ci Assistant-verification: bun test passed: 3860 pass, 0 fail Co-authored-by: Alex Lavaee <lavaman131@github.com>
8c33f74 to
833557b
Compare
This comment has been minimized.
This comment has been minimized.
16baac5 to
e554b37
Compare
Planner prompts, option labels and descriptions use backticks for inline code. Render matched single-backtick pairs as code elements; display only, stored text unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e554b37 to
1bd9558
Compare
|
I rechecked the latest failed
|
Why
The Planner writes inline code with backticks in decision prompts, option labels and descriptions. The card showed them literally, e.g. "the current single
.bakbehavior".What changed
inlineSegments()/plainInlineText()(single-backtick pairs only; empty or unmatched backticks stay literal) with unit tests.InlineCodecomponent renders matched spans as<code class="inline-code">. No markdown renderer, nodangerouslySetInnerHTML. Stored text is unchanged.plainInlineText, so no stray backticks are read out..inline-codeinapps/web/src/theme.cssuses the same tokens as inline code in the document (inset, radius-sm, mono, inherited size) withfont-weight: 400so code in the bold prompt is not heavy.Screenshots
Before (desktop):
After (desktop):
After (phone 390x844):
Needs a design-contract review
bun run cifails ONLY on two reviewed dynamic-owner source hashes. Everything else (dprint, oxlint, tokens) passes. The exceptions were not edited.packages/question/src/react/question-view.tsx->scripts/design-contract/exceptions/dynamic-packages.json: new hash5db9f37e2663a774eeb11cfde3a2fcf93dd06dc0ed6f077af42b5f8bc9e9b431(old6ffb7d6d...).packages/editor/src/resolved-layer.tsx->scripts/design-contract/exceptions/dynamic-editor.json: new hashd6976f81401b6563b3b68c38364b94bab169b30eed0038ed1f788f4025488260.Why it is safe: the change only wraps existing text children in
<InlineCode>and passes plain text to aria labels. There is no new class or style logic, and the dynamicclassName/styleowners are untouched.Testing
bun test packages/question: 134 pass, 0 failbun run types: cleanbun run fix: cleanbun run ci: fails only on the two hashes above🤖 Generated with Claude Code