Skip to content

feat(direct-editing): integrate with OCP\DirectEditing API#5656

Draft
juliusknorr wants to merge 3 commits into
mainfrom
feat/direct-editing-server-api
Draft

feat(direct-editing): integrate with OCP\DirectEditing API#5656
juliusknorr wants to merge 3 commits into
mainfrom
feat/direct-editing-server-api

Conversation

@juliusknorr
Copy link
Copy Markdown
Member

@juliusknorr juliusknorr commented May 13, 2026

Plug richdocuments into the server's shared Direct Editing API so
mobile apps (and any other clients) can open Collabora documents
through the standard /ocs/v2.php/apps/files/api/v1/directEditing/...
endpoints, alongside other editors registered via OCP\DirectEditing.

  • Add OfficeDirectEditor (IEditor) and four ACreateFromTemplate
    creators (document, spreadsheet, presentation, drawing) backed by
    the existing TemplateManager and FileCreatedFromTemplateListener.
  • Extract the user/file render branch of DirectViewController::show
    into DirectEditingViewService so both the new IEditor::open path
    and the legacy /direct/{token} webview share one implementation
    (federation redirect, template-aware WOPI token, document template
    response).
  • Route the legacy OCS endpoints (/api/v1/document and
    /api/v1/templates/new) through OCP\DirectEditing\IManager and mark
    them deprecated; response shape unchanged.
  • Keep the share/federation flows (/api/v1/share,
    /api/v1/direct/share/initiator and the /direct/{token} webview)
    untouched -- they have no equivalent in OCP\DirectEditing.
  • Factor Capabilities mimetype dedup into helpers so the editor and
    the capability advert read from one source of truth.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

juliusknorr and others added 2 commits May 13, 2026 19:52
Plug richdocuments into the server's shared Direct Editing API so
mobile apps (and any other clients) can open Collabora documents
through the standard /ocs/v2.php/apps/files/api/v1/directEditing/...
endpoints, alongside other editors registered via OCP\DirectEditing.

- Add OfficeDirectEditor (IEditor) and four ACreateFromTemplate
  creators (document, spreadsheet, presentation, drawing) backed by
  the existing TemplateManager and FileCreatedFromTemplateListener.
- Extract the user/file render branch of DirectViewController::show
  into DirectEditingViewService so both the new IEditor::open path
  and the legacy /direct/{token} webview share one implementation
  (federation redirect, template-aware WOPI token, document template
  response).
- Route the legacy OCS endpoints (/api/v1/document and
  /api/v1/templates/new) through OCP\DirectEditing\IManager and mark
  them deprecated; response shape unchanged.
- Keep the share/federation flows (/api/v1/share,
  /api/v1/direct/share/initiator and the /direct/{token} webview)
  untouched -- they have no equivalent in OCP\DirectEditing.
- Factor Capabilities mimetype dedup into helpers so the editor and
  the capability advert read from one source of truth.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
@juliusknorr juliusknorr force-pushed the feat/direct-editing-server-api branch from 44e955b to b9f6568 Compare May 15, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant