Commit Graph

3293 Commits

Author SHA1 Message Date
Rishabh
8b381a1259 Updated gscan rules for video card
refs https://github.com/TryGhost/Team/issues/1229
2021-12-15 12:11:44 +05:30
Rishabh
4a31a9e847 Added refinements for video card
refs https://github.com/TryGhost/Team/issues/1229
2021-12-15 00:55:00 +05:30
Sam Lord
97c68dd388
Replace error handler middleware with @tryghost/mw-error-handler (#13879)
refs: https://github.com/TryGhost/Toolbox/issues/137

Extract error handling middleware and replace with a package.
2021-12-14 15:18:46 +00:00
Renovate Bot
d2737d35c4 Update dependency @tryghost/image-transform to v1.0.25 2021-12-14 13:51:28 +01:00
Renovate Bot
2e04e01eaf Update dependency @tryghost/minifier to v0.1.8 2021-12-14 13:51:09 +01:00
Renovate Bot
fd43f4aef2 Update dependency @tryghost/session-service to v0.1.35 2021-12-14 13:50:17 +01:00
Renovate Bot
82c404d20c Update dependency @tryghost/limit-service to v1.0.7 2021-12-14 13:49:56 +01:00
Renovate Bot
39ac5dbc8a Update dependency @tryghost/adapter-manager to v0.2.25 2021-12-14 13:49:37 +01:00
Renovate Bot
9f754a0a6b Update dependency @tryghost/package-json to v1.0.13 2021-12-14 13:49:15 +01:00
Sam Lord
76f06fae3c
Revert "Revert "Extract logging from DI patterns, only use @tryghost/logging package"" (#13884)
This reverts commit fa8c3ebe99.

Reverting the revert, which will allow us to fully switch to @tryghost/logging v2.
2021-12-14 11:22:39 +00:00
Renovate Bot
c67be15fe8 Update dependency postcss to v8.4.5 2021-12-14 08:44:43 +01:00
Daniel Lockyer
bedb73202f v4.29.0 2021-12-14 07:25:03 +00:00
Daniel Lockyer
c4a0b388ae v4.28.0 2021-12-13 16:58:05 +00:00
Thibaut Patel
8b03c97b1e Added gscan rules to validate the product card css
refs https://github.com/TryGhost/Team/issues/1245

- Ensures a warning is displayed when the theme doesn't include the default product card css and also doesn't style style the product card.
2021-12-13 16:29:04 +01:00
Thibaut Patel
2800f538bc Updated the product card classes
refs https://github.com/TryGhost/Team/issues/1245

- Removes dependency from the product card css to other cards' css
2021-12-13 16:13:57 +01:00
Daniel Lockyer
878c9bc944 Added resolution to pin @tryghost/logging to v2
no issue

- we've been battling an issue where we have multiple versions of the
  logging library running, which causes a problem with file rotation
- this package adds a resolution to v2 so we force the use of a single
  version within Ghost
2021-12-13 15:46:32 +01:00
renovate[bot]
f33250888e
Update dependency @tryghost/members-api to v2.8.6 (#13849)
no-issue

Refactor & fixes from @sam-lord 

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 15:52:31 +02:00
Fabien 'egg' O'Carroll
75c198349c
Added Before/After card rendering capabilities
refs https://github.com/TryGhost/Team/issues/1249

 - Initial version of rendering for the Before/After card from moi
 - Updates to the audio cards class names from Sanne
 - Fixes to the audio card thumbnail in emails from Sanne
 - Refactor of product card rendering from Thibaut
2021-12-13 15:31:14 +02:00
Rishabh
f237879251 Updated loop behavior for video player on theme
refs https://github.com/TryGhost/Team/issues/1229
2021-12-13 17:31:57 +05:30
renovate[bot]
7487d6e2e7
🐛 Allowed again the use of @partial-block in templates
refs https://github.com/TryGhost/gscan/issues/417

- The `@partial-block` handlebars directive was allowed in previous gscan versions until a regression
- Always allow using `@partial-block` as it never breaks the handlebars rendering

Co-authored-by:
- Thibaut Patel @tpatel 
- Renovate Bot <bot@renovateapp.com>
2021-12-13 12:49:50 +01:00
Rishabh
4205951f7a Added accent background color for default audio thumbnail
refs https://github.com/TryGhost/Team/issues/1230
2021-12-13 16:53:41 +05:30
Rishabh
58cdba41fa Added custom controls html for video player
refs https://github.com/TryGhost/Team/issues/1229
2021-12-13 13:29:56 +05:30
Renovate Bot
1efc403d9c
Update dependency luxon to v2.2.0 2021-12-13 02:19:05 +00:00
Renovate Bot
1c4b151cfc
Update dependency body-parser to v1.19.1 2021-12-10 20:24:28 +00:00
Kevin Ansfield
91393fcf0b Improved video thumbnail rendering and fixed loop behavior
refs https://github.com/TryGhost/Team/issues/1229

- bumped `@tryghost/kg-default-cards` with improved handling of thumbnail aspect ratio and a bugfix for the `loop` attribute on the `<video>` element
2021-12-10 18:37:55 +00:00
Renovate Bot
83a80d969b
Update dependency @sentry/node to v6.16.1 2021-12-10 16:01:48 +00:00
Daniel Lockyer
babc9ae2ee v4.27.2 2021-12-10 16:00:27 +00:00
Rishabh
3f70e3f204 Refined audio card rendering on frontend
refs https://github.com/TryGhost/Team/issues/1230

- updates payload attributes set by audio card in frontend template
- updates use of duration and post url link on audio card in email template
- updates parser plugin for audio card
- updates tests
2021-12-10 01:36:31 +05:30
Naz
5a150cc3b6 Removed duplicate snapshot initialization code
refs https://github.com/TryGhost/Toolbox/issues/158

- Allows for much smaller amount of code to configure a test to work with chai-jest-snapshots. They now work automatically for all regression tests and could be enabled for other suites by adding the "--require=./test/utils/snapshots.js" parameter in respective test:* package script
- Regenerated snapshot for authentication test as the naming structure
changed a little with the snapshot metadata being taken on a higher
level in the test (uses the suite name instead of a specific describe it
used to be called from)
2021-12-10 06:37:31 +13:00
Naz
3dfab7d682 Integrated chai-jest-snapshot
refs https://github.com/TryGhost/Toolbox/issues/129

- Minimal version of chai-jest-snapshot with property matcher support. It runs off the forked version of https://github.com/suchipi/chai-jest-snapshot
2021-12-09 22:20:54 +13:00
Renovate Bot
726ba687cd
Update dependency sanitize-html to v2.6.1 2021-12-08 19:11:06 +00:00
Kevin Ansfield
d4c110a55b Added first pass of video card rendering
refs https://github.com/TryGhost/Team/issues/1229

- bumped @tryghost/kg-default-cards that contains initial video card rendering
- added video card CSS file with basic style that prevents video element rendering larger than the content width (similar to default image styles in most themes)
2021-12-08 18:01:44 +00:00
Daniel Lockyer
b7c17ca439 v4.27.1 2021-12-08 16:02:08 +00:00
Daniel Lockyer
daed6f53fb v4.27.0 2021-12-08 15:38:07 +00:00
Renovate Bot
dd63acf95c Update dependency @sentry/node to v6.16.0 2021-12-08 14:43:05 +00:00
Daniel Lockyer
fa8c3ebe99 Revert "Extract logging from DI patterns, only use @tryghost/logging package"
This reverts commit 97451a93cb.
2021-12-08 14:28:41 +00:00
Peter Zimon
3a877253e6 Updated Twitter email card styles
Fixed media (image or video) spacing for Twitter embeds in emails on mobile sizes.

- bumped `@tryghost/kg-default-cards` to a fixed version
2021-12-08 14:22:53 +01:00
Kevin Ansfield
8e1a0e1f02 Added theme checks for alternative blockquote CSS class
refs https://github.com/TryGhost/Team/issues/1239

- bumped gscan to include a checks for `.kg-blockquote-alt` when the built-in `blockquote` CSS is disabled
2021-12-08 09:02:05 +00:00
Renovate Bot
7924a52cc2
Update metascraper to v5.25.5 2021-12-07 22:00:35 +00:00
renovate[bot]
c4e5e84ce8
Added the product card parser plugin
refs https://github.com/TryGhost/Team/issues/1245
2021-12-07 22:58:41 +01:00
renovate[bot]
78c4422615
Updated the product card rendering
refs https://github.com/TryGhost/Team/issues/1245

- Updated the markup to make it easier to style the card
2021-12-07 22:57:49 +01:00
Renovate Bot
1dd012d9f4
Update dependency multer to v1.4.4 2021-12-07 17:04:32 +00:00
Peter Zimon
990e7640e8 Refined Twitter embed card styles
Twitter cards in emails needed to be updated to look and work closer to an actual tweet.

- bumped `@tryghost/kg-default-cards` to a fixed version
2021-12-07 18:01:23 +01:00
renovate[bot]
16a73f7017
Added a first version of the product card frontend rendering
refs https://github.com/TryGhost/Team/issues/1233

- renders the card in the same way the Koenig editor does
2021-12-07 17:23:05 +01:00
Sanne de Vries
31cadeaad0 Updated audio card frontend rendering
Refs https://github.com/TryGhost/Team/issues/1230
2021-12-07 16:02:06 +00:00
Daniel Lockyer
0d8bc06fb9
Merged v4.26.1 into main
v4.26.1
2021-12-07 09:36:54 +00:00
Daniel Lockyer
dd5c5b7551 v4.26.1 2021-12-07 09:35:14 +00:00
Fabien egg O'Carroll
2a1eb3de88 Improved rendering for twitter newsletter embeds
refs https://github.com/TryGhost/Team/issues/1001

This also adds the missing alpha flag so that we can release this when
it's ready.
2021-12-07 11:23:54 +02:00
Sam Lord
97451a93cb
Extract logging from DI patterns, only use @tryghost/logging package
refs: https://github.com/TryGhost/Toolbox/issues/146

Switched to @tryghost/logging instead of passing around the library. The main sticking points of this change are jobs. When jobs are launched we don't want them to use a separate @tryghost/logging instance because they would start parallel rotation jobs. @tryghost/logging v2.x passes all logs to the parent process if run in a child process, so that we can use the same patterns in jobs and the rest of the codebase.
2021-12-06 18:00:55 +00:00
Daniel Lockyer
5d191e90b9 v4.26.0 2021-12-06 13:29:21 +00:00