Skip to content

fix(frontend): カスタム絵文字でリアクションコールバックの inject 警告を解消 - #17967

Merged
syuilo merged 1 commit into
misskey-dev:developfrom
kakkokari-gtyih:fix-mk-custom-emoji-inject
Sep 29, 2026
Merged

syuilo merged 1 commit into
misskey-dev:developfrom
kakkokari-gtyih:fix-mk-custom-emoji-inject

Conversation

@kakkokari-gtyih

@kakkokari-gtyih kakkokari-gtyih commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

What

DI.mfmEmojiReactCallback のprovideが親に存在しない場所で MkCustomEmoji を使うと警告が出る
初期値を設定して抑制

Why

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md 不要
  • (If possible) Add tests

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: misskey-dev/misskey/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: cf3e1efe-7bbd-47bb-97fe-4c800e185787

📥 Commits

Reviewing files that changed from the base of the PR and between feaa29f and 8c55edb.

📒 Files selected for processing (1)
  • packages/frontend/src/components/global/MkCustomEmoji.vue

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

MkCustomEmoji.vueで、リアクション用コールバックの注入にnullを既定値として指定しました。未提供時の値はundefinedではなくnullになります。

Changes

カスタム絵文字のリアクション

Layer / File(s) Summary
コールバックの既定値
packages/frontend/src/components/global/MkCustomEmoji.vue
reactの注入にnullを指定しました。props.menuReaction && reactの条件判定は変更していません。

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 8c55e

When no reaction callback is provided, the custom emoji reaction action remains inactive and the missing-injection warning is avoided. No concrete merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning 変更内容と問題点は「What」に記載されています。ただし、必須セクションの「Why」が未記入です。変更の意図や解決する問題を明記してください。 「Why」セクションに、DI.mfmEmojiReactCallbackのprovideが存在しない場所でMkCustomEmojiを使用するとinject警告が発生すること、および初期値nullを設定して警告を抑制する理由を記載してください。
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed タイトルは、カスタム絵文字のリアクションコールバックに関するinject警告を解消する変更を具体的に示しています。変更内容と一致しています。
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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.

❤️ Share

絵文字にコールバック
なければ値はnull
条件判定はそのまま
小さな既定値の変更
今日も画面に並びます

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 14.13%. Comparing base (feaa29f) to head (8c55edb).

Files with missing lines Patch % Lines
...s/frontend/src/components/global/MkCustomEmoji.vue 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #17967       +/-   ##
============================================
- Coverage    60.32%   14.13%   -46.19%     
============================================
  Files         1196      248      -948     
  Lines        40546    11982    -28564     
  Branches     11498     4036     -7462     
============================================
- Hits         24459     1694    -22765     
+ Misses       13052     8072     -4980     
+ Partials      3035     2216      -819     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

🖥 Frontend Diagnostics Report

(No significant changes)

View details

Requests by resource type
Type Requests Encoded bytes
Base Head Δ Base Head Δ
Document 2 2 0 33 KB 33 KB 0 B
Script 148 148 0 2.1 MB 2.1 MB $\color{orange}{\text{+10 B}}$
Stylesheet 58 58 0 284 KB 284 KB 0 B
Fetch 20 20 0 46 KB 46 KB 0 B
Image 10 10 0 254 KB 254 KB 0 B
Font 2 2 0 118 KB 118 KB 0 B
Other 9 9 0 421 KB 421 KB $\color{green}{\text{-2 B}}$
V8 heap snapshot statistics
Metric @ Base @ Head Δ MAD
$\color{gray}{\rule{8pt}{8pt}}$ Total 11 MB
± 21 KB
11 MB
± 28 KB
$\text{+37 KB}$
$\text{+0.3\%}$
35 KB
$\color{orange}{\rule{8pt}{8pt}}$ Code 2.8 MB 2.8 MB $\text{-6.5 KB}$ 8.2 KB
$\color{red}{\rule{8pt}{8pt}}$ Strings 1.2 MB 1.2 MB $\text{-84 B}$ 294 B
$\color{cyan}{\rule{8pt}{8pt}}$ JS arrays 113 KB 113 KB 0 B 0 B
$\color{green}{\rule{8pt}{8pt}}$ Typed arrays 0 B 0 B 0 B 0 B
$\color{yellow}{\rule{8pt}{8pt}}$ System objects 0 B 0 B 0 B 0 B
$\color{violet}{\rule{8pt}{8pt}}$ Other JS objs 2 MB 2 MB $\text{-120 B}$ 477 B
$\color{pink}{\rule{8pt}{8pt}}$ Other non-JS objs 5 MB 5 MB $\text{+39 KB}$ 22 KB

Download representative heap snapshot: base / head

📦 Bundle Stats

