Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3323

Automatically and periodically save text editor content as a draft

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8.1
    • 3.8.0
    • Rich Text Editor
    • Hide

      This issue should only be tested in 1 device.

      Please notice that we won't test all the cases since there are a few. We'll only test some common ones.

      1. In the app, open an assign with onlinetext submission that you haven't submitted yet. 
      2. Click to add a submission. Check that you see the editor, it's empty and there is no message saying a draft was restored.
      3. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved.
      4. Go back. Please notice you'll see a warning saying some data will be lost, you need to confirm.
      5. Enter the submission again. Check that you see the editor, it's empty and there is no message saying a draft was restored.
      6. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved.
      7. Restart the app (kill it and open it again).
      8. Go to the assign and enter the submission again. Check that the draft is restored and you see a message saying so.
      9. Now go to a forum and click to add a submission. Check that you see the editor, it's empty and there is no message saying a draft was restored.
      10. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved.
      11. Restart the app (kill it and open it again).
      12. Open an existing discussion in the same forum and click to reply a post. Check that you see the editor, it's empty and there is no message saying a draft was restored.
      13. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved.
      14. Restart the app (kill it and open it again).
      15. Now go to add a discussion again in the forum. Check that the right draft is restored (not the one in the post reply) and you see a message saying so.
      16. Save the discussion.
      17. Click to add a new discussion. Check that you see the editor, it's empty and there is no message saying a draft was restored.
      18. Open an existing submission and click to reply the same post as before. Check that the right draft is restored and you see a message saying so.
      19. Save the reply.
      20. Click to reply the same post again. Check that you see the editor, it's empty and there is no message saying a draft was restored.
      21. Bonus track: check that drafts are saved even if you are offline.
      Show
      This issue should only be tested in 1 device. Please notice that we won't test all the cases since there are a few. We'll only test some common ones. In the app, open an assign with onlinetext submission that you haven't submitted yet.  Click to add a submission. Check that you see the editor, it's empty and there is no message saying a draft was restored. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved. Go back. Please notice you'll see a warning saying some data will be lost, you need to confirm. Enter the submission again. Check that you see the editor, it's empty and there is no message saying a draft was restored. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved. Restart the app (kill it and open it again). Go to the assign and enter the submission again. Check that the draft is restored and you see a message saying so. Now go to a forum and click to add a submission. Check that you see the editor, it's empty and there is no message saying a draft was restored. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved. Restart the app (kill it and open it again). Open an existing discussion in the same forum and click to reply a post. Check that you see the editor, it's empty and there is no message saying a draft was restored. Write some text and wait a bit (the draft is saved every 30 seconds). Check that you see a message saying the draft was saved. Restart the app (kill it and open it again). Now go to add a discussion again in the forum. Check that the right draft is restored (not the one in the post reply) and you see a message saying so. Save the discussion. Click to add a new discussion. Check that you see the editor, it's empty and there is no message saying a draft was restored. Open an existing submission and click to reply the same post as before. Check that the right draft is restored and you see a message saying so. Save the reply. Click to reply the same post again. Check that you see the editor, it's empty and there is no message saying a draft was restored. Bonus track: check that drafts are saved even if you are offline.
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • Moodle App 3.8.1

      We should do the same that Moodle LMS, automatically save what the user is written in case the app freezes or something.

      The typical use case is someone using the app to write a long forum post and suddenly the app freeze, or closes or the user accidentally closes the app.

      Ideally, this should be synchronised with the draft saved in the LMS side, so maybe you can continue a post message or a reply in the app (this will require WS changes, so maybe this is for a second stage but it would be good to just make it in a way that in a future will work in that way)

            dpalou Dani Palou
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.