Commit Graph

187 Commits

Author SHA1 Message Date
OpenProject Actions CI b127bace86 update locales from crowdin [ci skip] 2026-05-30 04:28:26 +00:00
Jan Sandbrink f77164b3a0 Merge pull request #23393 from opf/wiki-page-search
Search pages query (for internal wiki)
2026-05-29 14:39:00 +02:00
Jan Sandbrink ff20cffd49 Merge pull request #23236 from opf/create-wiki-link-dialog
Create page link UI
2026-05-29 12:39:34 +02:00
Yauheni Suhakou 33198e8d68 [75226] Update XWiki auth integration (#23321)
Update the XWiki auth screen: added client secret, aligned the UI with the storage UI. 
Auth now supports only registered clients on the XWiki side. 

---------

Co-authored-by: Jan Sandbrink <j.sandbrink@openproject.com>
2026-05-29 12:04:10 +02:00
Jan Sandbrink 0b66ff3fe0 Ensure current_user is not set in query specs
Queries are supposed to return results for the user
passed in the auth strategy. If the current user is set,
it's easy for the spec to accidentially succeed, because
the query implementation used the global User.current instead.
2026-05-29 11:18:16 +02:00
Jan Sandbrink 0caba9722c Add query to search for wiki pages
This can be used to discover wiki pages that exist in the provider
and could be linked to.
2026-05-29 11:18:15 +02:00
Jan Sandbrink c264fb5a11 Allow creating relation page links through UI
This change is mostly wiring up things, but leaves some things open:

* we still need to use a proper create service (to be built)
* the modal needs to use a treeview to select the identifier
  (requires fetching of a list of available wiki pages)
2026-05-29 11:17:38 +02:00
Jan Sandbrink 1bb503a1d4 Move create service to RelationPageLinks::CreateService
This allows to use more of the automagic pieces of our BaseServices::Create:

* recognition of the created class without passing it explicitly
* automatic recognition of the correct contract

Furthermore the contract has been adapted, so that it also properly works
when a new page link is created just through params this way. Notably:

* even if type is indicated in `changed`, it doesn't crash and burn
* linkable can be passed in as `linkable_id` + `linkable_type`, instead of
  only working if already passed in as a whole
2026-05-29 11:17:38 +02:00
Jan Sandbrink 9c139c4a5f Add more generic translations
Moving a few XWiki translations to the base class
translations and adding more attribute names.
2026-05-29 11:17:38 +02:00
OpenProject Actions CI e76c9531da update locales from crowdin [ci skip] 2026-05-28 07:11:07 +00:00
OpenProject Actions CI eb6717f81e Merge branch 'release/17.5' into dev 2026-05-27 14:11:35 +00:00
Oliver Günther 4cc9faef4f Consistently use OpenProject::SqlSanitization instead of forwarding to sanitize_sql_array 2026-05-27 10:08:16 +02:00
Oliver Günther a1505dc0f5 Merge remote-tracking branch 'origin/release/17.5' into dev 2026-05-27 09:58:01 +02:00
Oliver Günther c0b44edc8e Correctly replace attachments on wiki pages
https://community.openproject.org/work_packages/75373
2026-05-26 20:22:37 +02:00
Ivan Kuchin e3afba4465 follow yamllint except key ordering 2026-05-26 16:33:15 +02:00
Eric Schubert 4a46adefc8 Merge pull request #23311 from opf/implementation/75165-show-error-states-in-page-link-component
[#75165] show error states in the page link component
2026-05-26 16:32:58 +02:00
Marcello Rocha 99a4b32bcf Creates the PageLinks::CreateService (#23270)
* Creates CreateContract and SetAttributesService
* Rename the contract for clarity
* Adds the actual create service
* Adds subclass methods to InexistentProvider
* Simplyfy validation methods and adds extra presence checks.
2026-05-26 10:26:49 +02:00
OpenProject Actions CI e38557f12f Merge branch 'release/17.5' into dev 2026-05-26 04:53:23 +00: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
Tomas Hykel 948fa43321 chore: Remove feature flag for project-based work package identifiers 2026-05-25 17:45:06 +02:00
Eric Schubert fd6d8a7eb5 [#75165] update error state icons
- use alert icon for error states
- update test setup
2026-05-22 17:00:18 +02:00
Eric Schubert e63952fab6 [#75165] show error states in the page link component
- https://community.openproject.org/work_packages/75165
- add component test to page link component
2026-05-22 11:11:34 +02:00
Jan Sandbrink e7174e8415 Fix location of view
The controller and route have been renamed, but the view
was forgotten.
2026-05-22 08:27:53 +02:00
OpenProject Actions CI b6720d715a update locales from crowdin [ci skip] 2026-05-22 04:29:21 +00:00
Eric Schubert cada809a24 [#73354] fixed current unit tests 2026-05-21 11:59:51 +02:00
Eric Schubert 4d61d1d325 [#73354] removed unused test setup 2026-05-21 10:51:37 +02:00
Eric Schubert 86983e0d75 Merge branch 'dev' into implementation/73354-add-deletion-action-to-wiki-page-link 2026-05-21 10:50:52 +02:00
Eric Schubert 6c8c8af771 [#73354] hide delete action instead of disabling
- add authorisation check for deletion action
2026-05-21 10:47:50 +02:00
OpenProject Actions CI 451e824210 update locales from crowdin [ci skip] 2026-05-21 04:38:43 +00:00
Eric Schubert e9c7a8e512 [#73354] introduced page link aggregate
- revert page link addition to page info result
2026-05-20 18:20:09 +02:00
Eric Schubert a78ebd359a [#73354] simple renaming of controllers, components, and routes 2026-05-20 16:12:30 +02:00
OpenProject Actions CI 984bbb1bc8 update locales from crowdin [ci skip] 2026-05-20 04:31:47 +00:00
Yauheni Suhakou 998b98c9eb [74542] Implement PageInfo query (#23092)
Implement `PageInfo` query for the XWiki provider.
2026-05-19 18:14:10 +02:00
Eric Schubert 83a00f3da8 Merge branch 'dev' into implementation/73354-add-deletion-action-to-wiki-page-link 2026-05-19 17:27:59 +02:00
Eric Schubert 611230c03c [#73354] fixed naming of template 2026-05-19 17:03:00 +02:00
Jan Sandbrink 51381443e5 Merge pull request #23100 from opf/wikis-health-report
Add Health Report for external Wiki providers
2026-05-19 16:59:54 +02:00
Jan Sandbrink 1d35bd7c87 Move translations to common location
Some wordings around health checks was highly repetitive across
a few places. To reduce the amount of duplicated translations, they
have been moved to a common location.

The downside is, that now sidepanel components and full width components
will have to work from the same translations. This is not an issue so far,
because the translations were the same anyways.
2026-05-19 16:31:47 +02:00
Jan Sandbrink 1b91feeba2 Fix icon to repeat all checks
Instead of using a plus icon, which is associated
with adding something new, we are using the reload icon
which is associated with repeating something you did before.
2026-05-19 16:17:03 +02:00
Eric Schubert f04fc08aac Merge pull request #23142 from opf/feature/74710-render-macro-in-ckeditor-editing-mode
[#74710] show inline page link macros in editing mode
2026-05-19 16:03:36 +02:00
Eric Schubert 780aa63668 [#73354] fix component test 2026-05-19 15:02:04 +02:00
Eric Schubert 3ea01ef567 [#73354] move relation page link routes out of wp context 2026-05-19 13:44:25 +02:00
Eric Schubert 212655d0ff Merge branch 'feature/74710-render-macro-in-ckeditor-editing-mode' into implementation/73354-add-deletion-action-to-wiki-page-link 2026-05-19 13:25:13 +02:00
Eric Schubert 1c76aaf39e [#74710] added visible scope 2026-05-19 13:23:55 +02:00
Eric Schubert b147da1ec0 Merge branch 'dev' into implementation/73354-add-deletion-action-to-wiki-page-link 2026-05-19 13:11:56 +02:00
Eric Schubert 2ea8949f61 Merge branch 'dev' into feature/74710-render-macro-in-ckeditor-editing-mode 2026-05-19 13:03:12 +02:00
Eric Schubert 307af9205a Merge pull request #23196 from opf/implementation/74906-refine-delete-modal-texts
[#74906] Update UI text when deleting a wiki provider
2026-05-19 12:09:06 +02:00
Eric Schubert 37e64d62fa [#74710] remove provider param from macro component
- drop before action in controller for more comprehensive code logic
2026-05-19 12:04:52 +02:00
OpenProject Actions CI d5b027b04b update locales from crowdin [ci skip] 2026-05-19 04:31:41 +00:00
Yauheni Suhakou 224d9eee79 [73502] Update Wiki provider icon (#23249)
* [#73502] Which icon should we use for the wiki providers menu
https://community.openproject.org/wp/73502
2026-05-18 14:18:47 +02:00