From f7323c065a086533ce8c7f0f0cb3f69a80539992 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 26 Apr 2025 15:03:05 +0200 Subject: [feature] Update attachment format, receive + send `focalPoint` prop + use it on the frontend (#4052) * [feature] Update attachment format, receive + send `focalPoint` prop + use it on the frontend * whoops * boop * restore function signature of ExtractAttachments --- internal/typeutils/internaltofrontend_test.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'internal/typeutils/internaltofrontend_test.go') diff --git a/internal/typeutils/internaltofrontend_test.go b/internal/typeutils/internaltofrontend_test.go index da83e4e55..cd0ffb1f6 100644 --- a/internal/typeutils/internaltofrontend_test.go +++ b/internal/typeutils/internaltofrontend_test.go @@ -553,8 +553,8 @@ func (suite *InternalToFrontendTestSuite) TestStatusToFrontend() { "aspect": 1.9104477 }, "focus": { - "x": 0, - "y": 0 + "x": -0.5, + "y": 0.5 } }, "description": "Black and white image of some 50's style text saying: Welcome On Board", @@ -701,8 +701,8 @@ func (suite *InternalToFrontendTestSuite) TestStatusToFrontendHTMLContentWarning "aspect": 1.9104477 }, "focus": { - "x": 0, - "y": 0 + "x": -0.5, + "y": 0.5 } }, "description": "Black and white image of some 50's style text saying: Welcome On Board", @@ -851,8 +851,8 @@ func (suite *InternalToFrontendTestSuite) TestStatusToFrontendApplicationDeleted "aspect": 1.9104477 }, "focus": { - "x": 0, - "y": 0 + "x": -0.5, + "y": 0.5 } }, "description": "Black and white image of some 50's style text saying: Welcome On Board", @@ -1032,8 +1032,8 @@ func (suite *InternalToFrontendTestSuite) TestWarnFilteredStatusToFrontend() { "aspect": 1.9104477 }, "focus": { - "x": 0, - "y": 0 + "x": -0.5, + "y": 0.5 } }, "description": "Black and white image of some 50's style text saying: Welcome On Board", @@ -1218,8 +1218,8 @@ func (suite *InternalToFrontendTestSuite) TestWarnFilteredBoostToFrontend() { "aspect": 1.9104477 }, "focus": { - "x": 0, - "y": 0 + "x": -0.5, + "y": 0.5 } }, "description": "Black and white image of some 50's style text saying: Welcome On Board", @@ -1955,8 +1955,8 @@ func (suite *InternalToFrontendTestSuite) TestStatusToFrontendUnknownLanguage() "aspect": 1.9104477 }, "focus": { - "x": 0, - "y": 0 + "x": -0.5, + "y": 0.5 } }, "description": "Black and white image of some 50's style text saying: Welcome On Board", -- cgit v1.2.3