OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Merge branch 'feature/54733-primerise-the-activity-panel' into feature/40437-emoji-reactions-to-work-package-comments
jjabari-opacc920abc62a
diff --cc app/controllers/work_packages/activities_tab_controller.rbindex f285b3b5b02,48929162060..5a847b39f04--- a/app/controllers/work_packages/activities_tab_controller.rb+++ b/app/controllers/work_packages/activities_tab_controller.rb@@@ -344,38 -299,25 +331,38 @@@ class WorkPackages::ActivitiesTabControendend+ def generate_time_based_reaction_update_streams(last_update_timestamp)+ # Current limitation: Only shows added reactions, not removed ones+ EmojiReaction+ .where(reactable_id: @work_package.journal_ids)+ .where("updated_at > ?", last_update_timestamp).find_each do |reaction|+ update_via_turbo_stream(+ component: WorkPackages::ActivitiesTab::Journals::ItemComponent::Reactions.new(+ journal: reaction.reactable+ )+ )+ end+ end+def rerender_updated_journals(journals, last_update_timestamp)journals.where("updated_at > ?", last_update_timestamp).find_each do |journal|- update_via_turbo_stream(- # we need to update the whole component as the show part is not rendered for journals which originally have no notes- component: WorkPackages::ActivitiesTab::Journals::ItemComponent.new(- journal:,- filter: @filter- )- )- # TODO: is it possible to loose an edit state this way?+ update_item_component(journal:)end+ end- journals.where("created_at > ?", last_update_timestamp).find_each do |journal|- append_or_prepend_latest_journal_via_turbo_stream(journal)+ def rerender_journals_with_updated_notification(journals, last_update_timestamp)+ # Case: the user marked the journal as read somewhere else and expects the bubble to disappear+ journals+ .joins(:notifications)+ .where("notifications.updated_at > ?", last_update_timestamp)+ .find_each do |journal|+ update_item_component(journal:)end+ end- if journals.any?- remove_potential_empty_state- update_activity_counter+ def append_or_prepend_journals(journals, last_update_timestamp)+ journals.where("created_at > ?", last_update_timestamp).find_each do |journal|+ append_or_prepend_latest_journal_via_turbo_stream(journal)endend