29 Commits

Author SHA1 Message Date
Jan Sandbrink e6d02ca89d Merge pull request #23528 from opf/configure-internal-wiki
Add UI for internal wiki provider
2026-06-09 11:22:53 +02:00
Eric Schubert e8fea8cc8a Merge pull request #23581 from opf/implementation/73352-add-create-wiki-page-dialog
[#73352] added create wiki page dialog
2026-06-09 11:21:37 +02:00
Marcello Rocha dd0b94692c Implements GET /wiki_page_links (#23597)
* Create tests for the endpoint

* Filter by PageLink#type

* Implements the endpoint
2026-06-09 10:03:42 +02:00
Jan Sandbrink 6aed4d207a Add UI for managing internal wiki provider 2026-06-09 08:11:24 +02:00
Eric Schubert 892fc6a4d0 [#73352] consolidate controller actions
- reorder yaml file to satisfy reviewdog?
2026-06-08 16:40:41 +02:00
Eric Schubert f1c6776255 [#73352] added create wiki page dialog
- https://community.openproject.org/work_packages/73352
- add new create wiki page dialog and form
- add concept of two step dialog
- consolidated search and create wiki pages into a single controller
2026-06-05 14:06:13 +02:00
Marcello Rocha 81e5726838 [OP#73293] Creates POST /api/v3/wiki_page_links endpoint (#23529)
* Remove the `render_author` method as it is unnecessary
* Add the necessary paths, clarify the param to wiki_provider path
* Rework the representers, merge upstream changes to the create contract
* Remove unnecessary mixin and make everything read-only
* Create Endpoint for POST /api/v3/wiki_page_links
* Incorporates @Kharonus feedback in testing multiple page link creation
2026-06-04 10:06:13 +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
Eric Schubert 6c8c8af771 [#73354] hide delete action instead of disabling
- add authorisation check for deletion action
2026-05-21 10:47:50 +02: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 b147da1ec0 Merge branch 'dev' into implementation/73354-add-deletion-action-to-wiki-page-link 2026-05-19 13:11:56 +02: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
Eric Schubert 75a9c95025 [#73354] add deletion confirmation dialog for page links
- https://community.openproject.org/work_packages/73354
- add confirmation dialog component
- add delete action and controller
- add action to permission
- add page link data to page info object
- add additional routes
- NOT ADDED: deletion service
2026-05-13 15:23:58 +02:00
Marcello Rocha d03d22edc8 Implements the GET /work_packages/:id/wiki_page_links endpoint (#22834)
* Introduce the PageLinkQuery
* Update page link query and some copyright
* Adds PageLinkCollectionRepresenter
* Introduces the endpoint /work_packages/id/wiki_page_links
* MetadaService tests, most of it is a work of fiction
* Adds urns for page link type improve some tests
* Removes mentions to view_wiki_page_links permissions
* Adds a test for multiple providers and same identifiers

---

Co-authored-by: Jan Sandbrink <j.sandbrink@openproject.com>
2026-05-08 17:38:52 +02:00
Eric Schubert aaa7727c55 Merge pull request #22877 from opf/feature/73440-extend-wiki-permissions
[#73440] refactor wiki permissions
2026-05-06 16:50:15 +02:00
Jan Sandbrink 9fa9d79f12 Implement internal wiki references to WPs
Allowing internal wiki pages to also show up in the
"referenced in" list of page links.
2026-05-05 15:37:58 +02:00
Eric Schubert dfa62e8d84 [#73440] drop permission view_wiki_page_links 2026-05-04 10:43:43 +02:00
Eric Schubert 4531cb2cc0 [#73440] refactor wiki permissions
- https://community.openproject.org/work_packages/73440
- merge several wiki permissions into 4 resulting ones
- fix some smaller rubocop issues
2026-05-04 10:27:00 +02:00
Jan Sandbrink 6d697569bd Extract inline wiki page links from WP description
This creates inline page links the way they are intended to exist:
When a work package contains a link to a wiki page in its description,
these links should also be represented as inline wiki page links.
2026-04-24 13:21:39 +02:00
Jan Sandbrink d51ef9f541 Render new wiki macros
Limitations on the page_info query aside, this already works
the way that I'd expect this to work once we implemented real interactions
with wiki providers.

The macro markup is currently rather simple and builds on top of the existing
syntax for wiki links. The main downside is that during editing, it's not quite
clear to which page a macro related.

This macro format should be a good first iteration and if we have more time for
improvement available before release, we could replace it with an HTML-ized macro
similar to <mention> that is also properly rendered in CKEditor. However, this requires
a substantial amount of additional effort and is thus not quite feasible for a first iteration.
2026-04-20 16:08:02 +02:00
Marcello Rocha 592b35de62 [OP#73838] Introducing the Wikis::PageLinkRepresenter (#22745)
* Adds view and manage permissions on work package wiki links plus api path for wiki links
* Adds provisional method named #author? for easy handling of the rendering process
* Adds linkable to the response, not polymorphic yet
* Adds provider to the PageLink resource. Barebones Provider Representer
* Rename link parameters, make author? into render_author? as more intention revealing, skip render if linkable is not a WP
2026-04-15 15:40:21 +02:00
Eric Schubert 16bd24ea71 [#72971] introduce page link service
- emphasize, that counting logic is still incomplete
- move wiki locales to module
- minor variable renaming
2026-04-13 14:30:22 +02:00
Eric Schubert 1bfda5cbbc [#72971] added wiki tab content
- https://community.openproject.org/work_packages/72971
- added provider link group
- added inline wiki page links with empty state
- add a counter to notification center tabs
- show fake wiki page titles
2026-04-10 15:30:37 +02:00
Yauheni Suhakou 9dcb45275d [72976] Create edit view and routes for xWiki Provider (#22497) 2026-04-02 16:18:41 +02:00
Jan Sandbrink 2bf7d90781 Only show wikis tab when there are wikis
Effectively we only want to allow disabling the internal wiki
for now, but we'll have to answer certain usability questions
on what happens when a provider is deleted/disabled anyways, so
we'll make it technically possible to disable any provider, even
if we might not offer it for all of them out of the box.

The most likely starting scenario to have no wikis tab is that
the internal wikis are disabled and no external wiki is configured.
2026-03-25 14:24:00 +01:00
Jan Sandbrink cb4bfa905c Add empty wikis tab to work package view
Adding the necessary glue code to render the wikis tab in all relevant views.
2026-03-24 13:41:46 +01:00
Jan Sandbrink 68ea5f414b Define initial data model for wikis module
Includes all relevant entities we want to support in the beginning,
but does not yet include services and code designed to expose those
entities in any way.
2026-03-23 14:26:41 +01:00
Eric Schubert dd317632b8 [fix] rubocop issues in generated files 2026-03-17 11:10:00 +01:00
Jan Sandbrink 68ec2808e3 Add empty wikis module
This is a stub for all the work we want to perform on wiki integrations
going forward.
2026-03-16 16:44:04 +01:00