From 5372404a1273f25637302dc5557b2fb971b56a4c Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Wed, 11 Mar 2026 18:26:54 +0100 Subject: [PATCH] Fix compliance update display Signed-off-by: Sacha Al Himdani --- .../src/components/Skeletons/MainSkeleton.tsx | 1 + apps/trust/src/pages/UpdatesPage.tsx | 29 ++++++++++++++----- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/apps/trust/src/components/Skeletons/MainSkeleton.tsx b/apps/trust/src/components/Skeletons/MainSkeleton.tsx index 7dded5482..484389445 100644 --- a/apps/trust/src/components/Skeletons/MainSkeleton.tsx +++ b/apps/trust/src/components/Skeletons/MainSkeleton.tsx @@ -16,6 +16,7 @@ export function MainSkeleton() { {__("Subprocessors")} + {__("Updates")} diff --git a/apps/trust/src/pages/UpdatesPage.tsx b/apps/trust/src/pages/UpdatesPage.tsx index 330619cbf..3f64e8230 100644 --- a/apps/trust/src/pages/UpdatesPage.tsx +++ b/apps/trust/src/pages/UpdatesPage.tsx @@ -4,6 +4,7 @@ import { useState } from "react"; import { type PreloadedQuery, usePreloadedQuery } from "react-relay"; import { graphql } from "relay-runtime"; +import { Rows } from "#/components/Rows"; import type { UpdatesPageQuery } from "#/pages/__generated__/UpdatesPageQuery.graphql"; export const currentTrustUpdatesQuery = graphql` @@ -41,14 +42,26 @@ export function UpdatesPage({ queryRef }: Props) { return (

{__("Updates")}

-

- {__("Latest compliance and security updates:")} -

-
- {items.map(item => ( - - ))} -
+ {items.length === 0 + ? ( + +
+ {__("No updates have been published yet.")} +
+
+ ) + : ( + <> +

+ {__("Latest compliance and security updates")} +

+
+ {items.map(item => ( + + ))} +
+ + )}
); }