Conversation
vite の minify は dropConsole を有効にしているため (#985)、`console.log(...)` と静的に判定できる呼び出しは本番ビルドで丸ごと削除される。警告は全行が console.log なので関数ごと空になり、文言も dist から消えていた。PROD のみで 呼んでいる都合上 dev では正常に出るので、開発中は気づけない。 参照を経由して呼ぶことで DCE を回避する。同じ壊れ方を無言で再発させないため、 出力に文言が残っているかを check-dist-budget.mjs (CI の pnpm check:dist) で 検査する。壊れた形に戻すと実際に落ちることを確認済み。 Co-Authored-By: Claude <Opus 5> <noreply@anthropic.com>
モードアイコンの引き当てがカスタム TL の型名 (`hanami`) を鍵にしていたため、 モード名 (`hana`) では引けず、はなみすきーだけデフォルトの丸に落ちていた。 `isIn<X>Mode` と `isNoteIn<X>Mode` の両方から同じモード名を取り出し、 アカウントのモードとノートのモードを 1 つの表で引くようにする。 アイコンはフォーク本家に合わせる。yamisskey は `ti-moon` / `ti-moon-off`、 はなみすきーは独自グリフ `ti-hanamisskey-hanamode` (花) と `ti-users-group`。 独自グリフは配布フォントに無いので Tabler の花で代替し、オフ側はトグルとして 読めることを優先して `flower-off` で対にした。 未知のモードのフォールバックは用途で分ける。トグルは従来どおり toggle-左右、 ノートのバッジはトグルに見えない中立な印 (`circle-dot`) にする。 ついでにモードだけ手書き SVG path だったのをやめて Tabler クラスに統一する。 同じ行に並ぶ他のアイコンは既に `ti-*` で、描画も MkNote は fill・MkPostForm は stroke と不揃いだった。オン/オフで別アイコンを出せるようになったので、 投稿フォームのボタンは色だけでなく形でも状態がわかる。 Co-Authored-By: Claude <Opus 5> <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe release updates mode icon resolution and its consumers, adds coverage for mode mappings, preserves the self-XSS warning during distribution builds, improves distribution checks, updates distribution documentation links, and increments release metadata to 1.42.5. ChangesMode icons and release validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ 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 |
Deploying notedeck with
|
| Latest commit: |
97b3783
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://140bf015.notedeck-d3a.pages.dev |
| Branch Preview URL: | https://develop.notedeck-d3a.pages.dev |
開発者ドキュメントが「MisStore で配布できます」と書きながらストアのトップに しか飛ばしておらず、提出手順に辿り着けなかった。misstore 側のドキュメントが 公開されたので、各 dev ガイドから CONTRIBUTING と種別ごとの書式リファレンスへ リンクする。SKILLS.md の「近日公開予定」も実リンクに差し替え。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
変更内容
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores