0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
Commit graph

40288 commits

Author SHA1 Message Date
renovate[bot]
e7336585d0 Pin dependencies 2025-01-29 12:19:43 +01:00
Sodbileg Gansukh
15c799e74b
Fixed minor UI bugs in the links table (#22070)
ref DES-1088

- fixed spacing of the edit button
- removed layout shift when entering the edit mode
- fixed the border around the update button
2025-01-29 07:47:09 +00:00
Chris Raible
99037bb521
Revert "Disabled nx daemon in docker container (#22066)" (#22067)
This reverts commit 38d377d434.

- Disabling the daemon led to more problems than it solved with `yarn
dev` running in Docker
2025-01-29 01:50:03 +00:00
Chris Raible
38d377d434
Disabled nx daemon in docker container (#22066)
no issue

- When the nx daemon is enabled and using docker for local development,
we periodically get an error like the following, which crashes `yarn
dev` and requires a manual restart:

```
Daemon process terminated and closed the connection

Please rerun the command, which will restart the daemon.
If you get this error again, check for any errors in the daemon process logs found in: /home/ghost/.nx/workspace-data/d/daemon.log
```

- Disabling the daemon in docker prevents these errors, and so far I
haven't noticed any performance degradation from disabling it.
2025-01-28 15:59:23 -08:00
.hj barraza
b97cea2633
🌐 Updated Spanish translations (#21956)
- Added missing strings and made some shorter for clarity.
2025-01-28 11:21:33 -06:00
Chris Mitchell
59a186189a
🌐 Added missing Scottish Gaelic translations (#21979)
Add missing Scottish Gaelic translations

---------

Co-authored-by: Cathy Sarisky <42299862+cathysarisky@users.noreply.github.com>
2025-01-28 17:19:51 +00:00
Yovko Lambrev
4946c914e5
🌐 Updated Bulgarian translations (#21932)
- Some improvements to the previously translated strings
- Translations of newly introduced strings
2025-01-28 11:17:10 -06:00
R
0404d1934a
🌐 Added and improved Dutch translations (#21959)
Hey there,

I completed some missing translation keys and found a few translation
errors I adjusted. I'm a Dutch native, but feel free to double-check the
edits.

Thanks for building such awesome software for us to enjoy! 
2025-01-28 11:15:02 -06: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
Sodbileg Gansukh
d489299d6b
Fixed double ESC press to close the preview (#22060)
ref DES-549

- togglePreview() function was called twice when the key combination
CMD+P is pressed
- added a guard in the function to prevent it from being called twice
2025-01-28 06:40:30 +00:00
Chris Raible
d4bf982392
Fixed hot reload for admin in docker compose (#22059)
no issue

- Hot reload for admin depends on the browser being able to reach port
4201, which was not exposed in the docker compose setup — this fixes
that so admin will hot reload when running Ghost in docker compose
2025-01-28 06:06:53 +00:00
Chris Raible
1344970128
Added docker:setup yarn script (#22058)
ref
https://linear.app/ghost/issue/ENG-1959/extend-setupjs-to-modify-config-as-appropriate-for-full-docker-dev

- When switching from local development to docker, there are a few
configuration parameters that need to be updated to e.g. point to the
right database host within the docker network.
- Setting these values with environment variables doesn't work well
because the configuration passed via environment overrides the
configuration set in tests, and thus points tests to the wrong database.
- This commit adds a yarn docker:setup command to the root of the repo,
to make it easier to get started with a full docker compose based
workflow. It edits you config.local.json file to update the necessary
settings for running Ghost in docker compose.
- It also updates the clean.js script such that it will run successfully
regardless of whether it is run locally or in docker.
- Finally, this commit also adds convenience commands for developing and
running tests in docker compose
2025-01-27 21:37:40 -08:00
Sam Lord
2f63fa2302
Added Captcha to data attribute forms
ref BAE-370

Enables Captcha (when labs flag and config entry set) in data-attribute
forms within Portal.
2025-01-27 16:52:52 +00:00
Sam Lord
439bbf8b79
Use Captcha middleware in members API
ref BAE-104

The members send-magic-link API should be protected by Captcha. This
required initialising the Captcha service in the members API, and
putting the middleware into the send-magic-link API.

If it's enabled via lab flag and config, then the service will prevent
API calls that don't have a valid Captcha response.
2025-01-27 15:57:31 +00:00
Ghost CI
3e2658baa0 v5.108.1 2025-01-26 17:53:15 +00:00
Ghost CI
d2c868db00 v5.108.0 2025-01-24 15:07:51 +00:00
Daniël van der Winden
9589a91684
🐛 Fixed tags and authors not fitting in the input field (#22052)
Input fields for tags and authors in the post sidebar were hard to use;
they became scrollable if you added more than one line of either.

This fix addresses that; the input field now grows in size to
accommodate for the number of tags or authors you enter.

fixes
https://linear.app/ghost/issue/DES-1087/overflow-on-boxes-in-post-settings-too-small,
https://linear.app/ghost/issue/DES-1084/tag-field-in-post-settings-menu-is-difficult-to-work-now-with-when
2025-01-24 14:11:07 +01:00
Djordje Vlaisavljevic
8c2e62dc23
Improved ActivityPub design (#22051)
ref https://linear.app/ghost/issue/AP-677/standardize-border-radius-used-in-avatars, https://linear.app/ghost/issue/AP-680/standardize-font-sizes-colors-and-weights, https://linear.app/ghost/issue/AP-676/improve-the-sidebar-widget

- Ensured consistent use of border-radius in avatars
- Removed onClick for large avatars, since we only use them when you're already viewing someone's profile
- Updated font colors, weights and sizes for consistency
- Updated design of the sidebar widget in (simpler design, less lines, tighter spacing=
- "Explore" button looks more like what we use in settings and dashboard
2025-01-23 17:35:05 +00:00
Peter Zimon
19d9c3e3e2
Post analytics router update (#22050)
ref https://linear.app/ghost/issue/DES-1082/router-prototype

This task is about testing, figuring out pros and cons of React Router
compared to our current (custom) router, and what effort and risks are
involved in migrating to it.
2025-01-23 16:48:29 +01:00
Sam Lord
c0ccdbe280
Portal: Added HCaptcha element to signup/signin pages
ref BAE-371

Added the HCaptcha react component & related utils to enable it /
disable it based on the Captcha labs flag. At the moment this does not
include the same functionality on forms using the data-attributes.
2025-01-23 12:02:53 +00:00
Peter Zimon
e41fc2c4d5
Shade updates (#22045)
ref
https://linear.app/ghost/issue/DES-1085/update-shade-to-be-used-in-activitypub

- Shade so far was just used in our playground (Post analytics). It
needed to be prepared so that it can be integrated in real projects like
ActivityPub. This means cleaning up everything related to it like
conventions, file structure, documentation etc.
2025-01-23 08:22:04 +01:00
Sag
568322c378
Added new setting in the database: blocked_email_domains [migration] (#22046)
ref https://linear.app/ghost/issue/ENG-1973
ref https://app.incident.io/ghost/incidents/132

- added a new database setting: `blocked_email_domains` (array, default:
`[]`)
- this setting will allow publishers to block additional email domains
during member signups, on top of the ones blocklisted at a config level
(follow-up PR)
2025-01-23 11:12:29 +07:00
Vũ Minh Nguyên
64eef2a851
Added missing Vietnamese translation for portal (#21948)
Translating "This site only accepts paid members."

Co-authored-by: Chris Raible <chris@ghost.org>
2025-01-22 17:21:37 -08:00
Djordje Vlaisavljevic
2d0f6568fa
Fixed reading progress indicator for very short articles (#22036)
ref https://linear.app/ghost/issue/AP-653/scroll-percentage-remains-at-0percent-when-no-content-to-scroll

- When an entire article fits into the viewport height, we used to
show`0%` in the reading progress indicator. Now we check if that's the
case, and then show `100%` if it is.
2025-01-22 17:49:11 +00:00
Sag
5409ae1c68
Released Portal v2.48.3 (#22044)
no issue
- changelog v2.48.2 -> v2.48.3:
    - f07291b72c
2025-01-22 07:35:54 +00:00
Sag
f07291b72c
Added missing error message handler for the integrity token endpoint (#22043)
ref https://linear.app/ghost/issue/PRO-1349

- the integrity token endpoint can return a json response with an error
message (for example, when rate limited)
- added the standard response handler to the integrity token endpoint in
Portal, to render the error message sent by the backend
2025-01-22 14:26:49 +07:00
Kevin Ansfield
3a38aef9b2 Added contentVisibilityAlpha flag
no issue

- flag to allow internal testing of content visibility developments without unintentional early release to beta testers
2025-01-22 07:17:20 +00:00
Sag
c8e76fb498
Released Portal v2.48.2 (#22041)
no issue

- changelog v2.48.1 -> v2.48.2:
    - 3ca419bcbc
2025-01-22 04:48:58 +00:00
Sag
3ca419bcbc
Improved error message when email provider is blocked (#22040)
ref https://linear.app/ghost/issue/ONC-721
ref https://linear.app/ghost/issue/PRO-1349

- also added the rate limit error message into the translate-able
strings in Portal
2025-01-22 04:40:22 +00:00
Chris Raible
669da1cfb1
Shipped portal@2.48.1 (#22039)
Patch update including this bug fix:
713e75838a
2025-01-21 13:04:23 -08:00
Chris Raible
713e75838a
🐛 Fixed newsletters not rendering in Portal Email Preferences (#22037)
ref
https://linear.app/ghost/issue/ONC-723/support-escalation-re-fwd-email-preferences

- On sites where the Default recipients setting was set to anything
other than "Whoever has access to the post", the list of newsletters and
the toggle to subscribe/unsubscribe would not be rendered on the Portal
"Email Preferences" page.
- The bug was introduced in v5.106.0, and intended to hide the
newsletter list if Newsletter sending were disabled completely, but
there was bug in the logic
- This commit has a breaking test to prevent this in the future, and
fixes the logic to only hide the newsletter list if
`editor_default_email_recipients` is explicitly set to 'disabled'.
2025-01-21 11:22:45 -08:00
Peter Zimon
996c9d8c68
Post analytics prototype router (#22034)
ref https://linear.app/ghost/issue/DES-1082/router-prototype

- The current router from `admin-x-framework` looks super complex. This
PR is about testing React Router in the Post analytics prototype.
2025-01-21 14:54:02 +01:00
Hannah Wolfe
3211a146d4
Removed i18n toggle from labs UI (#21927) (#21975)
ref bb9a69e
ref https://linear.app/ghost/issue/ENG-1753/labs-flags-cleanup

- We promoted i18n to GA several weeks ago now, and it's going fine
- Removing the UI first to reduce confusion before cleaning up all the
other references to the flag
- Introduced a new function for setting the publication language in internationalization (i18n) test cases, for readability
2025-01-21 09:58:13 +00:00
Ghost CI
c5b6c72cb5 Merged v5.107.2 into main 2025-01-21 02:17:20 +00:00
Ghost CI
618125169d v5.107.2 2025-01-21 02:17:19 +00:00
Chris Raible
2ecf7ff5c9 🐛 Fixed degraded database performance when using the Post Analytics screen (#22031)
ref
https://linear.app/ghost/issue/ONC-717/support-escalation-re-dashboard-unresponsive

This reverts commit 9082a9f1db, which
introduced an automatic refresh interval on the Post Analytics screen in
Admin. This change led to an increase in the number of requests to the
`/ghost/api/admin/members/events/` endpoint, which is a particularly
database intensive endpoint. Ultimately this led to significantly higher
load on the database which degraded performance for sites with a large
`email_recipients` table.
2025-01-20 17:57:27 -08:00
Chris Raible
6b00bdecb0
🐛 Fixed degraded database performance when using the Post Analytics screen (#22031)
ref
https://linear.app/ghost/issue/ONC-717/support-escalation-re-dashboard-unresponsive

This reverts commit 9082a9f1db, which
introduced an automatic refresh interval on the Post Analytics screen in
Admin. This change led to an increase in the number of requests to the
`/ghost/api/admin/members/events/` endpoint, which is a particularly
database intensive endpoint. Ultimately this led to significantly higher
load on the database which degraded performance for sites with a large
`email_recipients` table.
2025-01-20 17:34:04 -08:00
Djordje Vlaisavljevic
cf9c0199c3 Fixed posts not opening when clicked from profile feed
no ref
2025-01-20 22:40:58 +00:00
Djordje Vlaisavljevic
6b9e6b2cd1 Updated Article design on Profiles
ref https://linear.app/ghost/issue/AP-534/profile-weird-button-hover-state-in-post-list

- While we've separated Inbox and Feed views, we're still showing both Notes and Articles together in Profiles. Articles had a confusing hover state and also felt disconnected. The new design is similar to the one used in the new publishing flow, with adjustments where it makes sense.
- Added more useful alt descriptions
- Fixed images from Thread notes not showing
2025-01-20 18:49:59 +00:00
Djordje Vlaisavljevic
c1d7a46599 Added truncation and "Show more" button for long notes
ref https://linear.app/ghost/issue/AP-618/show-only-excerpts-for-very-long-notes-in-the-feed

- Notes can be pretty long and we used to show them in their entirety, so they could take up a large chunk of the viewport. Now we're limiting the displayed text in notes to 10 lines, and we show a "Show more" button to indicate there is more content.
2025-01-20 18:49:59 +00:00
Ghost CI
72dfb7e80c Merged v5.107.1 into main 2025-01-20 16:07:52 +00:00
Ghost CI
ff4545939c v5.107.1 2025-01-20 16:07:50 +00:00
Sag
77af93be6a 🔒 Blocked spammy email domains in member signups (#22027)
ref https://linear.app/ghost/issue/ONC-721
ref https://app.incident.io/ghost/incidents/132

- added a blocklist at the email domain level for free member signups
- for example, if `blocked-domain.com` is blocked,
`thomas@blocked-domain.com` cannot sign up as free member
- the blocklist is configurable: `"spam.blocked_email_domains":
["blocked-domain.com"]`
2025-01-20 10:50:17 -05:00
Sag
970741cf5d
🔒 Blocked spammy email domains in member signups (#22027)
ref https://linear.app/ghost/issue/ONC-721
ref https://app.incident.io/ghost/incidents/132

- added a blocklist at the email domain level for free member signups
- for example, if `blocked-domain.com` is blocked,
`thomas@blocked-domain.com` cannot sign up as free member
- the blocklist is configurable: `"spam.blocked_email_domains":
["blocked-domain.com"]`
2025-01-20 22:12:55 +07:00
Peter Zimon
e1f5ff1533
Shade updates (#22025)
ref
https://linear.app/ghost/issue/DES-1022/overview-tab-for-post-analytics

- A static version of a React-only Post analytics page needed to be
worked out to learn how Charts, Tabs, Sidebars etc. work in Shade. This
also is a basis for learning more about React patterns.
2025-01-20 12:56:21 +00:00
Ghost CI
4d93defea0 v5.107.0 2025-01-17 15:07:43 +00:00
Michael Barrett
026bb8ffbf
Updated search results account type in admin-x-activitypub (#22021)
no refs

Updated the search results account type in the admin-x-activitypub to
match the updated API response
2025-01-16 21:02:02 +00:00