13 Commits

Author SHA1 Message Date
Alexander Brandon Coles c32f2f2e26 [#74950] Migrate Angular DI to inject()
Migrates Angular constructor-based dependency injection to the
`inject()` function. The initial pass used the Angular schematic;
manual follow-up handled abstract classes, inheritance-sensitive
constructors, and call sites that still instantiate services
directly.

Schematic command:

  cd frontend && npx ng generate @angular/core:inject-migration \
    --path ./ \
    --migrate-abstract-classes \
    --backwards-compatible-constructors=false \
    --non-nullable-optional=false

https://community.openproject.org/wp/74950
2026-05-18 10:23:52 +02:00
Alexander Brandon Coles 39b29c2789 Update Angular to v19
Force updates Angular dependencies:

    ng update @angular/core@19 @angular/cli@19 --force

And performs automated upgrade:

- Updates non-standalone Directives, Component and Pipes to
  'standalone:false' and removes 'standalone:true' from those who are
  standalone.
2025-07-22 18:22:19 +01:00
Oliver Günther ac39406347 Replace dynamic bootstrapped components with angular elements 2024-08-16 19:16:13 +02:00
Ivan Kuchin bca7db9398 update copyrights 2024-07-31 15:02:50 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Oliver Günther 5ca39090ca Fix empty actor not resulting in error
https://community.openproject.org/work_packages/https://appsignal.com/openproject-gmbh/sites/62b06dacd2a5e41321946fcf/exceptions/incidents/224
2024-07-22 12:37:06 +02: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
Aaron Contreras 50711b72c4 Derive the message used for macros from the Pull Request state
In order to properly select the message to be used, a small helper
function can help by deriving which tranlsation to use.

Updated the relevant feature spec to ensure the right tranlsation is
selected and the comment displayed in the Work Package activity matches
the expectation.
2023-08-10 13:13:14 -05:00
Aaron Contreras 8988b6d698 Fix Author being displayed as merging user incorrectly in Activity
We now derive which should be the Github User attached to the Work Package
Activity Comment depending on what type of state the pull request was
in when the journal is saved.

- If the state was merged, use the `merged_by` user.
- Otherwise, use the author.
2023-08-03 14:18:44 -05:00
Oliver Günther 4c66fc1d18 Extract PR state into separate coponent 2023-04-18 16:09:09 +02:00
Oliver Günther 637b1f807c Move texts to frontend 2023-04-18 16:09:09 +02:00
Oliver Günther 45cb7b7363 Add pull-request macro 2023-04-18 16:09:08 +02:00
Oliver Günther 077112df43 Replace github state with store 2023-04-18 16:02:58 +02:00