Skip to content

refactor: rename InlineEditor to CodeSnippet - #187

Merged
magnus-madsen merged 1 commit into
masterfrom
refactor/rename-code-snippet
Aug 3, 2026
Merged

refactor: rename InlineEditor to CodeSnippet#187
magnus-madsen merged 1 commit into
masterfrom
refactor/rename-code-snippet

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

Summary

InlineEditor is a leftover name from the React-era site, where the component was a live editor backed by the online compiler VM. Since the Astro port it renders a static Shiki-highlighted snippet, so this renames it to CodeSnippet to match what it actually does:

  • src/components/InlineEditor.astro -> src/components/CodeSnippet.astro (via git mv, history preserved)
  • Updated the import and all 20 usages in src/pages/index.astro
  • Renamed the matching CSS classes: .inline-editor-frame -> .code-snippet-frame, .inline-editor-code -> .code-snippet-code

No behavior or visual changes.

Test plan

  • npm run check passes (0 errors, 0 warnings, 0 hints)
  • grep -rni inline-editor\|InlineEditor src/ returns nothing

🤖 Generated with Claude Code

The component is a leftover from the React-era site, where it was a live
editor backed by the online compiler. It now renders a static highlighted
snippet, so name it for what it does. Also renames the matching
.inline-editor-* CSS classes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit adf9e1c into master Aug 3, 2026
2 checks passed
@magnus-madsen
magnus-madsen deleted the refactor/rename-code-snippet branch August 3, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant