mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
1.0 KiB
1.0 KiB
Editor Launching Policy
Last updated: Wednesday, 23 September, 2020
This technote defines the policy for what is loaded in the post editor on app launch.
The app shall always launch to the post editor. Determining what post should be loaded in the editor requires defining the following:
- Last Draft: The last post with either a
local
oredited
status to have been loaded into the post editor. It's important to note that apublished
post that is loaded into the post editor and is then changed becomes anedited
post, and therefore qualifies as a last draft.
The launch policy is as follows:
The app shall launch to the last draft, except when:
- There is no last draft (i.e., on the first launch of the app); or
- The user's actions signal that they are done working with this last draft:
- The last draft was
published
before quitting the app - The user's last action in the app was to leave the post editor (iOS) or deselect any post from the post list (macOS).
- The last draft was
In these cases, the app shall launch to a new, blank, local
post.