0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
Commit graph

2310 commits

Author SHA1 Message Date
Daniel Lockyer
7967c43a19 Improved Node 22 compatibility by bumping Koenig packages
ref https://linear.app/ghost/issue/ENG-2014/add-node-22-support-to-koenig

- we're working on adding support for Node 22 and part of that involves
  bumping the Koenig packages because they have version ranges we need
  updating in Ghost
- this commit bumps the packages so they have support for Node 22
2025-02-17 13:51:23 +01:00
Peter Zimon
c0179b4704
ActivityPub typography fix (#22202)
ref
https://linear.app/ghost/issue/AP-750/visual-designfrontend-regressions

- Default font-family is not set properly in local storage
2025-02-17 13:19:37 +01:00
Sodbileg Gansukh
db8b0c289d
Updated naming convention for hooks in ActivityPub (#22200)
ref AP-744

- we're using kebab case for non-component files for ActivitiPub
- updated the imports with path aliases while doing that
2025-02-17 09:47:07 +00:00
Sam Lord
2740686d53
Refactored Captcha to simplify usage
ref BAE-397

Moved the hCaptcha component outside of the page level, since it was
complicating the logic within the pages with no good reason.

The hCaptcha component is now attached to the pop-up modal. Since it's
invisible, this doesn't impact layout anyway, but means that any action
can trigger Captcha to run, and use the result within that same action.

This simplifies the flow by having the action itself confirm that
Captcha is enabled, then grabbing the token by running either a
challenge (for self-hosters) or using their enterprise heuristics system
(for Ghost Pro).

This also fixes issues where sites with multiple tiers wouldn't work
with Captcha, since the page had changed and the hCaptcha component was
unloaded.
2025-02-17 08:17:58 +00:00
Sodbileg Gansukh
13c5c5ff17
Moved NewPostModal component to the Feed page (#22199)
ref AP-744

- NewPostModal component is only used in Feed
- For that reason, this should be placed with the Feed component itself
in view directory
- Inbox and Feed components are still in a single file at the moment as
the separation isn't in the context of file structure updates
- Once componets are separated into smaller ones, Feed directory will be
populated with the corresponding files
2025-02-17 05:51:47 +00:00
Sodbileg Gansukh
0476bb1cb9
Moved the rest of the page components to views directory in ActivityPub (#22198)
ref AP-744

- moved Notifications, Profile, and Search components to views directory
as they're all page components
- updated the imports with path aliases
2025-02-17 13:37:54 +08:00
Sodbileg Gansukh
95efa15d18
Moved the Inbox component to views directory in ActivityPub (#22197)
ref AP-744

- according to the new file structure, moved the Inbox component to
views directory as it's a page
- added path aliases to minimize the changes for imports
2025-02-17 12:31:36 +08:00
renovate[bot]
ca67c0fd93
Update dependency react-hot-toast to v2.5.2 (#22196)
This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>timolins/react-hot-toast (react-hot-toast)</summary>

###
[`v2.5.2`](https://redirect.github.com/timolins/react-hot-toast/releases/tag/v2.5.2)

[Compare
Source](https://redirect.github.com/timolins/react-hot-toast/compare/v2.5.1...v2.5.2)

- Fix race condition in backwards compatible way – fixes
[#&#8203;101](https://redirect.github.com/timolins/react-hot-toast/issues/101)
[`1556d28`](https://redirect.github.com/timolins/react-hot-toast/commit/1556d28)
- Replace JSX.Element type with React.ReactElement
[`87c7a52`](https://redirect.github.com/timolins/react-hot-toast/commit/87c7a52)

***

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2Ny4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 01:12:47 +00:00
Paul Davis
76ddb9611f
Add WordPress to migration tools (#22152)
no issue

This PR adds WordPress to the migration options, related tests, and
adjusts the close button to more closely match that of the Settings
screen under it.
2025-02-13 11:54:09 +00:00
Sodbileg Gansukh
784baa1fba
Fixed skeleton loader on ActivityPub inbox and feed screens (#22171)
no issues
2025-02-12 08:01:39 +00:00
Michael Barrett
ec327badf9
Used new feed and inbox endpoints for feed and inbox view
refs https://linear.app/ghost/issue/AP-704

We also update the mutations to make sure that the query cache is correctly updated.

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2025-02-11 21:36:47 +07:00
renovate[bot]
8f28205042
Update dependency @hcaptcha/react-hcaptcha to v1.11.2 (#22161)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@hcaptcha/react-hcaptcha](https://redirect.github.com/hCaptcha/react-hcaptcha)
| [`1.11.1` ->
`1.11.2`](https://renovatebot.com/diffs/npm/@hcaptcha%2freact-hcaptcha/1.11.1/1.11.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@hcaptcha%2freact-hcaptcha/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@hcaptcha%2freact-hcaptcha/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@hcaptcha%2freact-hcaptcha/1.11.1/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@hcaptcha%2freact-hcaptcha/1.11.1/1.11.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>hCaptcha/react-hcaptcha
(@&#8203;hcaptcha/react-hcaptcha)</summary>

###
[`v1.11.2`](https://redirect.github.com/hCaptcha/react-hcaptcha/releases/tag/1.11.2)

[Compare
Source](https://redirect.github.com/hCaptcha/react-hcaptcha/compare/1.11.1...1.11.2)

#### What's Changed

- fix: Fix one captcha per container issue by
[@&#8203;zoryana94](https://redirect.github.com/zoryana94) in
[https://github.com/hCaptcha/react-hcaptcha/pull/251](https://redirect.github.com/hCaptcha/react-hcaptcha/pull/251)
- chore: Update Sentry docs by
[@&#8203;zoryana94](https://redirect.github.com/zoryana94) in
[https://github.com/hCaptcha/react-hcaptcha/pull/249](https://redirect.github.com/hCaptcha/react-hcaptcha/pull/249)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 12:24:40 +00:00
Sodbileg Gansukh
d253d1ce32
Bumped ActivityPub version (#22159) 2025-02-11 09:27:39 +00:00
Sodbileg Gansukh
c36ab82325
Improved loading state of main screens in ActivityPub (#22158)
ref AP-654

- Improved the skeleton component of shadcn
- Used the skeleton component in the main five screens
- It minimizes the layout shift
2025-02-11 16:00:01 +08:00
Peter Zimon
cf2ceb1aa3
Remove on load animation in ActivityPub (#22151)
ref https://linear.app/ghost/issue/AP-700/explore-ui-development-in-ap

Fixes a small style regression related to the [ActivityPub Shade
integration](2170ee8da3),
that adds an unnecessary animation on load
2025-02-10 16:30:27 +00:00
Peter Zimon
2170ee8da3
ActivityPub Shade integration (#22150)
ref https://linear.app/ghost/issue/AP-700/explore-ui-development-in-ap

This PR is about integrating ActivityPub with the new design system, so that we can start using Shade in a real world application. In this early version the TailwindCSS config is taken from Shade but the custom styles of Shade and the AdminX Design System are merged. This is needed so that we can keep using the old components without breaking functionality.
2025-02-10 17:05:15 +01:00
Djordje Vlaisavljevic
1b789a476a Fixed certain images on Threads not showing
close https://linear.app/ghost/issue/AP-640/image-attachments-on-notes-from-threads-are-not-rendered

- Covered the case when `attachment.type` is `Image` and there is no `mediaType` set
- Made code easier to read.
2025-02-10 16:07:05 +01:00
Djordje Vlaisavljevic
8ea4a9c9e6 Fixed "Notifications" tab not having active state
close https://linear.app/ghost/issue/AP-738/fix-notifications-tab-not-having-active-state
2025-02-10 16:07:05 +01:00
Fabien O'Carroll
68b136ea66 Released @tryghost/sodo-search v1.5.3
Changelog for v1.5.2 -> 1.5.3:
  - Updated i18n translations
2025-02-10 11:53:47 +00:00
Fabien O'Carroll
c4d60193f4
Updated release process for Search and Comments UI (#22146)
ref https://github.com/TryGhost/Ghost/pull/22127

The update to the Portal release process has now been tested on main, it
would be good to get Search & Comments updated to the same process so
that it's easier to reason about releasing all of them.
2025-02-10 18:48:52 +07:00
Princi Vershwal
596dfd35f6
Added reposts on user's profile in Ghost Admin (#22143)
Refs https://linear.app/ghost/issue/AP-735

- When a user boosts/reposts something it should show up in their profile section in ghost in both feed and profile modal.
2025-02-10 10:08:05 +00:00
Fabien O'Carroll
c7b631b41f Released @tryghost/portal v2.49.2
Changelog for v2.49.1 -> 2.49.2:
  - Updated i18n translations
2025-02-10 07:46:26 +00:00
Fabien O'Carroll
1bdc11eee3 Added new release script for Portal
This will be used for search and comments too, but I want to start with just
one app to get things going. Key things the script does:

 - Enforces that we're not on main & have clean working dir
 - Creates a well structured commit message w/ basic changelog
 - Updates the package.json and default config

The script explicitly does not push anything to GitHub or to NPM, giving us
more control about the contents of the commit
2025-02-10 07:38:57 +00:00
Michael Barrett
12305b5297
Cleaned up queries in admin-x-activitypub (#22139)
no refs

Clean up includes:

- Removing unused queries (`inbox`, `following`, `followers`)
- Renaming of query hooks to be consistent with other hooks
- Fixed `useProfile*ForUser` fns as these where using the incorrect
handle to setup the API client
- Refactored query keys to make mutations easier to reason about
- Fixed `follow` / `unfollow` mutations not working as expected
2025-02-07 19:15:13 +00:00
Chris Raible
bc37f87074
Updated @playwright/test to 1.50.1 (#22138)
no issue

- Updated @playwright/test to 1.50.1 in all packages that use playwright
2025-02-06 20:14:55 -08:00
Djordje Vlaisavljevic
637db69ddd
Improved repost UI (#22129)
ref https://linear.app/ghost/issue/AP-706/add-repost-count-so-that-the-ui-can-display-the-count

- When you repost (or derepost) a post, the stats counter will now nicely animate into a larger (or smaller) number, with only the relevant digits animating and the others staying in place. We’re using a reusable hook for this.
- Updated stat counter numbers to also change the color when the post is liked or reposted by the currently logged in user
- Fixed like and post state not persisting when opening a post/note in the drawer without refreshing
- Bumped the package

---------

Co-authored-by: Michael Barrett <mike@ghost.org>
2025-02-06 20:35:47 +00:00
Sag
2bd95b3efc
Wired 'Undo Repost' action with the backend API endpoint (#22124)
ref https://linear.app/ghost/issue/AP-699

- when the user clicks again on the Repost icon, we undo the Repost
action, by calling the corresponding API endpoint `POST
/actions/derepost/:id`
- UX/UI and copy are still WIP
- at this stage, we're still missing acceptance tests in the frontend
app. We will be starting acceptance testing in a separate commit
2025-02-06 10:29:19 +00:00
Fabien O'Carroll
1cfa05bbda Released Search v1.5.2
changelog v1.5.1 -> v1.5.2:
  - i18n updates
2025-02-06 07:33:27 +00:00
Fabien O'Carroll
f7ae6a65c4 Released Comments UI v1.0.7
changelog v1.0.6 -> v1.0.7:
  - i18n updates
2025-02-06 07:33:27 +00:00
Fabien O'Carroll
a44883f67d Fixed Comments UI ship script 2025-02-06 07:33:27 +00:00
Fabien O'Carroll
a437574f44 Released Portal v2.49.1
changelog v2.49.0 -> v2.49.1:
  - https://github.com/TryGhost/Ghost/commit/d1f5ad764652a2b6676
  - i18n updates
2025-02-06 07:33:27 +00:00
Princi Vershwal
d9d52fdd77
Added repost count on ActivityPub UI (#22116)
Ref https://linear.app/ghost/issue/AP-706/

- This is for showing the count on the UI for number of times a post has
been reposted.
2025-02-06 10:36:36 +05:30
Djordje Vlaisavljevic
a7aa59de72
Added notification for reposts (#22109)
ref https://linear.app/ghost/issue/AP-695/show-a-notification-when-someone-reposts-your-content

- When someone reposts your post or note, you’ll now receive a notification. If multiple accounts repost the same piece of content, those notifications will be grouped together, but only if they’re fetched as the same page of notifications.
- Converted functions to React components
- Bumped the package
2025-02-05 19:13:19 +00:00
Djordje Vlaisavljevic
2e2704427c Added title tags to icon buttons
ref https://linear.app/ghost/issue/AP-708/add-title-tags-to-icon-buttons

- This will help users figure out what our icon buttons (like/reply/repost) do, since they don't have labels.
2025-02-05 15:42:00 +01:00
Sag
d0df0e7f45
Wired Repost button to the new ActivityPub endpoint (#22111)
ref https://linear.app/ghost/issue/AP-699

- wired the frontend to the new Create Repost API endpoint (POST
/actions/repost/:id)
- the UX/UI is yet to be worked on by Djordje
- the frontend activity-pub app is currently missing acceptance tests
altogether. A follow-up commit will set up and add a basic acceptance
test to the FE app, so that we can add tests as we ship new changes
2025-02-05 13:38:10 +07:00
renovate[bot]
0e630552b0
Update dependency @uiw/react-codemirror to v4.23.8 (#22105)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@uiw/react-codemirror](https://uiwjs.github.io/react-codemirror)
([source](https://redirect.github.com/uiwjs/react-codemirror)) |
[`4.23.7` ->
`4.23.8`](https://renovatebot.com/diffs/npm/@uiw%2freact-codemirror/4.23.7/4.23.8)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@uiw%2freact-codemirror/4.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@uiw%2freact-codemirror/4.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@uiw%2freact-codemirror/4.23.7/4.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@uiw%2freact-codemirror/4.23.7/4.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>uiwjs/react-codemirror (@&#8203;uiw/react-codemirror)</summary>

###
[`v4.23.8`](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.7...1b923ac1d202ec6590b34e8cb94bd09b41fa12ea)

[Compare
Source](https://redirect.github.com/uiwjs/react-codemirror/compare/v4.23.7...1b923ac1d202ec6590b34e8cb94bd09b41fa12ea)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 01:38:05 +00:00
Djordje Vlaisavljevic
1a8d8061cd Fixed original poster name and handle leading to wrong profile
ref https://linear.app/ghost/issue/AP-697/add-ui-for-reposted-inbox-posts
2025-02-03 16:10:43 +00:00
Djordje Vlaisavljevic
c178964d67 Added support for showing reposted posts in inbox
ref https://linear.app/ghost/issue/AP-697/add-ui-for-reposted-inbox-posts

- Updated activity filter to show posts reposted by accounts you're following in your inbox
- Updated UI to indicate when a post shown in the inbox is reposted
- Updated UI for showing reposted notes for better alignment
- Added onClick to the repost indicator so it's easy to see the details of the account that reposted the content
- Bumped the package
2025-02-03 15:00:48 +00:00
Sam Lord
d1f5ad7646
Portal: Fixed issue where signup was not always called with hCaptcha
ref BAE-375

Discovered a way to test hCaptcha using a mock -- so implemented that to
ensure hCaptcha is always called.
2025-02-03 14:48:23 +00:00
Chris Raible
376b9209c3
Added ability to disable Newsletter clicks toggle in settings (#22090)
ref
https://linear.app/ghost/issue/ENG-1974/create-config-option-to-forcibly-disable-email-track-clicks

- With the ability to override a setting via configuration, we also need
to disable the setting's toggle in the UI to signal to the user that it
cannot be changed.
- This commit sets `disabled: true` on the `Newsletter clicks` toggle if
`is_read_only` is set to `true` on the `email_track_clicks` setting
returned from the API, and establishes a pattern that we can use for
other settings in the future, if desired.
2025-01-30 17:06:17 -08:00
renovate[bot]
6e6d6d2230
Update dependency react-router to v7.1.4 (#22086)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://redirect.github.com/remix-run/react-router)
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router))
| [`7.1.3` ->
`7.1.4`](https://renovatebot.com/diffs/npm/react-router/7.1.3/7.1.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router/7.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router/7.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router/7.1.3/7.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router/7.1.3/7.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>remix-run/react-router (react-router)</summary>

###
[`v7.1.4`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#714)

[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.1.3...react-router@7.1.4)

##### Patch Changes

- Internal reorg to clean up some duplicated route module types
([#&#8203;12799](https://redirect.github.com/remix-run/react-router/pull/12799))

- Properly handle status codes that cannot have a body in single fetch
responses (204, etc.)
([#&#8203;12760](https://redirect.github.com/remix-run/react-router/pull/12760))

- Stop erroring on resource routes that return raw strings/objects and
instead serialize them as `text/plain` or `application/json` responses
([#&#8203;12848](https://redirect.github.com/remix-run/react-router/pull/12848))

- This only applies when accessed as a resource route without the
`.data` extension
- When accessed from a Single Fetch `.data` request, they will still be
encoded via `turbo-stream`

- REMOVE: limit matchRoutes optimization to client side
([#&#8203;12882](https://redirect.github.com/remix-run/react-router/pull/12882))

- Optimize Lazy Route Discovery path discovery to favor a single
`querySelectorAll` call at the `body` level instead of many calls at the
sub-tree level
([#&#8203;12731](https://redirect.github.com/remix-run/react-router/pull/12731))

- - Properly bubble headers as `errorHeaders` when throwing a `data()`
result
([#&#8203;12846](https://redirect.github.com/remix-run/react-router/pull/12846))
- Avoid duplication of `Set-Cookie` headers could be duplicated if also
returned from `headers`

- Optimize route matching by skipping redundant `matchRoutes` calls when
possible
([#&#8203;12800](https://redirect.github.com/remix-run/react-router/pull/12800))

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-30 17:55:28 +00:00
Kevin Ansfield
523b9d47a0
Added support for gating access to blocks of post content (#22069)
ref https://linear.app/ghost/issue/PLG-327

- updated post output serializer's gating functions to add gating of specific content blocks
  - uses regex to look for specific strings in the HTML for speed compared to fully parsing the HTML
  - content gating blocks look like `<!--kg-gated-block:begin nonMember:true/false memberSegment:"status:free,status:-free"-->...gated content...<!--kg-gated-block:end-->`
  - parsing of params is limited to `nonMember` with a true/false value and `memberSegment` with a string value containing a limited set of supported filters
  - occurs at the API level so that content is correctly gated in Content API output and front-end website
- added `checkGatedBlockAccess()` to members-service content-gating methods to keep the underlying member checks co-located
2025-01-30 12:47:42 +00:00
Djordje Vlaisavljevic
0cdec925ae
Added “unfollow” functionality to FollowButton (#22057)
ref https://linear.app/ghost/issue/AP-590/unable-to-unfollow-accounts

- Users can now unfollow accounts they’re following, which means that account will be removed from the user’s “following” list and any of the future posts or notes published by that account won’t appear in user’s inbox or feed.
- Refactored and simplified `FollowButton` so it only has 2 variants: primary (used on profiles, where it's the primary focus of the screen) and secondary (used in lists where there will probably be lots of `FollowButton`s next to each other.)

---------

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2025-01-30 12:00:56 +00:00
Sodbileg Gansukh
28275622b9
Added accept parameter to FileUpload component (#21899)
ref DES-182

- adds `accept` parameter to the file uploads making it possible to
define a set of accepted file types
- allows only zip and json files for the universal importer
2025-01-30 11:20:29 +08:00
renovate[bot]
628550108e
Update dependency recharts to v2.15.1 (#22072)
This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>recharts/recharts (recharts)</summary>

###
[`v2.15.1`](https://redirect.github.com/recharts/recharts/compare/v2.15.0...3ecaab0e88781e20284f4444d41bf14a00fddf70)

[Compare
Source](https://redirect.github.com/recharts/recharts/compare/v2.15.0...v2.15.1)

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-29 11:33:06 +00:00
renovate[bot]
e7336585d0 Pin dependencies 2025-01-29 12:19:43 +01:00
Filip Chabik
dac97218d7 Added webhooks to admin search keywords
no issue

- Webhooks are advanced and powerful feature Ghost offers, but they are quite
  hidden in the settings
- This change adds 'webhooks' keyword to the search in the sidebar to point
  users in the right direction
2025-01-28 08:59:05 +01:00
Sanne de Vries
c21736a444
Updated spam filters icon in settings sidebar (#22062)
ref https://linear.app/ghost/issue/ENG-1973

- used the "block" icon instead of "email-block", to avoid hinting at newsletters landing in spam folders
2025-01-28 14:49:07 +07:00
Sag
f4659a67ac
Released Portal v2.49.0 (#22061)
no issue

- changelog v2.48.3 -> v2.49.0:
    - c0ccdbe280
    - 2f63fa2302
    - c586b1c034
2025-01-28 07:27:07 +00:00
Sag
c586b1c034
Enabled publishers to block additional email domains in member signups (#22047)
ref https://linear.app/ghost/issue/ENG-1973
ref https://app.incident.io/ghost/incidents/132

- following an increase in spam members signups, we have recently added
a blocklist of email domains, based on config (see
https://github.com/TryGhost/Ghost/pull/22027). With this change, we are
extending that feature with a user-facing setting in Ghost Admin
- publishers can now block additional email domains in member signups,
directly from Ghost Admin. These emails domains will be added to the
list of domains already blocked by config
2025-01-28 13:46:37 +07:00