Ghost/ghost/admin/tests/unit
Kevin Ansfield 3656297843 🐛 fix duplicate posts bug, more intelligent autosave when transitioning (#800)
no issue
- fixes bug where multiple posts were created starting with one char and growing until the new->edit transition completed, e.g. posts with content such as `a`, `ab`, `abcd` were created in quick succession
  - moves old `_savePromise` body into the `save` task
  - call the `save` task instead of the old `_savePromise` so that concurrency is handled properly
- fixes odd behaviour with the "Are you sure you want to leave?" modal appearing too often - it's now aware of on-going or scheduled saves and will wait for those to complete before transitioning
  - move all transition abort/save/retry handling into `toggleLeaveEditorModal` method
  - check for a running save, wait for it to finish then retry the transition
  - check for a scheduled autosave, cancel it if present and perform an immediate autosave then retry the transition
  - don't attempt new->edit transition on successful save of new post if we're already waiting for a different transition
  - once the new->edit transition has completed, if the post body content has changed schedule an autosave manually so that the user doesn't need to type something again to save what they assume is already saved
  - remove debounced slug generation/save on type of title field in favour of generation and save on focus out which plays a lot nicer with the new transition autosave behaviour
2017-07-22 10:25:00 -04:00
..
components 🐛 fix missing meta description preview (#719) 2017-05-30 15:07:12 +02:00
controllers 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
helpers 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
mixins 🐛 fix duplicate posts bug, more intelligent autosave when transitioning (#800) 2017-07-22 10:25:00 -04:00
models welcome tour (#527) 2017-06-08 22:00:10 +07:00
routes 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
serializers welcome tour (#527) 2017-06-08 22:00:10 +07:00
services 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
transforms 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
utils new publish menu and date/time picker (#588) 2017-04-11 14:39:45 +01:00
validators 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
.gitkeep