Chunk size diff (0 updated, 0 added, 0 removed)
Chunk Base Head Δ Δ (%)
(total) 5.9 MB 5.9 MB $\text{+5 B}$ $\text{+0\%}$
(other generated chunks) 2 MB 2 MB $\text{+5 B}$ $\text{+0\%}$
Startup chunk size (0 updated, 0 added, 0 removed)
Chunk Base Head Δ Δ (%)
(total) 1 MB 1 MB $\text{+5 B}$ $\text{+0\%}$
(other generated chunks) 755 KB 755 KB $\text{+5 B}$ $\text{+0\%}$
(other) 280 KB 280 KB 0 B 0%

Startup chunks are the Vite entry for src/_boot_.ts and its static imports.

Bundles Modules Entries Imports Size
Static Dynamic Rendered Gzip Brotli
Base 469 2,866 21 10,715 333 10 MB 2.8 MB 2.4 MB
Head 469 2,866 21 10,715 333 10 MB 2.8 MB 2.4 MB
Δ 0 0 0 0 0 $\text{+6 B}$ $\text{+2 B}$ $\text{+11 B}$
Δ (%) 0% 0% 0% 0% 0% $\text{+0\%}$ $\text{+0\%}$ $\text{+0\%}$

Open treemap HTML

@syuilo
syuilo merged commit c146fd8 into misskey-dev:develop Sep 29, 2026
25 checks passed
@syuilo

syuilo commented Sep 29, 2026

Copy link
Copy Markdown
Member

🙏🏻

@kakkokari-gtyih
kakkokari-gtyih deleted the fix-mk-custom-emoji-inject branch September 29, 2026 12:45
anatawa12 added a commit to anatawa12/misskey that referenced this pull request Oct 1, 2026
* [skip ci] Update CHANGELOG.md (prepend template)

* fix: review fixes for 2026.9.1 (misskey-dev#17964)

* fix(backend/test): のカバレッジが正しく記録されない問題を修正 (misskey-dev#17981)

* fix(test-server): e2eサーバのバンドルをViteのmodule runnerを通さず読み込む (yojo-art/cherrypick#1395)

* clean up

---------

Co-authored-by: 4ster1sk <146138447+4ster1sk@users.noreply.github.com>

* fix: include query string in HTTP Signature (request-target) (misskey-dev#17941)

* fix(backend): include query string in HTTP Signature request-target

Draft HTTP Signatures require (request-target) to be the method plus
the path and query. Signing pathname only breaks federation with
implementations that verify the query string, such as Mastodon.

Fixes misskey-dev#17734

* fix(backend): keep empty query delimiter in HTTP Signature request-target

URL.search drops a trailing "?" when the query is empty, so
https://example.com/outbox?#ignored was signed as /outbox instead of
/outbox?. Preserve that delimiter from the serialized href.

* test(backend): cover trailing ? without hash in HTTP Signature request-target

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(backend): クリップから同じノートを繰り返し削除すると clippedCount が負数になる問題の修正 (misskey-dev#17974)

* fix(backend): クリップから同じノートを繰り返し削除すると clippedCount が負数になる問題の修正

* test(backend): クリップに追加されていないノートは削除できず clippedCount も減らないことを検証

* fix(frontend): MkModal初期化時に要素が存在しない場合エラーが発生しうる問題を修正 (misskey-dev#17968)

fix(frontend): add null guard for MkModal content children[0]

When a modal opens before its slot content renders,
content.value.children[0] is undefined, causing:
TypeError: Cannot read properties of undefined (reading 'addEventListener')

This crashes all modals including the user-setup wizard.

Co-authored-by: しろは <admin@k7a.org>

* fix(frontend): カスタム絵文字でリアクションコールバックの inject 警告を解消 (misskey-dev#17967)

Co-authored-by: Zel9278 <43949163+Zel9278@users.noreply.github.com>

* Bump version to 2026.9.2-alpha.0

* New Crowdin updates (misskey-dev#17970)

* New translations ja-jp.yml (Italian)

[ci skip]

* New translations ja-jp.yml (Indonesian)

[ci skip]

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* fix(frontend): ユーザーの「概要」ページで引っ張って更新しても何も更新されない問題を修正 (misskey-dev#17965)

* fix(frontend): プロフィールページの pull to refresh が何も再取得しない (shiroha-a/misskey-ts#3150)

Co-Authored-By: しろは <admin@k7a.org>

* clean up

* Update Changelog

* clean up

* Update Changelog

* fix

---------

Co-authored-by: しろは <admin@k7a.org>

* Merge commit from fork

* Merge commit from fork

* Merge commit from fork

* Update CHANGELOG.md [ci skip]

* Merge commit from fork

* fix(backend): respect following/followers visibility in federation follow endpoints

* fix

* fix: review fixes for v2026.10.0 (misskey-dev#17987)

* fix(backend): prevent registration ticket reuse while its pending signup is still valid

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): apply ugcVisibilityForVisitor to user web feeds

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): apply ugcVisibilityForVisitor to streaming delivery

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): apply ugcVisibilityForVisitor to anonymous note read paths

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(backend): restrict role timeline streaming to public explorable roles

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(backend): exclude notes hidden by makeNotesHiddenBefore/makeNotesFollowersOnlyBefore from user web feeds

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): refuse to translate notes hidden by makeNotesHiddenBefore/makeNotesFollowersOnlyBefore

* fix(backend): hide non-public role IDs from anonymous avatar decoration list

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): apply ugcVisibilityForVisitor to users/show with userIds

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): hide reply targets that the viewer cannot see in streaming delivery

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(backend): ストリーム接続直後の要求を受信順に処理する

チャンネル生成中に後続の要求が届くと、未登録のチャンネル宛てとして捨てられ、ジョブキューウィジェットが次の定期配信まで初期値を表示できなかった。同一接続の受信処理を直列化し、接続の初期化が完了してから後続の要求を処理する。切断済みの接続では待機中の要求や生成直後のチャンネルを使わない。

* fix(backend): クエリキャッシュにRedisのSentinel接続設定を引き継ぐ

TypeORMのクエリキャッシュがRedis設定を接続先などの項目だけで組み直していたため、Sentinelによるprimaryの探索とREADONLY時の再接続処理が失われていた。接続先がreplicaを返す構成では、統計APIのキャッシュ書き込みがREADONLYで失敗する。

通常のRedisクライアントと同じ正規化済み設定を渡し、クエリ専用のkeyPrefixだけを維持することで、認証や既定値を揃えたままprimaryへ接続できるようにする。

* docs: document the changes in behavior when a proxy is configured

* fix(backend): enforce rate limit on passkey signin

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): check note visibility before allowing poll votes

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): check note visibility before favoriting a note

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): check chat message participation before unreacting

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): normalize chat react/unreact errors to no such message

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): bind relay Accept/Reject to the relay endpoint itself

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): gate reaction diffs in show-partial-bulk on visibility

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): keep remote content attached to local content visible to visitors under ugcVisibilityForVisitor: local

