Commit Graph

7355 Commits

Author SHA1 Message Date
Rishabh
e52bdf88f9 🐛 Fixed Admin hitting dead API response on Stripe connect
refs https://github.com/TryGhost/Team/issues/994

Non-owner admin users have visibility of the "Connect with Stripe" UI in Admin, but lack permissions to setup the Stripe session in order to actually connect Stripe. This leads to a dead-end with a raw JSON api response, which should never be the case. This change patches the UI by removing Stripe Connect paths for non-owner admins.
2021-08-17 15:24:12 +05:30
Daniel Lockyer
bfc79be159 Fixed notifications for build failures
no issue

- we were still referencing `master` here, whereas we've since switched
  to `main`
- this commit updates the workflow to trigger the notification if it
  fails on `main`
- also enables testing on `v4.*` branches
2021-08-16 15:53:22 +01:00
Rishabh
c9170d5376 Fixed lint
no refs
2021-08-16 15:49:27 +01:00
Peter Zimon
8a6bb20830 Updated members list heading copy 2021-08-13 16:23:56 +02:00
Peter Zimon
8ba183050b Refined member filter button 2021-08-13 16:23:56 +02:00
Naz
49b47b7016 Fixed crashing transition when email only post is sent
refs https://github.com/TryGhost/Team/issues/954

- The transition values wever missing for new "sent" email status and caused a 500 error to be displayed even though it had nothing to do with server errors
- There will be more tweaks to this in future iterations, this is a stop gap solution to have a working UI
2021-08-13 18:18:02 +04:00
Rishabh
b5d1d5918c Reset filter query params on "Members" click in sidebar
closes https://github.com/TryGhost/Team/issues/967

Member filters is reset when clicked on "Members" in the left sidebar.
2021-08-13 19:36:26 +05:30
Naz
148caaf06d Changed the public URL for sent email only post
refs https://github.com/TryGhost/Team/issues/954

- The URL for email-only posts is served with an `/email/` prefix, so it didn't make sense to show a regular URL in the PSM for such posts
2021-08-13 17:50:05 +04:00
Rishabh
e21b898048 Added custom column labels for filter columns
no refs
2021-08-13 19:06:39 +05:30
Rishabh
a7f3eef830 Updated filter builder behavior to always keep one filter row
closes https://github.com/TryGhost/Team/issues/965

If there's only one filter row in the members filter builder modal, then clicking on "X" in that row resets the fields instead of removing the complete row and showing empty filter builder
2021-08-13 19:00:35 +05:30
Naz
f8c75a1e22 Added 'sent' status label in the posts list view
refs https://github.com/TryGhost/Team/issues/954

- This is a first iteration before replacing the status with an email icon in the future. It's meant to signal visually the current status instead of leaving it completely blank
2021-08-13 17:18:37 +04:00
Naz
97c621f338 Added 'sent' status as a valid posts route filter
refs https://github.com/TryGhost/Team/issues/954

- Without the status in the allowlist the post would not be displayed in the interface at all
2021-08-13 17:18:37 +04:00
Peter Zimon
905b312383 Refined labels in members list 2021-08-13 15:17:07 +02:00
Rishabh
520252f5aa Added filter count to filter builder UI
no refs
2021-08-13 18:37:19 +05:30
Rishabh
084380d155 Wired reset filters filter button in filter builder
closes https://github.com/TryGhost/Team/issues/964

Wires the "Reset" button in filter builder to clear all filters easily and see the original full list of members.
2021-08-13 18:00:28 +05:30
Naz
f23e8bc801 Changed post publish menu copy with "send" state
refs https://github.com/TryGhost/Team/issues/947

- Before making a bigger changes - introducing an inline component with send/send&publish/publish dropdown, have made minimal copy changes to reflect what's about to happen after the publish menu submit button is pressed
2021-08-13 16:23:55 +04:00
Naz
d0576beac3 Fixed email only toggle in PSM
refs https://github.com/TryGhost/Team/issues/947

- The toggle was missing an autosave, which was causing a confusing UX where the user had to remember to save the post before publishing.
2021-08-13 16:23:55 +04:00
Peter Zimon
0c3848c23a Refined members action dropdown 2021-08-13 13:55:08 +02:00
Rishabh
38a3962368 Added bulk operations UI for filtered members
refs https://github.com/TryGhost/Team/issues/969

