1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Commit graph

5448 commits

Author SHA1 Message Date
Kevin Ansfield
3f7f3812e7 Fixed invite management tests
no issue

- adjusts mirage config so that we're correctly serializing foreign keys
- our API outputs (and our app code expects) foreign keys for non-embedded resources to be in the format `{relationship_name}_id` but mirage's default REST serializer does not include the `_id` suffix
- tests started failing because cc0aa73355 introduced a direct access of the invite->role relationship which Ember Data was not correctly creating when mirage was outputting `role` rather than `role_id`
2020-01-08 15:37:06 +00:00
John O'Nolan
bf7570d379 2020 2020-01-07 18:38:25 +00:00
Kevin Ansfield
cc0aa73355 Fixed invite resend
refs af4bd52b55

- `record.belongsTo().id` is an older Ember Data concept so it was returning `undefined`
- the `role` relationship is set up as `async: false` and is always output as an embedded record by our API so we're safe to use `this.role.id` without dealing with any async lookup
2020-01-07 13:45:06 +00:00
Kevin Ansfield
af4bd52b55 Fixed Ember Data record.toJSON() deprecation
no issue

- https://deprecations.emberjs.com/ember-data/v3.x/#toc_record-toJSON
2020-01-07 13:23:15 +00:00
Kevin Ansfield
4e4ff8bff5 Silenced "isVisible" deprecation
no issue

- it's being caused by the `ember-infinity` addon and was making test output rather noisy
- revert once `ember-inifinity` has a release removing `isVisible` and we've upgraded
2020-01-07 11:25:24 +00:00
renovate[bot]
df18bce2bd Update dependency ember-infinity to v2 (#1453)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-07 09:54:26 +00:00
renovate[bot]
4efee29df5 Update dependency ember-simple-auth to v2 (#1449)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-07 09:27:13 +00:00
Kevin Ansfield
36018c7d7a Fixed linting 2020-01-07 09:11:42 +00:00
Kevin Ansfield
73ef9440ed Swapped and updated pretender dependency
no issue

- `ember-cli-pretender` is no longer required when using `ember-auto-import`
- updated `pretender` dependency from 2.1.2 to 3.2.0
- removed upload progress tests (one was already skipped due to random failures) because pretender is not outputting meaningful `event.loaded` and `event.total` values
2020-01-06 17:28:47 +00:00
Kevin Ansfield
588163a949 Reverted broccoli-concat to 4.0.0
no issue

- 4.2.1 was failing when building on macOS due to an issue creating asset directories
- https://github.com/broccolijs/broccoli-concat/issues/149
2020-01-06 11:37:40 +00:00
Kevin Ansfield
ae5ce02fcf Dropped Node 8.x support
no issue

- Node 8.x is now EOL
- switches Travis over to testing against latest Node LTS which is 12.x
2020-01-06 10:59:59 +00:00
renovate[bot]
9e0669fbad Lock file maintenance (#1451)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 10:59:35 +00:00
renovate[bot]
9c7d69ebda Update ember core (#1441)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 10:51:48 +00:00
renovate[bot]
d9f6434b8c Update dependency ember-test-selectors to v3 (#1450)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 10:37:47 +00:00
renovate[bot]
9cdb761462 Update dependency ember-resolver to v7 (#1448)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 10:27:27 +00:00
renovate[bot]
5c0b7fb423 Update dependency ember-fetch to v7 (#1447)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 10:27:01 +00:00
renovate[bot]
d2909a7d63 Update dependency ember-cli-test-loader to v3 (#1445)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 10:26:19 +00:00
renovate[bot]
eb0a784d49 Update dependency broccoli-funnel to v3 (#1443)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 10:23:06 +00:00
renovate[bot]
1419e43412 Update dependency ember-composable-helpers to v3 (#1446)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 09:47:53 +00:00
renovate[bot]
f39722a055 Update dependency broccoli-merge-trees to v4 (#1444)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 09:46:27 +00:00
renovate[bot]
bc30d1873b Update dependency broccoli-concat to v4 (#1442)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 09:45:29 +00:00
renovate[bot]
f70af21d29 Update dependency ember-cli-htmlbars to v4.2.0 (#1439)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 09:44:59 +00:00
renovate[bot]
3f0627c22c Update dependency ember-cli-babel to v7.13.2 (#1438)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 09:44:28 +00:00
renovate[bot]
395f4adc24 Update dependency @ember/optional-features to v1.3.0 (#1437)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-06 09:29:50 +00:00
Renovate Bot
18d042b6bd Update dependency ember-cli-string-helpers to v4.0.6 2020-01-06 01:15:49 +00:00
Renovate Bot
e123583911
Update dependency eslint to v6.8.0 2019-12-30 00:17:04 +00:00
Renovate Bot
aa2bb1ac7e Update dependency ember-data to v3.14.1 2019-12-23 04:16:56 +00:00
Renovate Bot
4ddaf72966 Update dependency ember-cli-mirage to v1.1.6 2019-12-23 03:16:59 +00:00
Renovate Bot
b74780b0dd Update dependency @tryghost/timezone-data to v0.2.17 2019-12-23 02:17:41 +00:00
Renovate Bot
caee52808d Update dependency @tryghost/helpers to v1.1.20 2019-12-23 01:20:46 +00:00
Kevin Ansfield
684ce495b4 Fixed incorrect "explicit this" for did-insert and will-destroy element modifiers
no issue

- the "explicit this" codemod incorrectly added `this.` in front of the `{{did-insert}}` and `{{will-destroy}}` element modifiers
2019-12-19 21:19:20 +00:00
Rish
ac450612ed Version bump to 3.2.0 2019-12-17 21:52:51 +05:30
Rishabh Garg
f95c68662b
Added upgrade modal for host member limits (#1428)
no issue

Uses 160ef2976a to add new upgrade popup for host limit errors while publishing/scheduling post with emails.
2019-12-17 19:27:42 +05:30
Rishabh Garg
9298e30562
Added new brand color publication setting (#1409)
no issue

Reads new brand primary color setting and adds UI to modify/update it behind the dev flag
2019-12-17 16:37:34 +05:30
Rishabh Garg
8afa2bf645
Added members growth chart (#1424)
no issue

Adds new members growth chart in members list screen to highlight growth of members over different date ranges
2019-12-17 15:59:26 +05:30
Kevin Ansfield
ffa200d00f Added console log with reason unsaved changes modal is shown in editor
no issue

- output the reason we're showing the unsaved changes modal along with some context to the console
- to share it, right click on the object that is logged to the web inspector console next to the text "showing leave editor modal" and choose "Store as global variable" in the popup menu, then execute `copy(temp1)` (if `temp1` was the variable that was created for you) which will copy a string representation of the object to your clipboard ready for sharing
2019-12-17 09:57:37 +00:00
Kevin Ansfield
39ecd67d13 Fixed unsaved changes modal showing after focus/blur of tag and member fields
no issue

- the inputs in tag/member settings are now two-way bound which means that a `null` or `undefined` value can become `""` when a field is focused/blurred due to inputs only working on strings
- if a `null` or `undefined` property value becomes `""` Ember Data will treat that as a dirty property and that will in turn trigger the unsaved changes modal when leaving the tag/member details screens
- this change strengthens our `_saveXProperty` private controller methods to skip any changes between "falsy" property values unless the new value is explicitly `false`
2019-12-16 17:02:19 +00:00
Peter Zimon
85518b3b6a 🐛 Fixed darkmode color regressions
refs. https://github.com/TryGhost/Ghost/issues/11445

- fixed input field background colors in Post Settings menu in darkmode
- applied color variables to day picker calendar component
- fixed colors of day picker calendar in darkmode
2019-12-16 15:04:32 +01:00
Kevin Ansfield
6e20de4d0e
Removed ember-addons Renovate group (#1427)
no issue

- having so many addons grouped into a single PR is difficult to manage when not reviewing, updating and merging frequently. If a single addon requires deeper work or breaks our node support range than it blocks upgrades on all other addons which then compounds required effort over time
2019-12-16 13:27:11 +01:00
renovate[bot]
eb33e1c715 Pin dependency @glimmer/component to 1.0.0 (#1425) 2019-12-16 10:35:14 +01:00
Renovate Bot
2e92b8d045 Update dependency ember-exam to v4.0.9 2019-12-16 01:12:39 +00:00
Renovate Bot
2faad1a905 Update dependency autoprefixer to v9.7.3 2019-12-13 19:38:46 +00:00
Kevin Ansfield
693d6b48b2 🐛 Fixed unexpected "unsaved changes" modals when accessing screens
no issue

We weren't correctly clearing state for the "display modal" booleans when leaving screens. This meant that it was possible to end up in a state where where every time you access a screen you get the unsaved changes modal
2019-12-13 17:09:06 +00:00
renovate[bot]
b87fe7812e Lock file maintenance (#1419) 2019-12-13 17:14:46 +01:00
Kevin Ansfield
403bac5876 Converted <GhErrorMessage> to glimmer component
no issue

- fixes `isVisible` deprecation warning that was showing up for every component invocation since the Ember 3.14 upgrade
2019-12-13 16:12:04 +00:00
renovate[bot]
388d084ee0 Update ember core (#1389) 2019-12-13 16:15:06 +01:00
Kevin Ansfield
aaf9f88ebc Ran "no implicit this in templates" codemod
no issue

We were in a part-way state where some touched files had been (sometimes partially) migrated to explicit `this`. The codemod that was available has now fixed the formatting issues it had so it was a good time to run it.

https://github.com/ember-codemods/ember-no-implicit-this-codemod

- part of the migration path for https://github.com/emberjs/rfcs/pull/308
- starts to make template resolution rules more explicit
  - `<MyComponent />` - always a component
  - `{{my-component}}` - component or helper (components _must_ have a `-`. This style of component will go away once fully migrated to angle bracket components)
  - `{{value}}` - a helper or local template variable
  - `{{this.value}}` - reference to a property on the backing context (either a controller or a component JS file)
2019-12-13 14:20:29 +00:00
Kevin Ansfield
077347a8a1 Fixed linter errors 2019-12-13 13:55:59 +00:00
Kevin Ansfield
aa9a2d393a Fixed member count after deleting a member
no issue

- the member count is automatically calculated via the length of the live members array so there's no need to manually decrement it - if we do manually decrement then the count is off by one because the auto calculation runs to get the new value before the manual decrement
2019-12-13 11:38:37 +00:00
Kevin Ansfield
35b53e7712 🐛 Fixed unsaved changes modal when using Cmd+S on tag/member screens
no issue

- keep a scratch model on the tag/member controllers rather than inside of the form components
  - allows the controller's `save` task to transfer scratch values to real values before saving
  - means that pressing Cmd+S whilst a field is still focused will save the expected value rather than the old value avoiding unsaved changes modals when trying to leave the screen when you think you've already saved
- fixed route and url not changing after saving a new member
- fixed error when clicking delete tag button
- cleaned up unused `showDeleteTagModal` actions
2019-12-13 11:37:01 +00:00