feat(preview): use @box/item-icon markdown icon for loading screen#4646
Conversation
Markdown files (md, markdown, mdown) on the preview loading screen previously rendered the legacy IconFileCode content icon. Switch them to the dedicated markdown icon from @box/item-icon. Bump @box/item-icon ^2.37.5 -> ^3.2.0 (resolves 3.2.2); the markdown file category/icon was added in 3.2.0, 2.x only had code. Register itemIconTable.markdown for those extensions in previewIcons.ts and update PreviewLoading tests (markdown for md/markdown/mdown, code still for html). PREVIEW-739 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughUpdates ChangesMarkdown Icon Registration and
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 12 minutes 41 seconds in the queue, including 12 minutes 9 seconds running CI. Required conditions to merge
|
Summary
Markdown files (
md,markdown,mdown) on the preview loading screen previously rendered the legacyIconFileCodecontent icon. This switches them to the dedicated markdown icon from@box/item-icon.Changes
@box/item-icon^2.37.5→^3.2.0(resolves to3.2.2). Themarkdownfile category / icon was introduced in 3.2.0; 2.x only hadcode.itemIconTable.markdownformd,markdown,mdowninpreviewIcons.ts(previously these fell underIconFileCode).PreviewLoadingtests: assert the markdown icon for those extensions, and that HTML still uses the code icon.yarn.lockchange limited to the single@box/item-iconresolution (lockfile stays v1).Test plan
PreviewLoadingunit tests pass (11/11)ItemTypeIcon(other in-repo@box/item-iconconsumer) passes under the major bump (7/7)🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
.md,.markdown, and.mdownuse a dedicated Markdown icon (while.htmlcontinues to use the code icon)Tests
Chores
3.2.0