:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(deployments): UX prototype for new Deployments product (#58488)
Richard Solomouef65004ec78c
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex e94fff1acbfa..98a66ae14e12 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -4046,6 +4046,26 @@ snapshots:hash: v1.k794b7964.8a77e7a0171fcd435c6595297bf027b8f0a241439ee5921ba1e98ac8989fde19.heCouatVYmHaFYRqmD6XBpq_K1abbgOOnCJSBR9O1okscenes-app-data-warehouse-settings-schemas--default--light:hash: v1.k794b7964.f44aebec23a383bf47c5310e229767e329dc9a52d220851265c86e2531dfd8f6.cg8SBdNPjYob5gTIonGhj0QupXWDzvTSG73043B7QEk+ scenes-app-deployments--current-deployment-errored--dark:+ hash: v1.k794b7964.7627084a48d4a50add47c8cb74e38effa537cab60296c7e7b7bd1100b0e690b6.IlKeEbZfCfjXDzAxzBr99Fs9Ussm2OFoeIVrmxV1GBo+ scenes-app-deployments--current-deployment-errored--light:+ hash: v1.k794b7964.48f63b26811b1347ac4f30f39291fa6b84cc33def2919fb1247a9c14aed67953.Bsh25FSr3MDA5gn7Wvh7G2fELzTtWb5GJ_g7ID7wsXc+ scenes-app-deployments--deployments-list--dark:+ hash: v1.k794b7964.c691f654f92c22366facb5e0b82fc38c57915947e22c1575ae7e8dc56d459f8d.Ol3cPtYbw4jkFlzaMktFA_sUbKOeyWiDIv2q_ykJgJY+ scenes-app-deployments--deployments-list--light:+ hash: v1.k794b7964.2f394eeaf4571d17c76ce1049a23d997ca56023d077c96f990b0cf079aa3db47.LmrAvfvgZWH8rj8KwV-KEfhXR6pedfzOscPqPjWHVlU+ scenes-app-deployments--no-projects--dark:+ hash: v1.k794b7964.89ae2a8175068143c698eb8b6ec564158f14d09eeca23901b89f7d38b361c6ac.5T1ul-y1d4G4bx60W_n9QFbF_SrBdQUycsZ1_SCHVNM+ scenes-app-deployments--no-projects--light:+ hash: v1.k794b7964.e7b6598181afe6d6ce01a771ec5622853bc09a8e0a270df282937aad4c9c815d.9wunVnjhbv50znhrHiJhi0lQk3frr7SE_OjwoDLVmXo+ scenes-app-deployments--project-with-no-deployments--dark:+ hash: v1.k794b7964.76d3e8747ae7bac4026d86cebd4d94569515917bc2007c8b2aa784b4a75774e0.EsFvKzrREAJ1Hm4Hq0E786KJV8E7jM7-aE1TRonsm9k+ scenes-app-deployments--project-with-no-deployments--light:+ hash: v1.k794b7964.d91b634b3851c90f7a408863cf8070bc281aa0f0ea19ab4bb5deb9988e242762.KTTFQ-n7Ms-ZPwLmqSyaod3oNhEaiGVgRHWVovufyNg+ scenes-app-deployments--single-project-hides-picker--dark:+ hash: v1.k794b7964.b90c2321552f1206efd638369eff04db31250c8d0dac0bd2106fbf66327a5d57.Oios3SoKuE0MFV_ikRUS2Clv7_5WBZTujO9utBEQe98+ scenes-app-deployments--single-project-hides-picker--light:+ hash: v1.k794b7964.93d79c56f6d36256114ac88e39af3bda38ff12f25c48bee642bc6b073f53352c.DdGmiJTd-FW5aZiGCMbHpS8WO9-XWMNXqLCP1O5a9n4scenes-app-error-project-unavailable--access-revoked--dark:hash: v1.k794b7964.3798bc2d0dd1b8d79bb873b525f9502b4e71d0b5ea84427c3e70acf41f655f8a.1piuLJMJZ2dFAS6P3SdyhAU3Dqi0iZNpiPy1nQdY-IYscenes-app-error-project-unavailable--access-revoked--light:diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 925ac2a2bf7f..fbfca9b0590c 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -378,7 +378,7 @@ export const productConfiguration: Record<string, any> = {projectBased: true,name: 'Deployments',iconType: 'deployments',- description: 'Build and ship your project site straight from PostHog.',+ description: 'View, redeploy, and roll back deployments of your app.',},Deployment: { projectBased: true, name: 'Deployment' },EarlyAccessFeatures: {@@ -1048,6 +1048,13 @@ export const fileSystemTypes = {iconColor: ['var(--color-product-dashboards-light)'],filterKey: 'dashboard',},+ deployments: {+ name: 'Deployment',+ iconType: 'deployments',+ iconColor: ['var(--color-product-deployments-light)'] as FileSystemIconColor,+ href: () => urls.deployments(),+ filterKey: 'deployments',+ },early_access_feature: {name: 'Early access feature',iconType: 'early_access_feature' as FileSystemIconType,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 43f489bfbb9f..7eeeaa75b1f5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -445,7 +445,7 @@ importers:version: 7.6.24([email protected])([email protected]([email protected]))([email protected])([email protected])'@storybook/react-webpack5':specifier: ^7.6.4- version: 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@storybook/test-runner':specifier: ^0.16.0version: 0.16.0(@types/[email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))@@ -499,7 +499,7 @@ importers:version: 2.0.0([email protected])webpack:specifier: ^5.88.2- version: 5.88.2(@swc/[email protected])([email protected])webpack-cli:specifier: ^5.1.4version: 5.1.4([email protected])@@ -1813,7 +1813,7 @@ importers:version: 18.3.7(@types/[email protected])'@vitejs/plugin-react':specifier: ^4.3.4- version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))jest-image-snapshot:specifier: ^6.4.0version: 6.4.0([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])))@@ -2358,6 +2358,9 @@ importers:specifier: 18.3.1version: 18.3.1devDependencies:+ '@storybook/react':+ specifier: 'catalog:'+ version: 7.6.24([email protected])([email protected]([email protected]))([email protected])([email protected])kea-test-utils:specifier: 'catalog:'version: 0.2.4([email protected]([email protected]))@@ -3547,7 +3550,7 @@ importers:version: 18.3.7(@types/[email protected])'@vitejs/plugin-react':specifier: ^4.3.4- version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))ajv:specifier: ^8.17.1version: 8.17.1@@ -5624,12 +5627,6 @@ packages:cpu: [ppc64]os: [aix]- '@esbuild/[email protected]':- resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==}- engines: {node: '>=18'}- cpu: [ppc64]- os: [aix]-'@esbuild/[email protected]':resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==}engines: {node: '>=18'}@@ -5666,12 +5663,6 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==}- engines: {node: '>=18'}- cpu: [arm64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==}engines: {node: '>=18'}@@ -5708,12 +5699,6 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==}- engines: {node: '>=18'}- cpu: [arm]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==}engines: {node: '>=18'}@@ -5750,12 +5735,6 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==}- engines: {node: '>=18'}- cpu: [x64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==}engines: {node: '>=18'}@@ -5792,12 +5771,6 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==}engines: {node: '>=18'}@@ -5834,12 +5807,6 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==}- engines: {node: '>=18'}- cpu: [x64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==}engines: {node: '>=18'}@@ -5876,12 +5843,6 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==}- engines: {node: '>=18'}- cpu: [arm64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==}engines: {node: '>=18'}@@ -5918,12 +5879,6 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==}- engines: {node: '>=18'}- cpu: [x64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==}engines: {node: '>=18'}@@ -5960,12 +5915,6 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==}- engines: {node: '>=18'}- cpu: [arm64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==}engines: {node: '>=18'}@@ -6002,12 +5951,6 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==}- engines: {node: '>=18'}- cpu: [arm]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==}engines: {node: '>=18'}@@ -6044,12 +5987,6 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==}- engines: {node: '>=18'}- cpu: [ia32]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==}engines: {node: '>=18'}@@ -6086,12 +6023,6 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==}- engines: {node: '>=18'}- cpu: [loong64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==}engines: {node: '>=18'}@@ -6128,12 +6059,6 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==}- engines: {node: '>=18'}- cpu: [mips64el]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==}engines: {node: '>=18'}@@ -6170,12 +6095,6 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==}- engines: {node: '>=18'}- cpu: [ppc64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==}engines: {node: '>=18'}@@ -6212,12 +6131,6 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==}- engines: {node: '>=18'}- cpu: [riscv64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==}engines: {node: '>=18'}@@ -6254,12 +6167,6 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==}- engines: {node: '>=18'}- cpu: [s390x]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==}engines: {node: '>=18'}@@ -6296,12 +6203,6 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==}- engines: {node: '>=18'}- cpu: [x64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==}engines: {node: '>=18'}@@ -6326,12 +6227,6 @@ packages:cpu: [arm64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==}- engines: {node: '>=18'}- cpu: [arm64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==}engines: {node: '>=18'}@@ -6368,12 +6263,6 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==}- engines: {node: '>=18'}- cpu: [x64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==}engines: {node: '>=18'}@@ -6398,12 +6287,6 @@ packages:cpu: [arm64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==}- engines: {node: '>=18'}- cpu: [arm64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==}engines: {node: '>=18'}@@ -6440,12 +6323,6 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==}- engines: {node: '>=18'}- cpu: [x64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==}engines: {node: '>=18'}@@ -6470,12 +6347,6 @@ packages:cpu: [arm64]os: [openharmony]- '@esbuild/[email protected]':- resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==}- engines: {node: '>=18'}- cpu: [arm64]- os: [openharmony]-'@esbuild/[email protected]':resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==}engines: {node: '>=18'}@@ -6512,12 +6383,6 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==}- engines: {node: '>=18'}- cpu: [x64]- os: [sunos]-'@esbuild/[email protected]':resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==}engines: {node: '>=18'}@@ -6554,12 +6419,6 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==}engines: {node: '>=18'}@@ -6596,12 +6455,6 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==}- engines: {node: '>=18'}- cpu: [ia32]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==}engines: {node: '>=18'}@@ -6638,12 +6491,6 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==}- engines: {node: '>=18'}- cpu: [x64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==}engines: {node: '>=18'}@@ -15391,11 +15238,6 @@ packages:engines: {node: '>=18'}hasBin: true- resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==}- engines: {node: '>=18'}- hasBin: true-resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==}engines: {node: '>=18'}@@ -20512,10 +20354,6 @@ packages:resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==}engines: {node: '>=0.6'}- resolution: {integrity: sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==}- engines: {node: '>=0.6'}-resolution: {integrity: sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==}engines: {node: '>=0.6'}@@ -28495,9 +28333,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28516,9 +28351,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28537,9 +28369,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28558,9 +28387,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28579,9 +28405,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28600,9 +28423,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28621,9 +28441,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28642,9 +28459,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28663,9 +28477,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28684,9 +28495,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28705,9 +28513,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28726,9 +28531,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28747,9 +28549,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28768,9 +28567,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28789,9 +28585,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28810,9 +28603,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28831,9 +28621,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28846,9 +28633,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28867,9 +28651,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28882,9 +28663,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28903,9 +28681,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28918,9 +28693,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28939,9 +28711,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28960,9 +28729,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -28981,9 +28747,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -29002,9 +28765,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -29330,7 +29090,7 @@ snapshots:'@isaacs/[email protected]':dependencies:- minipass: 7.1.2+ minipass: 7.1.3'@istanbuljs/[email protected]':dependencies:@@ -32113,7 +31873,7 @@ snapshots:react-refresh: 0.14.0schema-utils: 3.3.0source-map: 0.7.6- webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:type-fest: 4.41.0webpack-hot-middleware: 2.25.4@@ -34148,7 +33908,7 @@ snapshots:- encoding- supports-color+ '@storybook/[email protected]([email protected])([email protected])([email protected])([email protected])':dependencies:'@babel/core': 7.29.0'@storybook/channels': 7.6.4@@ -34178,12 +33938,12 @@ snapshots:semver: 7.7.4style-loader: 3.3.3([email protected])swc-loader: 0.2.3(@swc/[email protected])([email protected])- terser-webpack-plugin: 5.3.9(@swc/[email protected])([email protected])ts-dedent: 2.2.0url: 0.11.1util: 0.12.5util-deprecate: 1.0.2- webpack: 5.88.2(@swc/[email protected])([email protected])webpack-dev-middleware: 6.1.1([email protected])webpack-hot-middleware: 2.25.4webpack-virtual-modules: 0.5.0@@ -34254,7 +34014,7 @@ snapshots:get-port: 5.1.1giget: 1.1.2globby: 11.1.0- jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))+ jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))leven: 3.1.0ora: 5.4.1prettier: 2.8.8@@ -34297,7 +34057,7 @@ snapshots:'@types/cross-spawn': 6.0.2cross-spawn: 7.0.6globby: 11.1.0- jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))+ jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))lodash: 4.18.1prettier: 2.8.8recast: 0.23.11@@ -34589,7 +34349,7 @@ snapshots:'@storybook/[email protected]': {}- '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':+ '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':dependencies:'@babel/preset-flow': 7.23.3(@babel/[email protected])'@babel/preset-react': 7.23.3(@babel/[email protected])@@ -34609,7 +34369,7 @@ snapshots:react-dom: 18.3.1([email protected])react-refresh: 0.14.0semver: 7.7.4- webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:'@babel/core': 7.26.0typescript: 5.9.3@@ -34673,7 +34433,7 @@ snapshots:dequal: 2.0.3lodash: 4.18.1memoizerific: 1.11.3- qs: 6.14.1+ qs: 6.15.1synchronous-promise: 2.0.17ts-dedent: 2.2.0util-deprecate: 1.0.2@@ -34692,7 +34452,7 @@ snapshots:react-docgen-typescript: 2.2.2([email protected])tslib: 2.8.1typescript: 5.9.3- webpack: 5.88.2(@swc/[email protected])([email protected])transitivePeerDependencies:- supports-color@@ -34726,10 +34486,10 @@ snapshots:- typescript- vite-plugin-glimmerx- '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':+ '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':dependencies:- '@storybook/preset-react-webpack': 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ '@storybook/builder-webpack5': 7.6.4([email protected])([email protected])([email protected])([email protected])+ '@storybook/preset-react-webpack': 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@storybook/react': 7.6.4([email protected])([email protected]([email protected]))([email protected])([email protected])'@types/node': 18.19.130react: 18.3.1@@ -34869,10 +34629,10 @@ snapshots:jest-circus: 29.7.0jest-environment-node: 29.7.0jest-junit: 16.0.0- jest-playwright-preset: 4.0.0([email protected])([email protected])([email protected])([email protected])+ jest-playwright-preset: 4.0.0([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])))jest-runner: 29.7.0jest-serializer-html: 7.1.0- jest-watch-typeahead: 2.2.2([email protected])+ jest-watch-typeahead: 2.2.2([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])))node-fetch: 2.7.0([email protected])playwright: 1.45.0read-pkg-up: 7.0.1@@ -36346,7 +36106,7 @@ snapshots:'@types/[email protected]':dependencies:- minimatch: 10.2.3+ minimatch: 10.2.5'@types/[email protected]': {}@@ -36712,7 +36472,7 @@ snapshots:'@typescript-eslint/types': 8.58.2'@typescript-eslint/visitor-keys': 8.58.2debug: 4.4.3- minimatch: 10.2.3+ minimatch: 10.2.5semver: 7.7.4tinyglobby: 0.2.15ts-api-utils: 2.5.0([email protected])@@ -36842,7 +36602,7 @@ snapshots:transitivePeerDependencies:- supports-color- '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.29.0'@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])@@ -37131,17 +36891,17 @@ snapshots:dependencies:- webpack: 5.88.2(@swc/[email protected])([email protected])webpack-cli: 5.1.4([email protected])dependencies:- webpack: 5.88.2(@swc/[email protected])([email protected])webpack-cli: 5.1.4([email protected])dependencies:- webpack: 5.88.2(@swc/[email protected])([email protected])webpack-cli: 5.1.4([email protected])'@xmldom/[email protected]': {}@@ -37748,14 +37508,14 @@ snapshots:loader-utils: 2.0.4make-dir: 3.1.0schema-utils: 2.7.1- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:'@babel/core': 7.29.0find-cache-dir: 4.0.0schema-utils: 4.2.0- webpack: 5.88.2(@swc/[email protected])([email protected])@@ -38235,7 +37995,7 @@ snapshots:fs-minipass: 3.0.3glob: 10.4.5lru-cache: 10.4.3- minipass: 7.1.2+ minipass: 7.1.3minipass-collect: 2.0.1minipass-flush: 1.0.5minipass-pipeline: 1.2.4@@ -38250,7 +38010,7 @@ snapshots:fs-minipass: 3.0.3glob: 13.0.6lru-cache: 11.2.4- minipass: 7.1.2+ minipass: 7.1.3minipass-collect: 2.0.1minipass-flush: 1.0.5minipass-pipeline: 1.2.4@@ -38952,7 +38712,7 @@ snapshots:postcss-value-parser: 4.2.0schema-utils: 2.7.1semver: 6.3.1- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -38964,7 +38724,7 @@ snapshots:postcss-modules-values: 4.0.0([email protected])postcss-value-parser: 4.2.0semver: 7.7.4- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -40136,35 +39896,6 @@ snapshots:'@esbuild/win32-ia32': 0.27.0'@esbuild/win32-x64': 0.27.0- optionalDependencies:- '@esbuild/aix-ppc64': 0.27.2- '@esbuild/android-arm': 0.27.2- '@esbuild/android-arm64': 0.27.2- '@esbuild/android-x64': 0.27.2- '@esbuild/darwin-arm64': 0.27.2- '@esbuild/darwin-x64': 0.27.2- '@esbuild/freebsd-arm64': 0.27.2- '@esbuild/freebsd-x64': 0.27.2- '@esbuild/linux-arm': 0.27.2- '@esbuild/linux-arm64': 0.27.2- '@esbuild/linux-ia32': 0.27.2- '@esbuild/linux-loong64': 0.27.2- '@esbuild/linux-mips64el': 0.27.2- '@esbuild/linux-ppc64': 0.27.2- '@esbuild/linux-riscv64': 0.27.2- '@esbuild/linux-s390x': 0.27.2- '@esbuild/linux-x64': 0.27.2- '@esbuild/netbsd-arm64': 0.27.2- '@esbuild/netbsd-x64': 0.27.2- '@esbuild/openbsd-arm64': 0.27.2- '@esbuild/openbsd-x64': 0.27.2- '@esbuild/openharmony-arm64': 0.27.2- '@esbuild/sunos-x64': 0.27.2- '@esbuild/win32-arm64': 0.27.2- '@esbuild/win32-ia32': 0.27.2- '@esbuild/win32-x64': 0.27.2-optionalDependencies:'@esbuild/aix-ppc64': 0.27.3@@ -40730,7 +40461,7 @@ snapshots:dependencies:loader-utils: 2.0.4schema-utils: 3.3.0- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -40874,7 +40605,7 @@ snapshots:semver: 7.7.4tapable: 2.3.0typescript: 5.9.3- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -40945,7 +40676,7 @@ snapshots:dependencies:- minipass: 7.1.2+ minipass: 7.1.3@@ -41146,7 +40877,7 @@ snapshots:foreground-child: 3.1.1jackspeak: 3.4.3minimatch: 9.0.5- minipass: 7.1.2+ minipass: 7.1.3package-json-from-dist: 1.0.1path-scurry: 1.11.1@@ -41161,7 +40892,7 @@ snapshots:dependencies:- minimatch: 10.2.3+ minimatch: 10.2.5minipass: 7.1.3path-scurry: 2.0.2@@ -41553,7 +41284,7 @@ snapshots:dependencies:html-webpack-plugin: 5.5.3([email protected])- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -41562,7 +41293,7 @@ snapshots:lodash: 4.17.21pretty-error: 4.0.0tapable: 2.2.1- webpack: 5.88.2(@swc/[email protected])([email protected])[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:@@ -42862,7 +42593,7 @@ snapshots:'@types/node': 22.18.8jest-util: 30.0.5+ [email protected]([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))):dependencies:expect-playwright: 0.8.0jest: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))@@ -43285,7 +43016,7 @@ snapshots:leven: 3.1.0pretty-format: 30.0.5+ [email protected]([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))):dependencies:ansi-escapes: 6.0.0chalk: 5.6.2@@ -43443,7 +43174,7 @@ snapshots:dependencies:'@babel/core': 7.29.0'@babel/parser': 7.29.2@@ -43466,7 +43197,7 @@ snapshots:temp: 0.8.4write-file-atomic: 2.4.3optionalDependencies:- '@babel/preset-env': 7.23.5(@babel/[email protected])+ '@babel/preset-env': 7.23.5(@babel/[email protected])transitivePeerDependencies:- supports-color@@ -43740,7 +43471,7 @@ snapshots:less: 4.2.2loader-utils: 2.0.4schema-utils: 3.3.0- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -44177,7 +43908,7 @@ snapshots:'@npmcli/agent': 3.0.0cacache: 19.0.1http-cache-semantics: 4.1.1- minipass: 7.1.2+ minipass: 7.1.3minipass-fetch: 4.0.1minipass-flush: 1.0.5minipass-pipeline: 1.2.4@@ -44193,7 +43924,7 @@ snapshots:'@npmcli/agent': 4.0.0cacache: 20.0.3http-cache-semantics: 4.1.1- minipass: 7.1.2+ minipass: 7.1.3minipass-fetch: 5.0.0minipass-flush: 1.0.5minipass-pipeline: 1.2.4@@ -44896,11 +44627,11 @@ snapshots:dependencies:- minipass: 7.1.2+ minipass: 7.1.3dependencies:- minipass: 7.1.2+ minipass: 7.1.3minipass-sized: 1.0.3minizlib: 3.1.0optionalDependencies:@@ -44908,7 +44639,7 @@ snapshots:dependencies:- minipass: 7.1.2+ minipass: 7.1.3minipass-sized: 1.0.3minizlib: 3.1.0optionalDependencies:@@ -44943,7 +44674,7 @@ snapshots:dependencies:- minipass: 7.1.2+ minipass: 7.1.3@@ -45805,12 +45536,12 @@ snapshots:dependencies:lru-cache: 10.4.3- minipass: 7.1.2+ minipass: 7.1.3dependencies:lru-cache: 11.2.4- minipass: 7.1.2+ minipass: 7.1.3dependencies:@@ -46236,7 +45967,7 @@ snapshots:postcss: 8.5.6schema-utils: 3.3.0semver: 7.7.0- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -47167,10 +46898,6 @@ snapshots:dependencies:side-channel: 1.1.0- dependencies:- side-channel: 1.1.0-dependencies:side-channel: 1.1.0@@ -47226,7 +46953,7 @@ snapshots:dependencies:loader-utils: 2.0.4schema-utils: 3.3.0- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -48363,7 +48090,7 @@ snapshots:neo-async: 2.6.2schema-utils: 3.3.0semver: 7.7.0- webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:sass: 1.56.0@@ -48799,11 +48526,11 @@ snapshots:dependencies:- minipass: 7.1.2+ minipass: 7.1.3dependencies:- minipass: 7.1.2+ minipass: 7.1.3dependencies:@@ -49071,11 +48798,11 @@ snapshots:dependencies:loader-utils: 2.0.4schema-utils: 3.3.0- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:- webpack: 5.88.2(@swc/[email protected])([email protected])@@ -49214,7 +48941,7 @@ snapshots:formidable: 3.5.1methods: 1.1.2mime: 2.6.0- qs: 6.14.1+ qs: 6.15.1transitivePeerDependencies:- supports-color@@ -49279,7 +49006,7 @@ snapshots:dependencies:'@swc/core': 1.15.18- webpack: 5.88.2(@swc/[email protected])([email protected])@@ -49400,7 +49127,7 @@ snapshots:dependencies:'@isaacs/fs-minipass': 4.0.1chownr: 3.0.0- minipass: 7.1.2+ minipass: 7.1.3minizlib: 3.1.0yallist: 5.0.0@@ -49473,16 +49200,17 @@ snapshots:'@swc/core': 1.15.18esbuild: 0.27.7dependencies:'@jridgewell/trace-mapping': 0.3.29jest-worker: 27.5.1schema-utils: 3.3.0serialize-javascript: 6.0.1terser: 5.19.1- webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:'@swc/core': 1.15.18+ esbuild: 0.18.20dependencies:@@ -50460,7 +50188,7 @@ snapshots:[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:- esbuild: 0.27.2+ esbuild: 0.27.7fdir: 6.5.0([email protected])picomatch: 4.0.4postcss: 8.5.6@@ -50479,7 +50207,7 @@ snapshots:[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:- esbuild: 0.27.2+ esbuild: 0.27.7fdir: 6.5.0([email protected])picomatch: 4.0.4postcss: 8.5.6@@ -50678,7 +50406,7 @@ snapshots:import-local: 3.1.0interpret: 3.1.1rechoir: 0.8.0- webpack: 5.88.2(@swc/[email protected])([email protected])webpack-merge: 5.8.0@@ -50689,7 +50417,7 @@ snapshots:range-parser: 1.2.1schema-utils: 4.2.0optionalDependencies:- webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -50740,7 +50468,7 @@ snapshots:- esbuild- uglify-jsdependencies:'@types/eslint-scope': 3.7.4'@types/estree': 1.0.1@@ -50763,7 +50491,7 @@ snapshots:neo-async: 2.6.2schema-utils: 3.3.0tapable: 2.2.1- terser-webpack-plugin: 5.3.9(@swc/[email protected])([email protected])watchpack: 2.4.0webpack-sources: 3.2.3optionalDependencies:diff --git a/products/deployments/frontend/Deployment.tsx b/products/deployments/frontend/Deployment.tsxindex 50eced0fbaed..0873ffe14959 100644--- a/products/deployments/frontend/Deployment.tsx+++ b/products/deployments/frontend/Deployment.tsx@@ -1,22 +1,136 @@-import { Link } from '@posthog/lemon-ui'+import { BindLogic, useActions, useValues } from 'kea'+import { LemonButton, LemonDialog } from '@posthog/lemon-ui'++import { NotFound } from 'lib/components/NotFound'import { SceneExport } from 'scenes/sceneTypes'-import { urls } from 'scenes/urls'import { SceneContent } from '~/layout/scenes/components/SceneContent'+import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'+import { FilterLogicalOperator, PropertyFilterType, PropertyOperator } from '~/types'++import { LogsViewer } from 'products/logs/frontend/components/LogsViewer/LogsViewer'-export const scene: SceneExport = {+import { CurrentDeploymentCard } from './components/CurrentDeploymentCard'+import { deploymentLogic, DeploymentLogicProps } from './deploymentLogic'+import { deploymentsLogic } from './deploymentsLogic'+import { Deployment as DeploymentType } from './fixtures'++export const scene: SceneExport<DeploymentLogicProps> = {component: Deployment,+ logic: deploymentLogic,+ paramsToProps: ({ params: { id } }) => ({ id }),+}++export function Deployment({ id }: DeploymentLogicProps): JSX.Element {+ return (+ <BindLogic logic={deploymentLogic} props={{ id }}>+ <DeploymentInner id={id} />+ </BindLogic>+ )}-export function Deployment(): JSX.Element {+function DeploymentInner({ id }: { id: string }): JSX.Element {+ const { deployment, deploymentMissing, deploymentLoading } = useValues(deploymentLogic({ id }))+ const { redeployDeployment, rollbackDeployment } = useActions(deploymentsLogic)++ if (deploymentMissing) {+ return (+ <SceneContent>+ <NotFound object="deployment" />+ </SceneContent>+ )+ }++ if (deploymentLoading || !deployment) {+ return (+ <SceneContent>+ <SceneTitleSection name="Deployment" description="Loading…" resourceType={{ type: 'deployments' }} />+ </SceneContent>+ )+ }++ const d = deployment++ const confirmRedeploy = (target: DeploymentType): void => {+ LemonDialog.open({+ title: 'Redeploy?',+ description: `This will start a new deployment based on ${target.commit_sha || target.id}. It will run through the build pipeline before becoming current.`,+ primaryButton: {+ children: 'Redeploy',+ type: 'primary',+ onClick: () => redeployDeployment(target.id),+ },+ secondaryButton: { children: 'Cancel', type: 'secondary' },+ })+ }++ const confirmRollback = (target: DeploymentType): void => {+ LemonDialog.open({+ title: 'Roll back to this deployment?',+ description: `This will immediately make ${target.commit_message || target.id} current.`,+ primaryButton: {+ children: 'Roll back',+ type: 'primary',+ status: 'danger',+ onClick: () => rollbackDeployment(target.id),+ },+ secondaryButton: { children: 'Cancel', type: 'secondary' },+ })+ }+return (<SceneContent>+ <SceneTitleSection+ name={d.commit_message || d.commit_sha || d.id}+ description={d.branch ? `Branch: ${d.branch}` : undefined}+ resourceType={{ type: 'deployments' }}+ actions={+ <>+ <LemonButton type="secondary" onClick={() => confirmRedeploy(d)}>+ Redeploy+ </LemonButton>+ <LemonButton+ type="secondary"+ status="danger"+ onClick={() => confirmRollback(d)}+ disabledReason={d.is_current ? 'Already current' : undefined}+ >+ Rollback+ </LemonButton>+ </>+ }+ />+ <CurrentDeploymentCard deployment={d} /><div className="flex flex-col gap-2">- {/* TODO(deployments-v1): load the deployment by id (URL param) and render its details. */}- <h2>Deployment</h2>- <p>Deployment details are not implemented yet.</p>- <Link to={urls.deployments()}>Back to deployments</Link>+ <h3 className="text-lg font-semibold">Logs</h3>+ <p className="text-secondary text-sm">+ Filtered to this deployment via the <code>deployment_id</code> attribute. Once ingestion stamps that+ attribute, real entries will show here.+ </p>+ <LogsViewer+ id={`deployment-${id}`}+ initialFilters={{+ filterGroup: {+ type: FilterLogicalOperator.And,+ values: [+ {+ type: FilterLogicalOperator.And,+ values: [+ {+ key: 'deployment_id',+ type: PropertyFilterType.LogAttribute,+ operator: PropertyOperator.Exact,+ value: id,+ } as any,+ ],+ },+ ],+ },+ }}+ showFullScreenButton={false}+ showSavedViewsButton={false}+ /></div></SceneContent>)diff --git a/products/deployments/frontend/Deployments.stories.tsx b/products/deployments/frontend/Deployments.stories.tsxnew file mode 100644index 000000000000..b7181c779332--- /dev/null+++ b/products/deployments/frontend/Deployments.stories.tsx@@ -0,0 +1,211 @@+import { Meta, StoryObj } from '@storybook/react'++import { App } from 'scenes/App'+import { urls } from 'scenes/urls'++import { mswDecorator } from '~/mocks/browser'++import type { DeploymentApi, DeploymentProjectApi } from './generated/api.schemas'++const baseProject: DeploymentProjectApi = {+ id: 'project-1',+ name: 'Site',+ slug: 'site',+ repo_url: 'https://github.com/acme/site',+ default_branch: 'main',+ github_integration_id: null,+ github_repo_id: null,+ build_command: null,+ output_dir: 'dist',+ framework: null,+ inject_posthog_snippet: false,+ cloudflare_project_name: 'team-site',+ subdomain: 'site.pages.dev',+ cloudflare_ready_at: '2026-05-01T00:00:00Z',+ current_deployment: 'd-current',+ is_ready_to_deploy: true,+ created_at: '2026-05-01T00:00:00Z',+ updated_at: '2026-05-01T00:00:00Z',+}++const docsProject: DeploymentProjectApi = {+ ...baseProject,+ id: 'project-2',+ name: 'Docs',+ slug: 'docs',+ repo_url: 'https://github.com/acme/docs',+ cloudflare_project_name: 'team-docs',+ subdomain: 'docs.pages.dev',+}++const makeDeployment = (id: string, overrides: Partial<DeploymentApi> = {}): DeploymentApi => ({+ id,+ project: 'project-1',+ status: 'ready',+ started_at: '2026-05-13T12:00:00Z',+ finished_at: '2026-05-13T12:01:30Z',+ created_at: '2026-05-13T12:00:00Z',+ commit_sha: id.slice(0, 7),+ commit_message: `commit ${id}`,+ commit_author_name: 'Alice Chen',+ commit_author_email: '[email protected]',+ repo_url: 'https://github.com/acme/site',+ branch: 'main',+ deployment_url: `https://site-${id}.pages.dev`,+ preview_image_url: '',+ triggered_by_deployment: null,+ triggered_by_user_id: null,+ trigger_kind: 'git',+ error_message: '',+ error_step: '',+ cloudflare_deployment_id: '',+ temporal_workflow_id: '',+ is_current: false,+ duration_seconds: 90,+ ...overrides,+})++const currentDeployment = makeDeployment('d-current', {+ is_current: true,+ commit_message: 'feat: deployments list page',+ duration_seconds: 84,+ deployment_url: 'https://acme-site.pages.dev',+})++const failedDeployment = makeDeployment('d-failed', {+ status: 'error',+ commit_message: 'fix: null author handling',+ commit_author_name: 'Bob Rivera',+ commit_author_email: '[email protected]',+ duration_seconds: 42,+ deployment_url: '',+ error_step: 'build',+ error_message: 'TypeError: cannot read property of undefined in src/utils.ts',+})++const buildingDeployment = makeDeployment('d-building', {+ status: 'building',+ commit_message: 'chore: bump posthog-js to 1.220.0',+ finished_at: null,+ duration_seconds: 0,+ deployment_url: '',+})++const meta: Meta = {+ component: App,+ title: 'Scenes-App/Deployments',+ parameters: {+ layout: 'fullscreen',+ viewMode: 'story',+ mockDate: '2026-05-13',+ pageUrl: urls.deployments(),+ testOptions: { waitForLoadersToDisappear: true },+ },+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/deployment_projects/': {+ count: 2,+ next: null,+ previous: null,+ results: [baseProject, docsProject],+ },+ '/api/projects/:team_id/deployment_projects/:project_id/deployments/': {+ count: 5,+ next: null,+ previous: null,+ results: [+ currentDeployment,+ failedDeployment,+ buildingDeployment,+ makeDeployment('d-3', { commit_message: 'feat: new card layout' }),+ makeDeployment('d-4', { commit_message: 'chore: tidy filters' }),+ ],+ },+ '/api/projects/:team_id/deployment_projects/:project_id/deployments/d-current/': currentDeployment,+ },+ }),+ ],+}+export default meta++type Story = StoryObj<{}>++export const DeploymentsList: Story = {}++export const NoProjects: Story = {+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/deployment_projects/': { count: 0, next: null, previous: null, results: [] },+ },+ }),+ ],+}++export const ProjectWithNoDeployments: Story = {+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/deployment_projects/': {+ count: 1,+ next: null,+ previous: null,+ results: [baseProject],+ },+ '/api/projects/:team_id/deployment_projects/:project_id/deployments/': {+ count: 0,+ next: null,+ previous: null,+ results: [],+ },+ },+ }),+ ],+}++export const CurrentDeploymentErrored: Story = {+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/deployment_projects/': {+ count: 1,+ next: null,+ previous: null,+ results: [baseProject],+ },+ '/api/projects/:team_id/deployment_projects/:project_id/deployments/': {+ count: 2,+ next: null,+ previous: null,+ results: [+ // Latest is the failed one; previous ready deploy is "current".+ failedDeployment,+ currentDeployment,+ ],+ },+ },+ }),+ ],+}++export const SingleProjectHidesPicker: Story = {+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/deployment_projects/': {+ count: 1,+ next: null,+ previous: null,+ results: [baseProject],+ },+ '/api/projects/:team_id/deployment_projects/:project_id/deployments/': {+ count: 1,+ next: null,+ previous: null,+ results: [currentDeployment],+ },+ },+ }),+ ],+}diff --git a/products/deployments/frontend/Deployments.tsx b/products/deployments/frontend/Deployments.tsxindex ecb573716467..2e4e2f33a256 100644--- a/products/deployments/frontend/Deployments.tsx+++ b/products/deployments/frontend/Deployments.tsx@@ -1,6 +1,20 @@-import { BindLogic } from 'kea'+import { useActions, useValues } from 'kea'++import {+ LemonBanner,+ LemonButton,+ LemonDialog,+ LemonSelect,+ LemonTable,+ LemonTableColumns,+ LemonTag,+ PaginationManual,+} from '@posthog/lemon-ui'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'+import { More } from 'lib/lemon-ui/LemonButton/More'+import { createdAtColumn } from 'lib/lemon-ui/LemonTable/columnUtils'+import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'@@ -10,7 +24,9 @@ import { ProductKey } from '~/queries/schema/schema-general'import { CurrentDeploymentCard } from './components/CurrentDeploymentCard'import { DeploymentsFilters } from './components/DeploymentsFilters'+import { DeploymentStatusTag } from './components/DeploymentStatusTag'import { deploymentsLogic } from './deploymentsLogic'+import { Deployment, DEPLOYMENTS_PER_PAGE, DeploymentStatus, formatDuration } from './fixtures'export const scene: SceneExport = {component: Deployments,@@ -18,31 +34,206 @@ export const scene: SceneExport = {productKey: ProductKey.DEPLOYMENTS,}-export function Deployments({ tabId }: { tabId?: string } = {}): JSX.Element {- return (- <BindLogic logic={deploymentsLogic} props={{ tabId: tabId ?? '' }}>- <SceneContent>- <SceneTitleSection- name={sceneConfigurations[Scene.Deployments].name}- description={sceneConfigurations[Scene.Deployments].description}- resourceType={{- type: sceneConfigurations[Scene.Deployments].iconType || 'deployments',+export function Deployments(): JSX.Element {+ const {+ deployments,+ deploymentsCount,+ deploymentsLoading,+ currentDeployment,+ filters,+ shouldShowEmptyState,+ hasNoProjects,+ deploymentProjects,+ deploymentProjectsLoading,+ selectedProjectId,+ } = useValues(deploymentsLogic)+ const { setFilters, setSelectedProjectId, redeployDeployment, rollbackDeployment } = useActions(deploymentsLogic)++ const confirmRedeploy = (d: Deployment): void => {+ LemonDialog.open({+ title: 'Redeploy?',+ description: `This will start a new deployment based on ${d.commit_sha || d.id}. It will run through the build pipeline before becoming current.`,+ primaryButton: {+ children: 'Redeploy',+ type: 'primary',+ onClick: () => redeployDeployment(d.id),+ },+ secondaryButton: { children: 'Cancel', type: 'secondary' },+ })+ }++ const confirmRollback = (d: Deployment): void => {+ LemonDialog.open({+ title: 'Roll back to this deployment?',+ description: `This will immediately make ${d.commit_message || d.id} current.`,+ primaryButton: {+ children: 'Roll back',+ type: 'primary',+ status: 'danger',+ onClick: () => rollbackDeployment(d.id),+ },+ secondaryButton: { children: 'Cancel', type: 'secondary' },+ })+ }++ const columns: LemonTableColumns<Deployment> = [+ {+ title: 'Deployment',+ dataIndex: 'id',+ sticky: true,+ render: (_, d) => (+ <div className="flex items-center gap-2 min-w-0">+ <span className="font-semibold truncate">{d.commit_message || d.id}</span>+ {d.is_current && <LemonTag type="success">Current</LemonTag>}+ </div>+ ),+ },+ {+ title: 'Status',+ dataIndex: 'status',+ sorter: (a, b) => a.status.localeCompare(b.status),+ render: (status) => <DeploymentStatusTag status={status as DeploymentStatus} />,+ },+ {+ title: 'Duration',+ dataIndex: 'duration_seconds',+ sorter: (a, b) => (a.duration_seconds ?? -1) - (b.duration_seconds ?? -1),+ render: (_, d) => formatDuration(d.duration_seconds),+ },+ createdAtColumn<Deployment>() as LemonTableColumns<Deployment>[number],+ {+ title: 'Author',+ dataIndex: 'commit_author_name',+ sorter: (a, b) => (a.commit_author_name ?? '').localeCompare(b.commit_author_name ?? ''),+ render: (_, d) => (+ <ProfilePicture+ user={{+ first_name: d.commit_author_name ?? '',+ email: d.commit_author_email ?? '',}}+ size="sm"+ showName/>- {/* TODO(deployments-v1): render <CurrentDeploymentCard/> with the team's currently-serving deployment. */}- <CurrentDeploymentCard />- {/* TODO(deployments-v1): render <DeploymentsFilters/> with status / author / search controls. */}- <DeploymentsFilters />- <ProductIntroduction- productName="Deployments"- productKey={ProductKey.DEPLOYMENTS}- thingName="deployment"- description="Build and ship your project site straight from PostHog. Each push creates a deployment with its own preview URL."- isEmpty+ ),+ },+ {+ width: 0,+ render: (_, d) => (+ <More+ overlay={+ <>+ <LemonButton fullWidth onClick={() => confirmRedeploy(d)}>+ Redeploy+ </LemonButton>+ <LemonButton+ fullWidth+ onClick={() => confirmRollback(d)}+ disabledReason={d.is_current ? 'Already current' : undefined}+ >+ Rollback+ </LemonButton>+ {d.repo_url && d.commit_sha && (+ <LemonButton fullWidth to={`${d.repo_url}/commit/${d.commit_sha}`} targetBlank>+ View source+ </LemonButton>+ )}+ <LemonButton+ fullWidth+ to={d.deployment_url || undefined}+ targetBlank+ disabledReason={!d.deployment_url ? 'Not available' : undefined}+ >+ View live+ </LemonButton>+ </>+ }/>- {/* TODO(deployments-v1): replace ProductIntroduction with a LemonTable of deployments. */}- </SceneContent>- </BindLogic>+ ),+ },+ ]++ const pagination: PaginationManual = {+ controlled: true,+ pageSize: DEPLOYMENTS_PER_PAGE,+ currentPage: filters.page,+ entryCount: deploymentsCount,+ onForward: () => setFilters({ page: filters.page + 1 }),+ onBackward: () => setFilters({ page: Math.max(1, filters.page - 1) }),+ }++ return (+ <SceneContent>+ <SceneTitleSection+ name={sceneConfigurations[Scene.Deployments]?.name ?? 'Deployments'}+ description={+ sceneConfigurations[Scene.Deployments]?.description ??+ 'View, redeploy, and roll back deployments of your app.'+ }+ resourceType={{ type: 'deployments' }}+ />++ {/* Project picker — top of the page since the card + table below+ are scoped to the currently-selected deployment project. */}+ {!hasNoProjects && deploymentProjects.length > 0 && (+ <div className="flex items-center gap-2">+ <span className="text-secondary text-sm">Project:</span>+ <LemonSelect+ value={selectedProjectId}+ options={deploymentProjects.map((p) => ({+ value: p.id,+ label: p.name,+ }))}+ onChange={(id) => setSelectedProjectId(id ?? null)}+ loading={deploymentProjectsLoading}+ className="min-w-64"+ data-attr="deployments-project-switcher"+ />+ </div>+ )}++ {currentDeployment && <CurrentDeploymentCard deployment={currentDeployment} />}++ <ProductIntroduction+ productName="Deployments"+ productKey={ProductKey.DEPLOYMENTS}+ thingName="deployment"+ description={+ hasNoProjects+ ? 'Connect a repo to start deploying. Each push creates a new deployment with its own preview URL.'+ : 'Track and manage every deployment of your app — see status, duration, who shipped it, and instantly redeploy or roll back.'+ }+ isEmpty={shouldShowEmptyState}+ action={() =>+ LemonDialog.open({+ title: 'Connect a repo',+ description:+ 'Project provisioning (GitHub install, Cloudflare setup) is coming. Once a deployment project exists for your team it shows up here automatically.',+ primaryButton: { children: 'Got it', type: 'primary' },+ })+ }+ />++ {!shouldShowEmptyState && (+ <>+ {selectedProjectId && (+ <>+ <DeploymentsFilters />+ <LemonTable+ dataSource={deployments}+ columns={columns}+ loading={deploymentsLoading}+ pagination={pagination}+ rowKey="id"+ data-attr="deployments-table"+ />+ </>+ )}+ {!selectedProjectId && !deploymentProjectsLoading && (+ <LemonBanner type="info">Pick a deployment project to see its history.</LemonBanner>+ )}+ </>+ )}+ </SceneContent>)}diff --git a/products/deployments/frontend/components/CurrentDeploymentCard.tsx b/products/deployments/frontend/components/CurrentDeploymentCard.tsxindex 7b001ed7a753..0cc610f959f7 100644--- a/products/deployments/frontend/components/CurrentDeploymentCard.tsx+++ b/products/deployments/frontend/components/CurrentDeploymentCard.tsx@@ -1,7 +1,78 @@-// TODO(deployments-v1): render the team's currently-serving deployment with-// commit metadata, preview image, status tag, and "View live" / "View source" actions.-export function CurrentDeploymentCard(): null {- return null-}+import { IconExternal, IconGithub } from '@posthog/icons'+import { LemonButton, LemonCard, LemonTag } from '@posthog/lemon-ui'++import { CopyToClipboardInline } from 'lib/components/CopyToClipboard'+import { TZLabel } from 'lib/components/TZLabel'+import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'-export default CurrentDeploymentCard+import { Deployment, formatDuration } from '../fixtures'+import { DeploymentPreviewImage } from './DeploymentPreviewImage'+import { DeploymentStatusTag } from './DeploymentStatusTag'++export function CurrentDeploymentCard({ deployment: d }: { deployment: Deployment }): JSX.Element {+ return (+ <LemonCard hoverEffect={false} className="overflow-hidden">+ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">+ <DeploymentPreviewImage+ src={d.preview_image_url ?? ''}+ alt={`Preview of ${d.commit_message || d.id}`}+ className="aspect-video md:aspect-auto md:h-full"+ failed={d.status === 'error'}+ />+ <div className="flex flex-col gap-4">+ {d.branch && <div className="font-mono text-sm text-secondary">{d.branch}</div>}+ <div className="flex items-center gap-2 flex-wrap">+ <CopyToClipboardInline description="deployment id" explicitValue={d.id}>+ <span className="font-mono text-sm">{d.id}</span>+ </CopyToClipboardInline>+ {d.is_current && <LemonTag type="success">Current</LemonTag>}+ <DeploymentStatusTag status={d.status} />+ </div>+ <div className="text-lg font-semibold">{d.commit_message || d.commit_sha || d.id}</div>+ {d.status === 'error' && d.error_message && (+ <div className="text-sm text-danger">+ {d.error_step ? <strong>Failed at {d.error_step}: </strong> : null}+ {d.error_message}+ </div>+ )}+ <dl className="grid grid-cols-2 gap-x-4 gap-y-2 text-sm">+ <dt className="text-secondary">Duration</dt>+ <dd>{formatDuration(d.duration_seconds)}</dd>+ <dt className="text-secondary">Deployed</dt>+ <dd>+ <TZLabel time={d.created_at} />+ </dd>+ <dt className="text-secondary">Author</dt>+ <dd>+ <ProfilePicture+ user={{+ first_name: d.commit_author_name ?? '',+ email: d.commit_author_email ?? '',+ }}+ size="sm"+ showName+ />+ </dd>+ </dl>+ <div className="flex gap-2 mt-auto pt-2">+ {d.repo_url && d.commit_sha && (+ <LemonButton+ type="secondary"+ to={`${d.repo_url}/commit/${d.commit_sha}`}+ targetBlank+ sideIcon={<IconGithub />}+ >+ View source+ </LemonButton>+ )}+ {d.deployment_url && (+ <LemonButton type="primary" to={d.deployment_url} targetBlank sideIcon={<IconExternal />}>+ View live+ </LemonButton>+ )}+ </div>+ </div>+ </div>+ </LemonCard>+ )+}diff --git a/products/deployments/frontend/components/DeploymentPreviewImage.tsx b/products/deployments/frontend/components/DeploymentPreviewImage.tsxnew file mode 100644index 000000000000..0f96174a18ec--- /dev/null+++ b/products/deployments/frontend/components/DeploymentPreviewImage.tsx@@ -0,0 +1,44 @@+import { useState } from 'react'++import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton/LemonSkeleton'++interface DeploymentPreviewImageProps {+ src: string+ alt: string+ className?: string+ failed?: boolean+}++export function DeploymentPreviewImage({ src, alt, className, failed }: DeploymentPreviewImageProps): JSX.Element {+ const [loading, setLoading] = useState(!!src && !failed)+ const [errored, setErrored] = useState(false)+ const showImage = !failed && !!src && !errored++ return (+ <div className={`relative overflow-hidden bg-surface-secondary rounded ${className ?? ''}`}>+ {failed && (+ <div className="absolute inset-0 flex items-center justify-center text-danger text-sm font-semibold">+ Build failed+ </div>+ )}+ {!failed && loading && <LemonSkeleton className="absolute inset-0 w-full h-full" />}+ {!failed && !loading && !showImage && (+ <div className="absolute inset-0 flex items-center justify-center text-secondary text-sm">+ No preview+ </div>+ )}+ {showImage && (+ <img+ src={src}+ alt={alt}+ className="w-full h-full object-cover"+ onLoad={() => setLoading(false)}+ onError={() => {+ setLoading(false)+ setErrored(true)+ }}+ />+ )}+ </div>+ )+}diff --git a/products/deployments/frontend/components/DeploymentStatusTag.tsx b/products/deployments/frontend/components/DeploymentStatusTag.tsxindex 6386b0c63d6a..a07b471f0c5c 100644--- a/products/deployments/frontend/components/DeploymentStatusTag.tsx+++ b/products/deployments/frontend/components/DeploymentStatusTag.tsx@@ -1,7 +1,25 @@-// TODO(deployments-v1): render a coloured LemonTag for each Deployment.Status-// (queued, initializing, building, ready, error, cancelled).-export function DeploymentStatusTag(): null {- return null+import { LemonTag, LemonTagType } from 'lib/lemon-ui/LemonTag'++import { DeploymentStatus } from '../fixtures'++const STATUS_TYPE: Record<DeploymentStatus, LemonTagType> = {+ ready: 'success',+ error: 'danger',+ building: 'primary',+ queued: 'default',+ initializing: 'default',+ cancelled: 'muted',}-export default DeploymentStatusTag+const STATUS_LABEL: Record<DeploymentStatus, string> = {+ ready: 'Ready',+ error: 'Error',+ building: 'Building',+ queued: 'Queued',+ initializing: 'Initializing',+ cancelled: 'Cancelled',+}++export function DeploymentStatusTag({ status }: { status: DeploymentStatus }): JSX.Element {+ return <LemonTag type={STATUS_TYPE[status]}>{STATUS_LABEL[status]}</LemonTag>+}diff --git a/products/deployments/frontend/components/DeploymentsFilters.tsx b/products/deployments/frontend/components/DeploymentsFilters.tsxindex cccba362e995..1a6bf721d743 100644--- a/products/deployments/frontend/components/DeploymentsFilters.tsx+++ b/products/deployments/frontend/components/DeploymentsFilters.tsx@@ -1,7 +1,57 @@-// TODO(deployments-v1): render status / author / search filter inputs and-// wire them through to `deploymentsLogic.setFilters`.-export function DeploymentsFilters(): null {- return null-}+import { useActions, useValues } from 'kea'++import { LemonInput, LemonInputSelect, LemonSelect } from '@posthog/lemon-ui'++import { deploymentsLogic } from '../deploymentsLogic'+import { DeploymentStatus } from '../fixtures'-export default DeploymentsFilters+const STATUS_OPTIONS: { label: string; key: DeploymentStatus }[] = [+ { label: 'Ready', key: 'ready' },+ { label: 'Error', key: 'error' },+ { label: 'Building', key: 'building' },+ { label: 'Queued', key: 'queued' },+ { label: 'Initializing', key: 'initializing' },+ { label: 'Cancelled', key: 'cancelled' },+]++export function DeploymentsFilters(): JSX.Element {+ const { filters, authorOptions } = useValues(deploymentsLogic)+ const { setFilters } = useActions(deploymentsLogic)++ return (+ <div className="flex flex-wrap items-center gap-2">+ <LemonInput+ type="search"+ placeholder="Search by commit, branch, or id"+ value={filters.search}+ onChange={(search) => setFilters({ search, page: 1 })}+ className="min-w-64"+ />+ <div className="w-64">+ <LemonInputSelect+ mode="multiple"+ placeholder="Status"+ options={STATUS_OPTIONS}+ value={filters.status}+ onChange={(status) => setFilters({ status: status as DeploymentStatus[], page: 1 })}+ allowCustomValues={false}+ autoWidth={false}+ />+ </div>+ <div className="w-64">+ {/* Backend supports a single `author` query param (icontains on email).+ LemonSelect is the right single-value picker; users can clear to "Any author". */}+ <LemonSelect+ placeholder="Any author"+ options={[+ { value: null as unknown as string, label: 'Any author' },+ ...authorOptions.map((o) => ({ value: o.value, label: o.label })),+ ]}+ value={filters.author}+ onChange={(author) => setFilters({ author: author ?? null, page: 1 })}+ allowClear+ />+ </div>+ </div>+ )+}diff --git a/products/deployments/frontend/deploymentLogic.test.ts b/products/deployments/frontend/deploymentLogic.test.tsnew file mode 100644index 000000000000..4b4459f52cbc--- /dev/null+++ b/products/deployments/frontend/deploymentLogic.test.ts@@ -0,0 +1,175 @@+import { router } from 'kea-router'+import { expectLogic } from 'kea-test-utils'++import { Scene } from 'scenes/sceneTypes'++import { useMocks } from '~/mocks/jest'+import { initKeaTests } from '~/test/init'++import { deploymentLogic } from './deploymentLogic'+import { deploymentsLogic } from './deploymentsLogic'+import type { DeploymentApi, DeploymentProjectApi } from './generated/api.schemas'++const project: DeploymentProjectApi = {+ id: 'project-1',+ name: 'Site',+ slug: 'site',+ repo_url: 'https://github.com/acme/site',+ default_branch: 'main',+ github_integration_id: null,+ github_repo_id: null,+ build_command: null,+ output_dir: 'dist',+ framework: null,+ inject_posthog_snippet: false,+ cloudflare_project_name: 'team-site',+ subdomain: 'site.pages.dev',+ cloudflare_ready_at: '2026-05-01T00:00:00Z',+ current_deployment: 'dep-current',+ is_ready_to_deploy: true,+ created_at: '2026-05-01T00:00:00Z',+ updated_at: '2026-05-01T00:00:00Z',+}++const deployments: DeploymentApi[] = [+ {+ id: 'dep-current',+ project: project.id,+ status: 'ready',+ started_at: '2026-05-13T12:00:00Z',+ finished_at: '2026-05-13T12:01:30Z',+ created_at: '2026-05-13T12:00:00Z',+ commit_sha: '7a3f9c2',+ commit_message: 'feat: ship deployments',+ commit_author_name: 'Alice',+ commit_author_email: '[email protected]',+ repo_url: 'https://github.com/acme/site',+ branch: 'main',+ deployment_url: 'https://site-dep-current.pages.dev',+ preview_image_url: '',+ triggered_by_deployment: null,+ triggered_by_user_id: null,+ trigger_kind: 'git',+ error_message: '',+ error_step: '',+ cloudflare_deployment_id: 'cf-1',+ temporal_workflow_id: '',+ is_current: true,+ duration_seconds: 90,+ },+]++describe('deploymentLogic', () => {+ let listLogic: ReturnType<typeof deploymentsLogic.build>++ beforeEach(async () => {+ initKeaTests()++ useMocks({+ get: {+ '/api/projects/:team/deployment_projects/': () => [+ 200,+ { count: 1, next: null, previous: null, results: [project] },+ ],+ '/api/projects/:team/deployment_projects/:project_id/deployments/': () => [+ 200,+ { count: deployments.length, next: null, previous: null, results: deployments },+ ],+ '/api/projects/:team/deployment_projects/:project_id/deployments/:id/': (req) => {+ const found = deployments.find((d) => d.id === String(req.params.id))+ return found ? [200, found] : [404, { detail: 'Not found' }]+ },+ },+ })++ router.actions.push('/deployments')++ listLogic = deploymentsLogic()+ listLogic.mount()+ await expectLogic(listLogic).toFinishAllListeners()+ })++ afterEach(() => {+ listLogic?.unmount()+ })++ it('fetches the deployment by id from the retrieve endpoint', async () => {+ const detail = deploymentLogic({ id: 'dep-current' })+ detail.mount()+ try {+ await expectLogic(detail).toFinishAllListeners()+ expect(detail.values.deployment?.id).toEqual('dep-current')+ expect(detail.values.deployment?.commit_message).toEqual('feat: ship deployments')+ expect(detail.values.deploymentMissing).toBe(false)+ } finally {+ detail.unmount()+ }+ })++ it('flags deploymentMissing once the retrieve returns 404', async () => {+ const detail = deploymentLogic({ id: 'does-not-exist' })+ detail.mount()+ try {+ await expectLogic(detail).toFinishAllListeners()+ expect(detail.values.deploymentLoading).toBe(false)+ expect(detail.values.deployment).toBeNull()+ expect(detail.values.deploymentMissing).toBe(true)+ } finally {+ detail.unmount()+ }+ })++ it('builds breadcrumbs: Deployments → commit message (or id when missing)', async () => {+ const found = deploymentLogic({ id: 'dep-current' })+ found.mount()+ try {+ await expectLogic(found).toFinishAllListeners()+ const crumbs = found.values.breadcrumbs+ expect(crumbs).toHaveLength(2)+ expect(crumbs[0]).toMatchObject({ key: Scene.Deployments, name: 'Deployments' })+ expect(crumbs[1]).toMatchObject({ name: 'feat: ship deployments' })+ } finally {+ found.unmount()+ }++ const missing = deploymentLogic({ id: 'does-not-exist' })+ missing.mount()+ try {+ await expectLogic(missing).toFinishAllListeners()+ const crumbs = missing.values.breadcrumbs+ // Falls back to 'Deployment' literal when retrieve returns no row.+ expect(crumbs[1]).toMatchObject({ name: 'Deployment' })+ } finally {+ missing.unmount()+ }+ })++ it('deep-link: loads the deployment once projects finish loading', async () => {+ // Simulate a cold start — the list logic has not been mounted yet, so+ // selectedProjectId is null when deploymentLogic mounts.+ listLogic.unmount()+ initKeaTests()+ useMocks({+ get: {+ '/api/projects/:team/deployment_projects/': () => [+ 200,+ { count: 1, next: null, previous: null, results: [project] },+ ],+ '/api/projects/:team/deployment_projects/:project_id/deployments/:id/': (req) => {+ const found = deployments.find((d) => d.id === String(req.params.id))+ return found ? [200, found] : [404, { detail: 'Not found' }]+ },+ },+ })++ const detail = deploymentLogic({ id: 'dep-current' })+ detail.mount()+ try {+ await expectLogic(detail).toFinishAllListeners()+ expect(detail.values.deployment?.id).toEqual('dep-current')+ expect(detail.values.deploymentMissing).toBe(false)+ } finally {+ detail.unmount()+ }+ })+})diff --git a/products/deployments/frontend/deploymentLogic.ts b/products/deployments/frontend/deploymentLogic.tsnew file mode 100644index 000000000000..eaca624d7619--- /dev/null+++ b/products/deployments/frontend/deploymentLogic.ts@@ -0,0 +1,83 @@+import { afterMount, connect, kea, key, listeners, path, props, selectors } from 'kea'+import { loaders } from 'kea-loaders'++import { Scene } from 'scenes/sceneTypes'+import { teamLogic } from 'scenes/teamLogic'+import { urls } from 'scenes/urls'++import { Breadcrumb } from '~/types'++import type { deploymentLogicType } from './deploymentLogicType'+import { deploymentsLogic } from './deploymentsLogic'+import { Deployment } from './fixtures'+import { deploymentProjectsDeploymentsRetrieve } from './generated/api'++export interface DeploymentLogicProps {+ id: string+}++export const deploymentLogic = kea<deploymentLogicType>([+ props({} as DeploymentLogicProps),+ key(({ id }) => id),+ path((key) => ['products', 'deployments', 'frontend', 'deploymentLogic', key]),+ connect(() => ({+ values: [teamLogic, ['currentTeamId'], deploymentsLogic, ['selectedProjectId', 'deploymentProjects']],+ actions: [+ deploymentsLogic,+ ['loadDeploymentProjects', 'setSelectedProjectId', 'redeployDeployment', 'rollbackDeployment'],+ ],+ })),+ loaders(({ values, props }) => ({+ deployment: [+ null as Deployment | null,+ {+ // Fetch the deployment by ID directly so the detail page works+ // even when the list view hasn't loaded it (different page,+ // different project, deep link).+ loadDeployment: async (): Promise<Deployment | null> => {+ const teamId = values.currentTeamId+ const projectId = values.selectedProjectId+ if (!teamId || !projectId) {+ return null+ }+ return deploymentProjectsDeploymentsRetrieve(String(teamId), projectId, props.id)+ },+ },+ ],+ })),+ selectors(({ props }) => ({+ deploymentMissing: [+ (s) => [s.deployment, s.deploymentLoading],+ (d: Deployment | null, loading: boolean): boolean => !loading && !d,+ ],+ breadcrumbs: [+ (s) => [s.deployment],+ (d: Deployment | null): Breadcrumb[] => [+ { key: Scene.Deployments, name: 'Deployments', path: urls.deployments() },+ {+ key: [Scene.Deployment, props.id],+ name: d?.commit_message || d?.id || 'Deployment',+ },+ ],+ ],+ })),+ // On a deep link the parent `deploymentsLogic` mounts alongside us but its+ // project list loads async, so `selectedProjectId` is `null` at+ // `afterMount`. Re-fire `loadDeployment` once the parent's auto-select or+ // any explicit project switch lands.+ listeners(({ actions, values }) => ({+ setSelectedProjectId: () => {+ if (values.selectedProjectId) {+ actions.loadDeployment()+ }+ },+ })),+ afterMount(({ actions, values }) => {+ if (values.deploymentProjects.length === 0) {+ actions.loadDeploymentProjects()+ }+ if (values.selectedProjectId) {+ actions.loadDeployment()+ }+ }),+])diff --git a/products/deployments/frontend/deploymentsLogic.test.ts b/products/deployments/frontend/deploymentsLogic.test.tsnew file mode 100644index 000000000000..5ca047cff922--- /dev/null+++ b/products/deployments/frontend/deploymentsLogic.test.ts@@ -0,0 +1,260 @@+import { router } from 'kea-router'+import { expectLogic } from 'kea-test-utils'++import { useMocks } from '~/mocks/jest'+import { initKeaTests } from '~/test/init'++import { deploymentsLogic } from './deploymentsLogic'+import type { DeploymentApi, DeploymentProjectApi } from './generated/api.schemas'++const makeProject = (id: string, name: string): DeploymentProjectApi => ({+ id,+ name,+ slug: name.toLowerCase(),+ repo_url: `https://github.com/acme/${name.toLowerCase()}`,+ default_branch: 'main',+ github_integration_id: null,+ github_repo_id: null,+ build_command: null,+ output_dir: 'dist',+ framework: null,+ inject_posthog_snippet: false,+ cloudflare_project_name: `team-${name.toLowerCase()}`,+ subdomain: `${name.toLowerCase()}.pages.dev`,+ cloudflare_ready_at: '2026-05-01T00:00:00Z',+ current_deployment: `${id}-d1`,+ is_ready_to_deploy: true,+ created_at: '2026-05-01T00:00:00Z',+ updated_at: '2026-05-01T00:00:00Z',+})++const makeDeployment = (id: string, overrides: Partial<DeploymentApi> = {}): DeploymentApi => ({+ id,+ project: 'project-1',+ status: 'ready',+ started_at: '2026-05-13T12:00:00Z',+ finished_at: '2026-05-13T12:01:30Z',+ created_at: '2026-05-13T12:00:00Z',+ commit_sha: id.slice(0, 7),+ commit_message: `commit ${id}`,+ commit_author_name: 'Alice',+ commit_author_email: '[email protected]',+ repo_url: 'https://github.com/acme/site',+ branch: 'main',+ deployment_url: `https://site-${id}.pages.dev`,+ preview_image_url: '',+ triggered_by_deployment: null,+ triggered_by_user_id: null,+ trigger_kind: 'git',+ error_message: '',+ error_step: '',+ cloudflare_deployment_id: '',+ temporal_workflow_id: '',+ is_current: false,+ duration_seconds: 90,+ ...overrides,+})++describe('deploymentsLogic', () => {+ let logic: ReturnType<typeof deploymentsLogic.build>+ let lastDeploymentsRequestUrl: string | null++ const projectA = makeProject('project-1', 'Site')+ const projectB = makeProject('project-2', 'Docs')++ beforeEach(async () => {+ initKeaTests()+ lastDeploymentsRequestUrl = null++ useMocks({+ get: {+ '/api/projects/:team/deployment_projects/': () => [+ 200,+ { count: 2, next: null, previous: null, results: [projectA, projectB] },+ ],+ '/api/projects/:team/deployment_projects/:project_id/deployments/': (req) => {+ lastDeploymentsRequestUrl = req.url.toString()+ return [+ 200,+ {+ count: 1,+ next: null,+ previous: null,+ results: [+ makeDeployment(`${req.params.project_id}-d1`, {+ project: String(req.params.project_id),+ is_current: true,+ }),+ ],+ },+ ]+ },+ '/api/projects/:team/deployment_projects/:project_id/deployments/:id/': (req) => [+ 200,+ makeDeployment(String(req.params.id), {+ project: String(req.params.project_id),+ is_current: true,+ }),+ ],+ },+ post: {+ '/api/projects/:team/deployment_projects/:project_id/deployments/:id/redeploy/': () => [+ 201,+ makeDeployment('new-redeploy', { status: 'queued', trigger_kind: 'redeploy' }),+ ],+ '/api/projects/:team/deployment_projects/:project_id/deployments/:id/rollback/': () => [+ 201,+ makeDeployment('new-rollback', { status: 'ready', trigger_kind: 'rollback' }),+ ],+ },+ })++ router.actions.push('/deployments')++ logic = deploymentsLogic()+ logic.mount()++ await expectLogic(logic).toFinishAllListeners()+ })++ afterEach(() => {+ logic?.unmount()+ })++ it('auto-selects the first project after loading projects', () => {+ expect(logic.values.deploymentProjects.map((p) => p.id)).toEqual([projectA.id, projectB.id])+ expect(logic.values.selectedProjectId).toEqual(projectA.id)+ })++ it('loads deployments for the selected project on auto-select', () => {+ expect(logic.values.deployments).toHaveLength(1)+ expect(logic.values.deployments[0]?.project).toEqual(projectA.id)+ expect(logic.values.currentDeployment?.is_current).toBe(true)+ })++ it('reloads deployments and resets filters when switching projects', async () => {+ await expectLogic(logic, () => {+ logic.actions.setFilters({ search: 'feat' })+ }).toMatchValues({ filters: expect.objectContaining({ search: 'feat' }) })++ await expectLogic(logic, () => {+ logic.actions.setSelectedProjectId(projectB.id)+ }).toFinishAllListeners()++ expect(logic.values.selectedProjectId).toEqual(projectB.id)+ // setSelectedProjectId resets filters to DEFAULT_DEPLOYMENT_FILTERS+ expect(logic.values.filters.search).toEqual('')+ expect(logic.values.deployments[0]?.project).toEqual(projectB.id)+ })++ it('forwards status/author/search to the backend as query params', async () => {+ await expectLogic(logic, () => {+ logic.actions.setFilters({+ search: 'feat: add',+ status: ['ready', 'error'],+ author: '[email protected]',+ })+ }).toFinishAllListeners()++ expect(lastDeploymentsRequestUrl).not.toBeNull()+ const url = new URL(lastDeploymentsRequestUrl!)+ expect(url.searchParams.get('search')).toEqual('feat: add')+ expect(url.searchParams.get('status')).toEqual('ready,error')+ expect(url.searchParams.get('author')).toEqual('[email protected]')+ // Order/limit/offset always sent+ expect(url.searchParams.get('ordering')).toEqual('-created_at')+ expect(url.searchParams.get('limit')).toEqual('50')+ expect(url.searchParams.get('offset')).toEqual('0')+ })++ it('resets `page` to 1 when filters change', async () => {+ await expectLogic(logic, () => {+ logic.actions.setFilters({ page: 3 })+ }).toMatchValues({ filters: expect.objectContaining({ page: 3 }) })++ await expectLogic(logic, () => {+ logic.actions.setFilters({ search: 'something' })+ }).toMatchValues({ filters: expect.objectContaining({ page: 1, search: 'something' }) })+ })++ it('redeployDeployment calls the nested redeploy endpoint then reloads', async () => {+ const redeploySpy = jest.fn(+ () =>+ [201, makeDeployment('new-redeploy', { status: 'queued', trigger_kind: 'redeploy' })] as [+ number,+ DeploymentApi,+ ]+ )+ useMocks({+ post: {+ '/api/projects/:team/deployment_projects/:project_id/deployments/:id/redeploy/': redeploySpy,+ },+ })++ await expectLogic(logic, () => {+ logic.actions.redeployDeployment('project-1-d1')+ }).toFinishAllListeners()++ expect(redeploySpy).toHaveBeenCalled()+ const calledReq = (redeploySpy.mock.calls[0] as unknown as [{ params: Record<string, string> }])[0]+ expect(calledReq.params.project_id).toEqual(projectA.id)+ expect(calledReq.params.id).toEqual('project-1-d1')+ })++ it('rollbackDeployment calls the nested rollback endpoint then reloads', async () => {+ const rollbackSpy = jest.fn(+ () =>+ [201, makeDeployment('new-rollback', { status: 'ready', trigger_kind: 'rollback' })] as [+ number,+ DeploymentApi,+ ]+ )+ useMocks({+ post: {+ '/api/projects/:team/deployment_projects/:project_id/deployments/:id/rollback/': rollbackSpy,+ },+ })++ await expectLogic(logic, () => {+ logic.actions.rollbackDeployment('project-1-d1')+ }).toFinishAllListeners()++ expect(rollbackSpy).toHaveBeenCalled()+ const calledReq = (rollbackSpy.mock.calls[0] as unknown as [{ params: Record<string, string> }])[0]+ expect(calledReq.params.project_id).toEqual(projectA.id)+ expect(calledReq.params.id).toEqual('project-1-d1')+ })++ it('pushes filters and project to the URL when set', async () => {+ await expectLogic(logic, () => {+ logic.actions.setFilters({ search: 'feat', status: ['ready', 'error'] })+ }).toFinishAllListeners()++ expect(router.values.searchParams.search).toEqual('feat')+ expect(router.values.searchParams.status).toEqual('ready,error')+ expect(router.values.searchParams.project).toEqual(projectA.id)+ })++ it('hasNoProjects + shouldShowEmptyState behave correctly across states', async () => {+ // Loaded with two projects → not empty.+ expect(logic.values.hasNoProjects).toBe(false)+ expect(logic.values.shouldShowEmptyState).toBe(false)++ // No projects path: mock empty project list and force a reload.+ useMocks({+ get: {+ '/api/projects/:team/deployment_projects/': () => [+ 200,+ { count: 0, next: null, previous: null, results: [] },+ ],+ },+ })++ await expectLogic(logic, () => {+ logic.actions.loadDeploymentProjects()+ }).toFinishAllListeners()++ expect(logic.values.hasNoProjects).toBe(true)+ expect(logic.values.shouldShowEmptyState).toBe(true)+ })+})diff --git a/products/deployments/frontend/deploymentsLogic.ts b/products/deployments/frontend/deploymentsLogic.tsindex 0ce6d10fe356..743c71597b2a 100644--- a/products/deployments/frontend/deploymentsLogic.ts+++ b/products/deployments/frontend/deploymentsLogic.ts@@ -1,67 +1,338 @@-import { actions, afterMount, kea, key, path, props, reducers } from 'kea'+import { actions, afterMount, connect, kea, listeners, path, reducers, selectors } from 'kea'import { loaders } from 'kea-loaders'-import { actionToUrl, urlToAction } from 'kea-router'+import { actionToUrl, router, urlToAction } from 'kea-router'+import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'+import { objectsEqual } from 'lib/utils'+import { teamLogic } from 'scenes/teamLogic'import { urls } from 'scenes/urls'import type { deploymentsLogicType } from './deploymentsLogicType'-import type { DeploymentApi } from './generated/api.schemas'+import {+ DEFAULT_DEPLOYMENT_FILTERS,+ Deployment,+ DEPLOYMENTS_PER_PAGE,+ DeploymentProject,+ DeploymentsFilters,+ DeploymentStatus,+} from './fixtures'+import {+ deploymentProjectsDeploymentsList,+ deploymentProjectsDeploymentsRedeployCreate,+ deploymentProjectsDeploymentsRetrieve,+ deploymentProjectsDeploymentsRollbackCreate,+ deploymentProjectsList,+} from './generated/api'+import type { DeploymentApi, DeploymentProjectApi, PaginatedDeploymentListApi } from './generated/api.schemas'-export interface DeploymentsFilters {- status: string | null- author: string | null- search: string+const filtersFromParams = (params: Record<string, any>): Partial<DeploymentsFilters> => {+ const out: Partial<DeploymentsFilters> = {}+ if (typeof params.search === 'string') {+ out.search = params.search+ }+ if (typeof params.author === 'string' && params.author) {+ out.author = params.author+ }+ if (typeof params.order === 'string') {+ out.order = params.order+ }+ if (params.page !== undefined) {+ const page = parseInt(String(params.page))+ if (!isNaN(page)) {+ out.page = page+ }+ }+ if (typeof params.status === 'string') {+ out.status = params.status.split(',').filter(Boolean) as DeploymentStatus[]+ } else if (Array.isArray(params.status)) {+ out.status = params.status as DeploymentStatus[]+ }+ return out}-export const DEFAULT_DEPLOYMENT_FILTERS: DeploymentsFilters = {- status: null,- author: null,- search: '',+const filtersToParams = (filters: DeploymentsFilters, projectId: string | null): Record<string, string | number> => {+ const params: Record<string, string | number> = {}+ if (projectId) {+ params.project = projectId+ }+ if (filters.search) {+ params.search = filters.search+ }+ if (filters.author) {+ params.author = filters.author+ }+ if (filters.order !== DEFAULT_DEPLOYMENT_FILTERS.order) {+ params.order = filters.order+ }+ if (filters.page > 1) {+ params.page = filters.page+ }+ if (filters.status.length > 0) {+ params.status = filters.status.join(',')+ }+ return params}-export interface DeploymentsLogicProps {- tabId: string+/**+ * Build the query params the backend `DeploymentViewSet.safely_get_queryset`+ * reads. Beyond `limit`/`offset`/`ordering`/`search` (typed in+ * `DeploymentProjectsDeploymentsListParams`), the viewset also accepts+ * `status` (comma-separated) and `author` (single email, icontains).+ * The generated URL builder iterates over all entries so we can pass the+ * extras with a cast.+ */+const buildListQueryParams = (filters: DeploymentsFilters, pageSize: number): Record<string, string | number> => {+ const offset = (filters.page - 1) * pageSize+ const params: Record<string, string | number> = {+ limit: pageSize,+ offset,+ ordering: filters.order,+ }+ if (filters.search.trim()) {+ params.search = filters.search.trim()+ }+ if (filters.author) {+ params.author = filters.author+ }+ if (filters.status.length > 0) {+ params.status = filters.status.join(',')+ }+ return params}export const deploymentsLogic = kea<deploymentsLogicType>([path(['products', 'deployments', 'frontend', 'deploymentsLogic']),- props({} as DeploymentsLogicProps),- key((props) => props.tabId),+ connect(() => ({+ values: [teamLogic, ['currentTeamId']],+ })),actions({- // TODO(deployments-v1): wire setFilters once <DeploymentsFilters/> exists.setFilters: (filters: Partial<DeploymentsFilters>) => ({ filters }),+ resetFilters: true,+ setSelectedProjectId: (projectId: string | null) => ({ projectId }),+ redeployDeployment: (id: string) => ({ id }),+ rollbackDeployment: (id: string) => ({ id }),}),- loaders(() => ({- deployments: [- [] as DeploymentApi[],+ reducers({+ filters: [+ DEFAULT_DEPLOYMENT_FILTERS,+ {+ setFilters: (state, { filters }) => ({+ ...state,+ ...filters,+ page:+ filters.page ??+ (filters.search !== undefined || filters.status !== undefined || filters.author !== undefined+ ? 1+ : state.page),+ }),+ resetFilters: () => DEFAULT_DEPLOYMENT_FILTERS,+ setSelectedProjectId: () => DEFAULT_DEPLOYMENT_FILTERS,+ },+ ],+ selectedProjectId: [+ null as string | null,+ {+ setSelectedProjectId: (_, { projectId }) => projectId,+ },+ ],+ }),+ loaders(({ values }) => ({+ deploymentProjects: [+ [] as DeploymentProjectApi[],{- loadDeployments: async () => {- // Deployments are now nested under DeploymentProject; the list scene- // owned by the Frontend stream will pick a project and call- // `deploymentProjectsDeploymentsList(projectId, deploymentProjectId)`.- return []+ loadDeploymentProjects: async (): Promise<DeploymentProjectApi[]> => {+ const teamId = values.currentTeamId+ if (!teamId) {+ return []+ }+ const response = await deploymentProjectsList(String(teamId), { limit: 100 })+ return response.results ?? []},},],- })),- reducers({- filters: [- DEFAULT_DEPLOYMENT_FILTERS,+ deploymentsResponse: [+ null as PaginatedDeploymentListApi | null,{- setFilters: (state, { filters }) => ({ ...state, ...filters }),+ loadDeployments: async (): Promise<PaginatedDeploymentListApi | null> => {+ const teamId = values.currentTeamId+ const projectId = values.selectedProjectId+ if (!teamId || !projectId) {+ return null+ }+ return deploymentProjectsDeploymentsList(+ String(teamId),+ projectId,+ buildListQueryParams(values.filters, DEPLOYMENTS_PER_PAGE) as any+ )+ },+ },+ ],+ // The currently-serving deployment is fetched separately by ID so it+ // stays visible no matter which page or filter combination the user+ // is on — otherwise pagination / a status filter that excludes it+ // would hide the CurrentDeploymentCard.+ currentDeployment: [+ null as DeploymentApi | null,+ {+ loadCurrentDeployment: async (): Promise<DeploymentApi | null> => {+ const teamId = values.currentTeamId+ const projectId = values.selectedProjectId+ const currentId = values.selectedProject?.current_deployment ?? null+ if (!teamId || !projectId || !currentId) {+ return null+ }+ return deploymentProjectsDeploymentsRetrieve(String(teamId), projectId, currentId)+ },+ },+ ],+ })),+ listeners(({ actions, values }) => ({+ loadDeploymentProjectsSuccess: ({ deploymentProjects }) => {+ // Auto-select the first project if none is selected yet. The+ // selection persists in `selectedProjectId` so subsequent+ // filter changes don't bounce the picker.+ if (!values.selectedProjectId && deploymentProjects.length > 0) {+ actions.setSelectedProjectId(deploymentProjects[0].id)+ }+ },+ setSelectedProjectId: () => {+ actions.loadDeployments()+ actions.loadCurrentDeployment()+ },+ setFilters: () => {+ actions.loadDeployments()+ },+ resetFilters: () => {+ actions.loadDeployments()+ },+ redeployDeployment: async ({ id }) => {+ const teamId = values.currentTeamId+ const projectId = values.selectedProjectId+ if (!teamId || !projectId) {+ return+ }+ try {+ await deploymentProjectsDeploymentsRedeployCreate(String(teamId), projectId, id)+ actions.loadDeployments()+ actions.loadCurrentDeployment()+ } catch (e: any) {+ lemonToast.error(`Failed to redeploy: ${e?.message ?? 'unknown error'}`)+ }+ },+ rollbackDeployment: async ({ id }) => {+ const teamId = values.currentTeamId+ const projectId = values.selectedProjectId+ if (!teamId || !projectId) {+ return+ }+ try {+ await deploymentProjectsDeploymentsRollbackCreate(String(teamId), projectId, id)+ actions.loadDeployments()+ actions.loadCurrentDeployment()+ } catch (e: any) {+ lemonToast.error(`Failed to roll back: ${e?.message ?? 'unknown error'}`)+ }+ },+ })),+ selectors({+ deployments: [+ (s) => [s.deploymentsResponse],+ (response: PaginatedDeploymentListApi | null): DeploymentApi[] => response?.results ?? [],+ ],+ deploymentsCount: [+ (s) => [s.deploymentsResponse],+ (response: PaginatedDeploymentListApi | null): number => response?.count ?? 0,+ ],+ deploymentsLoading: [(s) => [s.deploymentsResponseLoading], (loading: boolean): boolean => loading],+ selectedProject: [+ (s) => [s.deploymentProjects, s.selectedProjectId],+ (projects: DeploymentProjectApi[], id: string | null): DeploymentProjectApi | null =>+ id ? (projects.find((p) => p.id === id) ?? null) : null,+ ],+ authorOptions: [+ (s) => [s.deployments],+ (rows: DeploymentApi[]): { label: string; value: string }[] => {+ const seen = new Map<string, string>()+ rows.forEach((d) => {+ const email = d.commit_author_email ?? ''+ const name = d.commit_author_name ?? ''+ if (email && !seen.has(email)) {+ seen.set(email, name || email)+ }+ })+ return Array.from(seen.entries())+ .map(([email, name]) => ({ label: name, value: email }))+ .sort((a, b) => a.label.localeCompare(b.label))+ },+ ],+ hasActiveFilters: [+ (s) => [s.filters],+ (filters: DeploymentsFilters): boolean => !!filters.search || !!filters.author || filters.status.length > 0,+ ],+ shouldShowEmptyState: [+ (s) => [+ s.deployments,+ s.deploymentsLoading,+ s.hasActiveFilters,+ s.deploymentProjects,+ s.deploymentProjectsLoading,+ ],+ (+ rows: DeploymentApi[],+ loading: boolean,+ hasFilters: boolean,+ projects: DeploymentProjectApi[],+ projectsLoading: boolean+ ): boolean => {+ if (loading || projectsLoading) {+ return false+ }+ // No projects yet → onboarding empty state.+ if (projects.length === 0) {+ return true+ }+ // Project selected with zero deployments and no filters applied.+ return rows.length === 0 && !hasFilters},],+ hasNoProjects: [+ (s) => [s.deploymentProjects, s.deploymentProjectsLoading],+ (projects: DeploymentProjectApi[], loading: boolean): boolean => !loading && projects.length === 0,+ ],}),- afterMount(({ actions }) => {- actions.loadDeployments()+ actionToUrl(({ values }) => {+ const updateUrl = (): [string, Record<string, any>, Record<string, any>, { replace: boolean }] => {+ return [+ router.values.location.pathname,+ filtersToParams(values.filters, values.selectedProjectId),+ router.values.hashParams,+ { replace: true },+ ]+ }+ return {+ setFilters: updateUrl,+ resetFilters: updateUrl,+ setSelectedProjectId: updateUrl,+ }}),- // TODO(deployments-v1): switch to tabAwareUrlToAction once filters live in the URL.- urlToAction(() => ({- [urls.deployments()]: () => {- // placeholder — nothing to read from the URL yet.+ urlToAction(({ actions, values }) => ({+ [urls.deployments()]: (_, searchParams) => {+ // Adopt project from URL on cold-start.+ if (typeof searchParams.project === 'string' && searchParams.project !== values.selectedProjectId) {+ actions.setSelectedProjectId(searchParams.project)+ }+ const next = filtersFromParams(searchParams)+ const merged = { ...DEFAULT_DEPLOYMENT_FILTERS, ...next }+ if (!objectsEqual(merged, values.filters)) {+ actions.setFilters(merged)+ }},})),- actionToUrl(() => ({- // TODO(deployments-v1): push filter state into the URL.- })),+ afterMount(({ actions }) => {+ actions.loadDeploymentProjects()+ }),])++// Re-export for callers that still import from this module.+export type { Deployment, DeploymentProject, DeploymentsFilters, DeploymentStatus }+export { DEFAULT_DEPLOYMENT_FILTERS }diff --git a/products/deployments/frontend/fixtures.ts b/products/deployments/frontend/fixtures.tsnew file mode 100644index 000000000000..02e9a58cb190--- /dev/null+++ b/products/deployments/frontend/fixtures.ts@@ -0,0 +1,45 @@+/**+ * Shared types + small UI helpers for the Deployments product.+ *+ * Re-exports the canonical generated API types as the names the rest of the+ * scene uses today (`Deployment`, `DeploymentStatus`). Backend-driven filters+ * mean we no longer apply them client-side — see `deploymentProjectsDeploymentsList`+ * in `./generated/api.ts` for the wire shape.+ */+import { DeploymentApi, DeploymentProjectApi, DeploymentStatusEnumApi } from './generated/api.schemas'++export type Deployment = DeploymentApi+export type DeploymentProject = DeploymentProjectApi+export type DeploymentStatus = DeploymentStatusEnumApi+export { DeploymentStatusEnumApi }++export interface DeploymentsFilters {+ search: string+ status: DeploymentStatus[]+ /** Single email — backend supports one author at a time via `author=<email>`. */+ author: string | null+ order: string+ page: number+}++export const DEPLOYMENTS_PER_PAGE = 50++export const DEFAULT_DEPLOYMENT_FILTERS: DeploymentsFilters = {+ search: '',+ status: [],+ author: null,+ order: '-created_at',+ page: 1,+}++export function formatDuration(seconds: number | null | undefined): string {+ if (seconds == null) {+ return '—'+ }+ if (seconds < 60) {+ return `${seconds}s`+ }+ const m = Math.floor(seconds / 60)+ const s = seconds % 60+ return s === 0 ? `${m}m` : `${m}m ${s}s`+}diff --git a/products/deployments/manifest.tsx b/products/deployments/manifest.tsxindex cf399c036ccd..b8c06133899b 100644--- a/products/deployments/manifest.tsx+++ b/products/deployments/manifest.tsx@@ -13,7 +13,7 @@ export const manifest: ProductManifest = {projectBased: true,name: 'Deployments',iconType: 'deployments',- description: 'Build and ship your project site straight from PostHog.',+ description: 'View, redeploy, and roll back deployments of your app.',},Deployment: {import: () => import('./frontend/Deployment'),@@ -29,7 +29,15 @@ export const manifest: ProductManifest = {deployments: (): string => '/deployments',deployment: (id: string): string => `/deployments/${id}`,},- fileSystemTypes: {},+ fileSystemTypes: {+ deployments: {+ name: 'Deployment',+ iconType: 'deployments',+ iconColor: ['var(--color-product-deployments-light)'] as FileSystemIconColor,+ href: () => urls.deployments(),+ filterKey: 'deployments',+ },+ },treeItemsNew: [],treeItemsProducts: [{diff --git a/products/deployments/package.json b/products/deployments/package.jsonindex 07acb64e4684..8caa79e3efb9 100644--- a/products/deployments/package.json+++ b/products/deployments/package.json@@ -10,6 +10,7 @@"posthog-js": "catalog:"},"devDependencies": {+ "@storybook/react": "catalog:","kea-test-utils": "catalog:"},"peerDependencies": {