Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1739

Save Drafts on writing posts

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4 Larks, 3.1 Larks
    • Fix Version/s: 3.1 Larks
    • Labels:
      None
    • Sprint:
      3.1 Larks, 3.2 Larks

      Description

      As a user, I don't want to miss my text by closing tab by mistake.
      So that I want to save my text during writing.

      Acceptance criteria:

      • Post text should be saved every 15 sec after start typing and on moving focus (including closing the page and open another application). So, user can close the page, open it again and see the text in Create Post dialog.
      • Text must be saved per topic, on saving, text "Saved just now". Draft should have such attribute as date and time of last saving (see see an attachment).
      • Draft must be deleted when user clears message by backspace or ctrl+A and del. This must happen right away, we don't wait 15 secs.
      • Draft should be deleted automatically when post posted.
      • Draft should be ignored by search.
      • Acceptable number of symbols in drafts same as in topics, there is an error message under text field with highlighting showed if pasted text have more symbols than permitted.
      • When draft is saved, a grey label "Saved N seconds (or minutes) ago" must be shown. If that happened more than a day ago, then just it shows the date and time. Time in label is updated every 5 sec during 1st minute after saving, every minute - during 1st hour after saving, every hour - during 1day after saving, then data of saving is shown.
      • User post counter must not be incremented by a draft
      • A warning popup must be shown if the draft saving didn't succeed saying: "Connection to the server was lost, please save your text locally".
      • Functionality must be introduced in Discussions & QnA topic types. (As Code Review topics haven't posts, drafts in Code Review are out of scope of this history).

      PMs are out of scope for now

      Justification on when to save Draft:

      • It's not likely that user removes the content and then he accidentally leaves the page. This case is not realistic. Therefore we respect all the actions of the user as intentional and simply save Post Draft once in period.
      • Post Draft must be also saved when user clicks somewhere outside of the text area - e.g. for cases when he closes the tab accidentally or presses Back or Forward.
      • Also it's decided to remove Post Draft right away when user removes the whole content because otherwise the content will be there when he removes. Even if he intentionally removed it.

      Known bugs

        Bug Link TC Status
      1 Drafts are indexed by search link QA-2766 fixed
      2 Drafts are not saved in Q&A topics link QA-2769 fixed
      3 Label "Saved invalid date" and quick displaying of popup "Connection to the server was lost, please save your text locally" on creating topic link - fixed
      4 BB-codes are nor saving link QA-2803 fixed
      5 Popup "Connection to the server was lost..." after confirming creation of new topic link - fixed
      6 Creation date and the author of the post do not appear in the column 'Last message' link QA-2853 fixed
      7 Added draft chaged Last message data and author link QA-2794 fixed
      8 draft saved as an answer in Q/A topic link QA-2769 fixed
      9 Incorrect message of warning popup when the draft saving didn't succeed link QA-2798 fixed
      10 Added draft has resulted in the topic appearance in the Recent activity list. link QA-2807 fixed
      11 Impossible to delete draft by "Backspace" button without DELETE_OWN_POSTS permission link QA-2785 fixed
      12 Adding draft into RSS list link QA-2808 fixed
      13 Deleting draft link QA-2764 fixed
      14 Uncorrect translation of message about time of last saving draft link QA-2799 fixed
      15 Warning pop-up does not appear after abrupt disconnection link QA-2799 fixed
      16 Posted draft in Q/A and Discussion topic doesn't remove link link2 QA-2777
      17 Post count is "-1" when topic with user's draft was removed link QA-2789 fixed
      18 Saved draft in Q/A and Discussion topic is not visible after page reload if there was error hint before text typing link exploratory -
      19 Countdown while saving drafts link -
      20 Draft isn't saved on closing tab/page event in Chrome - JC-2254 fixed

        Attachments

        1. draft.png
          draft.png
          0.8 kB
        2. draft 2.png
          draft 2.png
          2 kB
        3. general look.jpg
          general look.jpg
          58 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Helen0609 Olena Tsaturian
                  Reporter:
                  julik Julia Atlygina
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  15 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel