0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
Commit graph

38990 commits

Author SHA1 Message Date
Daniël van der Winden
2f1d613524 Updated reload SVG 2024-08-07 15:02:10 +02:00
Daniël van der Winden
0eae497909 Removed some commented code 2024-08-07 14:51:15 +02:00
Daniël van der Winden
89d7d44c8a Added icon to copy link button while loading 2024-08-07 14:46:08 +02:00
Daniël van der Winden
41b8b10911 Updated copy on published modal 2024-08-07 14:33:31 +02:00
Sodbileg Gansukh
086119671e Wired up edit post, view in browser, and delete post menu actions 2024-08-07 18:44:56 +08:00
Sodbileg Gansukh
bad9254eb9 Added a logic to differentiate modal copy 2024-08-07 15:43:44 +08:00
Sodbileg Gansukh
8542d8bfcf Added refresh button logic 2024-08-07 12:55:16 +08:00
Sodbileg Gansukh
7b59a91c82 Cleanup 2024-08-07 11:57:12 +08:00
Sodbileg Gansukh
6bd6ec4223 Merged more-menu-des-623 2024-08-07 11:24:20 +08:00
Daniël van der Winden
87a559439f Added proper hover states for post analytics buttons 2024-08-06 15:18:00 +02:00
Daniël van der Winden
6471d1bf9e 'More' menu styling (last-child update) 2024-08-06 14:44:53 +02:00
Daniël van der Winden
3267dfa031 Fixed padding on 'more' button 2024-08-06 12:23:29 +02:00
Daniël van der Winden
15220d284c Added delete post functionality 2024-08-06 12:12:51 +02:00
Daniël van der Winden
20991eea28 Moved CSS to content.css 2024-08-06 12:05:20 +02:00
Sodbileg Gansukh
c542947fa3 Made a couple of actions work 2024-08-06 18:03:45 +08:00
Daniël van der Winden
8d27439fdb Added initial code for 'more' button 2024-08-06 12:02:20 +02:00
Daniël van der Winden
9d133a2520 Added icons and 'more' button 2024-08-06 11:53:42 +02:00
Daniël van der Winden
42cc3f02ff Add share icon to Share button 2024-08-06 11:44:28 +02:00
Daniël van der Winden
cc6c371328 Added share icon SVG 2024-08-06 11:41:46 +02:00
Sodbileg Gansukh
3d49e01e6a Wired up the social and copy link buttons 2024-08-06 17:36:00 +08:00
Daniël van der Winden
d0c49ee71b Added icon to 'Refresh' button 2024-08-06 11:35:37 +02:00
Sodbileg Gansukh
c513252c9a UI adjustments 2024-08-06 17:35:34 +08:00
Sodbileg Gansukh
62dfa2fbbc Wired up the post count 2024-08-06 14:42:21 +08:00
Sodbileg Gansukh
a9ba4cfc74 Fixed some bugs and added some visual improvements 2024-08-06 11:43:22 +08:00
Ronald Langeveld
61bf3ea57e
Fixed browser tests for unsaved changes (#20717)
no issue

- takes into account that there is an additional editor in the DOM -
which there is now.
2024-08-05 21:40:18 +07:00
Ronald Langeveld
c8ba9e8027
🐛 Fixed unsaved changes confirmation on Lexical schema change (#20687)
refs ENG-661

Fixes a long-standing issue where an outdated Lexical schema in the
database triggered the unsaved changes confirmation dialog incorrectly.
Implemented a secondary hidden Lexical instance that loads the state
from the database, renders it, and uses this updated state to compare
with the live editor's scratch.
This ensures the unsaved changes prompt appears only when there are real
changes from the user.
2024-08-05 12:58:58 +00:00
Sanne de Vries
e378252d36
Improved new free signup email design (#20716)
REF MOM-339
2024-08-05 14:44:24 +02:00
Sanne de Vries
5ed2793369
Added publication icon to donation notification email (#20704)
REF MOM-317
- Added site icon to add some flair and personal branding to the
donation notification email.
2024-08-05 13:43:24 +02:00
Fabien 'egg' O'Carroll
978ccc8483
Updated types for attributedTo property of Objects (#20715)
ref https://github.com/TryGhost/Ghost/commit/5376bd52c7afb91b

This should have been included in the referenced commit
2024-08-05 11:20:34 +00:00
Fabien 'egg' O'Carroll
5376bd52c7
Updated design of announced Notes and Notes containing links
- Announced (reposted) Notes show information about both the Actor that
created the Note, and the Actor that Announced it
- The content of notes now keeps the formatting and links are clickable
and shown in different color

Co-authored-by: Djordje Vlaisavljevic <dzvlais@gmail.com>
2024-08-05 11:07:03 +00:00
renovate[bot]
779f9d1923 Update dependency rimraf to v5.0.10 2024-08-05 12:14:04 +02:00
renovate[bot]
4b28812861 Update TryGhost packages 2024-08-05 12:12:34 +02:00
Sodbileg Gansukh
f2454c5d13 Switched from url param to local storage 2024-08-05 17:19:24 +08:00
renovate[bot]
d82f97efcc Update dependency luxon to v3.5.0 2024-08-05 09:19:48 +02:00
renovate[bot]
0a1920ff2c Update dependency lint-staged to v15.2.8 2024-08-05 09:18:35 +02:00
Ghost CI
9d44d62b62 v5.89.0 2024-08-02 15:05:06 +00:00
Chris Raible
7522b74e1f
Backfilled missing offer redemptions (#20647)
ref
https://linear.app/tryghost/issue/ENG-1440/backfill-offer-redemption-data-with-a-migration
    
There was a bug that caused offer redemptions to not be recorded in the
database for some subscriptions that were created with an offer.
However, we still have the `offer_id` attached to the subscriptions, so
we are able to backfill the missing redemptions. The bug was fixed in
bf895e6e99
    
This commit only contains a migration, which queries for subscriptions
that have an `offer_id` but do not have any offer redemptions recorded,
and adds any missing redemptions to the `offer_redemptions` table.
2024-08-01 16:30:50 -07:00
Chris Raible
f147167a29
Added SQLite and MySQL check to migration review checklist (#20708)
no issue

- knex can behave differently with SQLite and MySQL, which can cause
migrations to behave differently in each database. This PR adds a check
to the migration review checklist to remind us to test the migration in
both databases before merging.
2024-08-01 13:38:59 -07:00
Kevin Ansfield
ad1a00f60d Fixed YT live embeds for non-www URLs
ref https://github.com/TryGhost/Ghost/pull/20706
ref https://linear.app/tryghost/issue/ONC-197

- previous check for YT live match was a little too specific and required the www which should have been optional
2024-08-01 17:22:02 +01:00
Kevin Ansfield
1eab73c76d 🐛 Fixed YouTube live embeds failing in some situations
ref https://linear.app/tryghost/issue/ONC-197

- YouTube has started responding to video page requests with localised content when requested from certain IPs, with that localised content not containing the required `<link rel="alternate" ...>` tag pointing to the oembed endpoint
- we were fetching video pages rather than the oembed endpoint for YouTube Live URLs because they are not recognised by the oembed extraction library we use
- by modifying the URL from a live URL to a watch URL before we perform oembed lookup/extraction we are able to bypass the (localised) page fetch and instead grab the oembed content directly
2024-08-01 16:59:52 +01:00
Djordje Vlaisavljevic
68d8f19d5a Revert "Updated design of announced Notes and Notes containing links (#20703)"
This reverts commit aca4626c72.
2024-08-01 17:32:25 +02:00
Djordje Vlaisavljevic
aca4626c72
Updated design of announced Notes and Notes containing links (#20703)
- Announced (reposted) Notes show information about both the Actor that
created the Note, and the Actor that Announced it
- The content of notes now keeps the formatting and links are clickable
and shown in different color
2024-08-01 15:35:46 +02:00
Daniël van der Winden
42299abf82
Added styling for accent colours on Tiers and Offers (#20696)
fixes
https://linear.app/tryghost/issue/DES-81/misleading-hardcoded-tier-preview-title-colors

Tiers and Offers in Admin were shown with hardcoded pink titles. This
changes that. They are now shown with black titles, and only in the preview will they render with the site's accent colour. 

---------

Co-authored-by: Princi Vershwal <vershwal.princi@gmail.com>
2024-08-01 09:46:11 +00:00
Sodbileg Gansukh
a5ff2b7822
Merge branch 'main' into new-publish-flow-DES-594 2024-08-01 17:12:08 +08:00
Sodbileg Gansukh
d24a5a0646 Started implementing the new publishing flow 2024-08-01 17:09:11 +08:00
Princi Vershwal
086ed9e7a9
Optimising count query : Added option param to skip distinct from count query for members events API (#20700)
Ref:
https://linear.app/tryghost/issue/ENG-1470/improve-the-performance-of-the-membersevents-aggregated-click-event
2024-08-01 13:14:40 +05:30
Ghost CI
d2ef1cc8cb Merged v5.88.3 into main 2024-07-31 10:55:37 +00:00
Ghost CI
f4f7b91c12 v5.88.3 2024-07-31 10:55:36 +00:00
Kevin Ansfield
dde7e70f7c
Fixed members import-with-tier alpha creating unexpected invoices (#20695)
ref https://linear.app/tryghost/issue/ONC-199

The `updateSubscriptionItemPrice()` method in our Stripe library used by the importer when moving a subscription over to a Ghost product/price was setting `proration_behavior: 'always_invoice'`. This resulted in invoices being created when changing the subscription (even though no prices were changing as far as the customer is concerned) and in some cases where a customer previously had a one-off discount the customer was incorrectly charged the proration difference because the discount was no longer applied to the new invoice.

- updated `updateSubscriptionItemPrice()` to accept an `options` param allowing the `proration_behavior` property passed to the Stripe API to be overridden on a per-call basis
- updated the `forceStripeSubscriptionToProduct()` method used by the importer to pass an options object with `prorationBehavior: 'none'` when updating the subscription item price so that no invoice and no unexpected charges occur when importing
2024-07-31 11:23:22 +01:00
Kevin Ansfield
ae1ac83fc5
Fixed members import-with-tier alpha creating unexpected invoices (#20695)
ref https://linear.app/tryghost/issue/ONC-199

The `updateSubscriptionItemPrice()` method in our Stripe library used by the importer when moving a subscription over to a Ghost product/price was setting `proration_behavior: 'always_invoice'`. This resulted in invoices being created when changing the subscription (even though no prices were changing as far as the customer is concerned) and in some cases where a customer previously had a one-off discount the customer was incorrectly charged the proration difference because the discount was no longer applied to the new invoice.

- updated `updateSubscriptionItemPrice()` to accept an `options` param allowing the `proration_behavior` property passed to the Stripe API to be overridden on a per-call basis
- updated the `forceStripeSubscriptionToProduct()` method used by the importer to pass an options object with `prorationBehavior: 'none'` when updating the subscription item price so that no invoice and no unexpected charges occur when importing
2024-07-31 11:16:25 +01:00