Only standalone listings of remote content (timelines, search, user notes)
are gated for visitors; replies, quotes, renotes and conversations stay
visible. 'none' still hides everything.

* chore(backend): add TODO for ugcVisibilityForVisitor handling of attached remote notes

* fix(backend): only map chat message access errors to no such message

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(backend): apply ugcVisibilityForVisitor: none to show-partial-bulk

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* chore(backend): add TODO for ugcVisibilityForVisitor handling in reaction diffs and note stream events

* fix docs

* refactor

---------

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: KanariKanaru <93921745+kanarikanaru@users.noreply.github.com>

* fix(backend): オブジェクトストレージ不使用時の画像周りの挙動の修正 (misskey-dev#17988)

* fix(backend): 内蔵ストレージ利用時に画像サムネイルの配信が途中で終了する問題を修正 (HanaMisskey#434)

* fix(backend): 内部保存ファイルのキーに含まれるパスを拒否する (HanaMisskey#436)

内部保存ファイルのアクセスキーは単一ファイル名として扱う。DBに一致するキーでも、パスを含む入力やドットディレクトリはパス解決前に拒否する。

---------

Co-authored-by: KanariKanaru <93921745+kanarikanaru@users.noreply.github.com>

* New Crowdin updates (misskey-dev#17986)

* New translations ja-jp.yml (Chinese Simplified)

[ci skip]

* New translations ja-jp.yml (Korean (Gyeongsang))

[ci skip]

* Bump version to 2026.10.0-alpha.0

* Update CHANGELOG.md

* Update CHANGELOG.md [ci skip]

* Update dependency fastify to v5.12.5 [SECURITY] (misskey-dev#17990)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: review fixes for v2026.10.0 (2) (misskey-dev#17991)

* fix(backend): add X-Frame-Options and CSP frame-ancestors to OAuth routes

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* fix(backend): escape Meilisearch filter values

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

---------

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>

* Merge commit from fork

* fix(backend): re-select download agent for each redirect target

* fix(backend): enforce local-address checks in DownloadService

---------

Co-authored-by: hacchoomiso <210007369+hacchoomiso@users.noreply.github.com>

* Release: 2026.10.0

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: 4ster1sk <146138447+4ster1sk@users.noreply.github.com>
Co-authored-by: chenchen <Kayano04@outlook.jp>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: しろは <admin@k7a.org>
Co-authored-by: Zel9278 <43949163+Zel9278@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: KanariKanaru <93921745+kanarikanaru@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: hacchoomiso <210007369+hacchoomiso@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages/frontend Client side specific issue/PR

Projects

Development

Successfully merging this pull request may close these issues.

2 participants