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
feat: noticed integration (Notification Page) #3243
feat: noticed integration (Notification Page) #3243
Conversation
padding-bottom: 5px; | ||
} | ||
.tab_container .active { | ||
font-weight: bold; |
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.
Properties should be ordered border-bottom, font-weight
@@ -95,6 +97,10 @@ def fork(user) | |||
forked_project.update!( | |||
view: 1, author_id: user.id, forked_project_id: id, name: name | |||
) | |||
@project = Project.find(id) | |||
if @project.author != user |
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.
Favor modifier if
usage when having a single-line body. Another good alternative is the usage of control flow &&
/||
.
db/migrate/20220815023618_remove_actvity_notifications_tables.rb
Outdated
Show resolved
Hide resolved
9aa7153
to
151c6db
Compare
db/migrate/20220813051558_populate_noticed_notifications_table.rb
Outdated
Show resolved
Hide resolved
end | ||
|
||
def mark_all_as_read | ||
NoticedNotification.where(recipient: current_user, read_at: nil).update_all(read_at: Time.zone.now) |
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.
Avoid using update_all
because it skips validations.
Code Climate has analyzed commit d7ebfa0 and detected 7 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Finally 🎉 |
Fixes #2321
Describe the changes you have made in this PR -
- Star a Project.
- Fork a Project.
UI
Notification Page
Navbar Quick Notifications
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.