-
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
未読通知が100件以上の場合、通知ベル上のカウントが「99+」になるようにした #7584
Draft
masyuko0222
wants to merge
66
commits into
main
Choose a base branch
from
bug/counts_icon_of_unread_notifications
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+11,433
−7,841
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…tions-graph GithubのContributionが表示されないバグを修正
ダッシュボードの近日開催のイベントのリンクの文字色が休みの場合と開催の場合の色が逆になってたのを修正した
個人のポートフォリオページのデザイン崩れ修正
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…invalid-account-name-when-retire Discordアカウント名が不正だと退会時にエラーが発生する不具合を修正
…n-to-react bookmark-buttonをVueからReactに置き換え
お問い合わせのタブが増えたので、その分を修正
一覧画面のViewにのみリンクを追加 要素を正しくネストさせるために、共通しているコードもひとまず分割する
共通部分のファイル名は_inquiry_commonにする
decoratorのテストも追加
お問い合わせ一覧・個別ページを作成
22ecb33
to
9986ca9
Compare
9986ca9
to
3087aad
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
概要
画面右上の通知ベルには、未読通知数が表示されています。

以下の画像は、未読通知が200件ある状態ですが表示は「99」となってしまっています。これを「99+」という表示にしたい。
View側ではちゃんと未読通知件数が99件より多いと、表示は「99+」になる実装になっています。
bootcamp/app/javascript/components/NotificationsBell/BellButton.jsx
Lines 14 to 15 in 6dcc837
原因は取得する未読通知のリミットが99となっていたためです。今回の修正箇所はここです。
bootcamp/app/models/notification.rb
Line 47 in 03e5c1e
変更確認方法
bug/counts_icon_of_unread_notifications
をローカルに取り込む。1.upto(25)
を1.upto(200)
に一時的に書き換える。bootcamp/db/fixtures/notifications.yml
Lines 159 to 160 in 03e5c1e
rails db:seed
でseedsデータを投入する。(サーバ起動中でも実行可能です)Screenshot
未読通知の件数が100件以上の場合
変更前
変更後
関連Issue・PR