Commit Graph

6523 Commits

Author SHA1 Message Date
Peter Zimon
0a3757c16a Refined colors 2021-02-22 22:26:45 +01:00
Rish
f1ea66fb5f Filled defaults for newsletter open stats
refs https://github.com/TryGhost/Team/issues/469

Pads newsletter stats in case of insufficient data with empty values for line chart
2021-02-23 02:48:47 +05:30
Peter Zimon
f5dc5d166d Updated member list column widths 2021-02-22 22:16:42 +01:00
Peter Zimon
cfd28963f0 Updated Dashboard mobile sizes 2021-02-22 22:13:36 +01:00
Peter Zimon
d8e4bf841f Fixed code injection UI size bug 2021-02-22 21:44:48 +01:00
Rish
002cc33d52 Fixed currency in chart options
refs https://github.com/TryGhost/Team/issues/469

Uses correct binding to setup currency for MRR charts in y axis ticks
2021-02-23 02:12:12 +05:30
Rish
42d7282b57 Updated chart tick options for MRR
refs https://github.com/TryGhost/Team/issues/469

- Appends currency to the tick value in case of MRR charts
2021-02-23 02:07:55 +05:30
Peter Zimon
c5c0fd4d20 Fixed tags code mirror UI bugs 2021-02-22 21:30:02 +01:00
Peter Zimon
b398d57650 Fixed Admin API key regeneration UI bug 2021-02-22 21:17:53 +01:00
Peter Zimon
693eecb2e9 Fixed email preview UI bugs 2021-02-22 21:14:16 +01:00
Peter Zimon
b036962849 Refined Dashboard charts 2021-02-22 20:43:22 +01:00
Peter Zimon
1f2aeec9d5 Udpated small chart sizes 2021-02-22 20:11:25 +01:00
Peter Zimon
1e4d6e0c0f Added line color variable to charts 2021-02-22 20:11:25 +01:00
Sanne de Vries
707c7396bf Added 'paywall' as shortcut for paywall/public preview card 2021-02-22 17:31:45 +01:00
Sanne de Vries
80102bc916 Changed copy and icon for paywall card and divider 2021-02-22 17:09:27 +01:00
Rish
08bb5f2d87 Updated growth stats on dashboard
refs https://github.com/TryGhost/Team/issues/469

- Added growth stats for member counts
- Cleaned up growth stats for mrr
2021-02-22 18:37:28 +05:30
Sanne de Vries
d6d8b894db Fixed canvas title breadcrumbs being cut off by content filters 2021-02-22 10:06:26 +01:00
Rish
624001b15e Cleaned up mrr and count stats
refs https://github.com/TryGhost/Team/issues/469

- Cleans up incorrect values for mrr and count stats
2021-02-22 14:01:08 +05:30
Rish
e554e26b02 Added newsletter open rate stats
refs https://github.com/TryGhost/Team/issues/469

- Adds new chart to track newsletter open rates on dashboard
2021-02-22 14:01:08 +05:30
Rish
6592fabbe9 Fixed missing options for chart
no refs

