Skip to content

feat(direct-editing): let mobile apps close the editor through an API - #9679

Merged
mejo- merged 1 commit into
mainfrom
feat/direct_editing_close_api
Nov 23, 2026
Merged

mejo- merged 1 commit into
mainfrom
feat/direct_editing_close_api

Conversation

@mejo-

@mejo- mejo- commented Nov 23, 2026

Copy link
Copy Markdown
Member

Mobile apps closed the editor by clicking the close button in the page and waiting a few seconds, as they could not tell when closing was done. Apps that missed the button left the editing session open and the file locked.

OCA.Text.DirectEditing.close() saves, closes the session and then sends the close message to the app, like the close button does. It returns a promise that resolves once the app was told to close, also if saving or closing failed. The close button keeps working for existing apps.

Assisted-by: ClaudeCode:claude-opus-5-5

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

Mobile apps closed the editor by clicking the close button in the page
and waiting a few seconds, as they could not tell when closing was done.
Apps that missed the button left the editing session open and the file
locked.

OCA.Text.DirectEditing.close() saves, closes the session and then sends
the close message to the app, like the close button does. It returns a
promise that resolves once the app was told to close, also if saving or
closing failed. The close button keeps working for existing apps.

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
@mejo- mejo- self-assigned this Nov 23, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Nov 23, 2026
@mejo-

mejo- commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

/backport to stable35

@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Nov 23, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mejo-
mejo- merged commit 0583750 into main Nov 23, 2026
66 checks passed
@mejo-
mejo- deleted the feat/direct_editing_close_api branch November 23, 2026 21:37
@github-project-automation github-project-automation Bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Nov 23, 2026
@mejo-

mejo- commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

/backport to stable34

@backportbot

backportbot Bot commented Nov 23, 2026

Copy link
Copy Markdown

The backport to stable34 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable34
git pull origin stable34

# Create the new backport branch
git checkout -b backport/9679/stable34

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick f411578f

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/9679/stable34

Error: Failed to check for changes with origin/stable34: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review AI assisted This PR contains AI-assisted commits enhancement New feature or request feature: direct editor

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

3 participants