Commit Graph

2867 Commits

Author SHA1 Message Date
Austin Burdine f369af1798 Merge pull request #82 from kevinansfield/fix-trim-focus-input
Fix un-bound HTML attributes for `gh-trim-focus-input`
2016-06-20 13:21:58 -04:00
Kevin Ansfield 9fd82f06da Fix un-bound HTML attributes for `gh-trim-focus-input`
no issue
- updates `gh-trim-focus-input` to extend from `gh-input`/`one-way-input` to get the auto-binding attribute behaviour for passed-in HTML attributes
- renames `focus` property to `shouldFocus` so that we're not overriding default DOM functions
- fixes signin page issues with missing placeholders and no autofocus
2016-06-20 15:20:25 +01:00
Kevin Ansfield 35ab1e3912 Merge pull request #81 from TryGhost/greenkeeper-ember-cli-2.6.2
Update ember-cli to version 2.6.2 🚀
2016-06-20 10:41:04 +01:00
greenkeeperio-bot 657e65544e chore(package): update ember-cli to version 2.6.2
https://greenkeeper.io/
2016-06-20 10:04:17 +01:00
Kevin Ansfield 1cdeaf7c67 Merge pull request #80 from TryGhost/greenkeeper-ember-cli-dependency-checker-1.3.0
Update ember-cli-dependency-checker to version 1.3.0 🚀
2016-06-19 11:25:14 +01:00
greenkeeperio-bot a5d0d78d2c chore(package): update ember-cli-dependency-checker to version 1.3.0
https://greenkeeper.io/
2016-06-18 20:08:27 +01:00
Austin Burdine 339563f85d Merge pull request #79 from kevinansfield/grunt-init
Add `grunt init` task
2016-06-18 14:20:47 -04:00
Kevin Ansfield 05981fae12 Add `grunt init` task
refs https://github.com/TryGhost/Ghost/pull/7005
- add `grunt init` task that installs `npm` and `bower` dependencies
- allows Ghost to call this task via subgrunt avoiding the need for a global bower install
2016-06-18 18:33:46 +01:00
Kevin Ansfield 48c83d07aa Merge pull request #46 from acburdine/one-way-inputs
Convert inputs to one way components
2016-06-18 16:26:17 +01:00
Austin Burdine d68779bf3a Merge pull request #76 from kevinansfield/post-comparable
Use Ember.Comparable mixin to sort posts
2016-06-18 09:26:26 -04:00
Austin Burdine c1367dac34 convert inputs to one-way inputs
no issue
- moves all inputs to use the data-down-actions-up component paradigm
2016-06-18 07:44:23 -04:00
Austin Burdine 38129d2018 Merge pull request #78 from TryGhost/greenkeeper-broccoli-asset-rev-2.4.3
Update broccoli-asset-rev to version 2.4.3 🚀
2016-06-18 00:13:07 -06:00
greenkeeperio-bot 1e09eaca4e chore(package): update broccoli-asset-rev to version 2.4.3
https://greenkeeper.io/
2016-06-18 06:08:23 +01:00
Kevin Ansfield afe04e57c9 Merge pull request #77 from TryGhost/greenkeeper-ember-cli-deprecation-workflow-0.2.3
Update ember-cli-deprecation-workflow to version 0.2.3 🚀
2016-06-17 16:34:03 +01:00
greenkeeperio-bot 8c0cfe96a5 chore(package): update ember-cli-deprecation-workflow to version 0.2.3
https://greenkeeper.io/
2016-06-17 15:48:25 +01:00
Kevin Ansfield ec6c614461 Use Ember.Comparable mixin to sort posts
closes https://github.com/TryGhost/Ghost/issues/7002
- move sorting logic out of the controller and into the Post model

