Commit Graph

16 Commits

Author SHA1 Message Date
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