Ghost/ghost/admin/app/templates
Kevin Ansfield adeef741fb Added first iteration of saving to new publish flow
refs https://github.com/TryGhost/Team/issues/1542

- extracted before/after save routines in the editor controller into separate actions
  - allows saving to occur in the publish flow without it needing any editor-specific knowledge
  - allows for easier cleanup of email related logic from the editor save tasks later on
- added `saveTask` to `PublishOptions`
  - applies the selected options to the post model where they correspond to model attributes and keeps the previous values in memory so the changes can be undone on failure - this keeps the local model state in sync because if a publish fails we want the editor to continue showing the draft state, non-scheduled publish time, and not have an unexpected email-only state
  - saves the post model directly passing `adapterOptions` so the save request query params match the chosen publish options
- added a `saveTask` to the `<PublishManagement>` component
  - passed through to the `publish-flow` modal and is triggered by the confirm button on the confirmation screen
  - runs the before/afterSave arguments passed in from the editor
  - runs the `saveTask` on `PublishOptions` which handles everything needed to change status and send emails
  - polls the post after saving to wait for the attached email to switch to submitted/failed which lets us show a failure message and retry button as required (message + retry not yet implemented)
- adds "complete" state to publish flow once save has finished
  - confirms what just happened based on saved post data rather than chosen publish options
  - has a link to the view the post
2022-05-04 10:30:45 +01:00
..
editor Migrated to <AngleBracketSyntax /> (#1460) 2020-01-16 15:14:03 +00:00
members Added new members CSV importer (#1797) 2020-12-10 01:02:31 +05:30
settings Email settings design update (#2359) 2022-04-28 10:24:12 +02:00
setup Updated the copy for All Done screen 2022-03-10 11:50:35 +00:00
-contributors.hbs 🐛 fix broken assets (#616) 2017-04-05 14:08:15 +01:00
application-error.hbs Migrated to <AngleBracketSyntax /> (#1460) 2020-01-16 15:14:03 +00:00
application.hbs Migrated <GhUnsplash> to glimmer component 2022-02-07 16:53:12 +00:00
dashboard.hbs Implemented a more fleshed out resources section for new Dashboard 2022-04-26 11:33:34 +01:00
designsandbox.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
editor.hbs Added first iteration of saving to new publish flow 2022-05-04 10:30:45 +01:00
error.hbs Fixed 404 code alignment 2021-07-08 15:42:46 +02:00
launch.hbs Updated launch wizard to create custom price 2021-05-04 21:42:48 +05:30
member.hbs 🎨 Updated Member page layout (#2271) 2022-03-01 15:57:57 +01:00
members-activity.hbs Removed newsletter name from activity feed if no multiple newsletters 2022-05-04 10:23:32 +02:00
members.hbs 🐛 Fixed duplicate email open rate column when filtering members by open rate 2022-03-17 09:29:15 +00:00
offer.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
offers.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
pages-loading.hbs [chore] run the no-implicit-this codemod (#2244) 2022-02-02 17:09:02 +00:00
pages.hbs Updated empty states for posts, pages, and tags 2022-02-09 09:34:12 +01:00
posts-loading.hbs [chore] run the no-implicit-this codemod (#2244) 2022-02-02 17:09:02 +00:00
posts.hbs Hid email related ui when subscription access is set to 'Nobody' 2022-02-11 09:29:11 +01:00
reset.hbs 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +00:00
settings.hbs 🐛 Fixed close button on "unsaved changes" modal not always behaving like "Stay" button 2022-04-14 12:39:10 +01:00
setup.hbs 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +00:00
signin.hbs Fixed linter error 2022-03-09 12:24:36 +00:00
signup.hbs Fixed linter error 2022-03-09 12:24:36 +00:00
site.hbs Added reset-to-homepage behaviour when clicking "view site" link 2019-03-21 17:55:58 +00:00
tag.hbs Fixed duplicate top-level properties after native class codemod 2022-02-10 10:20:03 +00:00
tags-loading.hbs Fixed tags loading screen UI bug 2021-03-05 10:19:37 +01:00
tags.hbs Updated empty states for posts, pages, and tags 2022-02-09 09:34:12 +01:00
whatsnew.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00