42 Commits

Author SHA1 Message Date
Oliver Günther ac4794ad8f Use customizable? to check for non-customizable journables 2026-05-19 18:32:28 +02:00
Oliver Günther 3fcdc893b4 Also use visible scope for activities view 2026-05-19 08:47:56 +02:00
Oliver Günther 4d731dcab6 Replace raw and explicit html_safe calls 2026-03-20 09:49:10 +01:00
Oliver Günther b06e1d4f1b Keep and comment html_safe usages we need 2026-03-20 08:53:15 +01:00
Klaus Zanders 0aa39c5c2d Fix time entry activity spec 2025-07-09 10:41:27 +02:00
Klaus Zanders 3ab822fa1e Implement polymorphic association for journaling 2025-07-09 10:41:26 +02:00
Klaus Zanders 49ba0dc406 Better naming what the delete_detail method is doing 2025-07-09 10:41:25 +02:00
Klaus Zanders 797d9ed8e0 Activity ItemComponent aware of entity 2025-07-09 10:41:19 +02:00
Ivan Kuchin 0f6a12da3a erb_lint auto fix layout 2025-02-11 18:49:20 +01:00
Ivan Kuchin fb715f21b9 erb_lint auto fix quotes 2025-02-11 18:49:19 +01:00
ulferts 9a32b4d4b5 i18n for details link 2024-11-08 08:04:49 +01:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Oliver Günther b0554a545c Merge pull request #15174 from opf/feature/53580-check-if-and-how-project-activity-logs-should-be-adapted
Feature/53580 check if and how project activity logs should be adapted
2024-04-10 09:52:17 +02:00
Mir Bhatia 863ef4ee6e [#54015] Update agenda item work package history subtitles (#15196)
* [#54015] Update agenda item work package history subtitles

https://community.openproject.org/work_packages/54015

* Update agenda item work package history subtitles

* Update item_subtitle_component_spec

* Update history_spec
2024-04-09 15:21:11 +02:00
Dombi Attila 9dd0b49249 Add "The changes were retracted" when displaying empty journals on the activities page.
The extra information is required, because when a project attribute
becomes disabled, the changes on the attribute ar hidden from the
activities. This can produce seemingly empty journals which will receive
the information that "The changes were retracted".
2024-04-09 12:02:12 +03:00
Mir Bhatia 5dccda332f [#50820] Show meeting history / changes (#14112)
* [#50832] Add a dropdown item "History" to link to the meetings activity page

https://community.openproject.org/work_packages/50832

* Add history menu item for dynamic meetings

* WIP

* WIP

* WIP

* Update frame_component to handle lazy loading

* Duplicate project activity components

* Remove duplicate components

* Update history component and views

* Add Activities::Fetcher to meetings_controller

* WIP 20240130

* WIP Use regular journal formatters

* WIP Separate event details for agenda_items

* Add agenda_item_duration journal formatter

* Add agenda_item_position journal_formatter

* Update provider to differentiate between meetings

* Fix and add to item_subtitle_component specs

* Pass meeting id to the path helper

* Replace use of Fetcher with EventMapper

* Differentiate activity events by controller

* Use async dialog and fix padding / heading variant

* Update history item title conditions

* WIP: Add feature spec

* Format meeting start_time as one

* Use more generic keys in events, and perform the mapping in a subclass

* Change order formatter

* Filter out position changes if they happen as part of other changes

* Remove old implementation

* Custom title for meeting

* Allow duration component to render just text

* Format duration

* draft spec

* WIP

* Render duration in minutes and hours depending on value

* Extend spec

* Fix activity display on project level

* Fix renamed spec

* Fix check for time entry

* Fix renamed time attribute

* Rename action

---------

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2024-04-04 07:12:29 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Dombi Attila 1d541f8237 [#47010] Replace Members Cells by ViewComponent
https://community.openproject.org/work_packages/47010
2023-05-23 14:21:55 +03:00
Mir Bhatia a9ec379365 Merge pull request #12353 from opf/implementation/47070-improve-and-extend-how-spent-time-activity-items-are-displayed
[#47070] Improve and extend how spent time activity items are displayed
2023-05-15 11:16:28 +02:00
Christophe Bliard d97dda1e6b Add missing translation for "Comment added"
Fixes https://community.openproject.org/work_packages/48157
2023-05-09 16:12:58 +02:00
Mir Bhatia f67dcaa388 Refactor and add filtering to item_component.rb 2023-04-25 18:51:52 +02:00
Mir Bhatia 3ddffb8653 Add details link for TimeEntry activity items 2023-04-25 17:10:53 +02:00
Mir Bhatia 610de918c2 Fix spec and rubocop issues 2023-04-24 11:10:47 +02:00
Mir Bhatia ff8a379652 Update event_path() for TimeEntry activity items 2023-04-21 19:54:46 +02:00
Mir Bhatia 5ca4198410 WIP: Format TimeEntry activities 2023-04-18 19:17:00 +02:00
Mir Bhatia 509719f84e WIP: Format TimeEntry activities 2023-04-17 16:41:31 +02:00
Mir Bhatia f8c9dfdf5c WIP: Add details for TimeEntry activities 2023-04-14 18:31:09 +02:00
Mir Bhatia 20da81bae7 Add different subtitle text for TimeEntry journals 2023-04-14 17:12:32 +02:00
Christophe Bliard 758c41051b [46373] Display whole activity title
https://community.openproject.org/wp/46373

Stop truncating activity title at 100 characters like it used to be.
2023-02-24 11:24:52 +01:00
Christophe Bliard 1aafe4df41 Hide activity details for which no formatter exists
My bad. I mixed flat_map and filter_map in 09c76f987.
2023-02-24 10:24:14 +01:00
Christophe Bliard 5b43c1494e refactor: Remove Activities::ListComponent
It was not doing much
2023-02-24 10:24:14 +01:00
Mir Bhatia 6300e75cca [46191] Indicate the subproject only when the update concerns a subproject
https://community.openproject.org/work_packages/46191

Adapt project suffix in activity title:
- For project activities, no suffix
- For current project activities, no suffix (in project activities list)
- For subprojects of current project, subproject suffix (in project
  activities list)
- For other activities, project suffix

Co-authored-by: Christophe Bliard <c.bliard@openproject.com>
2023-02-24 10:22:40 +01:00
Andreas Pfohl 9c4e76fbae Merge pull request #12142 from opf/implementation/46190-fix-qa-issue-7-diff-back-link
[46190] Link back button of diff page to the correct page
2023-02-24 09:56:35 +01:00
Christophe Bliard 0f90fc4cb7 Pass activity_page for diff back link without using global state 2023-02-22 16:37:26 +01:00
Mir Bhatia 246f7bddf1 Include requested changes 2023-02-22 11:57:13 +01:00
Mir Bhatia cb0aebb5b1 WIP: Reformat the comment activity block 2023-02-21 12:46:31 +01:00
Christophe Bliard 94b3742f87 refactor: use ViewComponent collection rendering to reduce view code size 2023-02-16 16:34:08 +01:00
Christophe Bliard 09c76f987c refactor: Reduce code duplication
`Activities::DaysComponent` factorizes the code to generate the HTML for
the activities per days.

By moving `journal` into `Activities::Event`, `journals_by_id` does not
need to be passed around anymore. Eager loading of journals is moved to
`Activities::Fetcher` instead of being handled by the controller. It
also means that the atom feed will be slower as it does not need the
journals information.
2023-02-16 16:34:07 +01:00
Christophe Bliard 93535c96e3 refactor: Move activity components in a dedicated folder 2023-02-16 09:58:22 +01:00