Simplify setup screen header props - #1666
skyfallwastaken wants to merge 1 commit into
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-01a05ac9-5001-758e-a5f2-f534a42b8b5d Co-authored-by: Amp <amp@ampcode.com>
Greptile SummaryThis PR simplifies setup-screen headers by removing unused emoji plumbing and the raw-HTML rendering path.
Confidence Score: 5/5The PR appears safe to merge, with all callers consistently migrated to the simplified header interface. The removed emoji prop was not rendered, the sole raw-HTML caller now supplies the same guidance as plain text, and no unchanged caller or dependent test retains the old component contract. Important Files Changed
Reviews (1): Last reviewed commit: "Simplify setup screen header props" | Re-trigger Greptile |
There was a problem hiding this comment.
Pull request overview
This PR simplifies the Setup flow’s header API by removing unused emoji plumbing and eliminating the html prop path in ScreenHeader, relying on the existing plain subtitle text instead.
Changes:
- Removed the unused
emojiprop fromScreenHeaderand all Setup callers/wrappers. - Replaced
ScreenHeader’s raw-HTML rendering path (html+{@html ...}) with plainsubtitlecontent for the terminal guidance copy. - Deleted the now-dead commented-out emoji
<img>usage inScreenHeader.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| app/javascript/pages/Setup/VsCodeSteps.svelte | Drops the removed emoji prop when rendering ScreenHeader. |
| app/javascript/pages/Setup/TerminalCommand.svelte | Replaces html usage with plain subtitle text and removes emoji prop. |
| app/javascript/pages/Setup/LinkScreen.svelte | Removes emoji from Props and stops passing it to ScreenHeader. |
| app/javascript/pages/Setup/Index.svelte | Removes emoji props passed into TwoChoiceLayout and LinkScreen. |
| app/javascript/pages/Setup/components/TwoChoiceLayout.svelte | Removes emoji from Props and stops passing it to ScreenHeader. |
| app/javascript/pages/Setup/components/ScreenHeader.svelte | Removes emoji and html props and the raw-HTML rendering branch, leaving title + optional subtitle. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
f1786c8 to
6101271
Compare
Summary of the problem
ScreenHeaderrequired setup callers to provide an emoji that was never rendered. It also accepted raw HTML only to bold one phrase in the terminal guidance.Describe your changes
Remove the unused emoji prop and its wrapper plumbing. Render terminal guidance through the existing plain subtitle prop, then remove the raw HTML path and dead image comment.
Screenshots / Media