From 9e97cf68a5e20333efb9dfa507c8dec1b518cc4a Mon Sep 17 00:00:00 2001 From: Piyush Gupta Date: Thu, 13 Nov 2025 22:09:34 +0530 Subject: [PATCH 1/3] feat: adds secret sharing validity info --- frontend/src/hooks/api/secretSharing/types.ts | 2 + .../components/SecretContainer.tsx | 3 ++ .../components/SecretShareInfo.tsx | 53 +++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretShareInfo.tsx diff --git a/frontend/src/hooks/api/secretSharing/types.ts b/frontend/src/hooks/api/secretSharing/types.ts index c35228fab..524346beb 100644 --- a/frontend/src/hooks/api/secretSharing/types.ts +++ b/frontend/src/hooks/api/secretSharing/types.ts @@ -59,6 +59,8 @@ export type TViewSharedSecretResponse = { tag: string; accessType: SecretSharingAccessType; orgName?: string; + expiresAt?: Date | string; + expiresAfterViews?: number | null; }; }; diff --git a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx index 1b2e785fe..3193a1bf5 100644 --- a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx +++ b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretContainer.tsx @@ -13,6 +13,8 @@ import { Button, IconButton } from "@app/components/v2"; import { useTimedReset, useToggle } from "@app/hooks"; import { TViewSharedSecretResponse } from "@app/hooks/api/secretSharing"; +import { SecretShareInfo } from "./SecretShareInfo"; + type Props = { secret: TViewSharedSecretResponse["secret"]; secretKey: string | null; @@ -71,6 +73,7 @@ export const SecretContainer = ({ secret, secretKey: key }: Props) => { +