24 Commits

Author SHA1 Message Date
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +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
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 8fa8584538 Run rubocop --autocorrect on all files
Only the safe cops have run. rubocop version is 1.59.0.
2024-01-05 15:27:09 +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
Henriette Darge f47011b689 remove custom override for the activity header and fix broken translations for the activity page 2023-08-15 17:51:00 +02:00
Mir Bhatia 5acc40eef6 Fix some review issues such as naming and typos 2023-05-15 09:43:18 +02:00
Mir Bhatia 72408fc609 Make rubocop happy 2023-05-09 19:57:49 +02:00
Mir Bhatia 9c266ec78c Fix space issues in item_subtitle_component_spec 2023-05-05 14:23:59 +02:00
Mir Bhatia d802c2667a WIP: Add specs 2023-05-02 18:37:25 +02:00
Mir Bhatia b82823a525 Update custom journal formatter styling 2023-04-24 16:10:58 +02:00
Mir Bhatia 610de918c2 Fix spec and rubocop issues 2023-04-24 11:10:47 +02:00
Mir Bhatia 7710736d3e Comment out pending specs 2023-04-21 19:59:16 +02:00
Mir Bhatia 509719f84e WIP: Format TimeEntry activities 2023-04-17 16:41:31 +02:00
Mir Bhatia 04b69e3385 WIP: Add specs 2023-04-14 16:13:39 +02:00
Mir Bhatia f4288e04f0 WIP: Add specs 2023-03-31 17:05:22 +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
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
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