Commit Graph

25 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
Yauheni Suhakou 1d67d27472 [74354] Add a simple login XWiki button (#22924)
Add XWiki login button
2026-05-05 16:22:10 +02:00
Eric Schubert dfa62e8d84 [#73440] drop permission view_wiki_page_links 2026-05-04 10:43:43 +02:00
Yauheni Suhakou 2cd9a7b08f [73319] Create and use two-way OAuth 2 (#22816)
Update the OAuth section for the XWiki provider. Since XWiki provides only public clients, there are no client secrets passed in between OP and XWiki. Thus, the UI is, for now, just a mock with a client ID.
2026-04-28 14:07:37 +02:00
Eric Schubert d53a39ce4b [#73909] removed wiki tab global blank slate
- resolved post merge conflict errors
- improve counting of page links in tab
2026-04-23 13:55:41 +02:00
Eric Schubert 2e19a05702 Merge branch 'dev' into feature/73909-restructure-wiki-tab-content-for-new-designs 2026-04-23 10:17:58 +02:00
Yauheni Suhakou ef649df840 [73320] Create and use OAuth2 auth (#22714)
Add the UI to create an OAuth application for XWiki. This will enable XWiki to fetch data from OpenProject and display it on the wiki pages.
2026-04-22 17:05:48 +02:00
Eric Schubert 9fd5085e46 Merge branch 'new-wiki-macros' into feature/73909-restructure-wiki-tab-content-for-new-designs 2026-04-21 13:49:11 +02:00
Eric Schubert 505f3ea3b7 [#73909] remove headings from wiki tab content 2026-04-21 11:07:45 +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
Eric Schubert eabb934978 Merge branch 'dev' into feature/73909-restructure-wiki-tab-content-for-new-designs 2026-04-20 15:57:10 +02:00
Eric Schubert 52709a7c85 [#73909] add view model for page links
- use single collapsible page links component for inlines and mentions
2026-04-20 15:52:42 +02:00
Eric Schubert b3a14b74bf [#73909] add new view component structure
- https://community.openproject.org/work_packages/73909
- add new sections
- add new border boxes for all sections
- add collapsing logic
- add empty state for the whole tab
2026-04-15 16:55:31 +02:00
Eric Schubert 321b1b670c Merge branch 'dev' into implementation/73356-show-existing-relation-wiki-page-links 2026-04-15 16:22:27 +02:00
Eric Schubert 70ddd3bd3a Merge branch 'dev' into implementation/73356-show-existing-relation-wiki-page-links 2026-04-15 16:20:39 +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 d79261a58c Merge branch 'implementation/73356-show-existing-relation-wiki-page-links' into feature/73909-restructure-wiki-tab-content-for-new-designs 2026-04-15 14:59:40 +02:00
Eric Schubert 8912dce2e4 Merge pull request #22716 from opf/feature/72971-show-inline-wiki-page-links
[#72971] added wiki tab content
2026-04-14 13:57:42 +02:00
Yauheni Suhakou dbf42ff141 [73405] Add service contract layer for wiki providers (#22619)
* Add base persistence for XWiki
* Add basic validations
2026-04-13 16:45:16 +02:00
Eric Schubert 829cb837bd Merge branch 'feature/72971-show-inline-wiki-page-links' into implementation/73356-show-existing-relation-wiki-page-links 2026-04-13 14:38:46 +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
Yauheni Suhakou 9dcb45275d [72976] Create edit view and routes for xWiki Provider (#22497) 2026-04-02 16:18:41 +02: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
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