Commit Graph

6115 Commits

Author SHA1 Message Date
renovate[bot]
38f37225be Update dependency ember-composable-helpers to v4.3.2 (#1774)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-19 11:39:26 +00:00
Peter Zimon
3cdb63006a Supported custom redirects for member signup (#1768)
refs https://github.com/TryGhost/Ghost/issues/12366

- added form fields for redirects
- updated CSS to handle scrolling

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2020-11-19 09:59:51 +00:00
Rishabh Garg
7a0defab17 Added new portal links for plan checkout (#1770)
refs TryGhost/Ghost#12365

Portal now allows direct checkout links for monthly/yearly plans via Portal links or data attributes, allowing members to directly signup to a paid plan. This PR adds -

- A new portal signup link for monthly plan - `/signup/monthly`
- A new portal signup link for yearly plan - `/signup/yearly`

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-11-18 00:00:46 +05:30
Daniel Lockyer
036cd516ed v3.38.1 2020-11-17 16:42:06 +00:00
Daniel Lockyer
9927e9f583 v3.38.0 2020-11-17 13:53:34 +00:00
Peter Zimon
b3354c5f67 Fixed copy in newsletter settings
no refs.
2020-11-16 18:44:39 +01:00
Peter Zimon
d03f0f56fb Fixed extra padding in Members settings
no refs.
- removed extra padding when mailgun configuration is not displayed on Members screen
2020-11-16 18:43:38 +01:00
Sanne de Vries
c71413b0f7 Added descriptive line to each menu item in cardmenu 2020-11-16 17:34:40 +01:00
Peter Zimon
7970917872 Updated email recipient checkbox design
no refs.
- changed email recipient checkboxes to switches in the publish menu so that it's nicely balanced
2020-11-16 16:48:42 +01:00
Peter Zimon
c46198f728 Update post email preview design (#1767)
Made post email preview design consistent with the new email settings design preview.

* changed background

* added fake container windows and faux sender/recipient content

* updated mobile and dark mode
2020-11-16 12:16:51 +01:00
Fabien 'egg' O'Carroll
96f096a839 Added support for basic HTML newsletter footer (#1765)
no-issue

This allows users to use basic HTML to customise their newsletter
footer, meaning they can use links, and bold/italic text.
2020-11-16 10:29:32 +00:00
Peter Zimon
8d8a5d8bc3 Updated scroll area for email settings
no refs.
- updated email settings preview scroll area so that now only the content is scrolling not the whole screen
2020-11-13 16:31:21 +01:00
Peter Zimon
44bcf3b46f Updated dark style for email settings
no refs.
2020-11-13 16:05:00 +01:00
Fabien O'Carroll
65b310d500 Renamed footer setting to newsletterFooterContent
no-issue

This is more generic and matches the setting in the backend.
2020-11-13 13:32:31 +00:00
Fabien 'egg' O'Carroll
fafe7d7b74 Added newsletter footer customisation (#1764)
no-issue

This adds support for customising the newsletter footer with plaintext.
Updates the new modal to use Octane, rather than legacy components.
2020-11-13 13:21:42 +00:00
Peter Zimon
b9ae1f6e95 Updated email address in email settings preview
no refs.
- set actual (dynamic) from address in email settings preview
2020-11-13 12:35:56 +01:00
Peter Zimon
37c5f0ce08 Refined newsletter settings modal
no refs.
- set fake sender, site icon and title dynamic
- removed scrollbar for preview window
2020-11-13 12:18:19 +01:00
Peter Zimon
94581a87f8 Added newsletter customisation options (#1756)
no-issue

This adds three initial customisation options for newsletters:
  1. Show/Hide site title and logo
  2. Set font to serif/sans serif
  3. Display a publish with Ghost badge

This is the first step in allowing customisation of the look and feel of newsletters.

Co-authored-by: Rish <zrishabhgarg@gmail.com>
Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-11-12 14:45:22 +00:00
Kevin Ansfield
f68738ee62 Lock file maintenance 2020-11-12 11:15:02 +00:00
renovate[bot]
440d668b16 Update dependency autoprefixer to v10.0.2 (#1759)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-12 10:08:28 +00:00
renovate[bot]
5118ffb99d Update dependency ember-composable-helpers to v4.3.1 (#1757)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-12 10:08:09 +00:00
Peter Zimon
28888be650 Updated publishmenu copy
no refs.
- updated newsletter recepient checkbox label
2020-11-12 11:00:10 +01:00
Rishabh Garg
7191fe1558 Added member counts to newsletter publish menu (#1760)
refs 6140a98351

- Adds free/paid member counts to newsletter option in publish menu
- Updates default state for newsletter sending option based on number of members for free/paid
- Updates styling for checkboxes based on enabled/disabled state
2020-11-11 22:38:43 +05:30
Renovate Bot
1640ee25b6 Update dependency @tryghost/timezone-data to v0.2.32 2020-11-10 12:37:59 +00:00
Daniel Lockyer
ad98c53cc8 Extracted linting test to separate job
- we don't need to run linting twice as we do currently in the Firefox &
  Chrome jobs
- also pins the Node version to 12.18.0 so we can be sure what Node
  version we're running with
2020-11-10 12:36:56 +00:00
Sanne de Vries
38a8a13e4b Fixed border-radius bug in bookmark cards 2020-11-09 13:37:37 +01:00
renovate[bot]
1197832715 Update dependency @tryghost/kg-parser-plugins to v1.0.10 (#1750)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:13:30 +00:00
renovate[bot]
bf01771f46 Update dependency ember-moment to v8.0.1 (#1754)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:11:22 +00:00
renovate[bot]
0bfc13fda0 Update dependency @tryghost/kg-clean-basic-html to v1.0.10 (#1749)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:10:35 +00:00
renovate[bot]
dceecc30ec Update dependency ember-load-initializers to v2.1.2 (#1752)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:10:21 +00:00
Renovate Bot
034d27511f Update dependency eslint to v7.13.0 2020-11-09 00:06:39 +00:00
Rishabh Garg
49b86b466a Allowed sending newsletter to free members only (#1751)
refs 6140a98351

This officially decouples the newsletter recipients from the post visibility allowing us to send emails to free members only.
2020-11-07 00:24:27 +05:30
Kevin Ansfield
81ec6729c8 Fixed error when creating a block-editable card in the editor
no issue

The toolbar display/positioning logic was recently changed so that the toolbar is shown when a `saveAsSnippet` action is passed in. However the `_setToolbarProperties` method wasn't taking into account the toolbar element not being present when in editing mode such as when a block-editable card (markdown, html, code) is created.

- remove conditional logic that may change over time and replace it with checks for the toolbar element existing
2020-11-06 18:13:32 +00:00
renovate[bot]
4f86f3ddeb Update CSS preprocessors (#1708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-05 11:51:51 +00:00
Peter Zimon
74c008fbb3 Fixed setting buttons alignment regression
refs https://github.com/TryGhost/Ghost-Admin/pull/1736 where a style change caused regression in the action button's alignment on settings screens.

- fixed alignment issues
2020-11-05 10:55:43 +01:00
Daniel Lockyer
26003629e1 v3.37.1 2020-11-03 14:00:30 +00:00
Kevin Ansfield
3b87c951c0 🐛 Fixed snippet icon showing in card toolbar for authors/contributors
no issue

- authors/contributors do not have permission to create snippets so the icon should not be displayed
2020-11-03 13:57:11 +00:00
Daniel Lockyer
85a07b3586 v3.37.0 2020-11-03 13:11:42 +00:00
Rishabh Garg
d534bba348 Enabled Portal settings for all sites (#1748)
refs 8ad11fe082

- Removes Portal settings access from behind flag and includes it by default.

Portal script is now enabled as default, the change here allows Site owners to access Portal settings via Ghost-Admin
2020-11-03 14:38:53 +05:30
renovate[bot]
fb25b17d28 Update dependency @tryghost/timezone-data to v0.2.31 (#1747)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:52:58 +00:00
renovate[bot]
a5fb8ed443 Lock file maintenance (#1742)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:52:34 +00:00
renovate[bot]
1078007b6c Update dependency @tryghost/string to v0.1.14 (#1746)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:06:01 +00:00
renovate[bot]
2fc54e3607 Update dependency @tryghost/helpers to v1.1.34 (#1745)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:05:49 +00:00
renovate[bot]
560c10330d Update dependency ember-auto-import to v1.7.0 (#1744)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:05:34 +00:00
Peter Zimon
cf9534f31c Fixed truncated label names in members list
no refs.
- fixed Import related labels being truncated in the label filter dropdown list on the Members screen
2020-10-29 18:31:59 +01:00
Renovate Bot
679abad2b1 Update dependency ember-exam to v6.0.1 2020-10-28 20:02:39 +00:00
Sanne de Vries
64e1f74033 Adjusted cardmenu styling for dark mode
No issue

- Changed snippet icon fill
- Changed section border color
- Deleted white corners on bookmark icon
2020-10-28 14:55:34 +01:00
Sanne de Vries
8b26a2ae7e Changed "Delete snippet" button to sentence case 2020-10-28 13:45:13 +01:00
Sanne de Vries
22050954df Changed copy for snippet deletion modal 2020-10-28 13:30:26 +01:00
Sanne de Vries
ce674169e6 Improved hover state styling of snippets in cardmenu
No issue

- Changed delete icon colour and padding
- Changed fill of snippet icon on hover
2020-10-28 13:14:25 +01:00
Daniel Lockyer
3183fe045d Bumped minimum Node 14 version to latest LTS
- 14.15.0 is the latest version of Node 14 LTS
2020-10-28 11:05:00 +00:00
Kevin Ansfield
348ffc7d05 Changed slash menu filter to match any part of a snippet title
no issue

- extracted item matching into a separate function
- modified item matching to work with arrays (existing exact match behaviour) or functions which can be defined per-item
- changed snippet item `matches` to a function that does a naive match or the typed query to any part of the snippet's title
2020-10-28 08:37:04 +00:00
Kevin Ansfield
7f537f8ba4 Fixed error when closing delete snippet confirmation dialog 2020-10-27 18:33:31 +00:00
Kevin Ansfield
f98f5000df Fixed error when clicking snippet icon from card toolbar 2020-10-27 18:32:20 +00:00
Kevin Ansfield
8f91bb2083 Fixed toolbar showing when block cards are in edit mode 2020-10-27 18:23:56 +00:00
Kevin Ansfield
ad2d6bcf52 Fixed squashed card menu display in Safari 2020-10-27 16:28:24 +00:00
Kevin Ansfield
79d9179289 Added scroll-into-view behaviour for slash menu selection
no issue

- when selecting items with arrow keys in the slash menu, scroll the selected item into view if it's not visible
2020-10-27 16:15:58 +00:00
Kevin Ansfield
1e639c2504 Added snippets feature to editor
no issue

Snippets are pieces of saved content that are given a name and made available for easy and quick insertion when editing posts or pages. They can contain rich text, cards, or a combination of both making it faster and less error-prone to re-use pieces of content across multiple posts. Snippet length is not constrained meaning they can also stand in as post type templates alleviating the need to keep drafts around as templates and copy/pasting each time they are used.

Feature changes:
- added "create snippet" icon to selection and card toolbars
- added "Snippets" section to the plus and slash menus
  - for the slash menu, continuing to type after opening the menu will filter by snippet name
- all saved snippets are available to all staff users
- snippets can be deleted by clicking the trash can icon when hovering the mouse over a snippet entry in the plus or slash menus
- creation/deletion of snippets is available to staff users with the owner, admin, or editor role

This commit:
- removed developer experiments guard around snippet UI
2020-10-27 15:01:35 +00:00
Kevin Ansfield
581b195e12 Truncated long card menu labels 2020-10-27 14:48:39 +00:00
Kevin Ansfield
c6753a0efd Hid snippet management UI from staff users without permissions
no issue

- snippets can only be created and deleted by owners/admins/editors
- added a property in the editor controller to determine if the logged in user has sufficient permissions, then only pass the appropriate save/delete snippet actions to the editor component if the check is passed
- updates koenig menus and toolbars to skip rendering of buttons if the associated action function is not available
2020-10-27 14:42:59 +00:00
Rishabh Garg
2edb7226e1 Added past_due and unpaid subscriptions for members (#1740)
refs https://github.com/TryGhost/Ghost/issues/12256, https://github.com/TryGhost/Ghost/issues/12255

Currently when listing subscriptions for Members in both the Admin and the Theme, we only show the subscriptions which have a status of trialing or active.

Based on discussion, the `unpaid` and `past_due` states on Stripe also represent owner's intention of considering a subscription as active instead of `cancelled`, so we allow any subscriptions under these 2 states to be also listed for a member and consider them as `paid`. This updates Admin to consider those subscriptions as active as well.

- Subscriptions will go into a past_due state if the payment is missed, this should be considered a grace period where the member still has access.

- After this the subscriptions will either go to the unpaid or the cancelled state - this can be configured on an account by account basis in the Stripe dashboard. `unpaid` is considered as an intention to keep the subscription to allow for re-activation later.
2020-10-27 15:27:31 +05:30
Kevin Ansfield
38fa62001a Fixed card menus closing when clicking on modal background
no issue

- when deleting a snippet we display a confirmation modal, if the background is clicked to dismiss the modal then the menus closed too which is a different behaviour to clicking the close/cancel button inside the dialog
- adjusted the "ignore click" selector in the menus to include all fullscreen modal elements
2020-10-27 08:43:46 +00:00
Kevin Ansfield
2b04a58ccc Lock file maintenance 2020-10-27 08:38:30 +00:00
renovate[bot]
70e4073117 Update dependency ember-cli-babel to v7.23.0 (#1730)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-27 08:36:10 +00:00
renovate[bot]
723caa8551 Update dependency ember-cli-terser to v4.0.1 (#1738)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-27 08:35:32 +00:00
Sanne de Vries
c0f7cbcd40 Added a "Sent to xxx members" message in content management screen for posts that have been sent out to members 2020-10-27 09:33:38 +01:00
Renovate Bot
bc4a079317 Update dependency eslint to v7.12.1 2020-10-27 05:05:31 +00:00
Kevin Ansfield
1bd4b5cda7 Added delete button with confirmation to snippets in card menus
no issue

- show a delete icon when a snippet is hovered in plus/slash menus
- show a confirmation dialog when the delete icon is clicked
- keep menus open whilst displaying the delete confirmation dialog
2020-10-26 17:09:39 +00:00
Renovate Bot
cddd977536 Update dependency eslint to v7.12.0 2020-10-26 00:06:46 +00:00
renovate[bot]
1c4ad3b59a Update dependency ember-power-select to v4.0.6 (#1737)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-23 14:50:45 +01:00
renovate[bot]
db9f97955d Update dependency ember-simple-auth to v3.0.1 (#1732)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-23 14:49:49 +01:00
Daniel Lockyer
efd631dcf4 🔥 Added support for Node 14 2020-10-23 12:42:34 +01:00
Kevin Ansfield
092a906e4f Removed Instagram embed entry from the card menu
no issue

- Facebook are changing how Facebook/Instagram embeds work meaning that they won't work in Ghost once the deprecation lands on Oct 24th
2020-10-23 11:40:31 +01:00
Kevin Ansfield
b392313df1 Changed snippet icon in menus based on snippet contents
no issue

- vary the snippet icon based on the snippet contents: text only, text and cards, cards only
2020-10-23 10:56:32 +01:00
Sanne de Vries
0ab0100567 Fixed bottom padding for card menu in Firefox 2020-10-23 11:55:41 +02:00
Kevin Ansfield
5d97c1710f Update dependency eslint-plugin-ghost to v2.0.0
no issue

- bumps eslint and eslint-plugin-ember versions
- octane rules are enabled by default
  - disabled them in our eslintrc.json so we can switch to warn/error whilst migrating to octane
- fixed a couple of linting errors from new/updated rules
2020-10-23 09:59:09 +01:00
Sanne de Vries
36dbb35eb5 Styled new row layout of the cardmenu
No issue

- Adjusted menu width and height
- Improved spacing cards
- Changed font styling
- Added snippet icons
2020-10-23 10:36:31 +02:00
Peter Zimon
6ecba355eb Moved members settings to new page (#1736)
no refs

Moves members related settings in Labs to its own page to improve the overall UX and make it more consistent with the rest of the Admin.
2020-10-22 16:09:00 +05:30
Kevin Ansfield
f1bab33296 Fixed member's location sometimes showing as ", US"
no issue

- geolocation.region is not always available but we had assumed it was. Adjusted the logic to only show "region, US" if region is available
2020-10-22 09:15:03 +01:00
Kevin Ansfield
5ae27247f7 Prevented card toolbar showing for embed/bookmark cards in input state
no issue

- it doesn't make sense to create snippets of bookmark/embed cards before they contain any content so we avoid passing the save snippet function through until content exists and the card has left it's input state
2020-10-21 18:27:26 +01:00
Kevin Ansfield
09368c2966 Changed card/plus menu layout from grid to rows
no issue

- with the addition of snippets the card menu contents height and potential label width are both growing considerably making the grid layout unworkable
2020-10-21 12:34:05 +01:00
Kevin Ansfield
489f45155d Added "Create snippet" toolbar icon when cards are selected
no issue

- show the toolbar icon for any `<KoenigCard>` instance that has the `saveAsSnippet` action passed to it
  - currently that's all cards except the HR card because that's a primitive element rather than containing any user-defined content
- add `koenigUi.inputHasFocus` so that card toolbars can be hidden when the snippet input is displayed
2020-10-21 12:16:04 +01:00
Kevin Ansfield
14755425c2 Fixed error when clicking on snippets in card menu
no issue

- click event was clearing the editor range so it's necessary to reposition the cursor before replacing with the post
2020-10-20 18:10:25 +01:00
Daniel Lockyer
bc342029d1 v3.36.0 2020-10-20 09:38:09 +01:00
Renovate Bot
c298bc7db3 Update dependency @tryghost/kg-clean-basic-html to v1.0.9 2020-10-20 08:41:19 +01:00
Renovate Bot
62d429be42 Update dependency @tryghost/kg-parser-plugins to v1.0.9 2020-10-20 08:38:06 +01:00
Renovate Bot
24f3366544 Update dependency @tryghost/timezone-data to v0.2.30 2020-10-20 08:36:57 +01:00
Renovate Bot
26a79e0edf Update dependency @tryghost/helpers to v1.1.33 2020-10-20 08:36:08 +01:00
Kevin Ansfield
3efeeac6a1 Swapped toolbar snippet icon for the new design 2020-10-19 09:55:26 +01:00
Kevin Ansfield
96bcf99332 Added Ctrl/Cmd+P shortcut in editor to open preview in new tab
no issue

- allows quick access to the preview without having to open post settings menu and click the preview link or hit Ctrl/Cmd+S and click the link in the success notification
2020-10-19 08:25:26 +01:00
Kevin Ansfield
11c16b8b4b Disabled mocked snippets API in development 2020-10-16 19:22:09 +01:00
Kevin Ansfield
95aa341468 Added max length validation to snippet's name field 2020-10-16 19:22:09 +01:00
Kevin Ansfield
3d48ce6bc4 Fixed snippets not loading in background when accessing editor
no issue

- add the missing snippets API query to the editor's background loaded
2020-10-16 19:22:09 +01:00
Renovate Bot
45bee39739 Update dependency @tryghost/helpers to v1.1.32 2020-10-16 14:35:51 +01:00
Renovate Bot
4b220ebd17 Update dependency @tryghost/string to v0.1.13 2020-10-16 14:35:34 +01:00
Peter Zimon
94077449b3 Update portal settings (#1731)
* Added auto focusing preview on the signup page while being on links and clicking on any setting in the sidebar

* Refine upload custom portal icon button

* Updated copy for sidebar and links screen

* Added grouping to links list
2020-10-16 15:34:22 +02:00
Kevin Ansfield
7e169a2a86 Renamed snippet.title to snippet.name for consistency
no issue

- all of our models which allow users to name something use `name` as the field descriptor rather than `title` so `snippet.title` was renamed for consistency
- also fixes typo in the plus-menu component that stopped clicking on snippets from working
2020-10-16 10:15:07 +01:00
Kevin Ansfield
b590ce1b95 Implemented first iteration of content snippets
closes https://github.com/TryGhost/Team/issues/411

- adds "Create snippet" icon to the editor toolbar
- uses the same link input component design for specifying snippet titles
- snippets are loaded in the background when the editor is accessed
- snippets are listed at the bottom of the card menus of the + and / menus
- clicking a snippet inserts the snippet's contents in place of the current blank section
2020-10-15 18:03:35 +01:00
Peter Zimon
bc779bb3e7 Fixed 'null' portal button text
no refs.
- fixing portal button displaying 'null' if the portal button text input field is empty
2020-10-14 14:47:08 +02:00
Kevin Ansfield
9fe752d86d Lock file maintenance 2020-10-14 12:55:06 +01:00
renovate[bot]
6c3195db93 Update dependency ember-cli-app-version to v4 (#1724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-14 10:21:20 +01:00
renovate[bot]
4778128e63 Update dependency ember-truth-helpers to v3 (#1723)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-14 10:20:56 +01:00
Renovate Bot
2d285e7498 Update dependency ember-exam to v6 2020-10-12 21:55:26 +00:00
Peter Zimon
eede9e1141 Updated Portal links design
no refs.
- in Portal settings domain and the path are separated visually so that it conveys the concept of using the relative URL instead of absolute
- for similar reasons, copy link copies only the path part
2020-10-12 13:56:37 +02:00
Renovate Bot
69bcb90c43 Update dependency eslint to v7.11.0 2020-10-09 21:05:56 +00:00
Peter Zimon
33e1ceb010 Fixed test for scheduling copy change
no refs.
2020-10-09 17:15:21 +02:00
Peter Zimon
d567e975d2 Removed full stop from scheduling text in editor
no refs.
2020-10-09 16:56:37 +02:00
Peter Zimon
a7c0dc7469 Fixed account menu margin
no refs.
- fixes account menu dropdown button margins disappearing on Firefox for smaller screensizes
2020-10-09 16:56:13 +02:00
Kevin Ansfield
a8f63f9343 Fixed usage of {{enable-developer-experiments}} without sub-expression syntax 2020-10-09 15:52:23 +01:00
Kevin Ansfield
a3d3632e97 Added developer experiments indication to about page
no issue

- without this there's no indication the config flag is set when you have no access to the config file or you don't know which features are currently behind the flag
2020-10-09 11:38:47 +01:00
Kevin Ansfield
235d5f1b8b Added {{enable-developer-experiments}} helper
no issue

- removes the need to have component backing classes with the `config` service injected
2020-10-09 11:10:39 +01:00
Daniel Lockyer
508b7734fe v3.35.5 2020-10-08 11:00:35 +01:00
Daniel Lockyer
7ff4557e3c v3.35.4 2020-10-06 09:55:49 +01:00
Kevin Ansfield
44b9b0fc94 Resolved "already declared in upper scope" linting warnings
no issue

- fixed all `no-shadow` linter warnings
- changed `no-shadow` eslint rule from `warn` to `error` so we don't re-introduce shadowed variables in the future
2020-10-05 09:56:21 +01:00
renovate[bot]
c51990c3ae Update dependency ember-power-select to v4.0.5 (#1721)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-05 09:09:39 +01:00
renovate[bot]
7ea3a46ff3 Update dependency @tryghost/timezone-data to v0.2.28 (#1719)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-05 09:09:26 +01:00
Sam Lord
52e85451ec v3.35.3 2020-10-02 14:38:32 +01:00
Peter Zimon
47a045a935 Updated scheduling copy
no refs.
- updated moment locale to display '1 minute' instead of 'a minute' to be more explicit about scheduled time
- removed full stop from the scheduler message in editor header
2020-10-02 10:45:49 +02:00
Sam Lord
a60a28822d v3.35.2 2020-10-01 19:57:13 +01:00
Sam Lord
6090245ccb v3.35.1 2020-10-01 19:21:26 +01:00
Kevin Ansfield
fa240cae53 Fixed content jiggle when selecting cards and card code background position
no issue

- borders are necessary on selected cards to keep consistent spacing between selected/non-selected cards
  - use transparent borders in dark mode rather than eliminating borders
- moved transparent card background style to `_koenig-dark.css` so it only affects dark mode - we want to keep the background colour for light mode so that we don't get mis-aligned backgrounds in certain cards
2020-10-01 16:56:30 +01:00
Kevin Ansfield
171cec2b4e 🐛 Fixed first set of members appearing twice in members list
closes https://github.com/TryGhost/Ghost/issues/12241

- `ella-sparse` exposes a `range.page` property which we can use instead of trying to calculate the page number ourselves
2020-10-01 11:21:34 +01:00
Kevin Ansfield
db68f0248b Update dependency ember-in-viewport to v3.8.0
no issue

- now that we no longer have the `ember-sticky-element` dependency we're free to upgrade `ember-in-viewport`
- remove package.json resolution so latest version gets installed
- remove ember-in-viewport from renovate ignore config
- update `<GhScrollTrigger>` to match latest `ember-in-viewport` usage and convert to a glimmer component
  - ensure `scrollableArea` is always set so that the trigger doesn't stop working after the first trigger
2020-10-01 10:06:53 +01:00
Kevin Ansfield
c0149ee997 Removed ember-sticky-element in favour of native position: sticky
no issue

- native `position: sticky` support is now good enough across the board of our supported browser versions to use in place of a JS version for our use cases
- `ember-sticky-element` is preventing the dependency update of `ember-in-viewport` so removing it will allow a lot of our sub-dependencies to be updated
2020-10-01 10:02:27 +01:00
Kevin Ansfield
86531ebf16 Lock file maintenance 2020-10-01 08:02:06 +01:00
Rish
245dbef994 Allowed empty accent color in portal preview
no issue

- Current logic was not setting empty accent color in portal preview which was misleading when no accent color is set
- Updated preview url to contain empty accent color which is picked by Portal preview
2020-10-01 12:28:24 +05:30
renovate[bot]
91fa87b3ed Update ember core (#1704)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:57:12 +01:00
renovate[bot]
5850c2dd81 Lock file maintenance (#1720)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:44:44 +01:00
renovate[bot]
27c23a2cfd Update dependency @tryghost/string to v0.1.12 (#1718)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:42:18 +01:00
renovate[bot]
76e023ed6d Update dependency @tryghost/helpers to v1.1.31 (#1717)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:41:58 +01:00
Sam Lord
a64dedf265 v3.35.0 2020-09-30 11:00:13 +01:00
Fabien O'Carroll
a93c9bebe9 Updated magic link expiry information to 24 hours
no-issue

Since https://github.com/TryGhost/Ghost/commit/fd5194ea magic links have
a 24 hour expiry
2020-09-30 10:56:12 +01:00
Kevin Ansfield
08698ed1c9 Adjusted browser support to include Safari 12
no issue

- Safari 12 support was automatically dropped when Safari 14 was released this September. This created quite a step-change in level of JS that is left as native in the build output causing problems for users who haven't upgraded or are stuck on browser versions ~1yr old
- adjusted the browser support to include last 3 versions of Safari, giving another year (most likely based on Apple's historic release schedule) of older browser support
2020-09-30 09:48:47 +01:00
Fabien 'egg' O'Carroll
177d6f773d 🐛 Fixed tag metadata fields not being populated when editing in admin (#1714)
closes #12190

The "scratch" concept was being used incorrectly for codeinjection fields and was not initialised with all the required fields.
2020-09-28 16:20:53 +01:00
Peter Zimon
da81765bd9 Fixed publication logo display proportions
no refs.
- fixed the styles for publication logo in general settings so that the logo is displayed with correct ratio regardless of its proportions
2020-09-28 14:14:16 +02:00
Renovate Bot
b6cb527a25 Update dependency eslint to v7.10.0 2020-09-28 00:05:51 +00:00
Daniel Lockyer
e0e1e4fde9 Merged 3.34.1 into master
v3.34.1

* tag '3.34.1':
  v3.34.1
2020-09-24 19:29:19 +01:00
Daniel Lockyer
6c0191d361 v3.34.1 2020-09-24 19:26:52 +01:00
Peter Zimon
4142b98cdf Fixed loading spinner size for Portal icons
no refs.
- fixed oversized loading spinner for Portal icons
2020-09-24 10:00:22 +02:00
Peter Zimon
8173439298 Updated order of default Portal icons
no refs.
- swapped icon no. 3 and 4 to represent major use cases better
2020-09-24 09:50:33 +02:00
Rish
c7696ca03b Renamed members-modal naming to portal
no issue

- Updated naming for members modal to portal in sync with rest of the codebase
2020-09-24 12:19:35 +05:30
Fabien 'egg' O'Carroll
6ecb38eaa5 Added support for filtering the exported Members CSV (#1716)
no-issue

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-09-23 14:29:47 +01:00
Rishabh Garg
f1fbbe4685 🐛 Fixed social settings not saved on keyboard shortcut (#1633)
no issue

- Social account(twitter/facebook) values in general settings were only updated to settings upstream on focus out
- Uses `notifyPropertyChange` to avoid multiple `.set()` workarounds

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-09-23 16:58:48 +05:30
Daniel Lockyer
a4f8cb522d v3.34.0 2020-09-22 11:25:12 +01:00
renovate[bot]
7254e805a6 Update dependency grunt to v1.3.0 (#1682)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-22 08:52:04 +01:00
Umur Dinçer
2051b65e51 🐛 Fixed missing start date in members chart (#1644)
closes https://github.com/TryGhost/Ghost/issues/12014

- `startDateLabel` was never populated after refactoring the members chart to use the members stats service
- use the first date that's returned as part of the members stats days array so that we can account for any potential time period being selected

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-09-22 08:51:29 +01:00
Paul Davis
8062fa8994 Added margin to bottom of Admin when installed as PWA on newer iOS devices (#1667)
no issue

On newer iOS devices with no home button, we have this bar at the bottom of the screen instead. When installed as a PWA, the mobile nav sits under that bar. I'm unsure how much Ghost is used this way, but this is a small QOL improvement for those who do.

This PR uses the native `env` CSS custom properties Safari has to add a propriety amount of `padding-bottom` to the mobile nav bar, and also the global container to prevent anything in the iframe from being hidden by the taller nav bar. If the device does not support these `env` vars, is has no adverse affect. In order for this to work, the `<meta name="viewport" />` tag needs `viewport-fit=cover` added to it.

MDN docs for reference: https://developer.mozilla.org/en-US/docs/Web/CSS/env
2020-09-22 07:43:17 +01:00
Kukhyeon Heo
c38ca94683 🐛 Fixed Ctrl/Cmd+S triggering browser save when tags or authors input has focus (#1707)
closes https://github.com/TryGhost/Ghost/issues/11786

`GhTokenInput` uses `PowerSelect` component of `ember-power-select` internally in `app/components/gh-token-input/select-multiple`. 

When you open that component, [you can find](d36f38f39e/addon/components/power-select.ts (L262-L278)) that it calls `stopImmediatePropagation` when ctrl/cmd or meta key is down.

```js
  handleTriggerKeydown(e: KeyboardEvent) {
    if (this.args.onKeydown && this.args.onKeydown(this.storedAPI, e) === false) {
      e.stopImmediatePropagation();
      return;
    }
    if (e.ctrlKey || e.metaKey) {
      e.stopImmediatePropagation();
      return;
    }
    if ((e.keyCode >= 48 && e.keyCode <= 90) || isNumpadKeyEvent(e)) { // Keys 0-9, a-z or numpad keys
      (this.triggerTypingTask as unknown as Performable).perform(e);
    } else if (e.keyCode === 32) {  // Space
      this._handleKeySpace(this.storedAPI, e);
    } else {
      return this._routeKeydown(this.storedAPI, e);
    }
  }
```

Because of that, I had to dispatch event directly to the root of the Ghost admin app.
2020-09-21 18:14:57 +01:00
Kevin Ansfield
c4ca317fb2 Switched from uglify to terser
refs https://github.com/TryGhost/Ghost-Admin/pull/1701

- swap `ember-cli-uglify` for `ember-cli-terser` to match ember-cli 3.21.1's generated package.json
- swap `broccoli-uglify-sourcemap` for `broccoli-terser-sourcemap` used manually in our production builds to keep dependencies the same across custom and built-in build artefacts
2020-09-21 17:13:00 +01:00
Kevin Ansfield
9a7093231b Lock file maintenance 2020-09-21 16:25:16 +01:00
Fabien 'egg' O'Carroll
213434c389 Updated magic link expiry information to 4 hours (#1715)
no-issue

Since https://github.com/TryGhost/Ghost/pull/12218 magic links now have
an expiry of 4 hours.
2020-09-21 16:08:10 +01:00
renovate[bot]
bc9fbbd06a Update dependency postcss-custom-properties to v9.2.0 (#1712)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:57:24 +01:00
renovate[bot]
429b3eca8b Update dependency markdown-it to v11.0.1 (#1706)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:56:41 +01:00
renovate[bot]
a4a39d286d Update dependency ember-modifier to v2.1.1 (#1711)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:56:07 +01:00
renovate[bot]
37a66dd405 Update dependency @glimmer/component to v1.0.2 (#1713)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:55:42 +01:00
renovate[bot]
f885a88cd9 Update dependency ember-classic-decorator to v2 (#1709)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:54:36 +01:00
Rish
ede24fec24 Moved Portal settings behind dedicated flag
no issue
depends on https://github.com/TryGhost/Ghost/pull/12211

- Other than dev flag, the Portal is now also enabled behind a dedicated `portal` flag
- Shows/hides Portal settings based on dev or Portal flag
2020-09-17 19:50:41 +05:30
Peter Zimon
6dc0489b7b Updated Portal icons
no refs.

- updated Portal icons so that it matches the one on members.js
2020-09-16 16:04:38 +02:00
Sanne de Vries
710d6178c1 Added message box on Staff user page that indicates user is locked, and improved boxes naming and styling 2020-09-16 15:37:33 +02:00
Peter Zimon
fc3d83e869 Fixed date format in member Stripe details
no refs.
2020-09-15 07:33:58 +02:00
Daniel Lockyer
8ab33e2958 v3.33.0 2020-09-14 12:39:47 +01:00
Sanne de Vries
3c6923989e Changed locked state badge into lock icon and clarified its meaning with tooltip on hover. This commit builds on top of PR #1668 2020-09-14 12:34:18 +02:00
Renovate Bot
1cbe47aadd Update dependency eslint to v7.9.0 2020-09-14 00:04:31 +00:00
Daniel Lockyer
39a0f447f9 v3.32.2 2020-09-10 16:55:17 +01:00
Daniel Lockyer
aa8351e05f Added updated lockfile 2020-09-10 16:46:30 +01:00
Kevin Ansfield
3e83675175 🐛 Fix author/tag management in post settings menu (dependency revert)
closes https://github.com/TryGhost/Ghost/issues/12198

- Revert "Switched from uglify to terser" (commit e5b4960170)
- Revert "Update dependency ember-cli to v3.21.1 (commit 7e64683836)"
- Revert "Update ember core (commit 9866a840c6)"
2020-09-10 16:01:51 +01:00
Kevin Ansfield
e5b4960170 Switched from uglify to terser
refs https://github.com/TryGhost/Ghost-Admin/pull/1701

- swap `ember-cli-uglify` for `ember-cli-terser` to match ember-cli 3.21.1's generated package.json
- swap `broccoli-uglify-sourcemap` for `broccoli-terser-sourcemap` used manually in our production builds to keep dependencies the same across custom and built-in build artefacts
2020-09-09 17:22:23 +01:00
renovate[bot]
27c0ea0635 Update dependency ember-concurrency to v1.3.0 (#1700)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 17:09:12 +01:00
renovate[bot]
7e64683836 Update dependency ember-cli to v3.21.1 (#1701)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 17:08:53 +01:00
Sanne de Vries
6a7745c9a8 Adjusted dark mode styling of top menu dropdowns on the members page for consistency 2020-09-08 17:56:50 +02:00
renovate[bot]
af1462e66f Update dependency ember-power-select to v4.0.4 (#1699)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 23:09:52 +01:00
Kevin Ansfield
d8a93d00fc Update dependency broccoli-uglify-sourcemap to v4
refs 51d44c76d8, fe30958a19

- re-applying dependency update with required changes to application code
2020-09-07 14:42:53 +01:00
Daniel Lockyer
1f789f8742 Added production build test to CI
- we recently had an issue where a dependency update broke the
  release process because it was building in production mode, but our CI
  never ran in this mode and we missed it
- this commit adds a test to run in prod mode so hopefully we catch it
  next time
2020-09-07 12:47:10 +01:00
Daniel Lockyer
1713375adb v3.32.1 2020-09-07 12:06:05 +01:00
Daniel Lockyer
fe30958a19 Revert "Update dependency broccoli-uglify-sourcemap to v4 (#1697)"
- this reverts commit 51d44c76d8.
- fixes the build when running in production mode
2020-09-07 12:03:43 +01:00
Daniel Lockyer
661578bf26 v3.32.0 2020-09-07 11:54:59 +01:00
renovate[bot]
c1a9021d74 Update dependency blueimp-md5 to v2.18.0 (#1698)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 09:32:59 +01:00
renovate[bot]
51d44c76d8 Update dependency broccoli-uglify-sourcemap to v4 (#1697)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 09:32:30 +01:00
Sanne de Vries
7898e22e82 Removed white background and border in code editor in dark mode 2020-09-04 22:17:43 +02:00
Sanne de Vries
5cbd9f0f78 Adjusted code injection fields in settings to dark mode 2020-09-04 21:41:19 +02:00
Peter Zimon
ed1433b809 Added logic to custom portal icon delete
no refs.
- fixed issue that users can't reselect custom icon in portal by making the delete button only visible when the custom icon is selected
2020-09-04 16:10:46 +02:00
Peter Zimon
d65195aba4 Portal custom icon style refinement
no refs.
- refined delete icon style for portal
- refined icon sizes
2020-09-04 15:59:13 +02:00
Sanne de Vries
11699d5172 Fixed transparent background pattern for blog logo and icon in dark mode 2020-09-04 15:25:32 +02:00
Sanne de Vries
0b27a366ff Adjusted styling for user role badges in light and dark mode for improved consistency 2020-09-04 15:25:32 +02:00
Daniel Lockyer
a8ce77b1f7 Removed warning banner for mobile/tablet devices
closes https://github.com/TryGhost/Team/issues/347

- removes the warning banner directing users to use Ghost Desktop/a
  desktop browser because users are happy with the experience of editing
  on mobile/tablets
2020-09-03 17:55:45 +01:00
Daniel Lockyer
47f428b9af Removed suggestion to use Ghost-Desktop
- Ghost-Desktop is now deprecated and so we shouldn't suggest it to
  users
2020-09-03 13:16:44 +01:00
renovate[bot]
84e0dd033f Lock file maintenance (#1694)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 12:22:40 +01:00
renovate[bot]
9866a840c6 Update ember core (#1674)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 12:09:58 +01:00
renovate[bot]
701ac2594f Update dependency ember-test-selectors to v5 (#1696)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:54:42 +01:00
renovate[bot]
6e380fdeaf Update dependency ember-composable-helpers to v4.3.0 (#1695)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:54:03 +01:00
renovate[bot]
07fc861480 Update dependency @ember/optional-features to v2 (#1692)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:53:03 +01:00
renovate[bot]
ba81055ca5 Update dependency faker to v5.1.0 (#1691)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:52:34 +01:00
renovate[bot]
083d4dcff5 Update dependency papaparse to v5.3.0 (#1690)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:51:34 +01:00
Peter Zimon
4ec6aa3d3e Success button fixes in member email settings
no refs.
- fixed checkmark being too small on support or newsletter success button
- fixed case style for success button
2020-09-02 20:45:52 +02:00
Daniel Lockyer
8d557fe4ce Merged 3.31.5 into master
* tag '3.31.5':
  v3.31.5
2020-09-02 13:16:48 +01:00
Daniel Lockyer
43f9e9fe86 v3.31.5 2020-09-02 13:13:47 +01:00
Daniel Lockyer
5cc8d887c6 Merged 3.31.4 into master
* tag '3.31.4':
  v3.31.4
2020-09-02 12:30:15 +01:00
Daniel Lockyer
73ff6cd2a0 v3.31.4 2020-09-02 12:27:08 +01:00
Sanne de Vries
53c2879838 Improved calendar styling in publish and schedule datepickers 2020-09-02 10:32:45 +02:00
Rish
4fa2912bc3 Fixed missing signup text value in Portal preview
closes https://github.com/TryGhost/members.js/issues/91

- Fixes the missing signup text value in input box as it was incorrectly reading from wrong place
2020-09-02 13:28:51 +05:30