This is a quick attempt at implementing the refactoring referenced in https://github.com/TryGhost/Ghost/issues/7002. The client-side sorting is working but we still have the problem of scheduled posts not appearing in the list until you scroll to the very first published post because the server is returning posts in the wrong order.
2016-06-17 11:33:11 +01:00
Kevin Ansfield f5aa71f57c Merge pull request #72 from AileenCGN/refactor-date-properties
Renaming date properties to contain `UTC`
2016-06-17 11:32:02 +01:00
Aileen Nowak dd8d3507f0 Renaming date properties to contain `UTC`
closes TryGhost/Ghost#6985

- renames all date properties to end with `UTC`:
	- `publishedAt` in `post` model
	- `createdAt` in `post`, `role`, `subscriber`, `tag` and `user` model
	- `updatedAt` in `post`, `role`, `subscriber`, `tag` and `user` model
	- `unsubscribedAt` in `subscriber` model
	- `lastLogin` in `user` model
- adds `attrs` transforms in matching serializers `post`, `tag` and `user`
- new serializers files for `subscribers` and `role` to add `attr` transforms
- adds unit tests for all serializers
- use two variables in `post-settings-menu` controller to handle blog-timezone adjusted date as well as UTC date
2016-06-17 11:09:21 +02:00
Austin Burdine 58e638530e Merge pull request #75 from TryGhost/greenkeeper-ember-cli-jshint-1.0.4
Update ember-cli-jshint to version 1.0.4 🚀
2016-06-16 17:36:44 -06:00
greenkeeperio-bot 5a47455716 chore(package): update ember-cli-jshint to version 1.0.4
https://greenkeeper.io/
2016-06-17 00:11:39 +01:00
Austin Burdine 064f1ac58f Merge pull request #74 from TryGhost/greenkeeper-glob-7.0.4
glob@7.0.4 untested ⚠️
2016-06-16 12:03:52 -06:00
greenkeeperio-bot 0044eef49e chore(package): update glob to version 7.0.4
https://greenkeeper.io/
2016-06-16 18:40:52 +01:00
Kevin Ansfield 1d0031b496 Merge pull request #73 from TryGhost/greenkeeper-ember-suave-3.0.1
Update ember-suave to version 3.0.1 🚀
2016-06-16 17:21:03 +01:00
greenkeeperio-bot 41058db135 chore(package): update ember-suave to version 3.0.1
https://greenkeeper.io/
2016-06-16 17:05:11 +01:00
Austin Burdine 2007cdf3b3 Merge pull request #71 from TryGhost/greenkeeper-ember-cli-mocha-0.10.4
Update ember-cli-mocha to version 0.10.4 🚀
2016-06-15 15:59:53 -06:00
greenkeeperio-bot 8eb107b4a0 chore(package): update ember-cli-mocha to version 0.10.4
https://greenkeeper.io/
2016-06-15 21:28:33 +01:00
Austin Burdine 74d03f4225 Merge pull request #69 from TryGhost/greenkeeper-ember-data-2.6.1
Update ember-data to version 2.6.1 🚀
2016-06-15 13:27:13 -06:00
greenkeeperio-bot c5ea3517c1 chore(package): update ember-data to version 2.6.1
https://greenkeeper.io/
2016-06-15 20:01:50 +01:00
Kevin Ansfield 2f4d056854 Version bump to 0.9.0-beta.2 2016-06-15 13:22:39 +01:00
Austin Burdine ee1a745aac Merge pull request #68 from TryGhost/greenkeeper-ember-power-select-0.10.11
Update ember-power-select to version 0.10.11 🚀
2016-06-14 16:22:17 -06:00
greenkeeperio-bot ac89daf260 chore(package): update ember-power-select to version 0.10.11
https://greenkeeper.io/
2016-06-14 22:24:26 +01:00
Austin Burdine 5202d4598b Merge pull request #67 from TryGhost/greenkeeper-loader.js-4.0.9
Update loader.js to version 4.0.9 🚀
2016-06-14 15:24:11 -06:00
greenkeeperio-bot bcc012dd5e chore(package): update loader.js to version 4.0.9
https://greenkeeper.io/
2016-06-14 21:54:19 +01:00
Kevin Ansfield f3feb65e59 Merge pull request #66 from TryGhost/greenkeeper-ember-one-way-controls-0.8.3
Update ember-one-way-controls to version 0.8.3 🚀
2016-06-14 14:44:30 +01:00
greenkeeperio-bot d2f9b047f1 chore(package): update ember-one-way-controls to version 0.8.3
https://greenkeeper.io/
2016-06-14 14:29:14 +01:00
Kevin Ansfield f01d86f922 Merge pull request #25 from AileenCGN/scheduler-ui
Scheduler UI
2016-06-14 13:06:00 +01:00
Kevin Ansfield 3df664a342 Merge pull request #64 from acburdine/internal-tags-followup
internal-tags style followup
2016-06-13 17:37:12 +01:00
Austin Burdine 8374a7c997 internal-tags style followup
no issue
- improves internal-tags display on content page
- fix typo in settings/labs
2016-06-13 09:40:16 -06:00
Aileen Nowak 6ce7e14fd7 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
Kevin Ansfield a1a62c7908 Merge pull request #58 from acburdine/internal-tags-admin
internal tags feature
2016-06-13 15:53:08 +01:00
Austin Burdine 7d693c1f96 internal tags feature
refs TryGhost/Ghost#6165
- change behavior to use 'visibility' property
- add tests
2016-06-13 08:21:41 -06:00
Hannah Wolfe e704d5f41a Merge pull request #63 from kevinansfield/add-ghost-desktop-update-tests
Fix and add tests for Ghost Desktop manual update notification
2016-06-13 14:10:20 +01:00
Hannah Wolfe 6d289c01d7 Merge pull request #62 from kevinansfield/fix-401s-in-uploaders
Fix auth header caching in ajax service
2016-06-13 14:07:58 +01:00
Kevin Ansfield 37ff17b738 Fix and add tests for Ghost Desktop manual update notification
closes #51
- move the check into the `afterModel` hook so that it's always performed on app load (previously it would only be displayed after going through the sign-in process)
- change the alert type to `warn` so that it matches our existing types (success, warn, error)
- don't rely on the `.htmlSafe()` prototype extension
- add basic tests for the upgrade alert display
2016-06-13 13:40:41 +01:00
Kevin Ansfield f57769d15e Fix auth header caching in ajax service
closes https://github.com/TryGhost/Ghost/issues/6884
- mark the `headers` method in the ajax service as "volatile" - it's dependent key was causing the auth headers to be cached on first use which would then cause 401 errors once the token had been refreshed externally

