Commit Graph

247 Commits

Author SHA1 Message Date
Alexander Brandon Coles 8127d71d6a Merge pull request #23588 from opf/code-maintenance/angular-22
[OP-19470] Upgrade Angular to v22
2026-06-10 14:01:14 +01:00
Oliver Günther d851d25524 Merge remote-tracking branch 'origin/release/17.5' into dev 2026-06-10 11:29:44 +02:00
Alexander Brandon Coles c085eefb06 Merge branch 'dev' into code-maintenance/angular-22 2026-06-10 08:39:31 +01:00
OpenProject Actions CI 63b5e3009d update locales from crowdin [ci skip] 2026-06-09 16:10:53 +00:00
OpenProject Actions CI 86f9f2975f update locales from crowdin [ci skip] 2026-06-09 16:08:35 +00:00
Kabiru Mwenja e92b78d500 [STC-805] Numeric ID showing in Gitlab tab on work packages without links to issues (#23627)
https://community.openproject.org/wp/STC-805
2026-06-09 14:35:46 +03:00
ulferts db815d0d22 Merge remote-tracking branch 'origin/dev' into merge-release/17.5-20260609045502 2026-06-09 09:32:19 +02:00
Alexander Brandon Coles d3d1f1e7b2 Merge branch 'dev' into code-maintenance/angular-22 2026-06-08 10:05:24 +01:00
Alexander Brandon Coles e419c22c95 [DREAM-707] Stabilize Angular track keys
Use stable scalar keys for Angular `@for` loops with rebuilt object
values across breadcrumbs and related list templates to avoid DOM
recreation warnings.

https://community.openproject.org/wp/DREAM-707
2026-06-08 08:17:19 +01:00
Alexander Brandon Coles da4c96c2bd [OP-19369] Avoid git actions menu component ID collision
https://community.openproject.org/wp/OP-19369
2026-06-07 23:17:13 +01:00
Alexander Brandon Coles 7020778ee5 [OP-19470] Update Angular to v22
Force updates Angular dependencies:

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

And performs automated upgrade:

= Adds `ChangeDetectionStrategy.Eager` to all components.
- Adds 'withXhr' to 'provideHttpClient' function calls when the
  'HttpXhrBackend' is used.
- Wraps optional chaining expressions in $safeNavigationMigration().
- Disables the 'nullishCoalescingNotNullable & optionalChainNotNullable
  extended diagnostics.
- Adds 'strictTemplates: false' in tsconfig.json when not set.

https://community.openproject.org/wp/OP-19470
2026-06-07 21:01:53 +01:00
Tomas Hykel ba9f92e82a [STC-805] Use semantic IDs in github/gitlab suggestions 2026-06-04 20:47:20 +02:00
OpenProject Actions CI 728054654a update locales from crowdin [ci skip] 2026-05-28 07:19:32 +00:00
OpenProject Actions CI e76c9531da update locales from crowdin [ci skip] 2026-05-28 07:11:07 +00:00
Ivan Kuchin 42eed17c72 Merge pull request #22680 from opf/bug/73718-user-facing-work-package-link-from-gitlab-tab-is-not-the-shortened-version
Bug/73718 user facing work package link from gitlab tab is not the shortened version
2026-05-27 20:12:38 +02:00
Oliver Günther 226a7298a5 Use unique component class to avoid clashes 2026-05-27 10:02:37 +02:00
Ivan Kuchin e3afba4465 follow yamllint except key ordering 2026-05-26 16:33:15 +02:00
Oliver Günther 344cb17994 Remove component identifier op-git-actions-menu
They are being used as dropdown components, and referenced by class
anyway
2026-05-26 09:03:01 +02:00
OpenProject Actions CI 7983e8f4cb update locales from crowdin [ci skip] 2026-05-26 04:30:40 +00:00
OpenProject Actions CI 3ca0c4d361 update locales from crowdin [ci skip] 2026-05-26 04:28:22 +00:00
Ivan Kuchin 4a31e954a8 use short work package paths in gitlab snippets too
See #22654 (https://community.openproject.org/wp/73678)
2026-05-22 16:25:10 +02:00
Ivan Kuchin 22e42c7f8c fix copy result label placement 2026-05-21 17:07:34 +02:00
Ivan Kuchin 68f3764066 apply min-height to button too and align it to top 2026-05-21 17:07:34 +02:00
Ivan Kuchin b63fbbbeaa fix min-height to be 1rem (16px) 2026-05-21 17:07:34 +02:00
Ivan Kuchin 84750fa9e1 fix gitlab commit message expectation and add it for github integration 2026-05-21 17:07:34 +02:00
Ivan Kuchin 6bac672e60 use textarea for possibly multiline texts/commands 2026-05-21 17:07:34 +02:00
Tomas Hykel b9fd6ae86c feat: Support semantic WP identifiers in GitLab webhook handler 2026-05-20 20:01:23 +02:00
Tomas Hykel f39957d226 feat: Support semantic identifiers in Git snippets tooltip 2026-05-19 20:03:18 +02:00
OpenProject Actions CI d5b027b04b update locales from crowdin [ci skip] 2026-05-19 04:31:41 +00:00
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
OpenProject Actions CI c7b78cc338 update locales from crowdin [ci skip] 2026-05-09 04:14:05 +00:00
Alexander Brandon Coles 6e8510ca1d [#66563] Migrate specs to Vitest
Apply Angular's Vitest migration schematic to update frontend and plugin
specs from Jasmine globals to Vitest APIs.

    ng g @schematics/angular:refactor-jasmine-vitest

Fix migrated edge cases where async assertions or shallow tests changed.

https://community.openproject.org/wp/66563
2026-05-08 09:52:17 +02:00
OpenProject Actions CI 0b01edf271 update locales from crowdin [ci skip] 2026-05-07 04:24:34 +00:00
OpenProject Actions CI 0e4437def6 update locales from crowdin [ci skip] 2026-05-06 04:21:38 +00:00
OpenProject Actions CI 532fc1586b update locales from crowdin [ci skip] 2026-05-05 04:10:03 +00:00
Klaus Zanders b3fd6200d4 Potential fix for pull request finding 'CodeQL / Database query in a loop'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-27 09:37:13 +02:00
Klaus Zanders 1139570520 Potential fix for pull request finding 'CodeQL / Database query in a loop'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-27 09:36:51 +02:00
Klaus Zanders de15253cc2 Fix DynamicFindBy issues in our Codebase 2026-04-27 09:20:11 +02:00
Ivan Kuchin 6e648e6551 return array of message parts instead of joining and splitting again 2026-04-15 21:06:34 +02:00
Ivan Kuchin 8105ee9efd cleanup test removing TestBed and waitForAsync 2026-04-15 20:48:27 +02:00
Ivan Kuchin 9b6ca1e3e6 adapt gitlab html and style 2026-04-15 20:41:44 +02:00
Ivan Kuchin 2503c8d20b provide separate paragrahps as separate -m arguments instead of relying on literal newlines
Also removes newline at the end which will be automatically inserted by
git
2026-04-15 20:41:44 +02:00
Ivan Kuchin 44eeba5ad3 fix sinqle quote escaping 2026-04-15 20:41:44 +02:00
OpenProject Actions CI c559f08572 update locales from crowdin [ci skip] 2026-04-14 13:05:56 +00:00
OpenProject Actions CI dd7f45a05e update locales from crowdin [ci skip] 2026-04-14 04:04:43 +00:00
OpenProject Actions CI f97f227f12 update locales from crowdin [ci skip] 2026-04-13 04:08:47 +00:00
OpenProject Actions CI 8c154d623d update locales from crowdin [ci skip] 2026-04-12 12:45:29 +00:00
OpenProject Actions CI 13e368f21e update locales from crowdin [ci skip] 2026-04-12 04:06:25 +00:00
OpenProject Actions CI e8e46408b4 update locales from crowdin [ci skip] 2026-04-11 03:55:45 +00:00
OpenProject Actions CI dfa27ffad1 update locales from crowdin [ci skip] 2026-04-10 04:04:05 +00:00