digitalfabrik / integreat-cms

Simplified content management back end for the Integreat App - a multilingual information platform for newcomers
https://digitalfabrik.github.io/integreat-cms/
Apache License 2.0
55 stars 33 forks source link

Unsaved changes indicator #2477

Open PeterNerlich opened 8 months ago

PeterNerlich commented 8 months ago

Motivation

As a user editing e.g. a page, I want to know whether I have unsaved changes, or notice when an autosave is successful. This should result in slightly higher perceived reliability of the system through transparency and predictability.

Proposed Solution

Add a bullet to the document title whenever the form is different from the most recently saved state.

Alternatives

The proposed solution is not better than these alternatives. But it requires way less effort and is a good starting point.

User Story

As an editor, I want to know whether I have unsaved changes, or notice when an autosave is successful, so that I have a higher trust in the system.

osmers commented 8 months ago

We are already introducing the new auto saved message, right? Wouldn't it then make sense to simply erase that message if there are unsaved changes? To show that the current version is not auto-saved yet?

PeterNerlich commented 8 months ago

@osmers I'm not up to date regarding this, do you have an issue/PR id for me?

Edit: It's #2431, I'm blind

MizukiTemma commented 8 months ago

I haven't checked your PR for this issue, but you mean you need this for #2401 , right?

PeterNerlich commented 8 months ago

@MizukiTemma No, the other way around. #2476 builds on (=contains the commit for) #2401, so after #2401 is merged, I would like this to be considered to be merged.

osmers commented 8 months ago

@PeterNerlich yeah, #2431 is the one I meant. Does your last comment then mean, that this issue will be closed? Though we can still discuss the "notice when I have unsaved changes" bit of your issue.

PeterNerlich commented 8 months ago

Does your last comment then mean, that this issue will be closed?

I created this issue mostly because I need a valid issue ID in order to add a release note to #2476 as per our new_release_note.sh tool. If that PR is merged, this issue will be closed automatically as it is listed as addressing this issue. The implemented functionality relevant to this issue kind of emerged as a byproduct of the rest of the changes I did. I included it because it was like 4 lines of code and felt really good to me. Whether we decide to use these, merge them with #2431 or reject them for it, is all fine with me. I have opinions on UX, but no strong feelings for this implementation in particular. @osmers

timobrembeck commented 8 months ago

I created this issue mostly because I need a valid issue ID in order to add a release note to https://github.com/digitalfabrik/integreat-cms/pull/2476 as per our new_release_note.sh tool.

Nothing wrong with creating an issue for this, but just fyi: The tool works well with PR numbers instead of issue, since GitHub correctly redirects these URLs:

https://github.com/digitalfabrik/integreat-cms/issues/2476 is redirected to https://github.com/digitalfabrik/integreat-cms/pull/2476.

dkehne commented 1 month ago

Any more need to discuss here?