A lot of power of filtering members comes from ability to perform actions on the filtered member list. This change adds bulk operation actions on the the UI to apply on filtered members, but has not wired them up to the API yet.

- adds unsubscribe bulk operation UI
- adds label addition bulk operation UI
- adds label removal bulk operation UI
- adds new single label selection UI for add/remove label to members UI
2021-08-13 17:11:34 +05:30
Rishabh
a34fac50b0 Added custom filter operators for filtering UI
refs https://github.com/TryGhost/Team/issues/943

- adds custom operators for each filter based on type
- adds `name or email` filter for `contains` search  on name or email
2021-08-13 13:42:30 +05:30
Peter Zimon
615dc8d24c Added Reset button to member filter builder 2021-08-12 18:26:29 +02:00
Peter Zimon
e936f3928e Members filtering refinements 2021-08-12 18:12:06 +02:00
Peter Zimon
c71e5f19bf Fixed fullwidth bug for members screen
- Added condition to make the members screen full width when filters Alpha feature is applied
2021-08-12 17:53:49 +02:00
Naz
6651b44de9 Reverted post visibility control by email-only checkbox
closes https://github.com/TryGhost/Team/issues/896
refs 3cd1c56d4e

- The visibility dropdown auto-hiding was reconsidered, so reverting parts of the referenced change
2021-08-12 17:36:33 +04:00
Rishabh
a895bafb53 Added label editing feature in filtering dropdown
refs https://github.com/TryGhost/Team/issues/966

With introduction of members filtering, the current way of editing member labels needed an upgrade. This change updates the member label input component to include editing option which allows triggering label edit modal directly from the filtering menu when working with labels. The long term idea is to make this a consistent global pattern with labels dropdown, extending to member details screen as well.
2021-08-12 17:51:18 +05:30
Rishabh
0aa7aca560 Added dynamic value selection UI for filter dropdown
refs https://github.com/TryGhost/Team/issues/943

The filter UI behind labs in Admin allows filtering members list across several filters. Since each filter type can have its own specific set of values to choose from, this change adds custom UI based on filter type to select filter value.
2021-08-12 13:33:32 +05:30
Rishabh
e224c96bba Added members filtering on subscription status and billing period
refs https://github.com/TryGhost/Team/issues/943

- updated filtering ui to handle stripe subscription status and billing period filtering
2021-08-11 18:04:11 +05:30
Sanne de Vries
ac72f5167b Updated email CTA card in editor 2021-08-11 12:06:27 +02:00
Rishabh
f80b401555 Added status data to member model
refs https://github.com/TryGhost/Team/issues/943

- allows using member status values in the member list table when selected via filter
2021-08-10 17:43:36 +05:30
Rishabh
247f24394d Added dynamic columns to member list from filter UI
refs https://github.com/TryGhost/Team/issues/943

- adds new columns to member list table based on selected filters in UI
- handles dynamic columns in members list with formatted output like for labels
- works behind the filtering feature flag
2021-08-10 17:41:59 +05:30
Rishabh
948934da2d 🐛 Fixed incorrect MRR value on dashboard
closes https://github.com/TryGhost/Team/issues/950

- fixes the mrr value/chart on dashboard when a site has no new mrr events in more than 30 days shown as 0
- adds tests to cover more mrr event scenarios
2021-08-09 17:47:09 +05:30
Rishabh
eb49b15604 Revert "Lock file maintenance"
This reverts commit 6bfa506228.
The changes in lock file maintainance is causing theme tests to fail for some reason, which needs investigation before putting back the changes.
2021-08-08 00:26:17 +05:30
Kevin Ansfield
5173d556f9 Added free members chart to labs dashboard
no issue

- added free members to dashboard controller's count stats data
- moved email open rate chart into it's own dashboard box
- added free members count chart under paid members chart (where email open rate used to be)
2021-08-07 08:57:15 +01:00
Rishabh
30756f8882 Separated alpha members filtering feature into own component
refs https://github.com/TryGhost/Team/issues/943