- Setting chart options in case of nightShift change was missing options param
2021-02-22 14:01:08 +05:30
Kukhyeon Heo
568cd65fb3 Added YAML file support for redirects (#1703)
refs https://github.com/TryGhost/Ghost/issues/11085
refs https://github.com/TryGhost/Ghost/pull/12187

- YAML file support has been added to Ghost's API through referenced above PR. YAML will become a default supported file in the next version of Ghost replacing JSON redirects
2021-02-22 13:27:00 +13:00
Fabien O'Carroll
d03e1ae0e2 Added links to member details page from dashboard
refs https://github.com/TryGhost/Team/issues/469

This also fixes the top members list displaying
2021-02-19 17:30:29 +00:00
Fabien O'Carroll
66764a8c01 Updated tracked state to be top level attributes
no-issue

Glimmer tracked values don't guaruntee that nested property updated will be tracked
2021-02-19 17:18:39 +00:00
Peter Zimon
8b5e2623ad Updated top members list screen 2021-02-19 17:33:10 +01:00
Peter Zimon
e474c38c90 Updated responsive chart styles 2021-02-19 17:33:10 +01:00
Sanne de Vries
8c0a856ee7 Fixed page title descenders being cut off 2021-02-19 17:32:54 +01:00
Sanne de Vries
7d584f3c0e Removed gradients from settings icons 2021-02-19 17:03:58 +01:00
Peter Zimon
44df9d4dbe Dashboard chart refinements 2021-02-19 16:17:53 +01:00
Sanne de Vries
0d99ffbf29 Fixed visual bug regenerate Zapier key and success message text overlay 2021-02-19 15:04:06 +01:00
Fabien O'Carroll
c21a5c7e3d Added missing setting service
refs https://github.com/TryGhost/Team/issues/469

This got removed during a merge conflict
2021-02-19 13:56:00 +00:00
Peter Zimon
0a481f40bb Added responsive support to Dashboard 2021-02-19 14:19:22 +01:00
Sanne de Vries
69a30ea884 Fixed deletion of social media previews styling 2021-02-19 14:06:02 +01:00
Sanne de Vries
a7b55775db Updated secondary colors and gradients 2021-02-19 13:51:36 +01:00
Rishabh Garg
8a0abf7d89 Updated mrr stats on dashboard (#1847)
refs https://github.com/TryGhost/Team/issues/469

- Adds basic percentage growth stat for mrr on dashboard
- Adds base data for mrr chart in case of no mrr stats
2021-02-19 18:20:41 +05:30
Fabien 'egg' O'Carroll
68da78111c Added top members by email open rate to dashboard (#1844)
refs https://github.com/TryGhost/Team/issues/469
2021-02-19 12:12:53 +00:00
Peter Zimon
b045a28ec3 Updated small charts on Dashboard 2021-02-19 13:09:01 +01:00
Peter Zimon
c83e54f21b Updated MRR chart style 2021-02-19 13:09:01 +01:00
Sanne de Vries
e627703bdd Fixed usability issue with email address update in Newsletter settings 2021-02-19 11:46:07 +01:00
Peter Zimon
0fbb1adbdb Dashboard mini charts basic styles 2021-02-19 10:39:13 +01:00
Rishabh Garg
b7ae1233bf Updated MRR and count dashboard charts (#1846)
refs https://github.com/TryGhost/Team/issues/469

- Cleaned MRR stats data and label formatting
- Cleaned member counts stats - total and paid
2021-02-19 11:18:01 +05:30
Sanne de Vries
b0354c7f7e Updated social media previews in tag settings 2021-02-18 23:15:01 +01:00
Sanne de Vries
478084e274 Updated social media previews in general settings 2021-02-18 21:33:04 +01:00
Kevin Ansfield
fd98bc1bb9 Fixed launch acceptance tests
no issue

- skips POSTing to the front-end to get the iframe contents whilst testing because we don't have any mocks for that
2021-02-18 20:03:21 +00:00
Rish
d7cf0b4042 Fixed empty data handling for mrr chart
refs https://github.com/TryGhost/Team/issues/469
2021-02-19 00:49:59 +05:30
Kevin Ansfield
8803bf9e22 Prevented clicks in launch wizard design preview
no issue

- the new front-end preview only works for a single page, navigating away will lose the unsaved changes which could lead to confusion
- injects CSS into the preview HTML to disable pointer-events on the whole document
2021-02-18 17:47:48 +00:00
Kevin Ansfield
8525fd701a Updated launch wizard to use new design preview
refs e75720d390

- changed "Save and exit" to just "Exit" because it doesn't save anything
- updated design step of launch wizard to use new preview
  - added `replacePreviewContents` action to launch controller to overwrite preview iframe contents directly
  - replaced save-on-change behaviour with update-preview-on-change behaviour by POSTing to the front-end with preview header data and blatting the iframe contents with the result
  - changed "Next step" button to "Save and continue" with progress spinner whilst saving
2021-02-18 17:07:14 +00:00
Rish
05df2bbad4 Added initial charts for dashboard
refs https://github.com/TryGhost/Team/issues/469

- Added MRR chart for last 30 days
- Added initial chart for Total member count
2021-02-18 22:20:58 +05:30
Fabien 'egg' O'Carroll
c56ba0c71e Added initial event timeline to dashboard (#1840)
refs https://github.com/TryGhost/Team/issues/469

* Updated stats service to fetch event timeline
* Updated dashboard controller to load events
* Added currency utils
* Added GhEventTimeline component
* Updated dashboard to render GhEventTimeline
2021-02-18 14:17:10 +00:00
Sanne de Vries
f9bafa740a Styled new paywall divider
Refs https://github.com/TryGhost/Team/issues/466
2021-02-18 14:58:39 +01:00
Peter Zimon
8b8bbc3941 Set default neutral dashboard charts 2021-02-18 13:09:25 +01:00
Peter Zimon
57a7bd5b48 Updated Dashboard launch banner 2021-02-18 12:44:39 +01:00
Peter Zimon
f464bfe085 Applied mobile styles to Dashboard 2021-02-18 12:27:29 +01:00
Naz
d84a70752d Removed more leftover unsplash code & fixed tests
refs refs 07abb5443a

- Found some more unnecessary code for previous unsplash setting structure and removed it.
- Refactored the tests to be more in line to how AMP tests are done
2021-02-18 15:03:53 +13:00
Naz
098790ec75 Fixed unsplash always setting the checked flag
refs 07abb5443a

- Referenced commit introduced a default value which was always applied to the checkbox on unsplash'es ingegration page
- Refactored unsplash controller/route to use similar conventions to amp as it's now also using a plain boolean value
2021-02-18 13:50:27 +13:00
naz
07abb5443a Fixed EmberObject.create error on Admin start (#1841)
refs https://github.com/TryGhost/Ghost/pull/12632

- The `unsplash` setting has been migrated to a new format - plain boolean value. This is why it's no longer needed to do any serialization dances
2021-02-18 13:25:21 +13:00
Kevin Ansfield
2c95cae248 Minor cleanup
no issue

- remove `async` from non-async actions
- tidy up template indentation/spacing
2021-02-17 16:00:12 +00:00
Kevin Ansfield
16324fd2a4 Fixed brand settings not resetting when cancelling
no issue

- trigger modal close once save task has finished
- reset unsaved changes when closing the modal (eg, cancel button clicked)
- removed unused code that had been copied over from an old controller
2021-02-17 15:48:35 +00:00
Peter Zimon
cda3bdda62 Basic design for dashboard activity 2021-02-17 16:46:16 +01:00
Kevin Ansfield
734674d299 Fixed error when closing branding modal
no issue

- clean up event listeners when component is destroyed
- add guard for iframe existing when attempting to replace preview contents
2021-02-17 15:39:51 +00:00
Kevin Ansfield
c9dc56841b Added === text expansion for paywall card
refs https://github.com/TryGhost/Team/issues/466
2021-02-17 15:29:31 +00:00
Kevin Ansfield
3826f39f9c Completed paywall card implementation
refs https://github.com/TryGhost/Team/issues/466
refs a657e4f092

- added paywall card component
- swapped hr for paywall for the paywall card shown in card menus
2021-02-17 14:18:12 +00:00
Hannah Wolfe
e75720d390 Updated brand settings modal to use new preview
- the new preview mode doesn't require settings to be saved in advance
- TODO: prevent interaction with the iframe a la portal
Notes:
 - this works by sending a post message to the frontend with a custom header
 - generated HTML is loaded into the iframe using postMessage
 - we can possibly write the HTML direct to the iframe - something to experiment with later
2021-02-17 13:54:47 +00:00
Peter Zimon
c54e1dc2c5 Added a fake activity to Dashboard 2021-02-17 12:14:29 +01:00
Peter Zimon
1d42b76b99 Rearrange dashboard layout 2021-02-17 12:11:05 +01:00
Peter Zimon
b261857d20 Added mixed content to Dashboard 2021-02-17 12:11:05 +01:00
Sanne de Vries
1873271c8b Fixed minor dark mode issues
No ref

- Nav list item hover state
- Dropdown option hover state
- Top border on member details page
- Integrations directory items background color
- Published label background color
2021-02-17 10:23:21 +01:00
Peter Zimon
e9d80b2f29 Added top members list placeholders 2021-02-17 10:13:16 +01:00
Sanne de Vries
2dd65cfdbe Updated card-menu dark mode colors 2021-02-17 09:23:31 +01:00
Kevin Ansfield
5d38d45724 Removed errant console.log 2021-02-16 22:08:04 +00:00
Kevin Ansfield
d2fb2c8518 Added ability to make image cards links
refs https://github.com/TryGhost/Team/issues/465

- modifies `<KoenigLinkInput>` to add a "direct" mode that is not tied to editor selection
- adds link toolbar icon to image card toolbar
- adds link editing mode to image card that replaces toolbar with link input
- stores url in `href` attribute in card payload
2021-02-16 22:02:04 +00:00
Daniel Lockyer
b030c7a296 v4.0.0-alpha.2 2021-02-16 19:53:52 +00:00
Kevin Ansfield
3995e65edf Fixed separator color in card toolbars 2021-02-16 19:21:33 +00:00
Sanne de Vries
a657e4f092 Added Paywall card to card-menu and updated colors
Refs https://github.com/TryGhost/Team/issues/466
2021-02-16 18:46:44 +01:00
Peter Zimon
377a2ffd54 Added dashboard UI skeleton 2021-02-16 18:12:24 +01:00
Kevin Ansfield
cebe43935c Added link to preview-in-new-tab button
refs 80e2103f1d

- changed button to a link and added necessary attributes
- copied button to the mobile view for consistency
2021-02-16 11:51:32 +00:00
Sanne de Vries
80e2103f1d Added external tab preview link to post-preview modal footer 2021-02-16 12:23:34 +01:00
Kevin Ansfield
184912fd5d Set mobiledoc.ghostVersion on blank docs and persist across updates
refs https://github.com/TryGhost/Ghost/issues/12646

- ensures new content is created with the 4.0 ghost version so the renderer will use latest output
- re-applies ghost version to mobiledoc each time we get a newly serialized mobiledoc document from mobiledoc-kit because mobiledoc-kit is not aware of our custom properties and won't pass them through the deserialise->serialise process
2021-02-15 18:05:26 +00:00
Sanne de Vries
86ff51e510 Fixed section header border in dark mode 2021-02-15 18:22:54 +01:00
Sanne de Vries
0d1f288beb Fixed dark mode issues 2021-02-15 18:03:07 +01:00
Fabien 'egg' O'Carroll
b6047ae017 Updated paid member filters to handle comped status (#1839)
refs https://github.com/TryGhost/Ghost/issues/12602

As members can now have a status of 'comped' as well as 'free'/'paid',
we need to update queries to the API to function as they were before.
2021-02-15 12:15:23 +00:00
Peter Zimon
f05d353b57 Updated What's new? modal styles 2021-02-12 17:56:40 +01:00
Peter Zimon
dec10259ec Updated account menu avatar 2021-02-12 17:36:23 +01:00
Peter Zimon
b267b309d9 Updated integrations styles 2021-02-12 17:28:08 +01:00
Peter Zimon
d19934ff8c Refined badge style 2021-02-12 17:15:25 +01:00
Peter Zimon
c2a8f6d6e0 Updated modal shadow style 2021-02-12 17:06:21 +01:00
Peter Zimon
26af8551cc Fixed price input UI bug 2021-02-12 16:58:04 +01:00
Peter Zimon
43708f20fe Refined buttons on staff screens 2021-02-12 16:58:04 +01:00
Sanne de Vries
a792d152da Fixed twitter preview shrinking bug and responsive issues for social preview 2021-02-12 16:13:42 +01:00
Peter Zimon
4839da5047 Refined integrations UI 2021-02-12 14:58:56 +01:00
Peter Zimon
0f12e39d90 Added main section mobile sizes 2021-02-12 14:40:30 +01:00
Peter Zimon
f7cb949a6e Responsive UI fixes 2021-02-12 14:29:49 +01:00
Sanne de Vries
595a74885c Fixed scrolling bug in launch-site wizard 2021-02-12 12:33:24 +01:00
Aileen Nowak
7d616b0010 Move billing iFrame to render in main content area (#1838)
no issue

The billing iFrame needs to be rendered within the `main` content area rather than as fullscreen.

This needs most probably more tidying up, but is working for now without breaking the functionality.

* Move billing iFrame to render in main content area
* Fixed routing error when transistion url not defined
* Removed close modal button and esc key binding
2021-02-12 10:13:23 +00:00
Kevin Ansfield
f8de0f12de Fixed publish menu not closing on outside clicks in preview modal
refs https://github.com/TryGhost/Team/issues/459

- using <GhBasicDropdown> in place of <BasicDropdown> hooks into our dropdown service which has more comprehensive body click tracking
2021-02-12 09:47:46 +00:00
Kevin Ansfield
98073637d7 Adjusted CMD+P in editor to open preview modal when post is a draft
refs https://github.com/TryGhost/Team/issues/459

- for draft posts we have a new preview modal so the preview shortcut should use that too
2021-02-12 09:34:09 +00:00
Kevin Ansfield
5a8753fb8f Added ability to install free themes directly from GitHub (#1837)
refs https://github.com/TryGhost/Ghost/issues/12608
requires https://github.com/TryGhost/Ghost/pull/12635

- adds `/settings/themes/install` route with `source` and `ref` query params that match the API. Shows a confirmation modal when accessed asking to confirm installation and activation
  - does not allow Casper to be installed
  - warns if installing the theme will overwrite an existing one
  - follows similar process to zip uploads for error handling
- adds install/preview links for Massively in the free themes showcase

Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
2021-02-12 09:19:25 +00:00
Kevin Ansfield
4771d4fd88 Fixed invalid inputs having green borders when focused 2021-02-11 19:07:55 +00:00
Kevin Ansfield
3ed73c795d Fixed plan type checkboxes not updating portal preview in launch wizard
refs https://github.com/TryGhost/Team/issues/460

- incorrect property names were used
2021-02-11 18:37:23 +00:00
Rish
d52347118c 🐛 Fixed unable to exit code injection settings without save
no refs

After making changes to code injection settings, currently exiting bricks the Admin due to incorrect save task naming in code injection settings. The fix updates the name for saveTask
2021-02-11 21:09:55 +05:30
Peter Zimon
adc4e1e077 Updated dark styles 2021-02-11 16:24:49 +01:00
Rish
6f1ea8b018 Fixed nightshift property not set on Member charts
no issue

Nightshift value was not correctly setup on <GhMembersChart> component, so it was always set to false.
2021-02-11 20:54:34 +05:30
Peter Zimon
b8a79467ae Updated icons 2021-02-11 11:45:14 +01:00
Peter Zimon
9f6c83cd85 Updated no member UI 2021-02-11 10:56:54 +01:00
Peter Zimon
1cae8cb0cb Nav menu refinement 2021-02-10 21:14:38 +01:00
Peter Zimon
660ed2c79d Updated account menu 2021-02-10 21:05:54 +01:00
Peter Zimon
f56409b0c9 Refined custom portal upload icon 2021-02-10 20:01:18 +01:00
Peter Zimon
86ee1142e0 Member details screen refinements 2021-02-10 19:55:35 +01:00
Rish
9794fb4268 Fixed portal plan params in preview mode
refs 7687571b12

While extracting the portal preview url setup to member-utils, the util incorrectly referenced values for free/monthly/yearly plans and so stopped reacting to selected plans in Portal preview. This change fixes the `isFreeChecked`, `isMonthlyChecked` and `isYearlyChecked` references in util.
2021-02-11 00:10:37 +05:30
Peter Zimon
7c2bae6f29 CSS restructure for main sections 2021-02-10 18:48:27 +01:00
Peter Zimon
7b88038d05 Fixed payments settings 2021-02-10 16:50:34 +01:00
Peter Zimon
1ebff66109 Dark mode UI fixes 2021-02-10 16:36:08 +01:00
Peter Zimon
9093b32529 Refined editor main buttons 2021-02-10 16:35:25 +01:00
Sanne de Vries
d4f131ee26 Updated preview-modal social preview design
Refs https://github.com/TryGhost/Team/issues/459

- Updated styles for Facebook, Twitter and Google
- Added mockup for tweets, posts, and Google search results
- Got rid of browser mockup on desktop preview
- Changed button-group active style from blue to black
2021-02-10 15:25:49 +01:00
Peter Zimon
d1b6a95487 Updated calendar styles 2021-02-10 14:21:44 +01:00
Peter Zimon
a80a99cd60 Updated minor editor related styles 2021-02-10 14:17:01 +01:00
Peter Zimon
e2cdd49cd2 Updated PSM styles 2021-02-10 13:48:10 +01:00
Peter Zimon
703d6df12b Updated Labs UI 2021-02-10 13:00:07 +01:00
Peter Zimon
c9c62007db Updated code injection styles 2021-02-10 11:54:27 +01:00
Peter Zimon
d13505ea7a Updated email design UI 2021-02-10 11:29:54 +01:00
Sanne de Vries
48c9318089 Updated dark mode colors (#1827)
No issue

- Proposed color refresh for dark mode
- Improved overall styling for code injection in post settings and tag settings and added dark mode
2021-02-10 11:15:19 +01:00
Peter Zimon
ae9abe22c0 Update portal settings UI 2021-02-10 11:08:09 +01:00
Kevin Ansfield
8e8059cc0c Skipped test that broke with FF85 on linux
no issue

- possible difference in `localeCompare()` ordering, edge case enough not to worry about for now
2021-02-10 09:23:29 +00:00
Peter Zimon
5329506db9 Updated member email settings UI 2021-02-10 09:24:34 +01:00
Daniel Lockyer
a49f0c8c5d v4.0.0-alpha.1 2021-02-09 17:34:47 +00:00
Peter Zimon
da8c86ca7e Updated expadable list styles 2021-02-09 18:13:07 +01:00
Peter Zimon
e72b8a9def Refined nav style 2021-02-09 17:34:46 +01:00
Peter Zimon
ebb83d7fb8 Updated expandable UI 2021-02-09 17:23:03 +01:00
Kevin Ansfield
054b82f822 Fixed launch wizard preview not showing plans after connecting Stripe
refs https://github.com/TryGhost/Team/issues/460

- after connecting Stripe we were showing the "set pricing" step with the portal preview but the portal preview did not reflect Stripe having been connected
- the problem arose because we were triggering the portal preview without refreshing the preview in the iframe, meaning the portal preview only had access to the "before stripe" state
- forcing a refresh after successfully connecting Stripe ensures portal is loaded with all the necessary state
2021-02-09 15:53:26 +00:00
Kevin Ansfield
916c12546f Fixed liquid-wormhole error when directly accessing /launch
refs b4e750466d

- liquid-wormhole was throwing an error with the previous approach because it appeared to be trying to run it's destroy routines after the element had already been removed or hadn't been rendered yet
2021-02-09 12:07:44 +00:00
Kevin Ansfield
b4e750466d Hid tour throbbers when opening launch wizard
refs https://github.com/TryGhost/Team/issues/460

- add `showTour` property to `ui` service
- updated `<GhTourItem>` to not render anything if `ui.showTour` is `false`
- updated launch wizard template to hide tour when open and re-enable when closed
2021-02-09 11:43:44 +00:00
Kevin Ansfield
fc317cd75d Fixed yearly price showing monthly price in portal preview
refs https://github.com/TryGhost/Team/issues/460

- fixed copy/paste issue with wrong variable name being used for `yearlyPrice` query param
2021-02-09 08:52:14 +00:00
Rish
5fe20898d6 Revert "Revert "Updated usage of subscriptions data for members (#1834)""
This reverts commit d539d4ca53.
2021-02-09 07:52:40 +05:30
Kevin Ansfield
39a883a4dc Fixed tests
refs 8490ebc542

- updated editor test to use stable selector for the save button
- changed save button test attribute to match our standard naming scheme
2021-02-08 21:56:18 +00:00
Peter Zimon
605cb81865 Form heading UI update 2021-02-08 22:30:48 +01:00
Peter Zimon
8490ebc542 Updated general settings UI 2021-02-08 21:51:26 +01:00
Peter Zimon
a6a9b17baf Updated staff UI 2021-02-08 21:37:05 +01:00
Peter Zimon
6e1b6a2618 Updated custom integration UI 2021-02-08 21:16:41 +01:00
Peter Zimon
af6739af72 Updated built-in integrations 2021-02-08 19:54:20 +01:00
Kevin Ansfield
4f50f0f870 Removed redundant "View preview" link in saved draft notification
refs https://github.com/TryGhost/Team/issues/459

- post previews are now always accessible from the editor header so there's no need for a separate preview link that takes you out of the editor
2021-02-08 18:43:45 +00:00
Sanne de Vries
4c9d9289ef Updated footer design of post preview
No ref

- Changed copy-url button style in browser view
- Changed send-test-email input and button style in email view
- Moved error notification for invalid email
- Changed "Saved" notification style
2021-02-08 19:20:44 +01:00
Peter Zimon
1b60ded48f Updated integrations and Zapier page 2021-02-08 19:20:26 +01:00
Peter Zimon
78d23a2544 Admin UI: added global section grid 2021-02-08 17:22:53 +01:00
Peter Zimon
0ef70cb568 Updated member details page 2021-02-08 15:35:08 +01:00
Peter Zimon
697a28ecef Fix test 2021-02-08 15:08:55 +01:00
Peter Zimon
977c2dcb0d Updated member details 2021-02-08 14:55:18 +01:00
Sanne de Vries
44c935847e Fixed responsive issue for launch-site wizard
No ref

- Prevented preview from overlapping settings
- Avoided "Save and exit" button to left-align on smaller screens
2021-02-08 14:10:34 +01:00
Sanne de Vries
4ddfd3b3c6 Updated browser and email mockup in post-preview 2021-02-08 13:14:46 +01:00
Sanne de Vries
37556aa432 Updated preview modal trigger styling in editor 2021-02-08 12:50:50 +01:00
Kevin Ansfield
06bb047d2d Fixed layout when send email preview fails in post preview modal
refs https://github.com/TryGhost/Team/issues/459

- moved error text to the left of the input to avoid layout jump
- added aria attributes to mark field as invalid and associate error text
2021-02-08 10:54:42 +00:00
Sanne de Vries
47abad1837 Updated buttons and styles in editor, post-preview modal and launch-site wizard
No ref

- Updated all buttons in the editor header
- Updated buttons in publish menu
- Updated back-button in post-preview
- Updated icons for launch-site wizard
- Updated Stripe-info box in launch-site wizard
2021-02-08 10:13:26 +01:00
Peter Zimon
f4766d1920 Members list style cleanup 2021-02-05 18:27:40 +01:00
Peter Zimon
abdebe4727 Updated members chart style 2021-02-05 15:43:20 +01:00
Peter Zimon
f57438159c Renamed design sandbox template 2021-02-05 14:00:51 +01:00
Peter Zimon
8f8a1a53db Added design components page 2021-02-05 13:48:38 +01:00
Peter Zimon
cb40158666 Updated members list screen UI 2021-02-05 12:04:42 +01:00
Peter Zimon
5fbd01a237 Updated colors 2021-02-05 12:04:42 +01:00
Sanne de Vries
8e702e420e Improved nav buttons in launch-site wizard
Refs https://github.com/TryGhost/Team/issues/460
2021-02-05 11:03:19 +01:00
Kevin Ansfield
59948a7b7e Added site twitter/facebook and cover image fallbacks to social previews
refs f3e0949c73

- Ghost has been updated to use the additional fallbacks, we should reflect this in the Admin social previews too
2021-02-05 09:24:26 +00:00
Kevin Ansfield
27dadcf1c4 Switched from v3 to canary API
refs https://github.com/TryGhost/Team/issues/221

- we're getting ready for the 4.0 API version so we should be using canary to fully test the changes
- changed from `v3` to `canary` in `utils/ghost-paths.js`
- updated mirage and tests to use `ghostPaths` util so we only need to change the version in one place in the future
2021-02-05 09:12:26 +00:00
Kevin Ansfield
f470549e80 Hid launch-site link on dashboard once wizard is completed
refs https://github.com/TryGhost/Team/issues/460

- use the `user.accessibility` field via the `feature` service to add a `launchComplete` property
  - this is the best place we have currently for UI-specific concerns
- toggle the property to `true` when the "Launch!" button is clicked in the final wizard step
- hide the launch site wizard link on the dashboard if launch has been completed
2021-02-04 18:35:19 +00:00
Kevin Ansfield
5092e936cc Fixed unauthed access to launch wizard and updated test to use Owner user
refs 6a14087ccc

- `super()` is needed in `beforeModel()` hook so that the AuthenticatedRoute redirect can occur
- launch wizard acceptance test needs to use an Owner user because Admins don't have access
2021-02-04 17:45:16 +00:00
Kevin Ansfield
6a14087ccc Made launch wizard only accessible to owners
refs https://github.com/TryGhost/Team/issues/460

- member payment settings are only changeable by owners which would leave the wizard being a single step
- wizard is designed to be used as one of the first things after initial site setup which will be completed as the owner user
2021-02-04 17:36:29 +00:00
Kevin Ansfield
29ae0f734c Added ability to disconnect Stripe in launch wizard
refs https://github.com/TryGhost/Team/issues/460

- added "already connected" state for stripe with connected account name, test mode indicator, and disconnect button
- updated save task to skip integration token check when already connected
- adjusted template to have a deeper conditional for stripe connect vs stripe direct to remove duplication and shorten template
2021-02-04 16:49:06 +00:00
Peter Zimon
3f0ec92119 Updated button styles| 2021-02-04 17:25:42 +01:00
Peter Zimon
879c7866e9 Members screen UI refinements 2021-02-04 16:52:19 +01:00
Peter Zimon
ae77dad8dd Added segmented control style 2021-02-04 15:25:28 +01:00
Sanne de Vries
80895f15e3 Improved launch wizard design
Refs https://github.com/TryGhost/Team/issues/460

- Made nav buttons sticky to bottom
- Introduced gh-btn-large for larger buttons
- Improved spacing
- Got rid of borders between settings
2021-02-04 15:02:57 +01:00
Peter Zimon
4e11273f38 Admin UI simplifications
- getting rid of lines
2021-02-04 13:37:04 +01:00
Rish
d539d4ca53 Revert "Updated usage of subscriptions data for members (#1834)"
This reverts commit fbd42ef33e.
2021-02-04 11:56:26 +05:30
Naz
ce20117307 Removed unused locale fields
refs https://github.com/TryGhost/Ghost/pull/12599

- These fields have been deprecated since API v2 and no longer are returned or exposed
2021-02-04 19:04:34 +13:00
Peter Zimon
fb0342618a Updated colors 2021-02-03 20:35:11 +01:00
Peter Zimon
c757ddbef8 UI updates (#1835)
* Admin UI update basics

Added the basics for the Admin UI/style update. Very far from being done...

* Admin style updates

- exploring menu
- enabling full width content (integrations selection bg)
- updated main screens
2021-02-03 20:08:01 +01:00
Kevin Ansfield
d287848393 Fixed unsaveable Stripe direct keys in launch-site wizard
refs https://github.com/TryGhost/Team/issues/460

- fixed mismatches in property naming for key fields
- updated error handling to show errors for missing and invalid stripe keys
2021-02-03 16:45:09 +00:00
Daniel Lockyer
6531b49660 Updated badge URL in README 2021-02-03 09:21:06 +00:00
Kevin Ansfield
97f606573c Fixed "back" in launch wizard not skipping skipped steps
refs https://github.com/TryGhost/Team/issues/460

- keep track of all skipped steps when advancing to next step
- when going back a step, skip over any skipped steps
2021-02-02 18:28:45 +00:00
Daniel Lockyer
db67a7f06b Updated test workflow for default branch rename
- 4.0 is now main, which is the default branch
2021-02-02 17:56:51 +00:00
Daniel Lockyer
97372bf6a4 v4.0.0-alpha.0 2021-02-02 16:19:39 +00:00
Kevin Ansfield
2c09b22375 Fixed twitter/facebook image fallback to feature image in social preview
refs https://github.com/TryGhost/Team/issues/459

- fall back to feature image for twitter+facebook when specific images don't exist
2021-02-02 16:08:08 +00:00
Sanne de Vries
1ee2be76c3 Changed design for Set up subscriptions and Finalise steps in Launch wizard
Refs https://github.com/TryGhost/Team/issues/460
2021-02-02 16:08:08 +00:00
Sanne de Vries
b8df7b7a28 Changed design of Connect to Stripe step in Launch wizard
Refs https://github.com/TryGhost/Team/issues/460
2021-02-02 16:08:08 +00:00
Kevin Ansfield
9fcf3cce9d Added generic/bookmark card preview modal settings tab
refs https://github.com/TryGhost/Team/issues/459

- re-use bookmark card styling
- approximate the data grabbed by metascraper (used when generating bookmark card contents) based on saved post data
2021-02-02 16:08:08 +00:00
Kevin Ansfield
be01fa6920 Added publish menu to post preview modal
refs https://github.com/TryGhost/Team/issues/459

- pass required properties+actions through editor->post preview modal->publish menu
- replace publish button placeholder with `<GhPublishMenu>`
- close modal when saving if not a silent save
2021-02-02 16:08:08 +00:00
Sanne de Vries
f9779cf5e3 Changed design of first step Launch wizard to be consistent with branding modal in settings
refs https://github.com/TryGhost/Team/issues/460
2021-02-02 16:08:08 +00:00
Kevin Ansfield
35d9545c68 Hid preview post button unless post has been created and is a draft
refs https://github.com/TryGhost/Team/issues/459

- hid when post is published
    - we have no facility for previewing unsaved changes to a published post via the front-end which would mean the desktop/mobile preview tabs are not useful
    - email preview content is similarly generated from saved data meaning that tab wouldn't serve as a preview (plus emails can't currently be sent for an already published post)
- hid when post is "new" (unsaved)
    - similar to the reasoning for hiding when published, if the post is not saved then no content exists for the server-side previews to be generated
2021-02-02 16:08:08 +00:00
Kevin Ansfield
e8970841d2 Fixed missing seo description in post preview modal
refs https://github.com/TryGhost/Team/issues/459

- the SERP description was not falling back to the server-side generated `excerpt` field on the post
- removed outdated dynamic description generation from markdown card, should be replaced with dynamic description generation from mobiledoc if needed
2021-02-02 16:08:08 +00:00
Kevin Ansfield
4108ec735a Fixed missing seo url in post preview modal
refs https://github.com/TryGhost/Team/issues/459

- added missing getter for generating SERP preview URL
2021-02-02 16:08:07 +00:00
Kevin Ansfield
28a2ff8259 Fixed sending email preview from post preview modal
refs https://github.com/TryGhost/Team/issues/459

- fixed incorrect tracked variable name for the email preview address
- fixed incorrect access of `this.post` instead of `this.args.post`
- re-throw any error that is encountered so the cause is not silently lost
2021-02-02 16:08:07 +00:00
Kevin Ansfield
b3980142ca Removed errant console.log 2021-02-02 16:08:07 +00:00
Kevin Ansfield
7687571b12 Updated launch wizard pricing step to show portal preview
refs

- dropped the portal service in favour of using the existing `membersUtils` service
    - renamed `getPreviewUrl()` to `getPortalPreviewUrl()`
- update the iframe src to point to the portal preview url when on the pricing step
- added free/monthly/yearly checkboxes to pricing step
- update iframe src with regenerated portal preview params when making changes
2021-02-02 16:08:07 +00:00
Rishabh Garg
fbd42ef33e Updated usage of subscriptions data for members (#1834)
no issue
depends on cc08be0e34

The subscriptions data on member - stripe.subscriptions - is flattened to top level subscriptions in v4 API. This PR -
- Updates model to use the new data structure
- Updates serializer to handle new data structure
- Updates references to subscriptions data
2021-02-02 16:08:07 +00:00
Kevin Ansfield
d520e2b079 Extracted portal preview url generation into service
no issue

- allows for preview url generation to be shared across the portal design settings screen and the payment setup step of the launch wizard
2021-02-02 16:08:07 +00:00
Kevin Ansfield
9e05e134e1 Fixed next step transition when saving pricing in launch wizard 2021-02-02 16:08:07 +00:00
Fabien 'egg' O'Carroll
d699479c89 Updated usage of paid param to filter on status (#1833)
no-issue

This updates calls to the Admin API to list members to use `?filter=status:paid` instead of `?paid=true`
2021-02-02 16:08:07 +00:00
Kevin Ansfield
df453ed874 Fixed pricing step error due to renamed file
no issue

- `gh-members-lab-setting` was renamed to `gh-members-payments-setting`
2021-02-02 16:08:06 +00:00
Kevin Ansfield
23a4066a01 Fixed stripe connect step failing in launch wizard
no issue

- save task was missing a truthy return value and call to transition to next step
- added a 500ms timeout after saving so the "saved" text is visible before moving to the next step
2021-02-02 16:08:06 +00:00
Peter Zimon
04d9caefed Updated navigation (#1832)
no issue

Updated settings navigation to a completely redesigned flow for Ghost 4.0 🎉

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
Co-authored-by: Fabien O'Carroll <fabien@allou.is>
Co-authored-by: Rish <zrishabhgarg@gmail.com>
2021-02-02 16:08:06 +00:00
Kevin Ansfield
b466e844e4 Removed unused GhLaunchWizard tests
no issue

- tests were fragile because they were checking content that is undergoing heavy iteration
- tests were not testing anything important
2021-02-02 16:08:06 +00:00
Kevin Ansfield
151ae2ff57 Fixed tests
refs 9ffc7bce36
2021-02-02 16:08:06 +00:00
Kevin Ansfield
3dc4213678 Fixed tests
refs 9ffc7bce36

- removed acceptance tests that were checking removed routes
2021-02-02 16:08:06 +00:00
Kevin Ansfield
214158bee8 Refactored launch wizard
refs https://github.com/TryGhost/Team/issues/450

- swapped individual step routes for single launch route and query params to allow for easier management of step content and preview via components
- defined all wizard steps inside of launch controller
- updated templates to use a fixed preview across all steps
2021-02-02 16:08:06 +00:00
Kevin Ansfield
6954d2f185 Added <GhBrowserPreview> component for re-usable browser chrome 2021-02-02 16:08:05 +00:00
Sanne de Vries
c45294717c Improved preview post modal design and added mobile view
refs https://github.com/TryGhost/Team/issues/451

- Added mobile view to the post preview modal
- Replaced tabs text with icons
- Moved back button and added publish button
- Changed copy-link design to be aligned with link preview in portal
- Changed layout for social previews
- Added images to the Twittr and Facebook previews
- Added labels to the social previews
- Changed styling for the "Preview post" button in editor
2021-02-02 16:08:05 +00:00
Kevin Ansfield
ac6b011298 Added accent colour to customise design step of launch wizard
refs https://github.com/TryGhost/Team/issues/451

- adds accent colour picker to "customise design" step
- updates colour picker to save & refresh 500ms after a value change
- saves and refreshes immediately on blur of input field unless value hasn't changed since last save and refresh
2021-02-02 16:08:05 +00:00
Kevin Ansfield
7f7d2cafc6 Added share/send preview footers to post preview modal
refs https://github.com/TryGhost/Team/issues/451

- disabled email tab when previewing a page (pages can't be emailed)
- added share preview url footer to browser tab
- added send preview footer to email tab
- added first pass at social tab contents
2021-02-02 16:08:05 +00:00
Sanne de Vries
76419917bf Changed design for first step of the launch wizard 2021-02-02 16:08:05 +00:00
Kevin Ansfield
f5372376f3 Fixed typo in template file
refs d364fc1146
2021-02-02 16:08:05 +00:00
Kevin Ansfield
56f18c8886 Added post.{isPost,isPage} computed properties
no issue

- removes the need to check `post.displayName === 'post/page'` any time we need a conditional on post type
2021-02-02 16:08:05 +00:00
Peter Zimon
202468c025 Move accent color to Design settings 2021-02-02 16:08:05 +00:00
Peter Zimon
0b4d789bbe Moved publication identity to Design settings 2021-02-02 16:08:04 +00:00
Peter Zimon
679dc3c0d6 Separate theme design (#1831)
* Separated theme and design settings
2021-02-02 16:08:04 +00:00
Kevin Ansfield
7b593e5df0 Fixed modal confirm actions
refs 2527a856ce

- typo `confirm/config` in previous commit that refactored fullscreen modal template
2021-02-02 16:08:04 +00:00
Kevin Ansfield
e932af26a7 Added first pass at new post preview
refs https://github.com/TryGhost/Team/issues/451

Start of new post preview prototype.

- adds preview button next to publish button
- opens new combined preview modal with desktop/email/social tabs
- desktop preview shows front-end preview url in iframe
- email preview fetches preview data as per the older email preview modal
- social preview to come later
2021-02-02 16:08:04 +00:00
Peter Zimon
fdca819169 Fixed Labs page
- removed link to Members settings from Labs screen
2021-02-02 16:08:04 +00:00
Peter Zimon
c610d3d072 Moved members settings out of labs 2021-02-02 16:08:04 +00:00
Kevin Ansfield
0f30260150 Refactored email-preview header styles
no issue

- adjusted centering behaviour to remove hardcoded fixed widths
- adjusted button styling to account for having more than 2 buttons in the button group
2021-02-02 16:08:04 +00:00
Peter Zimon
91d1a4edd0 Fixing tests 2021-02-02 16:08:04 +00:00
Peter Zimon
cecfebad62 Added hover to settings grid items 2021-02-02 16:08:03 +00:00
Peter Zimon
e903046813 Basic settings restructure
- created new central settings page and moved there all settings from the nav menu
2021-02-02 16:08:03 +00:00
Kevin Ansfield
18f8c9325d Fixed tests expecting / to redirect to /site
no issue

- `/` now redirects to `/dashboard` instead of `/site`
2021-02-02 16:08:03 +00:00
Kevin Ansfield
4b5f3f64a4 Added launch wizard prototype
refs https://github.com/TryGhost/Team/issues/450

Initial prototype of new launch-site wizard, meant to speed up the setup of a members site with the following steps:

1. Customise design
2. Connect Stripe
3. Set subscription pricing

- added wizard link to dashboard screen
- added `/launch/*` screens representing the wizard steps
- duplicated and refactored relevant general and members setting code and templates into each step
2021-02-02 16:08:03 +00:00
Kevin Ansfield
a6b11b8c0c Added blank dashboard screen
no issue

- adds blank `/dashboard` route ready for future 4.0 related changes
- `/` now redirects to `/dashboard` instead of `/site`
- adds "Dashboard" link to main nav menu
2021-02-02 16:08:00 +00:00
Daniel Lockyer
2f7cfc3690 v3.41.3 2021-02-01 14:40:48 +00:00
Daniel Lockyer
19cd5ba96a v3.41.2 2021-01-27 15:50:24 +00:00
Daniel Lockyer
a24c0e0ea5 v3.41.1 2021-01-26 16:54:29 +00:00
Daniel Lockyer
7184b45c00 v3.41.0 2021-01-26 16:03:08 +00:00
John O'Nolan
0d626088ac 2021 2021-01-25 16:51:15 +00:00
Rish
a2105f53f6 Added FirstPromoter help link
no issue
related to 464e601c4d

Adds help article to find your FirstPromoter account ID for setting up FirstPromoter integration
2021-01-25 10:46:02 +05:30
Daniel Lockyer
48ffdce2c3 Enabled test suite for 4.0 branch
no issue

- we'd like to run the tests on the new 4.0 branch, so this commit add
  it to the trigger list and allows Slack notifications for failures
2021-01-21 11:00:36 +00:00
Kevin Ansfield
a059ace335 Reverted dashboard route
no issue

- removing dashboard prototype from master ready to re-apply in 4.0 branch
2021-01-21 09:04:54 +00:00
Kevin Ansfield
72d8b4f14d Reverted launch wizard prototype
no issue

- removing launch wizard from master ready to re-apply in 4.0 branch
2021-01-21 09:02:19 +00:00
Kevin Ansfield
f6a82b0099 Added pricing setup to launch site wizard
refs https://github.com/TryGhost/Team/issues/450

- duplicated and refactored/updated members pricing settings UI from labs to the "set pricing" step of the launch site wizard
2021-01-20 15:49:14 +00:00
Kevin Ansfield
26f4e79ac7 Fixed test (updated expected text in) 2021-01-19 22:38:32 +00:00
Kevin Ansfield
63c1f2060c Added stripe connection to launch site wizard
refs https://github.com/TryGhost/Team/issues/450

- duplicated and refactored/updated direct and connect settings UI from labs to the "connect stripe" step of the launch site wizard
- updated wizard buttons to be right-aligned
2021-01-19 22:31:59 +00:00
Kevin Ansfield
7828aea09c Lock file maintenance 2021-01-19 09:29:55 +00:00
Kevin Ansfield
ab2dd14677 Pinned all postcss dependencies to v7 (#1830)
no issue

- due to various levels of sub-dependency support across our postcss dependencies we'd ended up with three different versions of postcss installed (6, 7, and 8)
- pinned our dependencies to versions that all use postcss@^7
- we can't upgrade to postcss@8 because we make heavy use of `color-mod` which is no longer in the CSS spec and so the dependency providing it has not been updated
- switched from `postcss-easy-import` to `postcss-import` to drop the postcss@6 sub dependency (we weren't using any of the features that postcss-easy-import added over postcss-import)
- initial tests show CSS compilation times to have roughly halved
- disabled renovate for css dependencies to reduce noise for updates we can't merge
2021-01-19 09:25:05 +00:00
renovate[bot]
c2ad14559a Update dependency @tryghost/members-csv to v0.4.2 (#1828)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-19 08:22:48 +00:00
renovate[bot]
1f69ad3b82 Update dependency ember-fetch to v8.0.4 (#1829)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-19 08:22:32 +00:00
Aileen Nowak
abc38ab375 Updated links to ghost.org sites
no issue

Follow-up task of the updated Ghost Docs structure. Updated links reflecting the new structure to prevent unnecessary 404s and redirects.
2021-01-19 13:18:59 +13:00
Kevin Ansfield
00c73bbf68 Actually fixed tests 2021-01-18 21:16:00 +00:00
Kevin Ansfield
60be92bbc0 Fixed tests 2021-01-18 21:07:48 +00:00
Kevin Ansfield
2b41499b22 Added design customisation and preview to launch wizard
refs https://github.com/TryGhost/Team/issues/450

- moved next/finish buttons into wizard step components in case they need to save before triggering transition
- added icon, logo, and cover image upload+removal to "customise design" step alongside a preview that reloads each time an image is changed
2021-01-18 17:48:11 +00:00
Kevin Ansfield
d48abaa1f8 Added outline launch wizard framework
refs https://github.com/TryGhost/Team/issues/450

- adds `launch/*` routes corresponding to launch wizard steps
- sets up navigation between each wizard step
- adds components for each `launch/*` step to contain step-related functionality and facilitate later refactoring to a generalised wizard component
- adds link to the launch wizard from the dashboard screen
2021-01-18 13:48:23 +00:00
Kevin Ansfield
beac5543ce Default developer experiments to "off" in tests
no issue

- we should be testing production functionality by default, if tests need to test functionality behind the developer experiments flag they should explicitly enable it
2021-01-18 09:13:43 +00:00
Kevin Ansfield
5463e95d8e Added blank dashboard screen
no issue

- preparatory work for upcoming features
- default homepage when developer experiments is enabled
2021-01-18 09:02:44 +00:00
renovate[bot]
0a3e26fb7d Update dependency ember-fetch to v8.0.3 (#1826)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-18 08:19:35 +00:00
Renovate Bot
dcd1d0d5b8 Update dependency eslint to v7.18.0 2021-01-18 07:52:49 +00:00
Rishabh Garg
464e601c4d Added new FirstPromoter integration (#1825)
no issue

Adds new FirstPromoter integration on the integrations page. FirstPromoter enables sites to launch their own members referral program, and integration allows Site admins to directly add their FirstPromoter tracking ID in the settings to enable FirstPromoter script on their site.
2021-01-15 20:01:40 +05:30
John O'Nolan
eea1ddab71 Updated integrations showcase: Plausible, Ulysses, GitHub 2021-01-14 19:29:21 +07:00
Daniel Lockyer
912c6b4896 Renamed TryGhost/Ghost-Admin links to TryGhost/Admin
no issue

- the repository has been renamed so this commit brings the links inline with this
2021-01-13 09:36:27 +00:00
Renovate Bot
6e5fca1e63 Update actions/setup-node action to v2 2021-01-13 08:26:20 +00:00