0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-30 22:34:01 -05:00
Commit graph

40083 commits

Author SHA1 Message Date
Ghost CI
4a4c6c4063 v5.104.2 2024-12-11 12:01:01 +00:00
Michael Barrett
adacb4f451
Changed location of built public content to temporary dir (#21857)
refs
[ONC-662](https://linear.app/ghost/issue/ONC-662/fix-file-write-issues-in-ghost-application-related-to-asset-generation)

Changed location of built public content to temporary dir to circumvent
file writing issues in some environments (i.e gluster). This is a
stop-gap measure until we get to refactoring the generation of the built
public content.
2024-12-11 11:44:43 +00:00
Ghost CI
21616745e5 v5.104.1 2024-12-08 23:54:28 +00:00
Steve Larson
8d4abb4e33 Fixed config ref for link click tracking logging (#21832)
no ref
2024-12-08 17:41:35 -06:00
Ghost CI
de6efba68a v5.104.0 2024-12-06 15:05:47 +00:00
Ghost CI
3b9d4e16d2 🎨 Updated Source to v1.4.1 2024-12-06 15:05:47 +00:00
Ghost CI
9dce415624 🎨 Updated Casper to v5.8.1 2024-12-06 15:05:47 +00:00
Steve Larson
a5d6b65dde
Added Sentry logging for email link clicks w/ bad member uuid (#21821)
no ref

I've discovered email link checkers appear to be using
falsified/scrambled uuids when testing links for a given site. It's
difficult to check against all sites, so instead we'll log to Sentry to
confirm this is the case.

I've put this behind config because I believe it will create a LOT of
entries, and may burden an already burdened workflow during peak
traffic.
2024-12-06 13:48:38 +00:00
Djordje Vlaisavljevic
becfc5013c
Improved spacing and alignment in notifications (#21820)
ref https://linear.app/ghost/issue/AP-625/implement-notification-grouping-for-follows-and-likes

Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2024-12-06 13:14:41 +00:00
Djordje Vlaisavljevic
e7a9b2a720
Made similar notifications appear grouped together (#21805)
ref https://linear.app/ghost/issue/AP-625/implement-notification-grouping-for-follows-and-likes

- Added basic frontend grouping for Follow and Like notifications, so the page is easier to scan through. For each loaded batch of notifications we check if they can be grouped (all follows get grouped, all likes for a certain post get grouped) and then merge those grouped pages of notifications.
- Improved UI for notifications, with notification type icons for each group.
- Added a utility for truncating text.
2024-12-05 21:52:03 +00:00
Sanne de Vries
9350ccf1db Removed hover effect on replied-to refs for unpublished comments
REF https://linear.app/ghost/issue/PLG-294/remove-link-from-replied-to-[hiddenremoved]
2024-12-05 18:02:38 +00:00
Kevin Ansfield
7e60172027 Removed link from replied-to ref when deleted/hidden
closes https://linear.app/ghost/issue/PLG-294

- making the `replied to: [removed]` text a link was a bit confusing because clicking it does nothing
- if the replied-to comment doesn't exist (e.g. hidden/deleted and not returned in API response) or has been unpublished we replace the `<a>` with a `<span>` to remove the link behaviour
2024-12-05 18:02:38 +00:00
Kevin Ansfield
0651d7178b Extracted <RepliedToSnippet> component from <CommentHeader>
no issue

- keeps logic inside `<CommentHeader>` single-purpose
- allows for cleaner code when adding logic to remove the link when the replied-to comment is removed
- switched `queryByText` to `getByText` in the test to make debugging easier, the latter will print the current DOM if it fails to find an element

# Conflicts:
#	apps/comments-ui/src/components/content/Comment.tsx
2024-12-05 18:02:38 +00:00
Sanne de Vries
f06de99410
Added highlight animation when scrolling to replied-to comment (#21781)
REF https://linear.app/ghost/issue/PLG-284

When clicking on a replied-to reference, you scroll up to the parent comment. To guide the eye, the parent comment is highlighted with a yellow background.

- added `dispatchAction` to the `ActionHandler` function call arguments, allowing actions to call other actions
- added `commentIdToHighlight` app context state and associated `highlightComment` action to set it
- updated `Comment` (and related sub-components) to match `commentIdToHighlight` when rendering to determine whether to apply highlighting of comment contents
- for the highlight, `<mark>` is used to wrap any paragraphs inside the comment contents and appropriate tailwind highlight animation classes applied
  - uses the inline `<mark>` element so that background highlight only applies to the text bounding boxes rather than the entire wrapping element

---------

Co-authored-by: Ronald Langeveld <hi@ronaldlangeveld.com>
2024-12-05 17:46:16 +00:00
Steve Larson
428eebeaf8
Added custom font support for themes (#21817)
ref [DES-949](https://linear.app/tryghost/issue/DES-949/

177e604501

This adds custom fonts feature allowing users to select heading and body
fonts for their themes from a curated list. This allows publishers to
have more control over their brand, and allows themes to have a wider
range of styles to appeal to different audiences.

Without custom fonts support, themes will continue to work as normal,
but users won't be able to customize their typography. As for the
official themes, all of them will support custom fonts.
2024-12-05 16:39:41 +00:00
renovate[bot]
4a91c08328
Update dependency webpack to v5.97.1 (#21814)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [webpack](https://redirect.github.com/webpack/webpack) | [`5.97.0` ->
`5.97.1`](https://renovatebot.com/diffs/npm/webpack/5.97.0/5.97.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.97.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/webpack/5.97.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/webpack/5.97.0/5.97.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.97.0/5.97.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>webpack/webpack (webpack)</summary>

###
[`v5.97.1`](https://redirect.github.com/webpack/webpack/releases/tag/v5.97.1)

[Compare
Source](https://redirect.github.com/webpack/webpack/compare/v5.97.0...v5.97.1)

##### Bug Fixes

-   Performance regression
-   Sub define key should't be renamed when it's a defined variable

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNDIuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 14:41:39 +00:00
Daniel Lockyer
67e6a48c3f Removed trailing Admin model for Collections
ref https://linear.app/ghost/issue/ENG-1805/remove-collections-code

- this was still lingering around because I forgot to delete it in the
  initial commit
2024-12-05 15:28:27 +01:00
Sanne de Vries
379fc19ad5
Added content visibility flag to beta features list (#21809)
No ref
2024-12-05 10:46:25 +00:00
renovate[bot]
bd9fd1587c
Pin dependency dompurify to 3.2.2 (#21808)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [dompurify](https://redirect.github.com/cure53/DOMPurify) |
dependencies | pin | [`^3.2.2` ->
`3.2.2`](https://renovatebot.com/diffs/npm/dompurify/3.2.2/3.2.2) |

Add the preset `:preserveSemverRanges` to your config if you don't want
to pin your dependencies.

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNDIuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 09:50:39 +00:00
Sag
a686d64029
🔒 Fixed SVG sanitization for staff profile pictures (#21798)
closes https://linear.app/ghost/issue/ENG-1506

- when uploading a SVG image as staff profile picture, we previously had
a validation against malicious `<script>` tags or `on*` attributes
- this has proven to be unsufficient, as malicious scripts can be added
via other tags (e.g. `<foreignObject>`) and other attributes (e.g.
`xlink:href`)
- we now satinize SVGs using the DOMPurify library during validation
- if the file is invalid and cannot be sanitized, we show an error to
the user
- also added support for sanitizing `.svgz` files
2024-12-05 17:36:04 +08:00
Fabien 'egg' O'Carroll
aecc32e151
Added staging db testing requirement (#21807)
We've agreed that all database changes going forward must be testing at
least on staging
2024-12-05 07:15:33 +00:00
Steve Larson
3da2a9f64e
Added flag to disable lastSeenAt updater for member link clicks (#21802)
ref https://linear.app/ghost/issue/ENG-1814

This provides a way for us, if needed, to disable the least important piece of the member click event cascade.
2024-12-04 10:53:01 -06:00
Daniel Lockyer
4c13f188ce Removed Collections code from Admin
ref https://linear.app/ghost/issue/ENG-1805/remove-collections-code

- we're removing this feature as it's not finished to the degree we
  would like, so this commit removes all references to it from Admin in
  order to keep things clean
2024-12-04 17:36:40 +01:00
Hannah Wolfe
ed6c57e2a0
Updated stale bot's issue timer
- Currently, stale bot is configured to mark issues as stale after 120 days, and close them 7 days later
- The intent is to close anything 4 months old or more, so setting the timer to 113 days means it accounts for the extra 7
2024-12-04 15:38:47 +00:00
Princi Vershwal
8bc723c641
Removed unnecessary forUpdate from linkSubscription method
Closes https://linear.app/ghost/issue/ENG-1758/product-row-locking-in-linksubscription-causes-slowness-in-high-signup

- The method used a FOR UPDATE query when fetching the Ghost product despite never updating that row. 
- In this case, we're only reading the default product to link it with a subscription - we're not actually modifying the default product itself. The operation is read-only in nature, therefore, the forUpdate lock is unnecessary
- The actual update to the product happens later in the code when we call this._productRepository.update() with the stripe price data, and that operation has its own transaction handling and locking mechanisms
2024-12-04 08:05:29 +00:00
Sodbileg Gansukh
ea0e598bf2
Added custom fonts feature check (#21738)
ref DES-1011

- previously, we were hiding the old font settings from the official themes without checking if they support the custom fonts or not
- now we use the gscan warning info to check this — only when there's support, we hide the settings which means users with the older version will get the old settings back
- also added two new tests for this procedure
2024-12-04 13:42:44 +08:00
Ronald Langeveld
7c1d7080e9
Bumped comments-ui to 0.24.1 (#21797)
ref PLG-293
2024-12-04 02:48:20 +00:00
Ronald Langeveld
55dc9d997f
Added loading state when ordering comments (#21788)
PLG-280

- Added a loading state implementation when changing the ordering of
comments.
- This improves the overall UX particularly with slower connections.
- Due to the nature of how comments and ordering are handled, we
approached it with a simple state that determines whether it's done
loading or not around the API query.

---------

Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
2024-12-04 10:16:58 +08:00
Sanne de Vries
0757f270eb
Updated hidden/removed comment copy on API side (#21796)
REF
https://linear.app/ghost/issue/PLG-295/change-copy-for-replied-to-[hiddenremoved]
- Updated the copy from hidden/removed to removed on API side and in
i18n context.json for consistency
2024-12-03 19:05:42 +00:00
Hannah Wolfe
8dc1c8e74d
Added versioning to all tinybird resources (#21794)
ref https://github.com/TryGhost/Ghost/pull/21765

- This change was split out of
https://github.com/TryGhost/Ghost/pull/21765
- We're adding versioning to all the resources in tinybird so that we
can iterate on them in future in a way that tinybird understands
- The next step is to build an example of what making a change will look
like in versioned world

---------

Co-authored-by: Paco Gonzalez <paco@tinybird.co>
2024-12-03 17:11:37 +00:00
Sanne de Vries
4fa929e1c4
Fixed z-index issue of sorting dropdown and hidden comments (#21793)
REF
https://linear.app/ghost/issue/PLG-292/sorting-dropdown-z-index-issue-with-hidden-comments
- The dropdown would appear behind hidden comments
2024-12-03 17:04:00 +00:00
Sanne de Vries
99d5dea877
Updated copy for replied-to reference of removed comments (#21792)
REF
https://linear.app/ghost/issue/PLG-295/change-copy-for-replied-to-[hiddenremoved]
- No distinguishing needed between hidden and removed comments, which is
the same to the reader. "Removed" is more simple and understandable.
2024-12-03 16:57:50 +00:00
Paco González López
779b1ef86a
Refactored yinybird pipes to not use analytics_hits (#21765)
- This changes the Tinybird Materialized Views to circumvent a currently
  existing Tinybird bug that prevents iterating the code in its current state.
- The idea is that this will allow us to be more flexible in making changes, as it works
  around some restrictions where Tinybird won't let us change the MV because other
   parts of the pipe depends on it
- The idea is to remove the dependency to `analytics_hits.pipe` in the
materialized views.
- This does create code duplication, but we can clean that up later using includes, 
  or refactor the pipe again later if Tinybird fixes the issues

---------

Co-authored-by: Hannah Wolfe <github.erisds@gmail.com>
2024-12-03 16:54:22 +00:00
Ghost CI
6bb82af4e7 v5.103.0 2024-12-03 15:33:46 +00:00
Steve Larson
79fb7ee787
Bumped Portal (#21704)
ref https://linear.app/ghost/issue/ONC-613
2024-12-03 08:41:12 -06:00
Ghost CI
4af85d1fd4 v5.102.0 2024-12-03 14:40:56 +00:00
Steve Larson
3e0864ad6d
Added index for redirects lookup (#21783)
ref https://linear.app/ghost/issue/ENG-1811/
- added first migration for truncating column length; required in order
to be able to add an index
- added second migration for creating the index

After sending a newsletter, Ghost can struggle with the amount of
incoming traffic (particularly link scanners) with particularly large
pools of recipients. Part of this is link lookup, which an index has
shown to help with when added manually on the db. Given that, this
change is to make it native.

I ran a stats service query to gather data on usage, as well as did code
review, and I've not seen any use of this table that isn't using the 8
digit slug, i.e. /r/12345678, or 11 characters total. I made this 191 in
case that use case changes, while still allowing us the value of an
index.

Note: SQLite does not support altering columns to my knowledge, so we
have to create a temp table with the new column data to push back in.
This should be ok because use of SQLite should be limited. In the past,
I've seen migrations skipped for SQLite and I'd rather not do that here
if able.
2024-12-03 14:03:12 +00:00
renovate[bot]
6677214eaa
Update dependency webpack to v5.97.0 (#21791)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [webpack](https://redirect.github.com/webpack/webpack) | [`5.96.1` ->
`5.97.0`](https://renovatebot.com/diffs/npm/webpack/5.96.1/5.97.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.97.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/webpack/5.97.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/webpack/5.96.1/5.97.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.96.1/5.97.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>webpack/webpack (webpack)</summary>

###
[`v5.97.0`](https://redirect.github.com/webpack/webpack/compare/v5.96.1...644f1d12716ba8f3c96d2efa279262560dd8c7fb)

[Compare
Source](https://redirect.github.com/webpack/webpack/compare/v5.96.1...644f1d12716ba8f3c96d2efa279262560dd8c7fb)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* * * * 1-5" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNDIuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-03 13:53:10 +00:00
Hannah Wolfe
201b69e2cb
Removed code disabling bluebird debug (#21790)
closes https://github.com/TryGhost/Ghost/issues/14882 
ref
https://github.com/TryGhost/Ghost/issues/14882#issuecomment-2395498636

- As per the comment on the issue, the last reference to bluebird in
Ghost itself was removed over a year ago.
- We added this code blocking bluebird debug over 6 years ago.
- We do still use bluebird through dependencies so we could still have
memory issues BUT
- This change only affects development, and really should not be a
problem anymore.
- Leaning towards deleting the weird old edge-case code as it should not
be an issue, and finding out the hard way if I'm wrong :D
2024-12-03 13:39:03 +00:00
Djordje Vlaisavljevic
81ae18bcb6 Added support for WordPress formatting in notes
ref https://linear.app/ghost/issue/AP-622/add-support-for-rich-text-formatting-of-notes

- Until now we only had plain text with line breaks and links inside `note` objects. But WordPress is very flexible and allows users to put almost all of their blocks inside a `note`, like headings, lists and blockquotes. We now support those in Ghost, but with minimal formatting to keep the feed clean and easy to scan through.
2024-12-03 12:41:37 +00:00
Kevin Ansfield
badd6d8f97 Shipped comments-ui@0.24.0
no issue

- bumped minor to delay comments-ui update until next Ghost release
- includes numerous styling fixes, display of replies when editing a comment, and updates to in-reply-to snippets when deleting/hiding comments
2024-12-02 23:37:44 +00:00
Kevin Ansfield
9da9757f1f
Changed in-reply-to snippet to show [hidden/removed] (#21731)
closes https://linear.app/ghost/issue/PLG-263/

When hiding a reply as an Admin, if there were other replies that referenced it then those snippets would still show the hidden content because there was no immediate update in the comments-ui client. This made it look like hidden content would still be visible even though at the API level snippets were entirely removed so no other user would see it.

- added client-side handling so in-reply-to snippets immediately show `[hidden/removed]` which means we don't have to fetch every reply from the API
- updated the API to use `[hidden/removed]` as the snippet when referencing a hidden reply instead of removing all `in_reply_to_` data
  - keeping `in_reply_to_id` and `in_reply_to_snippet` means comments-ui still displays the replied-to reference text (albeit not directly showing the API-supplied string so `[hidden/removed]` can be translated)
  - returns the full `in_reply_to_snippet` text for Admin API requests so that showing a comment that has been loaded from the API can immediately show the contents for any displayed references to the comment
2024-12-02 23:12:01 +00:00
Sanne de Vries
4e806f7de4
Ensured replies remain visible when parent comment is being edited (#21756)
REF https://linear.app/ghost/issue/PLG-274/

- Currently, replies are hidden when the parent comment is being edited. This PR ensures that replies remain visible when the parent comment is being edited.
- To achieve this, the `CommentComponent` now checks if the parent comment is being edited. If so, the comment content is swapped by the EditForm, while the comment's avatar, header, menu, and replies remain visible.
- The Form component now only renders the FormEditor. A FormWrapper component is used to wrap the avatar and comment header.
- This Form component is used in the EditForm without the FormWrapper, as it is already wrapped in the CommentComponent.
- The ReplyForm and the MainForm use the FormWrapper.
- The Avatar component now also accepts a `member` prop, which is used to display the avatar image. This is because it's no longer used inside the Form component.
2024-12-02 22:17:15 +00:00
Kevin Ansfield
9f9aee508f
Fixed comments APIs incorrectly returning hidden/deleted replies (#21743)
ref https://linear.app/ghost/issue/PLG-270/

If the API is returning replies that are not shown in the UI then the comments-ui app isn't able to paginate correctly. This should be true across all comments endpoints with no inconsistency across browse by page or comment, or when fetching individual comments.

- expectations for public comments endpoints:
  - hidden/deleted comments are never returned unless they have published replies
  - hidden/deleted replies are never returned
- expectations for admin comments endpoints:
  - deleted comments are never returned unless they have published replies
  - deleted replies are never returned
  - hidden comments+replies are always returned (necessary to allow hidden comments to be toggled back to visible)

Fixed by:
- using bookshelf `withRelated` callback function for `replies` relation in `defaultRelations` (and again in `findPage` which uses `withRelations` to load relations individually)
- cleaned up now-unnecessary additional filtering in `CommentsService`
- added additional tests to ensure behaviour and lack of regressions
2024-12-02 20:10:01 +00:00
Djordje Vlaisavljevic
550a52598c
Fixed WordPress article feature image not showing (#21779)
ref https://linear.app/ghost/issue/AP-619/feature-images-from-wordpress-are-[object-object]

- WordPress puts the feature image into an `image` object, rather than putting the URL directly into an `image` string. We now properly render this.
2024-12-02 15:50:27 +00:00
Sanne de Vries
5c3e26351a
Change blockquote border color to accent color (#21780)
REF
https://linear.app/ghost/issue/PLG-291/add-support-for-blockquote-border-in-darkmode
- The border color was invisible in dark mode. Instead of adding a white
border for dark mode, it now uses the accent color. This matches link
and buttoncolors in comments, and makes it stand out more.
2024-12-02 15:45:58 +00:00
Djordje Vlaisavljevic
940914609f
Updated drawer so you can interact with page behind it (#21778)
ref https://linear.app/ghost/issue/AP-613/make-drawer-wider-when-displaying-articles-on-larger-screens

- Added a prop to Modal which allows you to interact with the page
behind the Modal, so the main navigation could still be used while the
Article modal is opened
- Removed the breakpoint we only use in one place, and switched to using
an arbitrary Tailwind breakpoint that matches the one in admin instead
2024-12-02 13:12:05 +00:00
Hannah Wolfe
675b29a418
🔥 Removed UI for AMP (#21762)
closes
https://linear.app/ghost/issue/ENG-1807/further-deprecate-amp-by-removing-the-ui

- AMP has been deprecated for a year, and will be removed in Ghost 6.0
- As the next step towards removing it, we're removing the UI, meaning
new sites can't enable it
- This will hopefully help the transition to dropping it be smoother and
especially prevent newer users from spending a lot of time on AMP in the
run up to it going away
- NOTE: this only removes the UI. All the logic remains, you can still enable AMP via the API/settings table in the DB.
2024-12-02 12:12:52 +00:00
Daniël van der Winden
df53eb091d
🐛 Fixed feedback buttons' layout breaking in different languages, in newsletters (#21752)
fixes
https://linear.app/ghost/issue/DES-974/feedback-and-comment-icons-when-translated-cause-overlapping-in-email

- Since we added i18n, the feedback/comment button layout would break in
languages where the text is longer.
- We've revised the button layout to be centred. On smaller (mobile)
resolutions, we hide the labels and rely solely on the icons.

**Before**
<img width="679" alt="french-before"
src="https://github.com/user-attachments/assets/e3de40a2-7a0a-4317-8ab8-03e285eb9f8a">
<br /><br />


**After**
<img width="720" alt="newsletter-buttons-desktop-french"
src="https://github.com/user-attachments/assets/f7fce52d-bb3b-4afd-b8fd-538a2ec9a31e"><br
/><br />
<img width="462" alt="newsletter-buttons-mobile"
src="https://github.com/user-attachments/assets/9e21c706-8d92-4fc2-804c-ad2aab6b6350">
2024-12-02 10:00:16 +01:00
Princi Vershwal
76c1cd96d2
Added test for re authentication flow (#21774)
Closes https://linear.app/ghost/issue/ENG-1810/add-test-for-re-authenticate-flow-inside-the-editor
2024-12-02 08:14:32 +00:00