diff --git a/frontend/playwright/data/workspace/get-file-9056_main.json b/frontend/playwright/data/workspace/get-file-9056_main.json new file mode 100644 index 000000000..933bbed89 --- /dev/null +++ b/frontend/playwright/data/workspace/get-file-9056_main.json @@ -0,0 +1,58 @@ +{ + "~:features": { + "~#set": [ + "layout/grid", + "styles/v2", + "fdata/pointer-map", + "fdata/objects-map", + "components/v2", + "fdata/shape-data-type" + ] + }, + "~:permissions": { + "~:type": "~:membership", + "~:is-owner": true, + "~:is-admin": true, + "~:can-edit": true, + "~:can-read": true, + "~:is-logged": true + }, + "~:has-media-trimmed": false, + "~:comment-thread-seqn": 0, + "~:name": "import component", + "~:revn": 6, + "~:modified-at": "~m1730384055106", + "~:vern": 0, + "~:id": "~u3622460c-3408-81e2-8005-2fd0e55888b7", + "~:is-shared": false, + "~:version": 56, + "~:project-id": "~u3622460c-3408-81e2-8005-2fc9059741e0", + "~:created-at": "~m1730103423332", + "~:data": { + "~:pages": [ + "~u3622460c-3408-81e2-8005-2fd0e55888b8" + ], + "~:pages-index": { + "~u3622460c-3408-81e2-8005-2fd0e55888b8": { + "~#penpot/pointer": [ + "~u6777aca0-5737-8169-8005-33b3eb8de897", + { + "~:created-at": "~m1730364262967" + } + ] + } + }, + "~:id": "~u3622460c-3408-81e2-8005-2fd0e55888b7", + "~:options": { + "~:components-v2": true + }, + "~:components": { + "~#penpot/pointer": [ + "~u6777aca0-5737-8169-8005-33b1ab0bcf8a", + { + "~:created-at": "~m1730363672623" + } + ] + } + } +} diff --git a/frontend/playwright/data/workspace/get-file-9056_shared.json b/frontend/playwright/data/workspace/get-file-9056_shared.json new file mode 100644 index 000000000..14638e7d0 --- /dev/null +++ b/frontend/playwright/data/workspace/get-file-9056_shared.json @@ -0,0 +1,60 @@ +{ + "~:features": { + "~#set": [ + "layout/grid", + "styles/v2", + "fdata/pointer-map", + "fdata/objects-map", + "components/v2", + "fdata/shape-data-type" + ] + }, + "~:permissions": { + "~:type": "~:membership", + "~:is-owner": true, + "~:is-admin": true, + "~:can-edit": true, + "~:can-read": true, + "~:is-logged": true + }, + "~:has-media-trimmed": true, + "~:comment-thread-seqn": 0, + "~:name": "published component", + "~:data-ref-id": "~u31c32f2e-cb47-46ee-97ac-47092ff754fc", + "~:revn": 3, + "~:modified-at": "~m1730103592325", + "~:vern": 0, + "~:id": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:data-backend": "objects-storage", + "~:is-shared": true, + "~:version": 56, + "~:project-id": "~u3622460c-3408-81e2-8005-2fc9059741e0", + "~:created-at": "~m1730101410834", + "~:data": { + "~:pages": [ + "~u3622460c-3408-81e2-8005-2fc938010234" + ], + "~:pages-index": { + "~u3622460c-3408-81e2-8005-2fc938010234": { + "~#penpot/pointer": [ + "~u3622460c-3408-81e2-8005-31859c15ff90", + { + "~:created-at": "~m1730217905239" + } + ] + } + }, + "~:id": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:options": { + "~:components-v2": true + }, + "~:components": { + "~#penpot/pointer": [ + "~u3622460c-3408-81e2-8005-31859c15ff91", + { + "~:created-at": "~m1730217905239" + } + ] + } + } +} diff --git a/frontend/playwright/data/workspace/get-file-fragment-9056_main-1.json b/frontend/playwright/data/workspace/get-file-fragment-9056_main-1.json new file mode 100644 index 000000000..c6b6eb4c6 --- /dev/null +++ b/frontend/playwright/data/workspace/get-file-fragment-9056_main-1.json @@ -0,0 +1,6 @@ +{ + "~:id": "~u6777aca0-5737-8169-8005-33b1ab0bcf8a", + "~:file-id": "~u3622460c-3408-81e2-8005-2fd0e55888b7", + "~:created-at": "~m1730363672596", + "~:data": {} +} diff --git a/frontend/playwright/data/workspace/get-file-fragment-9056_main-2.json b/frontend/playwright/data/workspace/get-file-fragment-9056_main-2.json new file mode 100644 index 000000000..0265c2fb7 --- /dev/null +++ b/frontend/playwright/data/workspace/get-file-fragment-9056_main-2.json @@ -0,0 +1,278 @@ +{ + "~:id": "~u6777aca0-5737-8169-8005-33b3eb8de897", + "~:file-id": "~u3622460c-3408-81e2-8005-2fd0e55888b7", + "~:created-at": "~m1730364262925", + "~:data": { + "~:options": {}, + "~:objects": { + "~u00000000-0000-0000-0000-000000000000": { + "~#shape": { + "~:y": 0, + "~:hide-fill-on-export": false, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:name": "Root Frame", + "~:width": 0.01, + "~:type": "~:frame", + "~:points": [ + { + "~#point": { + "~:x": 0.0, + "~:y": 0.0 + } + }, + { + "~#point": { + "~:x": 0.01, + "~:y": 0.0 + } + }, + { + "~#point": { + "~:x": 0.01, + "~:y": 0.01 + } + }, + { + "~#point": { + "~:x": 0.0, + "~:y": 0.01 + } + } + ], + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:id": "~u00000000-0000-0000-0000-000000000000", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:strokes": [], + "~:x": 0, + "~:proportion": 1.0, + "~:selrect": { + "~#rect": { + "~:x": 0, + "~:y": 0, + "~:width": 0.01, + "~:height": 0.01, + "~:x1": 0, + "~:y1": 0, + "~:x2": 0.01, + "~:y2": 0.01 + } + }, + "~:fills": [ + { + "~:fill-color": "#FFFFFF", + "~:fill-opacity": 1 + } + ], + "~:flip-x": null, + "~:height": 0.01, + "~:flip-y": null, + "~:shapes": [ + "~u2e0995e6-d90f-80ed-8005-2fd17ece8809" + ] + } + }, + "~u2e0995e6-d90f-80ed-8005-2fd17ece8809": { + "~#shape": { + "~:y": 221, + "~:hide-fill-on-export": false, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:hide-in-viewer": true, + "~:name": "Rectangle", + "~:width": 237, + "~:type": "~:frame", + "~:points": [ + { + "~#point": { + "~:x": 234, + "~:y": 221 + } + }, + { + "~#point": { + "~:x": 471, + "~:y": 221 + } + }, + { + "~#point": { + "~:x": 471, + "~:y": 382 + } + }, + { + "~#point": { + "~:x": 234, + "~:y": 382 + } + } + ], + "~:component-root": true, + "~:shape-ref": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:show-content": true, + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd17ece8809", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:component-id": "~u2e0995e6-d90f-80ed-8005-2fd0c20489ce", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:strokes": [], + "~:x": 234, + "~:proportion": 1, + "~:selrect": { + "~#rect": { + "~:x": 234, + "~:y": 221, + "~:width": 237, + "~:height": 161, + "~:x1": 234, + "~:y1": 221, + "~:x2": 471, + "~:y2": 382 + } + }, + "~:fills": [], + "~:flip-x": null, + "~:height": 161, + "~:component-file": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:flip-y": null, + "~:shapes": [ + "~u2e0995e6-d90f-80ed-8005-2fd17ece880a" + ] + } + }, + "~u2e0995e6-d90f-80ed-8005-2fd17ece880a": { + "~#shape": { + "~:y": 221, + "~:rx": 0, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:grow-type": "~:fixed", + "~:hide-in-viewer": false, + "~:name": "Rectangle", + "~:width": 237, + "~:type": "~:rect", + "~:points": [ + { + "~#point": { + "~:x": 234, + "~:y": 221 + } + }, + { + "~#point": { + "~:x": 471, + "~:y": 221 + } + }, + { + "~#point": { + "~:x": 471, + "~:y": 382 + } + }, + { + "~#point": { + "~:x": 234, + "~:y": 382 + } + } + ], + "~:shape-ref": "~u2e0995e6-d90f-80ed-8005-2fd0bd35e183", + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:constraints-v": "~:scale", + "~:constraints-h": "~:scale", + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd17ece880a", + "~:parent-id": "~u2e0995e6-d90f-80ed-8005-2fd17ece8809", + "~:frame-id": "~u2e0995e6-d90f-80ed-8005-2fd17ece8809", + "~:strokes": [], + "~:x": 234, + "~:proportion": 1, + "~:selrect": { + "~#rect": { + "~:x": 234, + "~:y": 221, + "~:width": 237, + "~:height": 161, + "~:x1": 234, + "~:y1": 221, + "~:x2": 471, + "~:y2": 382 + } + }, + "~:fills": [ + { + "~:fill-color": "#B1B2B5", + "~:fill-opacity": 1 + } + ], + "~:flip-x": null, + "~:ry": 0, + "~:height": 161, + "~:flip-y": null + } + } + }, + "~:id": "~u3622460c-3408-81e2-8005-2fd0e55888b8", + "~:name": "Page 1", + "~:background": "#e8e9ea" + } +} diff --git a/frontend/playwright/data/workspace/get-file-fragment-9056_shared-1.json b/frontend/playwright/data/workspace/get-file-fragment-9056_shared-1.json new file mode 100644 index 000000000..592241e95 --- /dev/null +++ b/frontend/playwright/data/workspace/get-file-fragment-9056_shared-1.json @@ -0,0 +1,17 @@ +{ + "~:id": "~u3622460c-3408-81e2-8005-31859c15ff91", + "~:file-id": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:created-at": "~m1730217905213", + "~:data-backend": "objects-storage", + "~:data-ref-id": "~u1deef485-f8be-4a16-bd69-436e298bdfa7", + "~:data": { + "~u2e0995e6-d90f-80ed-8005-2fd0c20489ce": { + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd0c20489ce", + "~:name": "Rectangle", + "~:path": "", + "~:modified-at": "~m1730103592327", + "~:main-instance-id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:main-instance-page": "~u3622460c-3408-81e2-8005-2fc938010234" + } + } +} diff --git a/frontend/playwright/data/workspace/get-file-fragment-9056_shared-2.json b/frontend/playwright/data/workspace/get-file-fragment-9056_shared-2.json new file mode 100644 index 000000000..dccf9101d --- /dev/null +++ b/frontend/playwright/data/workspace/get-file-fragment-9056_shared-2.json @@ -0,0 +1,278 @@ +{ + "~:id": "~u3622460c-3408-81e2-8005-31859c15ff90", + "~:file-id": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:created-at": "~m1730217905213", + "~:data-backend": "objects-storage", + "~:data-ref-id": "~u4c8075b8-53ce-486a-b6ca-22ad32b838db", + "~:data": { + "~:options": {}, + "~:objects": { + "~u00000000-0000-0000-0000-000000000000": { + "~#shape": { + "~:y": 0, + "~:hide-fill-on-export": false, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:name": "Root Frame", + "~:width": 0.01, + "~:type": "~:frame", + "~:points": [ + { + "~#point": { + "~:x": 0.0, + "~:y": 0.0 + } + }, + { + "~#point": { + "~:x": 0.01, + "~:y": 0.0 + } + }, + { + "~#point": { + "~:x": 0.01, + "~:y": 0.01 + } + }, + { + "~#point": { + "~:x": 0.0, + "~:y": 0.01 + } + } + ], + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:id": "~u00000000-0000-0000-0000-000000000000", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:strokes": [], + "~:x": 0, + "~:proportion": 1.0, + "~:selrect": { + "~#rect": { + "~:x": 0, + "~:y": 0, + "~:width": 0.01, + "~:height": 0.01, + "~:x1": 0, + "~:y1": 0, + "~:x2": 0.01, + "~:y2": 0.01 + } + }, + "~:fills": [ + { + "~:fill-color": "#FFFFFF", + "~:fill-opacity": 1 + } + ], + "~:flip-x": null, + "~:height": 0.01, + "~:flip-y": null, + "~:shapes": [ + "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a" + ] + } + }, + "~u2e0995e6-d90f-80ed-8005-2fd0bd35e183": { + "~#shape": { + "~:y": 214, + "~:rx": 0, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:grow-type": "~:fixed", + "~:hide-in-viewer": false, + "~:name": "Rectangle", + "~:width": 237, + "~:type": "~:rect", + "~:points": [ + { + "~#point": { + "~:x": 238, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 375 + } + }, + { + "~#point": { + "~:x": 238, + "~:y": 375 + } + } + ], + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:constraints-v": "~:scale", + "~:constraints-h": "~:scale", + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd0bd35e183", + "~:parent-id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:frame-id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:strokes": [], + "~:x": 238, + "~:proportion": 1, + "~:selrect": { + "~#rect": { + "~:x": 238, + "~:y": 214, + "~:width": 237, + "~:height": 161, + "~:x1": 238, + "~:y1": 214, + "~:x2": 475, + "~:y2": 375 + } + }, + "~:fills": [ + { + "~:fill-color": "#3656b4", + "~:fill-opacity": 1 + } + ], + "~:flip-x": null, + "~:ry": 0, + "~:height": 161, + "~:flip-y": null + } + }, + "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a": { + "~#shape": { + "~:y": 214, + "~:hide-fill-on-export": false, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:hide-in-viewer": true, + "~:name": "Rectangle", + "~:width": 237, + "~:type": "~:frame", + "~:points": [ + { + "~#point": { + "~:x": 238, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 375 + } + }, + { + "~#point": { + "~:x": 238, + "~:y": 375 + } + } + ], + "~:component-root": true, + "~:show-content": true, + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:component-id": "~u2e0995e6-d90f-80ed-8005-2fd0c20489ce", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:strokes": [], + "~:x": 238, + "~:main-instance": true, + "~:proportion": 1, + "~:selrect": { + "~#rect": { + "~:x": 238, + "~:y": 214, + "~:width": 237, + "~:height": 161, + "~:x1": 238, + "~:y1": 214, + "~:x2": 475, + "~:y2": 375 + } + }, + "~:fills": [], + "~:flip-x": null, + "~:height": 161, + "~:component-file": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:flip-y": null, + "~:shapes": [ + "~u2e0995e6-d90f-80ed-8005-2fd0bd35e183" + ] + } + } + }, + "~:id": "~u3622460c-3408-81e2-8005-2fc938010234", + "~:name": "Page 1" + } +} diff --git a/frontend/playwright/data/workspace/get-file-libraries-9056.json b/frontend/playwright/data/workspace/get-file-libraries-9056.json new file mode 100644 index 000000000..ff04fb53b --- /dev/null +++ b/frontend/playwright/data/workspace/get-file-libraries-9056.json @@ -0,0 +1,23 @@ +[ + { + "~:features": { + "~#set": [ + "layout/grid", + "styles/v2", + "fdata/pointer-map", + "fdata/objects-map", + "components/v2", + "fdata/shape-data-type" + ] + }, + "~:is-indirect": false, + "~:name": "published component", + "~:revn": 3, + "~:modified-at": "~m1730103592325", + "~:vern": 0, + "~:id": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:project-id": "~u3622460c-3408-81e2-8005-2fc9059741e0", + "~:synced-at": "~m1730103575856", + "~:created-at": "~m1730101410834" + } +] diff --git a/frontend/playwright/data/workspace/get-team-shared-files-9056.json b/frontend/playwright/data/workspace/get-team-shared-files-9056.json new file mode 100644 index 000000000..797b550b3 --- /dev/null +++ b/frontend/playwright/data/workspace/get-team-shared-files-9056.json @@ -0,0 +1,221 @@ +{ + "~#set": [ + { + "~:name": "published component", + "~:revn": 3, + "~:modified-at": "~m1730103592325", + "~:vern": 0, + "~:thumbnail-uri": "http://localhost:3449/assets/by-id/878a76a2-6235-4541-ba8a-d4f17cf5253c", + "~:id": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:is-shared": true, + "~:project-id": "~u3622460c-3408-81e2-8005-2fc9059741e0", + "~:created-at": "~m1730101410834", + "~:library-summary": { + "~:components": { + "~:count": 1, + "~:sample": [ + { + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd0c20489ce", + "~:name": "Rectangle", + "~:path": "", + "~:modified-at": "~m1730103592327", + "~:main-instance-id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:main-instance-page": "~u3622460c-3408-81e2-8005-2fc938010234", + "~:objects": { + "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a": { + "~#shape": { + "~:y": 214, + "~:hide-fill-on-export": false, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:hide-in-viewer": true, + "~:name": "Rectangle", + "~:width": 237, + "~:type": "~:frame", + "~:points": [ + { + "~#point": { + "~:x": 238, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 375 + } + }, + { + "~#point": { + "~:x": 238, + "~:y": 375 + } + } + ], + "~:component-root": true, + "~:show-content": true, + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:component-id": "~u2e0995e6-d90f-80ed-8005-2fd0c20489ce", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:strokes": [], + "~:x": 238, + "~:main-instance": true, + "~:proportion": 1, + "~:selrect": { + "~#rect": { + "~:x": 238, + "~:y": 214, + "~:width": 237, + "~:height": 161, + "~:x1": 238, + "~:y1": 214, + "~:x2": 475, + "~:y2": 375 + } + }, + "~:fills": [], + "~:flip-x": null, + "~:height": 161, + "~:component-file": "~u3622460c-3408-81e2-8005-2fc938010233", + "~:flip-y": null, + "~:shapes": [ + "~u2e0995e6-d90f-80ed-8005-2fd0bd35e183" + ] + } + }, + "~u2e0995e6-d90f-80ed-8005-2fd0bd35e183": { + "~#shape": { + "~:y": 214, + "~:rx": 0, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:grow-type": "~:fixed", + "~:hide-in-viewer": false, + "~:name": "Rectangle", + "~:width": 237, + "~:type": "~:rect", + "~:points": [ + { + "~#point": { + "~:x": 238, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 214 + } + }, + { + "~#point": { + "~:x": 475, + "~:y": 375 + } + }, + { + "~#point": { + "~:x": 238, + "~:y": 375 + } + } + ], + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:constraints-v": "~:scale", + "~:constraints-h": "~:scale", + "~:id": "~u2e0995e6-d90f-80ed-8005-2fd0bd35e183", + "~:parent-id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:frame-id": "~u2e0995e6-d90f-80ed-8005-2fd0c2033a5a", + "~:strokes": [], + "~:x": 238, + "~:proportion": 1, + "~:selrect": { + "~#rect": { + "~:x": 238, + "~:y": 214, + "~:width": 237, + "~:height": 161, + "~:x1": 238, + "~:y1": 214, + "~:x2": 475, + "~:y2": 375 + } + }, + "~:fills": [ + { + "~:fill-color": "#3656b4", + "~:fill-opacity": 1 + } + ], + "~:flip-x": null, + "~:ry": 0, + "~:height": 161, + "~:flip-y": null + } + } + } + } + ] + }, + "~:media": { + "~:count": 0, + "~:sample": [] + }, + "~:colors": { + "~:count": 0, + "~:sample": [] + }, + "~:typographies": { + "~:count": 0, + "~:sample": [] + } + } + } + ] +} diff --git a/frontend/playwright/ui/specs/workspace-shared-library.spec.js b/frontend/playwright/ui/specs/workspace-shared-library.spec.js new file mode 100644 index 000000000..89c53cb7c --- /dev/null +++ b/frontend/playwright/ui/specs/workspace-shared-library.spec.js @@ -0,0 +1,74 @@ +import { test, expect } from "@playwright/test"; +import { WorkspacePage } from "../pages/WorkspacePage"; + +const mainFileId = "3622460c-3408-81e2-8005-2fd0e55888b7"; +const sharedFileId = "3622460c-3408-81e2-8005-2fc938010233"; + +const mainPageId = "3622460c-3408-81e2-8005-2fd0e55888b8"; + +const mainFileFragmentId1 = "6777aca0-5737-8169-8005-33b1ab0bcf8a"; +const mainFileFragmentId2 = "6777aca0-5737-8169-8005-33b3eb8de897"; + +const sharedFileFragmentId1 = "3622460c-3408-81e2-8005-31859c15ff91"; +const sharedFileFragmentId2 = "3622460c-3408-81e2-8005-31859c15ff90"; + +test.beforeEach(async ({ page }) => { + await WorkspacePage.init(page); +}); + +// Fix for https://tree.taiga.io/project/penpot/issue/9042 +test("Bug 9056 - 'More info' doesn't open the update tab", async ({ page }) => { + const workspacePage = new WorkspacePage(page); + await workspacePage.setupEmptyFile(page); + + await workspacePage.mockRPC( + /get\-file\?id=3622460c-3408-81e2-8005-2fd0e55888b7/, + "workspace/get-file-9056_main.json", + ); + + await workspacePage.mockRPC( + /get\-file\?id=3622460c-3408-81e2-8005-2fc938010233/, + "workspace/get-file-9056_shared.json", + ); + + await workspacePage.mockRPC( + "get-file-libraries?file-id=*", + "workspace/get-file-libraries-9056.json", + ); + + await workspacePage.mockRPC( + `get-file-fragment?file-id=${mainFileId}&fragment-id=${mainFileFragmentId1}`, + "workspace/get-file-fragment-9056_main-1.json", + ); + + await workspacePage.mockRPC( + `get-file-fragment?file-id=${mainFileId}&fragment-id=${mainFileFragmentId2}`, + "workspace/get-file-fragment-9056_main-2.json", + ); + + await workspacePage.mockRPC( + `get-file-fragment?file-id=${sharedFileId}&fragment-id=${sharedFileFragmentId1}`, + "workspace/get-file-fragment-9056_shared-1.json", + ); + + await workspacePage.mockRPC( + `get-file-fragment?file-id=${sharedFileId}&fragment-id=${sharedFileFragmentId2}`, + "workspace/get-file-fragment-9056_shared-2.json", + ); + + await workspacePage.goToWorkspace({ + fileId: mainFileId, + pageId: mainPageId, + }); + + await workspacePage.mockRPC( + "get-team-shared-files?team-id=*", + "workspace/get-team-shared-files-9056.json", + ); + + await page.getByRole("button", { name: "More info" }).click(); + + await expect(page.getByRole("tabpanel", { name: "UPDATES" })).toHaveText( + /library updates/i, + ); +}); diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index bbab33734..e04b4dfb2 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -1129,7 +1129,7 @@ ignore-until (dm/get-in state [:workspace-file :ignore-sync-until]) libraries-need-sync (filter #(seq (assets-need-sync % file-data ignore-until)) (vals (get state :workspace-libraries))) - do-more-info #(modal/show! :libraries-dialog {:starting-tab :updates}) + do-more-info #(modal/show! :libraries-dialog {:starting-tab "updates"}) do-update #(do (apply st/emit! (map (fn [library] (sync-file (:current-file-id state) (:id library)))