Skip to content

fix: ability to exit failed text editor#4036

Open
towynlin wants to merge 1 commit intonextcloud:masterfrom
towynlin:fix/exit-failed-text-editor
Open

fix: ability to exit failed text editor#4036
towynlin wants to merge 1 commit intonextcloud:masterfrom
towynlin:fix/exit-failed-text-editor

Conversation

@towynlin
Copy link

What changed

  • In text editor view, show the back button so users don't have to kill the app.
  • Detect failed WebView navigation and show error banner.

Why?

I have a nextcloud server and often use the iOS app for editing markdown files like simple to-do lists or grocery lists. Something that happens to me constantly that's frustrating is that I'll open a markdown file, edit a bit, lock my phone or navigate away to another app, then a few minutes later open the nextcloud app again to continue editing, but the page looks like this, and my only solution is to kill the app:

Simulator Screenshot - iPhone 17 - 2026-03-15 at 11 22 11

With the changes in this PR, the back button is shown at the top so I don't have to kill the app and can exit more gracefully. Also I added code with unit tests to detect the various failure conditions that lead to this and proactively handle them in the text editor view. Here's a screenshot with the back button showing.

Simulator Screenshot - iPhone 17 Pro - 2026-03-15 at 13 57 43

(The difference in placement of banner is only because one screenshot is iPhone 17 while the other is iPhone 17 Pro, nothing to do with these changes.)

Where should reviewers focus?

Was there a reason the back button was hidden? Otherwise, this is a pretty small and straightforward fix.

Show the back button so users don't have to kill the app.
Detect failed web view navigation and show error banner.

Signed-off-by: Zachary Crockett <zachary.crockett@hey.com>
@mpivchev
Copy link
Collaborator

Hi! Thank you for this, I will check it out soon.

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.

2 participants