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

40023 commits

Author SHA1 Message Date
Hannah Wolfe
46ca8778b9
Switched tinybird tracker to use localstorage (#21761)
closes https://linear.app/ghost/issue/ANAL-88/go-cookie-less

- This is still an experimental feature
- Using localstorage removes the need for a session cookie
- This in turn removes the need to have a cookie banner
2024-11-28 21:27:30 +00:00
Djordje Vlaisavljevic
f65f5b1426
Made drawer view for Articles wider for easier reading (#21760)
ref https://linear.app/ghost/issue/AP-613/make-drawer-wider-when-displaying-articles-on-larger-screens

- The drawer view for viewing Articles was only slightly wider than the
one for viewing Posts. Since we've decided to make a bigger separation
between these 2 types of post, we wanted to make the drawer almost full
width (excluding the main navigation sidebar).
- This also removes the backdrop from drawer view so the interaction
would be lighter.
- To achieve this we're adding another CSS breakpoint so it would match
the one used in Admin. We didn’t have one since our DS was mostly used
in isolation in Settings.
2024-11-28 19:08:03 +00:00
Djordje Vlaisavljevic
a8a1095910 Cleaned up stylesheet used to display ActivityPub Articles
close https://linear.app/ghost/issue/AP-574/clean-up-iframe-css

- When we began working on ActivityPub integration, we reused the styles from our default Source theme and added default Ghost card styles. This meant we could quickly have nice-looking posts in the admin, but also meant we have some unnecessary lines of CSS. This is now cleane up, resulting in a ~40% smaller file.
2024-11-28 16:27:10 +00:00
Djordje Vlaisavljevic
772e22c5f8 Updated hover state for 'back' button
ref https://linear.app/ghost/issue/AP-599/make-hover-and-click-states-for-buttons-consistent

- 'Back' button in the drawer was missing the hover state we're using for other icon buttons. Now it's consistent with the rest.
2024-11-28 16:27:10 +00:00
Djordje Vlaisavljevic
40adb28f28 Turned off autocomplete in Search input field
close https://linear.app/ghost/issue/AP-612/autofill-appears-in-searchfield

- Safari autocompletes our Search field because it mentions the word 'username' in the placeholder text, but we don't want that as users don't really want to search for their own usernames.
2024-11-28 16:27:10 +00:00
Daniel Lockyer
f6d774ee93 Removed Lexical multiplayer experiment
fix https://linear.app/ghost/issue/ENG-1804/remove-lexicalmultiplayer-code

- this experiment never went anywhere and we'll probably change our plan
  in the future, so this commit cleans up all the relevant code in this
  repo for the feature, in order to cut down on the code we have
2024-11-28 16:00:10 +01:00
Daniël van der Winden
6fb5047601
Updated Dutch translation for "Comment"-button in newsletters (#21757)
The Dutch translation of the "Comment"-button in newsletters was very
formal. This new translation improves that, and more closely matches
Ghost's tone of voice.
2024-11-28 15:56:14 +01:00
Djordje Vlaisavljevic
355f361b64
Updated font sizes and colors for better hierarchy (#21755)
ref https://linear.app/ghost/issue/AP-609/give-inbox-ui-more-room-to-breathe

- Posts in the inbox view used the same font colors and sizes for
elements of different importance. Now the contrast and hierarchy of
elements is improved which makes it easier to browse the posts.
- Larger border radius on hover better fits the size of posts.
2024-11-28 14:26:36 +00:00
Djordje Vlaisavljevic
894e1ed798
Improved posts design and icon button hover states (#21754)
close https://linear.app/ghost/issue/AP-599/make-hover-and-click-states-for-buttons-consistent, https://linear.app/ghost/issue/AP-616/improve-feed-view-design

- Updated design for posts shown in the feed, reply and drawer views
- Consistent hover and click states for icon buttons
- Fixed inbox view posts overlapping with the sidebar suggestions
2024-11-28 13:47:56 +00:00
Princi Vershwal
6a70ba8895
Moved staff2fa flag to BETA_FEATURES (#21749)
Closes https://linear.app/ghost/issue/ENG-1800/move-staff2fa-to-beta-features-and-disable-developer-experiments

Currently we have this flag in ALPHA_FEATURES. We want to enable 2fa for selected sites but we would want to disable developer experiments for them, so they don't see the UI and enable random things.
2024-11-28 12:13:59 +00:00
Daniel Lockyer
0f5fb0a2f5 Moved importMemberTier to beta status
ref https://linear.app/ghost/issue/ENG-1802/move-importmembertier-to-beta

- this allows us to enable the flag without needing developer
  experiments enabled, which is useful for Concierge whilst we're still
  wanting to keep it in GA
2024-11-28 12:34:06 +01:00
Ghost CI
f705e7df62 Merged v5.101.5 into main 2024-11-28 11:15:33 +00:00
Ghost CI
eaa6187e8f v5.101.5 2024-11-28 11:15:31 +00:00
Ronald Langeveld
4d8c3ff25d Removed blocking tests (#21747)
ref https://ghost.slack.com/archives/C02G9E68C/p1732783603483239

- Need to create a patch release, however this test is suddenly failing.
- Fails at  const fileChooserPromise = page.waitForEvent('filechooser');
- reason is not clear, however, cannot reproduce.
2024-11-28 17:47:31 +08:00
Daniël van der Winden
30a0018c15
🐛 Fixed unclear newsletter (un)subscribe modal (#21739)
fixes
https://linear.app/ghost/issue/DES-953/newsletter-unsubscribe-modal-is-unclear-leading-to-repeated

Previously, when clicking 'Unsubscribe' in an email, landing on this
modal it was unclear what had just happened if you didn't read the text
below the title, causing people to click the toggles repeatedly.

We've now added a toast notification to make it clear what has just happened,
and if you click the toggles, the notification also shows.

Ideally, we'd be able to stack these notifications in case you hit
multiple toggles in quick succession, but that's going to be a separate
issue, as—to achieve that—it needs to be rewritten more significantly.

---------

Co-authored-by: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
2024-11-28 10:42:43 +01:00
Daniel Lockyer
cd7f8fbba4 Removed old activitypub flag
- we have another flag with a different casing and that's the one that
  is used, so `activitypub` can be deleted
2024-11-28 10:40:19 +01:00
renovate[bot]
0f483fd998 Update dependency @tryghost/koenig-lexical to v1.3.32 (#21745)
ref TryGhost/Koenig@5652bc6

This revert an issue that caused an extra tag in certain conditions in the rendering.
2024-11-28 17:38:40 +08:00
renovate[bot]
3aefb8951c
Update dependency @tryghost/koenig-lexical to v1.3.32 (#21745)
ref TryGhost/Koenig@5652bc6

This revert an issue that caused an extra tag in certain conditions in the rendering.
2024-11-28 09:25:18 +00:00
Ronald Langeveld
72125f352b
Removed blocking tests (#21747)
ref https://ghost.slack.com/archives/C02G9E68C/p1732783603483239

- Need to create a patch release, however this test is suddenly failing.
- Fails at  const fileChooserPromise = page.waitForEvent('filechooser');
- reason is not clear, however, cannot reproduce.
2024-11-28 09:16:34 +00:00
Djordje Vlaisavljevic
60ff94943b
Improved inbox view UI (#21741)
ref
https://linear.app/ghost/issue/AP-609/give-inbox-ui-more-room-to-breathe

- Vertically centered feature image
- Timestamp next to the site title
- More consistent spacing in hover state
2024-11-27 13:11:56 +00:00
Sanne de Vries
029177fa69
Fixed delete button being clickable multiple times (#21736)
REF
https://linear.app/ghost/issue/PLG-287/fix-double-click-on-delete-button-impacting-comment-count
2024-11-27 12:43:30 +01:00
Daniel Lockyer
4b51942403 🐛 Fixed triggering wrong error for invalid client versions
fix https://linear.app/ghost/issue/ENG-1502/handle-malformed-client-versions-to-avoid-versionmismatcherror

- in the event we pass a client version that is invalid (ie, anything
  that doesn't resemble semver version), we currently throw a
  VersionMismatchError
- this is slightly misleading because although it is a version mismatch,
  it moreso that it's an invalid string to pass in this header
- to fix that, we can just use `validRange` from `semver` to detect
  this, and throw a BadRequestError with a meaningful error message
- this helps us detect whether the header is actually a version
  mismatch, or an invalid input
2024-11-27 11:52:45 +01:00
Sanne de Vries
52d15cf955
Updated comments spinner style for light mode sites (#21734)
REF
https://linear.app/ghost/issue/PLG-272/look-into-potential-spinner-regression
2024-11-27 10:55:40 +01:00
Đặng Ngọc Quảng
97591cba5e
🌐 Updated Vietnamese translations (#21726)
- Update some untranslated words in the comments.json file
2024-11-27 06:26:51 +00:00
Sag
a5af4c2516
Fixed redundant build steps in the custom-fonts package (#21733)
no issue
2024-11-27 04:38:20 +00:00
Kevin Ansfield
04f337e085 Fixed comments-ui tests not properly mocking actions on replies
no issue

- `MockedApi.browseComments` only worked on top-level comments, it couldn't find replies when passed `filter:'id:123'` such is used when liking and editing replies
- fixed missing get handler for fetching single comment via Admin API (used after showing a hidden comment)
- added `flattenComments` and `findCommentById` helper functions to facilitate easier finding of a comment or reply within the nested structure
- added tests for liking and hiding replies
2024-11-26 18:34:02 +00:00
Djordje Vlaisavljevic
d32955b21e
Made inbox view easier to scan through (#21729)
ref https://linear.app/ghost/issue/AP-609/give-inbox-ui-more-room-to-breathe

- Added more white space
- Made more lines of text for titles and excerpts visible
- Added estimated reading time
- Updated feature image size and position
2024-11-26 17:35:25 +00:00
Kevin Ansfield
cdea73b873 Refactored comments-ui admin moderation tests
no issue

- expanded e2e test behaviour to route Admin requests through our MockedApi instance so we have the same test experience for normal and admin comments requests
- extracted page route method bodies to enable request methods to be spied on
- updated admin moderation tests to properly use admin requests
2024-11-26 14:30:23 +00:00
Sanne de Vries
6c064b73e4
Fixed spinner being invisible in light mode (#21727)
REF
https://linear.app/ghost/issue/PLG-272/look-into-potential-spinner-regression
2024-11-26 14:00:23 +01:00
Sam Lord
5865bb576f Fixed invite test
Invited staff members no longer need to do a 2fa verification code on
the first sign-in
2024-11-26 12:04:53 +00:00
Sam Lord
28dba53f26 Bypass 2FA for accounts which haven't yet logged in
ref ENG-1681
2024-11-26 11:16:55 +00:00
Ronald Langeveld
781bfdd60f
Wired up admin api for hidden comments (#21724)
ref PLG-270

- Updated the getCommentByID service to filter out hidden and deleted
replies.
- Ensured all replies are loaded before applying the filter.
- Simplified logic to handle non-paginated routes by directly removing
unwanted replies.
- Wired up new Admin Endpoint that shows hidden replies but not deleted
replies.
- Updated comments-ui client
- Added unit tests for mocking apiClient event listeners.
- added eventlistener playwright tests to ensure it fires on UI clicks.
2024-11-26 16:56:17 +08:00
Yovko Lambrev
63c210199f
🌐 Bulgarian translation - ongoing updates and fixes (#21719)
no issue

- Some improvements to the previously translated strings
- Translations of newly introduced strings
2024-11-26 11:31:52 +08:00
Sanne de Vries
5b70c7d1d7
Improved vertical indentation alignment (#21718)
REF
https://linear.app/ghost/issue/PLG-275/improve-vertical-indentation-alignment
2024-11-25 14:39:17 +00:00
Sanne de Vries
5e42c3146d
Improved disabled state for "Add comment" button (#21717)
REF
https://linear.app/ghost/issue/PLG-281/change-button-to-being-disabled-without-input
2024-11-25 13:12:49 +00:00
Daniel Lockyer
6638c6fb8c Stopped deleting asset files before regenerating
fix https://linear.app/ghost/issue/ONC-619/remove-code-that-deletes-assets-before-regeneration-in-ghost

- in our asset minification code, we delete asset files before
  regenerating them
- on shared filesystems, we're seeing errors like `Unknown system error -116` where 116 is Stale NFS file handle
- this is probably happening because we delete files right before
  creating them, and maybe there is some distributed filesystem delay
  that's causing issues here
- to workaround that, we can just stop deleting the files, which means
  we can delete code (yay!)
2024-11-25 13:28:49 +01:00
Sanne de Vries
8371b6699f
Added confirmation popup for comment deletion (#21715)
REF
https://linear.app/ghost/issue/PLG-285/add-confirmation-modal-upon-comment-deletion
2024-11-25 12:04:31 +00:00
Sanne de Vries
2d9b593844
Added hover styles to comment context menus (#21714)
REF https://linear.app/ghost/issue/PLG-283/add-hover-state-to-menu-items
2024-11-25 11:41:10 +00:00
Sanne de Vries
1a0a36b64c
Changed click target for comment replied-to ref (#21713)
REF
https://linear.app/ghost/issue/PLG-282/change-click-target-for-replied-to-reference
2024-11-25 11:34:40 +00:00
Sanne de Vries
ac3467165d
Updated "Replied to comment" copy (#21711)
REF
https://linear.app/ghost/issue/PLG-278/update-replied-to-comment-copy
2024-11-25 11:10:00 +00:00
Kevin Ansfield
d204d67d1f Cleaned up comments-ui actions test setup duplication
no issue

- repeated use of the same init data made tests longer than they needed to be, especially as the number of tests grows
- added `initializeTest()` function to remove unnecessary duplication
2024-11-25 10:52:31 +00:00
Sanne de Vries
f06a766189
Replaced reply icon in comments-ui (#21710)
REF https://linear.app/ghost/issue/PLG-271/replace-reply-icon
2024-11-25 08:59:19 +00:00
Ronald Langeveld
253e596138
Reverting 2 commits (#21709)
no issue

- need to add an additional change.
2024-11-25 08:58:06 +00:00
Ronald Langeveld
6c3753f403
Bumped comments-ui to a new minor (#21708)
no issue

- Bumping to a new minor due to API changes.
2024-11-25 08:42:31 +00:00
Ronald Langeveld
31a80cf9b8
Fixed hidden/deleted replies in getCommentByID (#21707)
ref PLG-270

- Updated the getCommentByID service to filter out hidden and deleted
replies.
- Ensured all replies are loaded before applying the filter.
- Simplified logic to handle non-paginated routes by directly removing
unwanted replies.
- Wired up new Admin Endpoint that shows hidden replies but not deleted
replies.
- Updated comments-ui client.
2024-11-25 08:15:08 +00:00
Ghost CI
7cfb755bbd v5.101.4 2024-11-25 07:22:27 +00:00
Steve Larson
673e316580
🐛 Fixed unsubscribe all link in Portal sometimes failing (#21703)
ref https://linear.app/ghost/issue/ONC-613/

A little while back we changed to requiring a key when interacting with
member endpoints that are not authenticated. One request code path in
Portal was missed, causing some requests to fail. This should patch that
hole.
2024-11-24 01:10:25 +00:00
Steve Larson
588979e62f
Added Sentry logging in editor for incorrectly untitled slug values (#21682)
ref https://linear.app/ghost/issue/ONC-548/

We seem to occasionally get into a state where draft posts are stuck
with an untitled slug, which has been difficult to reproduce. It would
be helpful to gather some data on how frequently this is happening.
2024-11-23 00:25:18 +00:00
Steve Larson
7083bd0628
🐛 Fixed slug not always updating for draft posts (#21691)
ref https://linear.app/ghost/issue/ONC-548/

There have been reported cases of the editor not updating the slug for
draft posts. The logic should be as follows: for a draft post, if the
title was updated and we do not detect a custom slug, update it.

This got out of sync due to actions where the save was triggered but the
title onBlur effect (which updates the slug) was not triggered. This has
been resolved by evaluating the slug in the before save actions.
2024-11-23 00:24:17 +00:00
echobilisim3421
3277da7140
Updated Turkish translation in search.json (#21554)
no ref
2024-11-22 23:38:16 +00:00