It would also be possible to add `session.authenticated.access_token` as a dependent key but the code-path and usage are minimal so I believe `.volatile()` is preferable as it means that it's not tied directly to the authorizer implementation.
2016-06-13 11:40:08 +01:00
Kevin Ansfield fb88dda5a8 Merge pull request #61 from acburdine/jscs-update
Update grunt-jscs and ember-suave to 3.0.0
2016-06-13 08:49:11 +01:00
Kevin Ansfield 8cd8d3ed15 Merge pull request #57 from AileenCGN/set-default-timezone-to-utc
Add UTC timezone as default in settings model
2016-06-13 08:44:17 +01:00
Austin Burdine ed2c5f328d deps: grunt-jscs,ember-suave@3.0.0
replaces #41, #60
- update ember-suave and grunt-jscs to 3.0
- standardize Ember global de-structuring rules across app & tests
2016-06-11 13:39:31 -06:00
Austin Burdine 5fdafec503 Merge pull request #59 from TryGhost/greenkeeper-ember-cli-2.6.1
Update ember-cli to version 2.6.1 🚀
2016-06-11 07:16:06 -06:00
Aileen Nowak 31d14c35f2 Add UTC timezone as default in settings model
no issue

- Changes the default timezone from 'Europe/Dublin' to 'Etc/UTC' in setting model
- Updates acceptance test for settings general to expect more timezones in list and different default
- adds mirage fixtures values
2016-06-11 12:24:04 +02:00