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

5448 commits

Author SHA1 Message Date
Kevin Ansfield
1bd612a359 Updated image card to trigger file browse immediately when inserting
no issue

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

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

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

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

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

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

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

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

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

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

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

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

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

- browser tests would intermittently fail because they would hit the
  timeout limit
- this commit increases the limit to allow for more variability in the
  CI environment
2020-02-18 18:11:31 +00:00
Daniel Lockyer
99d951cbe9 Version bump to 3.7.0 2020-02-18 12:23:18 +00:00
Renovate Bot
087629d941 Update dependency ember-fetch to v7.0.1 2020-02-17 02:16:47 +00:00
Renovate Bot
264c6d9fef Update dependency ember-composable-helpers to v3.1.1 2020-02-17 01:18:31 +00:00
renovate[bot]
dc86c3aa3d
Lock file maintenance (#1487)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:33:27 +00:00
renovate[bot]
2bffe1852d
Update ember core (#1485)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:26:14 +00:00
renovate[bot]
2cbb8bf85a
Update dependency pretender to v3.3.1 (#1491)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:19:05 +00:00
renovate[bot]
ca4aac8073
Update dependency ember-cli-babel to v7.18.0 (#1488)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-14 12:18:51 +00:00
Daniel Lockyer
011b388169 Version bump to 3.6.0 2020-02-14 11:50:36 +00:00
Peter Zimon
dcb823197e 🐛 Fixed visual bug for members label dropdowns
no refs.
- fixed spacing issue for member label dropdown edit icon
- added max width to member label dropdown
2020-02-14 12:39:36 +01:00
Rishabh Garg
7319d11e94
Fixed tests for labels (#1493)
no issue

- Updated member settings css property in tests
- Added mock for label API
2020-02-14 16:37:25 +05:30
Rishabh Garg
4812eed5ca
Added labels for Members (#1477)
no issue

refs TryGhost/Ghost#11538

* Added members label handling v1

* Added members label dropdown in list screen

* Updated selected labels and member list UI refactor

* Added v1 label add/delete modal

* Added add label modal v1

* Fixed disabled check for new label save

* First stab at member filters layout

* Updated member detail screen design

* Member detail refinements

* Added basic editing for member labels

* Fixed label deletion from members list

* Updated filtered list header

* Refinements for dropdown and empty filter state

* Refined label modal

* Updated member labels fetch logic

* Added custom dropdown component for labels

* Refined style for dropdown

* Refined dropdown button

* Restructure and refine members dropdown styles

* Added selected indication to dropdown

* Fixed dropdown footer style

* Removed member label placeholder

* Removed add label from member list actions

* New label refinements

* Added confirmation modal for label delete

* Added duplicate validation check for labels

* Updated validation check with slug

* Updated copy

* Updated actions dropdown copy

* Fixed visual glitch of dropdown on FF

* Hide scrollbar for labels dropdown

Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2020-02-14 15:04:01 +05:30
Peter Zimon
09e9c2d2f7 🐛 Fixed visual bugs on integration details screen
no refs.
- fixed misalignment of icon container and icon
- fixed icon color for "Copied" link status indication
2020-02-12 09:33:27 +01:00
Daniel Lockyer
341d8f394d Version bump to 3.5.2 2020-02-11 09:37:50 +00:00
Peter Zimon
2d8f40a0e3 🐛 Style fix for custom views
no refs.
- fixed misalignment of expand button for site custom views
2020-02-10 16:05:57 +01:00
Daniel Lockyer
0187c99ae3 Version bump to 3.5.1 2020-02-10 12:55:55 +00:00
Peter Zimon
1fa916b37b Updated staff delete modal copy 2020-02-10 12:41:35 +00:00
Peter Zimon
25e3fab58b Updated copy 2020-02-10 12:41:35 +00:00
Peter Zimon
a0bb0a0878 Added note about site backup to delete popup 2020-02-10 12:41:35 +00:00
Kevin Ansfield
196ba168fd updated to use new model._meta
- use model._meta to access the meta object in the delete response
- removed unused `_deleteUser` method
- move the success/failure method bodies into the main `deleteUser` task to improve readability
- added a timeout after calling `_exportDb()` so that the iframe is not removed from the DOM immediately after it's `src` value is set due to a transition away from the member screen
2020-02-10 12:41:35 +00:00
Kevin Ansfield
30d8e287b6 Added hacky method for accessing meta value of single-record requests
no issue

- Ember Data does not support accessing meta data included in the response to single-record requests such as save/delete
- approach to allow it taken from https://github.com/emberjs/data/pull/4077#issuecomment-200780097
2020-02-10 12:41:35 +00:00
Nazar Gargol
e357adffa5 Rewrote delete into generator function
- Wasn't necessary, but thought this might fix the problem when there's no 'meta' in the reponse object
2020-02-10 12:41:35 +00:00
Nazar Gargol
49ccc6b66d Basic flow for triggering db export on user deletion 2020-02-10 12:41:35 +00:00
Kevin Ansfield
843d91359a Lock file cleanup
no issue

- previous `yarn.lock` was missing some cleanup
2020-02-05 16:19:00 +00:00
Daniel Lockyer
844dea9c84 Version bump to 3.5.0 2020-02-05 11:42:31 +00:00
Nazar Gargol
46b38d5e7a Renamed members subscribed flag label
no issue

- This change comes to keep the name consistent to the naming used in the CSV import file - `subscribed_to_emails`
2020-02-04 13:27:51 +08:00
Peter Zimon
776a1902ef 💄Added shadow to What's new footer
no refs.
- improved discoverability of having more content/scrollable area by adding a small shadow to the footer
2020-02-03 20:58:20 +01:00
Peter Zimon
fbde47a859 🐛 Fixed mobile style bug for sidebar views
no refs.
- fixed the size of the expand/collapse chevron in sidebar for mobile
2020-02-03 20:18:51 +01:00
Kevin Ansfield
5f3d48f626 Fixed query params not resetting when deleting a custom view
no issue

- added a `transitionTo` after deleting a custom view that transitions to the `posts` route with default query params
- refactored `reset-posts-query` helper to a more generic `reset-query-params` helper
  - moved default query params definitions to this helper and expose them so we have a single source of truth
  - exposed `resetQueryParams()` function from the helper for use outside of templates
  - adjust the function and helper behaviour to accept the route name as the first param so that `router.currentRouteName` can be used as a generic reset
2020-02-03 16:38:14 +00:00