0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
Commit graph

2663 commits

Author SHA1 Message Date
Kevin Ansfield
d584b0d5fe 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
9a432ab591 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
ac82022997 Merge pull request #79 from kevinansfield/grunt-init
Add `grunt init` task
2016-06-18 14:20:47 -04:00
Kevin Ansfield
5e3fafa79a 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
7c2034df21 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
34ccd12111 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
6ee77a712a 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
2ce59c6ab2 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
f0ddd0402e chore(package): update broccoli-asset-rev to version 2.4.3
https://greenkeeper.io/
2016-06-18 06:08:23 +01:00
Kevin Ansfield
909713ec79 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
01cffa55a0 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
a109c1c3db 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
f1c68e48c8 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
d90ed28940 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
0028be64aa 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
71c78064fd chore(package): update ember-cli-jshint to version 1.0.4
https://greenkeeper.io/
2016-06-17 00:11:39 +01:00
Austin Burdine
2250fe38b3 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
fcd2e22259 chore(package): update glob to version 7.0.4
https://greenkeeper.io/
2016-06-16 18:40:52 +01:00
Kevin Ansfield
3b0f4d84b9 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
06fca08006 chore(package): update ember-suave to version 3.0.1
https://greenkeeper.io/
2016-06-16 17:05:11 +01:00
Austin Burdine
1e0ab39c3c 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
8791385430 chore(package): update ember-cli-mocha to version 0.10.4
https://greenkeeper.io/
2016-06-15 21:28:33 +01:00
Austin Burdine
50022bdbd7 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
d2f35ffb10 chore(package): update ember-data to version 2.6.1
https://greenkeeper.io/
2016-06-15 20:01:50 +01:00
Kevin Ansfield
2f7f7dd53b Version bump to 0.9.0-beta.2 2016-06-15 13:22:39 +01:00
Austin Burdine
8ec10c86c0 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
608e42b3e9 chore(package): update ember-power-select to version 0.10.11
https://greenkeeper.io/
2016-06-14 22:24:26 +01:00
Austin Burdine
c49094dff5 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
be0bd9e1b6 chore(package): update loader.js to version 4.0.9
https://greenkeeper.io/
2016-06-14 21:54:19 +01:00
Kevin Ansfield
4130259051 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
00becad6a9 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
ebb36a317e Merge pull request #25 from AileenCGN/scheduler-ui
Scheduler UI
2016-06-14 13:06:00 +01:00
Kevin Ansfield
b900b2a940 Merge pull request #64 from acburdine/internal-tags-followup
internal-tags style followup
2016-06-13 17:37:12 +01:00
Austin Burdine
8b07f934e3 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
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
Kevin Ansfield
6606e18991 Merge pull request #58 from acburdine/internal-tags-admin
internal tags feature
2016-06-13 15:53:08 +01:00
Austin Burdine
5d008780fd 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
05243a2dbc 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
1d31a8d973 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
b521e4dba4 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
39a09ca28a 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
e308256601 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
55eabdb350 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
cf36851265 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
a42c571055 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
6d22a6dcb6 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
greenkeeperio-bot
6d8501f507 chore(package): update ember-cli to version 2.6.1
https://greenkeeper.io/
2016-06-11 10:38:22 +01:00
Kevin Ansfield
9b8348a0c0 Merge pull request #53 from TryGhost/greenkeeper-loader.js-4.0.8
Update loader.js to version 4.0.8 🚀
2016-06-10 11:00:40 +01:00
greenkeeperio-bot
446d4bc4fe chore(package): update loader.js to version 4.0.8
https://greenkeeper.io/
2016-06-10 10:18:14 +01:00
Kevin Ansfield
185f0bcb7f Merge pull request #54 from TryGhost/greenkeeper-ember-route-action-helper-0.3.2
Update ember-route-action-helper to version 0.3.2 🚀
2016-06-10 10:17:59 +01:00