Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

絵文字のオートコンプリート強化の対応 #12365

Merged
merged 10 commits into from
Nov 22, 2023

Conversation

samunohito
Copy link
Member

@samunohito samunohito commented Nov 18, 2023

What

#12364 の対応です。
この対応により、絵文字をオートコンプリートが強化されます。

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

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Nov 18, 2023
Copy link

codecov bot commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b15f293) 78.77% compared to head (be47404) 78.77%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12365      +/-   ##
===========================================
- Coverage    78.77%   78.77%   -0.01%     
===========================================
  Files          947      947              
  Lines       102778   102778              
  Branches      8285     8284       -1     
===========================================
- Hits         80968    80966       -2     
- Misses       21810    21812       +2     

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

Copy link
Contributor

github-actions bot commented Nov 18, 2023

このPRによるapi.jsonの差分

差分はこちら

Get diff files from Workflow Page

@samunohito samunohito changed the title [wip] 絵文字のオートコンプリート強化の対応 絵文字のオートコンプリート強化の対応 Nov 18, 2023
@samunohito samunohito marked this pull request as ready for review November 18, 2023 10:15
const queryChars = [...query];
const hitEmojis = new Map<string, EmojiScore>();

emojiDb.forEach(x => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for of が使えない理由ってあるかしら?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

全く無いですね…コピペもとがsomeで、それをforEachにしただけでした
特にこだわりはない+周りを見たらfor ofだったので合わせました

be47404

@syuilo syuilo merged commit ded328f into misskey-dev:develop Nov 22, 2023
18 checks passed
@syuilo
Copy link
Member

syuilo commented Nov 22, 2023

👍👍👍

anatawa12 pushed a commit to anatawa12/misskey that referenced this pull request Nov 26, 2023
* 前方一致・部分一致でなくても近似値でヒットするように

* fix CHANGELOG.md

* for of に変更

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
@samunohito samunohito deleted the enhance/emoji_autocomplete branch January 11, 2024 00:15
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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants