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

5319 commits

Author SHA1 Message Date
Nazar Gargol
9e7a6b801a 🐛 Fixed complimentary plan creation when there was none in plans collection
closes https://github.com/TryGhost/Ghost/issues/11649
closes https://github.com/TryGhost/Ghost/issues/11648

- When complimentary plan with new currency is created for the first time it doesn't have a reference to a previously default "Complimentary USD" plan which caused problems when switching currencies for the first time.
- Value for complimentary plan taken from  https://github.com/TryGhost/Ghost/blob/3.10.0/core/server/services/members/config.js#L8-L13
2020-03-10 13:39:38 +08:00
Daniel Lockyer
013056b178 Version bump to 3.10.0 2020-03-09 10:49:09 +00:00
renovate[bot]
be6a327e8d
Update dependency ember-exam to v5 (#1512)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-09 10:00:12 +00:00
Kevin Ansfield
059cd1fa03 🐛 Fixed Ctrl+h and Ctrl+d breaking the editor when used on card boundaries in macOS
closes https://github.com/TryGhost/Ghost/issues/10240

- intercept known macOS content-modifying keyboard shortcuts and simulate the "normal" keyboard events that they map to
  - `ctrl+h`: `Backspace`
  - `ctrl+d`: `Delete`
2020-03-07 21:33:12 +00:00
Kevin Ansfield
a32e7c0b65 🐛 Fixed scroll jump in editor when pasting a url onto a selection to create a link
closes https://github.com/TryGhost/Ghost/issues/10090

- when mobiledoc-kit replaces the selection the caret window selection is temporarily set to the whole editor element which was causing our scroll-cursor-into-view routine to scroll incorrectly
- adding the guard allows the first replacement cursor change to be ignored but the second cursor change to be picked up which will do nothing if the text is on-screen, or scroll if it's off screen as normal
2020-03-07 20:23:23 +00:00
Kevin Ansfield
7ca85838c8
🐛 Fixed unreachable toolbar when editing wrapped links (#1511)
closes https://github.com/TryGhost/Ghost/issues/9792

- use `getClientRects()` to get separate rectangles for each line of a link and use the mouse position to find the closest one so that the toolbar can be positioned relative to that link section on that line rather than always in the middle of the editor canvas
- pass the rectangle used for positioning the link toolbar through to the link input component so that there is no jumping of position when clicking the edit button
2020-03-07 18:22:56 +00:00
Peter Zimon
b77265f2e7 Updated suspended badge for staff list
Displaying the role of suspended staff users is misleading, giving the false impression that those users still have access to the publication.

no refs.
- updated label to "Suspended" for all suspended staff user
2020-03-05 12:12:09 +01:00
Peter Zimon
248b13e0a8 Fixed arrow position bug on tags list
no refs.
- fixed size issue for arrow cell on tags list screen in Firefox
2020-03-05 11:36:35 +01:00
Daniel Lockyer
1821f600f4 Updated README with new CI badge
no issue
2020-03-04 15:24:03 +00:00
Daniel Lockyer
05f4e303e2 Switched testing to GitHub Actions
no issue
2020-03-04 15:18:23 +00:00
Nazar Gargol
1a61b500d9 Added support for setting custom currency on member's plans
refs c0512e30bb6e5e3f2d3d86a3ca04b0273d405447

- Adds a dropdown allowing to select and set custom currency.
- At the moment we don't have a specific way to interface with the members configuration API so all values are set directly on existing "config JSON". Ideally we should add more validations and be more precise what values can be set for the `stripeProcessor.config.*` values.
- Saves selected currency in `stripeProcessor.config.currency` variable.
2020-03-04 13:31:39 +08:00
renovate[bot]
ae9b72bcee
Update dependency element-resize-detector to v1.2.1 (#1469)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-03-03 14:51:51 +00:00
Daniel Lockyer
1a77f94232 Version bump to 3.9.0 2020-03-02 12:02:24 +00:00
renovate[bot]
60cfbb1fdc
Update dependency ember-sinon to v5 (#1510)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-03-02 09:50:57 +00:00
Fabien O'Carroll
3cc039323f
Added billing route and iframe behind config
no-issue

* Updated the iframe src

* Moved billing behind config

* Transition to home route for missing billing config

* Replaced jquery element selection with native
2020-03-02 10:36:54 +05:30
Renovate Bot
fcb9222680 Update dependency ember-data to v3.16.2 2020-03-02 02:19:45 +00:00
Renovate Bot
c7cf7ce65c Update dependency ember-concurrency to v1.1.6 2020-03-02 01:20:34 +00:00
Kevin Ansfield
c52f5d2396 Lock file maintenance 2020-02-27 15:36:29 +00:00
Peter Zimon
64df15c342 Refined members list mobile styles
no refs.
- fixed mobile styles for members list to comply with locaiton info
2020-02-27 16:32:32 +01:00
André Borud
ee02b81999
🐛 Fixed redirect to posts list when deleting a page (#1486)
no issue

- success routine when deleting a post/page was not taking into consideration the type of record being deleted
  - deleting a post should keep previous behaviour of redirecting to posts list
  - deleting a page should redirect to the pages list
2020-02-27 15:19:31 +00:00
renovate[bot]
941ec4bc5f
Update dependency ember-simple-auth to v3 (#1496)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-27 15:15:02 +00:00
Kevin Ansfield
1bd612a359 Updated image card to trigger file browse immediately when inserting
no issue

- removes number of clicks required to insert images, especially when using the `/image` shortcut
- strips `triggerBrowse` property from the payload after inserting to avoid triggering file browse when a post with blank image cards is rendered/re-rendered
2020-02-27 14:38:53 +00:00
Peter Zimon
1e73f323e7 Member geolocation design refinements
no refs.
- refined copy and styles for member list
- added geolocation data for member detail screen
2020-02-27 15:14:26 +01:00
Kevin Ansfield
97f915040e Fixed template error 2020-02-27 13:00:57 +00:00
Kevin Ansfield
89b10f69fa Added member's geographic location to admin
no issue

- added `geolocation` attribute to member model with json-string transform
- prevent geolocation from being sent back to the API in member serializer
- add "Location" column to members list
  - if country is "US" then display "{State}, US" otherwise show full country name such as "United Kingdom"
  - displays "-" if no geolocation data has been collected for the member
2020-02-27 12:56:26 +00:00
Kevin Ansfield
73ab00be1b Refactored <GhMemberAvatar> to glimmer component
no issue

- cleaned up property access in template to differentiate between passed-in args and component-defined properties
- tidied up logic in `backgroundStyle` and `initials` getters
2020-02-27 12:33:33 +00:00
Kevin Ansfield
612b71a77f Refactored <GhMembersListItem>
no issue

- switched to using a glimmer component
  - cleaned up property access in the template
  - used helpers for basic display logic in the template
- removed unused computed properties, aliases, and injected services
2020-02-27 12:17:48 +00:00
Peter Zimon
81945b22ef
Updated notifications design (#1498)
no issue

- updating toaster design for better discoverability
2020-02-27 09:19:29 +00:00
renovate[bot]
70965a8d84
Update dependency ember-test-selectors to v4 (#1502)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-27 09:14:24 +00:00
renovate[bot]
78b1b6da77
Update dependency postcss-custom-properties to v9.1.1 (#1501)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-27 09:14:12 +00:00
Naz
b192917e88
Added member impersonation (#1497)
refs b0ff1e7cac

- Adds "impersonate" button which would be triggering a popup window with "login url" that allows to log in as a member
2020-02-27 11:50:15 +08:00
Daniel Lockyer
5a73022556 Version bump to 3.8.0 2020-02-24 11:53:34 +00:00
Kevin Ansfield
c41a6fb93e 🐛 Fixed infinite scroll on posts/pages lists in admin
closes https://github.com/TryGhost/Ghost/issues/11608

- reverts `ember-source` to a working version and temporarily blocks renovate from auto-updating
- ember-infinity issue https://github.com/ember-infinity/ember-infinity/issues/421
- related ember-source issue https://github.com/emberjs/ember.js/issues/18750
2020-02-24 11:28:25 +00:00
Nazar Gargol
f3d6a75a3c Hidden subscriptions section on member profile when no connected Stripe
no issue

- There is no way to turn on "Complimentary" subscription when Stripe is not connected
- There is no constructiove information that can be shown about subscriptions
2020-02-24 17:08:47 +08:00
Rish
059ce28cb6 Fixed lint
no issue
2020-02-24 13:39:59 +05:30
Rishabh Garg
fb5663f3f0
Updated send email messaging for Editors (#1505)
no issue

Fixes incorrect member count for Editors when trying to publish/schedule post with send email.

Note: This is a short-term fix till we fix fetching member data for Editors for proper count.
2020-02-24 13:22:39 +05:30
Rishabh Garg
87086edc70
Allowed editors to send email on publish (#1504)
no issue

So far, only owners or Admins were allowed to control the send email setting while publishing/scheduling a post. This change allows Editors to see the setting as well and toggle as needed.

No changes on the API side were needed.
2020-02-24 12:20:29 +08:00
Renovate Bot
28f85be3f5 Update dependency ember-source to v3.16.3 2020-02-24 02:19:52 +00:00
Renovate Bot
4421334eb2 Update dependency ember-cli-htmlbars to v4.2.3 2020-02-24 01:19:45 +00:00
Renovate Bot
f54d4c4dcd Update dependency broccoli-funnel to v3.0.2 2020-02-24 00:28:16 +00:00
Peter Zimon
ba60cad1ac Updated style definition for staff dropdowns
no refs.
- updated style for staff dropdown to make it generic for reuse
2020-02-21 10:20:08 +01:00
Nazar Gargol
0cb787d11a Enabled editing email field on member profile page
refs b9db9fa15e

- Now that Admin API allows to edit email, there is no reason to keep this field disabled
2020-02-21 16:12:35 +08:00
Daniel Lockyer
f1307c3c8e Increased browser disconnect timeout to 30s
no issue

- browser tests would intermittently fail because they would hit the
  timeout limit
- this commit increases the limit to allow for more variability in the
  CI environment
2020-02-18 18:11:31 +00:00
Daniel Lockyer
99d951cbe9 Version bump to 3.7.0 2020-02-18 12:23:18 +00:00
Renovate Bot
087629d941 Update dependency ember-fetch to v7.0.1 2020-02-17 02:16:47 +00:00
Renovate Bot
264c6d9fef Update dependency ember-composable-helpers to v3.1.1 2020-02-17 01:18:31 +00:00
renovate[bot]
dc86c3aa3d
Lock file maintenance (#1487)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:33:27 +00:00
renovate[bot]
2bffe1852d
Update ember core (#1485)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:26:14 +00:00
renovate[bot]
2cbb8bf85a
Update dependency pretender to v3.3.1 (#1491)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:19:05 +00:00
renovate[bot]
ca4aac8073
Update dependency ember-cli-babel to v7.18.0 (#1488)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:18:51 +00:00