- separates the new alpha members filtering to its own `-labs` component
- fixes behaviour for existing filtering feature on members list which was overwritten with last change
- updates up action handling to modern glimmer syntax
2021-08-07 09:48:47 +05:30
Kevin Ansfield
5e9b096257 Added latest 5 newsletters list to labs dashboard
no issue

- basic functionality added, prep for dashboard re-organisation
2021-08-07 01:41:00 +01:00
Matt Hanley
161e37c21b Updated docs URL for OAuth alpha feature (#2059)
refs https://github.com/TryGhost/Team/issues/613
2021-08-06 14:26:49 +01:00
Renovate Bot
6bfa506228 Lock file maintenance 2021-08-05 14:48:10 +00:00
Rishabh
7a43c53ddb Added basic members list filtering via UI
refs https://github.com/TryGhost/Team/issues/943

- updates the static filtering ui to dynamic (behind alpha flag)
- generates basic nql filter queries for selected filters - `is` , `is not`
- filters members list on applied filters
2021-08-05 19:22:58 +05:30
Rishabh
4a5d8d07dc Fixed incorrect order param comparison in force reload
refs ffe0f84700 (diff-c3579ffd0159c4bd6d54ac943074cb5f5fa40ea6c814f85f2e90aee694d77c2dR266)

The `forceReload` option to bypass the stale data if params change was incorrectly comparing order param changes due to a typo in variable used to store last order param changes.
2021-08-05 12:27:10 +05:30
Rishabh
548e8db090 Fixed created_at filter not applied on members list query
refs e25e36352d

Since the concat method does not change the existing array but instead returns a new array, the extra filters on the API query object were not being applied. The extra filter included filtering on `created_at` date for members which was not applied as the filter was not stored in the array correctly.
2021-08-05 12:27:10 +05:30
Naz
3cd1c56d4e Added email only checkbox to PSM
closes https://github.com/TryGhost/Team/issues/896

- Having this checkbox allows user to control posts email_only flag
- Also sets the post automatically to "public" when the email-only toggle is switched on as the access would be controlled form within email and not through the internal gatekeeping mechanism
2021-08-04 17:13:52 +04:00
Sanne de Vries
03d46ed67e Fixed chevron character in meta-data preview in post settings 2021-08-04 14:40:45 +02:00
Rishabh
5a8bb31cc6 Moved members list filtering via url param behind alpha flag
refs https://github.com/TryGhost/Team/issues/942

The `filter` param on members list is only supposed to work if the alpha for filtering is switched on
2021-08-04 17:00:55 +05:30
Rishabh
b07efb7dc6 Removed empty filter param on members list
no refs

- removes empty filter param from url to avoid showing empty params on url
2021-08-04 17:00:55 +05:30
Rishabh
1492527b3e Added basic add/delete action on filter UI
refs https://github.com/TryGhost/Team/issues/943

Adds basic add/delete button action on dynamic filter UI to create custom filter blocks
2021-08-04 15:53:06 +05:30
Rishabh
9ee66f8b85 Added filtering on members list via URL param
refs https://github.com/TryGhost/Team/issues/942

- adds `?filter` param to members list page which allows directly filtering list via NQL filter syntax
2021-08-04 15:53:06 +05:30
Kevin Ansfield
cf6ef942a5 Added dashboardTwo labs flag
no issue

- added `dashboardTwo` feature flag and labs screen toggle
- added `dashboard-labs` route with duplicated dashboard controller/template
- added redirect to `dashboard` route so it transitions to `dashboard-labs` when the feature is enabled
2021-08-04 11:22:19 +01:00
Sanne de Vries
6dc901993c Updated email CTA card
Refs https://github.com/TryGhost/Team/issues/928
- Added icons for top and bottom border
- Updated spacing for hr element when not in edit mode
- Got rid of hr element when in edit mode
- Got rid of left border for email, html and markdown cards and feature image
2021-08-03 18:21:54 +02:00
Daniel Lockyer
bc7f761bd3 Merged v4.11.0 into main
v4.11.0
2021-08-03 13:21:58 +01:00
Daniel Lockyer
ac29d0cd45 v4.11.0 2021-08-03 13:20:40 +01:00