About
-- We care{" "} - about product passports -
-About
++ We care about product passpo + rts +
- Fashion brands are investing more in sustainability than ever before.{" "} + + Fashion brands are investing more in sustainability than ever + before. + {" "} - The Digital Product Passport is the infrastructure to make that - work visible. We're building the tools to get you there. + The Digital Product Passport is the infrastructure to make that work + visible. We're building the tools to get you there.
Brands are making real progress on materials, sourcing, and - production practices. But most of that effort stays invisible to - the people buying the product. The EU's Digital Product Passport - changes that. It gives brands a standardized way to share - environmental impact data, material origins, and care information - directly with consumers, at the product level. + production practices. But most of that effort stays invisible to the + people buying the product. The EU's Digital Product Passport changes + that. It gives brands a standardized way to share environmental + impact data, material origins, and care information directly with + consumers, at the product level.
Most tools in this space treat the DPP as a compliance problem. They collect supply chain data, generate a document, and move on. The - result is a digital passport that reads like a government form. Dense, - unbranded, and ignored. If the goal is to help consumers make more - conscious decisions, the passport needs to be something people + result is a digital passport that reads like a government form. + Dense, unbranded, and ignored. If the goal is to help consumers make + more conscious decisions, the passport needs to be something people actually want to read.
- Avelero exists because we believe environmental transparency - should be accessible, well-designed, and built into the product - from the start. Not bolted on as an afterthought. Not locked behind - enterprise contracts. Available to every brand that wants to do - this right. + Avelero exists because we believe environmental transparency should + be accessible, well-designed, and built into the product from the + start. Not bolted on as an afterthought. Not locked behind + enterprise contracts. Available to every brand that wants to do this + right.
A product passport is only useful if people engage with it. That - means the design has to be good. Not good enough, but genuinely good. - Typography, layout, color, spacing. Every passport generated through - Avelero can be customized to feel like an extension of the brand it - represents, not a third-party compliance page. + means the design has to be good. Not good enough, but genuinely + good. Typography, layout, color, spacing. Every passport generated + through Avelero can be customized to feel like an extension of the + brand it represents, not a third-party compliance page.
On the data side, lifecycle environmental impact is the single hardest requirement for most brands to fill. Carbon footprint and - water scarcity calculations typically require a separate LCA tool, - a dedicated sustainability team, or both. We built a machine learning + water scarcity calculations typically require a separate LCA tool, a + dedicated sustainability team, or both. We built a machine learning prediction engine directly into the platform that calculates these values from your material compositions and production data. No separate subscriptions. No five-figure consulting engagements. @@ -87,8 +90,8 @@ export function AboutText() {
Moussa Ouallaf · Co-founder. ML engineer and
computer scientist with a deep interest in physics, mathematics, and
- hard technical problems. Previously built machine learning systems at
- an Amsterdam-based startup. At Avelero, he architects the LCA
+ hard technical problems. Previously built machine learning systems
+ at an Amsterdam-based startup. At Avelero, he architects the LCA
prediction engine that makes product-level environmental impact
calculations accessible without dedicated sustainability
infrastructure.
diff --git a/apps/web/src/lib/mdx.tsx b/apps/web/src/lib/mdx.tsx
index 07fcba59..3f576b8d 100644
--- a/apps/web/src/lib/mdx.tsx
+++ b/apps/web/src/lib/mdx.tsx
@@ -7,7 +7,10 @@ import Link from "next/link";
import NextImage, { type ImageProps as NextImageProps } from "next/image";
import { isValidElement, type ReactNode } from "react";
-type MdxImageProps = Omit
- {cta.bannerSubline}
-
{children}
{headingId ? (
+
{children}
{headingId ? (
=18", "react-dom": ">=18", "svelte": ">=4", "vue": ">=3" }, "optionalPeers": ["react", "react-dom", "svelte", "vue"] }, "sha512-eCzcf1LDi20+Fr0x9V3OkX92k0gxEQXaHajmhXHitsnk6SxPeshv8TBtBRqxyst8HI1uf2FyFVE7QS3jo1gkrw=="],
+
"web-streams-polyfill": ["web-streams-polyfill@3.3.3", "", {}, "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw=="],
"webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="],
@@ -2453,68 +2456,26 @@
"@modelcontextprotocol/sdk/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
- "@radix-ui/react-arrow/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
+ "@radix-ui/react-avatar/@radix-ui/react-context": ["@radix-ui/react-context@1.1.3", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ieIFACdMpYfMEjF0rEf5KLvfVyIkOz6PDGyNnP+u+4xQ6jny3VCgA4OgXOwNx2aUkxn8zx9fiVcM8CfFYv9Lxw=="],
- "@radix-ui/react-collection/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-collection/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
+ "@radix-ui/react-avatar/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.4", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="],
"@radix-ui/react-collection/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
- "@radix-ui/react-dialog/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-dialog/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
"@radix-ui/react-dialog/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
- "@radix-ui/react-dismissable-layer/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-dropdown-menu/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-dropdown-menu/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-focus-scope/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-label/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-menu/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-menu/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
"@radix-ui/react-menu/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
- "@radix-ui/react-popover/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-popover/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
"@radix-ui/react-popover/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
- "@radix-ui/react-popper/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-popper/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-portal/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-roving-focus/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
+ "@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
- "@radix-ui/react-roving-focus/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
+ "@radix-ui/react-progress/@radix-ui/react-context": ["@radix-ui/react-context@1.1.3", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ieIFACdMpYfMEjF0rEf5KLvfVyIkOz6PDGyNnP+u+4xQ6jny3VCgA4OgXOwNx2aUkxn8zx9fiVcM8CfFYv9Lxw=="],
- "@radix-ui/react-switch/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-switch/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-tabs/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-tabs/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
- "@radix-ui/react-tooltip/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
-
- "@radix-ui/react-tooltip/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
+ "@radix-ui/react-progress/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.4", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="],
"@radix-ui/react-tooltip/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
- "@radix-ui/react-visually-hidden/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
-
"@react-email/tailwind/tailwindcss": ["tailwindcss@4.1.18", "", {}, "sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw=="],
"@trigger.dev/core/nanoid": ["nanoid@3.3.8", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w=="],
@@ -2557,6 +2518,8 @@
"cliui/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
+ "cmdk/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.4", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="],
+
"duplexer2/readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
"engine.io/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
@@ -2749,28 +2712,6 @@
"@isaacs/cliui/wrap-ansi/ansi-styles": ["ansi-styles@6.2.3", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],
- "@radix-ui/react-arrow/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-dismissable-layer/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-dropdown-menu/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-focus-scope/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-label/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-popper/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-portal/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-roving-focus/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-switch/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-tabs/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
- "@radix-ui/react-visually-hidden/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
-
"@trigger.dev/core/socket.io/debug": ["debug@4.3.7", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ=="],
"@trigger.dev/core/socket.io/engine.io": ["engine.io@6.5.5", "", { "dependencies": { "@types/cookie": "^0.4.1", "@types/cors": "^2.8.12", "@types/node": ">=10.0.0", "accepts": "~1.3.4", "base64id": "2.0.0", "cookie": "~0.4.1", "cors": "~2.8.5", "debug": "~4.3.1", "engine.io-parser": "~5.2.1", "ws": "~8.17.1" } }, "sha512-C5Pn8Wk+1vKBoHghJODM63yk8MvrO9EWZUfkAt5HAqIgPE4/8FF0PEGHXtEd40l223+cE5ABWuPzm38PHFXfMA=="],
diff --git a/packages/db/__tests__/integration/queries/brand-catalog-seeding.test.ts b/packages/db/__tests__/integration/queries/brand-catalog-seeding.test.ts
index 395be4a0..ebcb0a13 100644
--- a/packages/db/__tests__/integration/queries/brand-catalog-seeding.test.ts
+++ b/packages/db/__tests__/integration/queries/brand-catalog-seeding.test.ts
@@ -6,11 +6,7 @@ import { and, eq, sql } from "drizzle-orm";
import { createBrand } from "@v1/db/queries/brand";
import { seedBrandCatalogDefaults } from "@v1/db/queries/catalog";
import * as schema from "@v1/db/schema";
-import {
- createTestBrand,
- createTestUser,
- testDb,
-} from "@v1/db/testing";
+import { createTestBrand, createTestUser, testDb } from "@v1/db/testing";
describe("Brand catalog default seeding", () => {
let taxonomyAttributeCount = 0;
@@ -76,7 +72,9 @@ describe("Brand catalog default seeding", () => {
expect(sourceTaxonomyValue).toBeDefined();
expect(sampleSeededValue?.sortOrder).toBe(sourceTaxonomyValue?.sortOrder);
- expect(sampleSeededValue?.metadata).toEqual(sourceTaxonomyValue?.metadata ?? {});
+ expect(sampleSeededValue?.metadata).toEqual(
+ sourceTaxonomyValue?.metadata ?? {},
+ );
});
it("is idempotent for the same brand", async () => {
diff --git a/packages/db/__tests__/integration/queries/brand-subscription-foundations.test.ts b/packages/db/__tests__/integration/queries/brand-subscription-foundations.test.ts
index a5506cc3..fe157893 100644
--- a/packages/db/__tests__/integration/queries/brand-subscription-foundations.test.ts
+++ b/packages/db/__tests__/integration/queries/brand-subscription-foundations.test.ts
@@ -4,11 +4,7 @@ import { describe, expect, it } from "bun:test";
import { and, eq, sql } from "drizzle-orm";
import { createBrand } from "@v1/db/queries/brand";
import * as schema from "@v1/db/schema";
-import {
- createTestBrand,
- createTestUser,
- testDb,
-} from "@v1/db/testing";
+import { createTestBrand, createTestUser, testDb } from "@v1/db/testing";
import { backfillBrandSubscriptionFoundations } from "../../../src/scripts/backfill-brand-subscription-foundations";
describe("Brand subscription foundations", () => {
@@ -82,7 +78,10 @@ describe("Brand subscription foundations", () => {
expect(firstRun.inserted.billing).toBeGreaterThanOrEqual(1);
const [lifecycle] = await testDb
- .select({ id: schema.brandLifecycle.id, phase: schema.brandLifecycle.phase })
+ .select({
+ id: schema.brandLifecycle.id,
+ phase: schema.brandLifecycle.phase,
+ })
.from(schema.brandLifecycle)
.where(eq(schema.brandLifecycle.brandId, legacyBrandId))
.limit(1);
@@ -180,7 +179,9 @@ describe("Brand subscription foundations", () => {
expect(error).not.toBeNull();
const pgError = (error as any)?.cause;
expect(pgError?.code).toBe("23514");
- expect(pgError?.constraint_name).toBe("brand_billing_access_override_check");
+ expect(pgError?.constraint_name).toBe(
+ "brand_billing_access_override_check",
+ );
});
it("enforces unique stripe event id for webhook idempotency", async () => {
@@ -235,7 +236,9 @@ describe("Brand subscription foundations", () => {
it("cascades deletes from brands to new brand-scoped tables", async () => {
const userId = await createTestUser("cascade-check-owner@example.com");
- const created = await createBrand(testDb, userId, { name: "Cascade Brand" });
+ const created = await createBrand(testDb, userId, {
+ name: "Cascade Brand",
+ });
const brandId = created.id;
await testDb.delete(schema.brands).where(eq(schema.brands.id, brandId));
diff --git a/packages/db/__tests__/integration/queries/dpp-snapshot-certifications.test.ts b/packages/db/__tests__/integration/queries/dpp-snapshot-certifications.test.ts
new file mode 100644
index 00000000..7f75e18c
--- /dev/null
+++ b/packages/db/__tests__/integration/queries/dpp-snapshot-certifications.test.ts
@@ -0,0 +1,199 @@
+/**
+ * Integration Tests: DPP Snapshot Certification Enrichment
+ *
+ * Verifies that certification issue dates, expiry dates, and public document
+ * URLs are preserved in both single-snapshot generation and set-based publish
+ * snapshots.
+ */
+
+import "../../setup";
+
+import { beforeEach, describe, expect, it } from "bun:test";
+import { eq } from "drizzle-orm";
+import type { DppSnapshot } from "@v1/db/queries/products";
+import {
+ generateDppSnapshot,
+ publishProductsSetBased,
+} from "@v1/db/queries/products";
+import * as schema from "@v1/db/schema";
+import {
+ cleanupTables,
+ createTestBrand,
+ createTestProduct,
+ createTestVariant,
+ testDb,
+} from "@v1/db/testing";
+
+const STORAGE_BASE_URL = "https://example.supabase.co";
+
+/**
+ * Seed one certified material linked to a product.
+ */
+async function seedCertifiedMaterial(input: {
+ brandId: string;
+ productId: string;
+}) {
+ const issueDate = "2024-02-15 00:00:00";
+ const expiryDate = "2027-02-15 00:00:00";
+ const certificationPath = `${input.brandId}/grs-2024-12345.pdf`;
+
+ const [certification] = await testDb
+ .insert(schema.brandCertifications)
+ .values({
+ brandId: input.brandId,
+ title: "Global Recycled Standard",
+ certificationCode: "GRS-2024-12345",
+ issueDate,
+ expiryDate,
+ certificationPath,
+ instituteName: "Textile Certification Council",
+ instituteEmail: "compliance@textilecouncil.example",
+ instituteWebsite: "https://certifications.example.com/grs",
+ instituteAddressLine1: "12 Observatory Lane",
+ instituteAddressLine2: "Suite 400",
+ instituteCity: "Amsterdam",
+ instituteState: "Noord-Holland",
+ instituteZip: "1017 AB",
+ instituteCountryCode: "NL",
+ })
+ .returning({ id: schema.brandCertifications.id });
+
+ const [material] = await testDb
+ .insert(schema.brandMaterials)
+ .values({
+ brandId: input.brandId,
+ name: "Recycled Polyester",
+ certificationId: certification!.id,
+ recyclable: true,
+ countryOfOrigin: "CN",
+ })
+ .returning({ id: schema.brandMaterials.id });
+
+ await testDb.insert(schema.productMaterials).values({
+ productId: input.productId,
+ brandMaterialId: material!.id,
+ percentage: "85.00",
+ });
+
+ return {
+ certificationPath,
+ expiryDate,
+ issueDate,
+ };
+}
+
+/**
+ * Load the latest materialized snapshot for a variant passport.
+ */
+async function getLatestSnapshotForVariant(
+ variantId: string,
+): Promise
- {cta.bannerHeadline}
-
- )}
-
- {showSubline && cta?.bannerSubline && (
- Impact
-
- Journey
-
-
+ *
+ ) : null}
+
Materials
-
-
+
+ );
+}
+
+ModalOverlay.displayName = DialogPrimitive.Overlay.displayName;
+ModalContent.displayName = DialogPrimitive.Content.displayName;
+ModalTitle.displayName = DialogPrimitive.Title.displayName;
+ModalDescription.displayName = DialogPrimitive.Description.displayName;
+
+export {
+ Modal,
+ ModalTrigger,
+ ModalClose,
+ ModalPortal,
+ ModalOverlay,
+ ModalContent,
+ ModalBody,
+ ModalHeader,
+ ModalFooter,
+ ModalTitle,
+ ModalDescription,
+ ModalSection,
+ ModalSubtitle,
+ ModalLabel,
+ ModalValue,
+ ModalField,
+ ModalDataTable,
+ ModalStaticMap,
+};
diff --git a/packages/dpp-components/src/components/modals/certification/helpers.tsx b/packages/dpp-components/src/components/modals/certification/helpers.tsx
new file mode 100644
index 00000000..bf5de0c5
--- /dev/null
+++ b/packages/dpp-components/src/components/modals/certification/helpers.tsx
@@ -0,0 +1,158 @@
+/**
+ * Certification modal helpers.
+ *
+ * Shared builders for certificate modal copy, fact rows, and map queries so
+ * the theme-editor preview and materials modal stay in sync.
+ */
+
+import { countries } from "@v1/selections";
+import { toExternalHref } from "../../../lib/url-utils";
+import type { MaterialCertification } from "../../../types/data";
+import type { ModalDataTableRow } from "../../modal";
+
+function getCountryName(code: string | undefined): string {
+ // Resolve an ISO country code into a readable label when possible.
+ if (!code) return "";
+ const country = countries[code.toUpperCase() as keyof typeof countries];
+ return country?.name ?? code;
+}
+
+function formatDateFactValue(value: string) {
+ // Collapse persisted timestamps to a stable calendar-date label in the modal.
+ const isoDate = value.match(/^\d{4}-\d{2}-\d{2}/)?.[0];
+ return isoDate ?? value;
+}
+
+export function buildCertificationModalDescription(materialName?: string) {
+ // Keep the certificate description aligned across preview and runtime.
+ if (materialName?.trim()) {
+ return `This certification applies to ${materialName.trim().toLowerCase()} and is reported as part of this product passport.`;
+ }
+
+ return "This certification is recorded as part of the material traceability information for this product passport.";
+}
+
+export function buildCertificationModalFacts(
+ certification: MaterialCertification | undefined,
+): ModalDataTableRow[] {
+ // Gather the available certification facts into label/value rows for the modal.
+ const facts: ModalDataTableRow[] = [];
+ const institute = certification?.testingInstitute;
+
+ if (!certification) {
+ return facts;
+ }
+
+ if (certification.code) {
+ facts.push({
+ key: "Certification code",
+ label: "Certification code",
+ value: certification.code,
+ });
+ }
+
+ if (certification.issueDate) {
+ facts.push({
+ key: "Issue date",
+ label: "Issue date",
+ value: formatDateFactValue(certification.issueDate),
+ });
+ }
+
+ if (certification.expiryDate) {
+ facts.push({
+ key: "Expiry date",
+ label: "Expiry date",
+ value: formatDateFactValue(certification.expiryDate),
+ });
+ }
+
+ if (institute?.legalName) {
+ facts.push({
+ key: "Institute name",
+ label: "Institute name",
+ value: institute.legalName,
+ });
+ }
+
+ if (institute?.website) {
+ const certificationHref = toExternalHref(institute.website);
+
+ facts.push({
+ key: "Institute website",
+ label: "Institute website",
+ value: certificationHref ? (
+
+ {institute.website}
+
+ ) : (
+ institute.website
+ ),
+ });
+ }
+
+ if (institute?.email) {
+ facts.push({
+ key: "Institute email",
+ label: "Institute email",
+ value: institute.email,
+ });
+ }
+
+ if (institute?.phone) {
+ facts.push({
+ key: "Institute phone",
+ label: "Institute phone",
+ value: institute.phone,
+ });
+ }
+
+ if (institute?.city) {
+ facts.push({ key: "City", label: "City", value: institute.city });
+ }
+
+ if (institute?.country) {
+ facts.push({
+ key: "Country",
+ label: "Country",
+ value: getCountryName(institute.country) || institute.country,
+ });
+ }
+
+ return facts;
+}
+
+export function buildCertificationModalMapQuery(
+ certification: MaterialCertification | undefined,
+ showExactLocation: boolean,
+): string | null {
+ // Collapse the testing institute address into either an exact or city-level Google Maps query.
+ const institute = certification?.testingInstitute;
+ const country = institute?.country
+ ? getCountryName(institute.country) || institute.country
+ : undefined;
+ const queryParts = (
+ showExactLocation
+ ? [
+ institute?.addressLine1,
+ institute?.city,
+ institute?.state,
+ institute?.postalCode,
+ country,
+ ]
+ : [institute?.city, country]
+ )
+ .map((value) => value?.trim())
+ .filter((value): value is string => Boolean(value));
+
+ if (queryParts.length === 0) {
+ return null;
+ }
+
+ return queryParts.join(", ");
+}
diff --git a/packages/dpp-components/src/components/modals/certification/index.tsx b/packages/dpp-components/src/components/modals/certification/index.tsx
new file mode 100644
index 00000000..fe188133
--- /dev/null
+++ b/packages/dpp-components/src/components/modals/certification/index.tsx
@@ -0,0 +1,173 @@
+"use client";
+
+/**
+ * Certification overview modal content.
+ */
+
+import { DownloadSimpleIcon } from "@phosphor-icons/react/dist/ssr/DownloadSimple";
+import {
+ INTERACTIVE_HOVER_CLASS_NAME,
+ createInteractiveHoverStyle,
+} from "../../../lib/interactive-hover";
+import {
+ ModalBody,
+ ModalContent,
+ ModalDataTable,
+ ModalDescription,
+ ModalFooter,
+ ModalSection,
+ ModalStaticMap,
+ ModalSubtitle,
+ ModalTitle,
+ getModalSelectionProps,
+} from "../../modal";
+import type {
+ ModalDataTableRow,
+ ModalSelectionGetter,
+ ModalStyles,
+} from "../../modal";
+
+interface CertificationModalProps {
+ certificateUrl?: string;
+ contentProps?: Omit<
+ React.ComponentPropsWithoutRef