Do not save note if the back button is tapped

Bug #1273102 reported by David Planella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Notes app
Invalid
High
Riccardo Padovani

Bug Description

Steps to reproduce:

1. On the notes list, click the "add note" button in the toolbar
2. On the note composer, tap the "Back" button at the top (you've decided you don't want to save the note)

Actual result:

3. A note named "Untitled" is saved

Expected result:

3. No notes are saved unless I press the "Save" button

Tags: needs-design

Related branches

David Planella (dpm)
Changed in reminders-app:
status: New → Triaged
importance: Undecided → Medium
importance: Medium → High
Changed in reminders-app:
assignee: nobody → Riccardo Padovani (rpadovani)
status: Triaged → In Progress
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:reminders-app at revision 36, scheduled for release in reminders-app, milestone Unknown

Changed in reminders-app:
status: In Progress → Fix Committed
Revision history for this message
Michael Zanetti (mzanetti) wrote :

Putting this back to incomplete as we had to revert the fix.

Also, I'd like to align this with how Evernote works, which is, to automatically save notes. That would get rid of the distinction between "back" and "save" and implicitly solve this bug.

Opinions?

Changed in reminders-app:
status: Fix Committed → Incomplete
David Planella (dpm)
tags: added: needs-design
Revision history for this message
Daniel Oliver (dannioliver) wrote :

I still think the save button is necessary for the user to validate what they've just entered.
The android evernote client uses it. So there's just one control on the header which is save, and if users want to exit without saving they just have to press the hard back button.
Since we don't have hard back button, I'd say we need to place both save and back on the header.

However I agree that the first time you create a note and hit back, you should have a "draft" note created, so I think the untitled note makes sense.

Revision history for this message
Sam Bull (dreamsorcerer) wrote :

Wouldn't it be simpler to just change the 'back' button to a 'cancel' button. Then there is no chance of confusion as to what the user was intending to do.

You could even go so far as to have the 'back' button change to a 'cancel' button only when there are unsaved changes.

Revision history for this message
Michael Zanetti (mzanetti) wrote :

closing this as invalid according to Dani's comment. What happens now is this:

* Pressing the "New note" button creates a new Untitled note
* When the note is created, it automatically opens the editor to edit this note
* If the user then cancels (presses the back button) he'll be left with the untitled note since he didn't edit it.

This is also how the evernote website works

Changed in reminders-app:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.