Ghost/ghost/admin
Aileen Nowak 9a28e5d7d5 Scheduler UI
refs TryGhost/Ghost#6413 and TryGhost/Ghost#6870

needs TryGhost/Ghost#6861

- **Post Settings Menu (PSM)**:'Publish Date' input accepts a date from now, min. 2 minutes to allow scheduler processing on the server. Also, there will always be some delay between typing the date and clicking on the 'Schedule Post' button. If the user types a future date for an already published post, the date will be reseted and he sees the message, that the post needs to be unpublished first. Once, the date is accepted, the label will change to 'Scheduled Date'.

- adds a CP 'timeScheduled' to post model, which will return `true` if the publish time is currently in the future.

- **Changes to the button flow in editor**:
- if the the CP `timeScheduled` returns true, a different drop-down-menu will be shown: 'Schedule Post' replaces 'Publish Now' and 'Unschedule' replaces 'Unpublish'.

- Covering the _edge cases_, especially when a scheduled post is about to be published, while the user is in the editor.
	- First, a new CP `scheduleCountdown` will return the remaining time, when the estimated publish time is 15 minutes from now. A notification with this live-ticker is shown next to the save button. Once, we reach a 2 minutes limit, another CP `statusFreeze` will return true and causes the save button to only show `Unschedule` in a red state, until we reach the publish time
	- Once the publish time is reached, a CP `scheduledWillPublish` causes the buttons and the existing code to pretend we're already dealing with a publish post. At the moment, there's no way to make a background-fetch of the now serverside-scheduled post model from the server, so Ember doesn't know about the changed state at that time.
	- Changes in the editor, which are done during this 'status freeze'-process will be saved back correctly, once the user hits 'Update Post' after the buttons changed back. A click on 'Unpublish' will change the status back to a draft.
	- The user will get a regular 'toaster' notification that the post has been published.

- adds CP `isScheduled` for scheduled posts
- adds CP `offset` to component `gh-posts-list-item` and helper `gh-format-time-scheduled` to show schedule date in content overview.
- sets timeout in `gh-spin-button` to 10ms for `Ember.testing`
- changes error message in `gh-editor-base-controller` to be in one line, seperated with a `:`

TODOs:
- [x] new sort order for posts (1. scheduled, 2. draft, 3. published) (refs TryGhost/Ghost#6932)
- [ ] Move posts sorting from posts controller to model and refactor to use `Ember.comparable` mixin
- [x] Flows for draft -> scheduled -> published like described in TryGhost/Ghost#6870 incl. edge cases and button behaviour
- [x] Tests
- [x] new PSM behaviour for time/date in future
- [x] display publishedAt date with timezone offset on posts overview
2016-06-13 17:01:42 +02:00
..
.github Rename PULL_REQUEST_TEMPLATE to PULL_REQUEST_TEMPLATE.md 2016-05-23 10:50:15 +01:00
app Scheduler UI 2016-06-13 17:01:42 +02:00
config Update package.json details, rename module to ghost-admin 2016-06-03 16:12:54 +01:00
lib Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
public/assets Slack integration 2016-05-08 12:49:15 +02:00
tests Scheduler UI 2016-06-13 17:01:42 +02:00
.editorconfig Match .gitignore and .editorconfig with Ghost repo 2016-05-19 11:39:15 +01:00
.ember-cli grunt init, dev 2015-03-11 12:37:41 -06:00
.gitignore Match .gitignore and .editorconfig with Ghost repo 2016-05-19 11:39:15 +01:00
.jscsrc Use es6 across client and add ember-suave to enforce rules 2015-11-30 10:41:01 +00:00
.jshintrc Add Gruntfile.js, setup linting task and Travis build 2016-06-02 17:19:30 +01:00
.travis.yml Add Gruntfile.js, setup linting task and Travis build 2016-06-02 17:19:30 +01:00
.watchmanconfig deps: ember-cli@1.13.13 2015-11-30 11:21:39 -06:00
bower.json deps: ember@2.6.0 2016-06-09 16:58:09 +01:00
ember-cli-build.js Timezones: Always use the timezone of blog setting 2016-06-03 16:23:39 +02:00
Gruntfile.js Add Gruntfile.js, setup linting task and Travis build 2016-06-02 17:19:30 +01:00
package.json deps: grunt-jscs,ember-suave@3.0.0 2016-06-11 13:39:31 -06:00
README.md add travis build status to readme 2016-06-08 14:35:38 -06:00
testem.js deps: ember-cli@2.4.0 2016-03-01 12:49:28 +00:00

Ghost-Admin

Build status

This is the home of Ember.js based admin client that ships with Ghost. For now, refer to that repository for install and development instructions.

Have a bug or issue?

Bugs and issues (even if they only affect the admin client) should be opened on the core Ghost repository.