Skip to content

Commit 955b0c9

Browse files
devonjonesclaude
andcommitted
refactor: change sprite sheet terminology to preview image
Replace domain-specific "sprite sheet" terminology with more user-friendly "preview image" in download button and context menu. Changes: - Context menu: "Download sprite sheet" → "Download preview image" - Download button tooltip: updated to match - Downloaded filename: -sprite.png → -preview.png - Code comments: updated for consistency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 0472099 commit 955b0c9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/blueprint/sprite-viewer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ const KeyboardHint: React.FC = () => (
230230
);
231231

232232
/**
233-
* Downloads the sprite sheet image directly (CORS enabled on R2)
233+
* Downloads the preview image directly (CORS enabled on R2)
234234
*/
235235
function downloadSpriteSheet(spriteUrl: string, blueprintName: string) {
236236
const a = document.createElement('a');
237237
a.href = spriteUrl;
238-
a.download = `${blueprintName}-sprite.png`;
238+
a.download = `${blueprintName}-preview.png`;
239239
a.click();
240240
}
241241

@@ -296,7 +296,7 @@ const SpriteViewer: React.FC<SpriteViewerProps> = ({ blueprint, thumbnailData })
296296
contextMenu.style.padding = '4px 0';
297297

298298
const downloadOption = document.createElement('div');
299-
downloadOption.textContent = 'Download sprite sheet';
299+
downloadOption.textContent = 'Download preview image';
300300
downloadOption.style.padding = '8px 16px';
301301
downloadOption.style.cursor = 'pointer';
302302
downloadOption.style.fontSize = '14px';
@@ -356,7 +356,7 @@ const SpriteViewer: React.FC<SpriteViewerProps> = ({ blueprint, thumbnailData })
356356
<button
357357
onClick={handleDownload}
358358
className="absolute bottom-2 right-2 bg-black bg-opacity-50 hover:bg-opacity-70 text-white rounded px-2 py-1 text-xs"
359-
title="Download sprite sheet"
359+
title="Download preview image"
360360
type="button"
361361
>
362362

0 commit comments

Comments
 (0)