-
Notifications
You must be signed in to change notification settings - Fork 72
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
ユーザーメモ欄、提出物ページのプラクティスメモ欄でユーザーアイコンが表示されるようにした #8283
base: main
Are you sure you want to change the base?
Conversation
7b96cb9
to
9f89c28
Compare
@Ryooo-k 都合が合わなければ遠慮なく仰ってください🙇♂️ |
@mousu-a |
@Ryooo-k |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mousu-a
確認いたしました!コードは問題なさそうです👍
一点だけですが、キャンセル→編集→プレビューの場合、アイコンが表示されてないようなので、こちらも対応されていた方が良いかと思いました!
2025-01-29.17.29.13.mov
ご確認お願いしますー🙏
9f89c28
to
9673904
Compare
すみません、盲点でした👀 修正しましたので再度レビューをお願いいたします🙏 |
@mousu-a バグ1提出物のプラクティスメモでアイコンを保存後、画面更新をするとなぜか表示されません。 2025-02-04.9.13.23.movバグ2画面更新を何度も押すと、アイコンが表示・非表示で切り替わる。(切り替わるタイミングはランダム?) 2025-02-04.9.25.45.movプロフィールのメモはこのようなバグにはなっていないのですが、原因わかりますでしょうか? |
お気になさらないでくださいー! |
@Ryooo-k バグの発生理由がわかりました! なぜこのバグが発生しているのかそもそもユーザーアイコンの機能は、markdown-it-user-icon.js(以下user-icon)が実行された後にuser-icon-renderer.js(以下user-icon-renderer)が実行されることで実装されています。 ただ、時々user-iconの前にuser-icon-rendererが実行されてしまうことがあり、その場合にユーザーアイコンが表示されずこのバグが発生します。(実行すべき順番が逆になってしまう) 解決策必ずuser-iconが実行された後にuser-icon-rendererが実行されるようにする 問題点ただこの方法には問題点があります。 補足情報user-iconとuser-icon-rendererは同じPR内で実装されたものになりますので、当時の開発者も同じように考えこの実装(時々順番が逆になってしまう状態)になっているのだと思われます。 妥協案妥協案として、user-icon-rendererの実行をsetTimeOutで遅らせることでこの問題が解決できたらなと考えています。 すみません、手元では実装は終了しているんですがただいまテストが通らないため、落ち着いたら再レビューしていただければと思います!取り急ぎご報告でした🙇♂️ |
Issue
概要
変更確認方法
bug/fix-user-icon-in-user-notes-field
をローカルに取り込む。git fetch origin bug/fix-user-icon-in-user-notes-field
git checkout bug/fix-user-icon-in-user-notes-field
foreman start -f Procfile.dev
でローカルサーバーを立ち上げる。komagata
、パスワードtesttest
でログインする。(メンターであれば誰でもいいです):@komagata:
を貼り付けて保存する。(←の文字列を貼り付けるとなぜかアイコンが増殖するかもしれませんがこちらのissueと同じ問題と思われます)Screenshot
変更前
ユーザープロフィール


ユーザーの提出物詳細
変更後
ユーザープロフィール


ユーザーの提出物詳細