From da6f8afacaf5f5108bf23e4093024b2eb4cf4ad6 Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Tue, 7 Jan 2025 00:07:23 -0800 Subject: [PATCH 1/2] modify messaging in sync modal --- .../src/components/syncing-dialog/index.tsx | 27 +++++-------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/apps/minifront/src/components/syncing-dialog/index.tsx b/apps/minifront/src/components/syncing-dialog/index.tsx index 7bb4e55d8..65b65b21b 100644 --- a/apps/minifront/src/components/syncing-dialog/index.tsx +++ b/apps/minifront/src/components/syncing-dialog/index.tsx @@ -3,7 +3,6 @@ import { statusSelector, useStatus } from '../../state/status'; import { SyncAnimation } from './sync-animation'; import { Text } from '@penumbra-zone/ui-deprecated/Text'; import { useEffect, useState } from 'react'; -import { useSyncProgress } from '@penumbra-zone/ui-deprecated/components/ui/block-sync-status'; export const SyncingDialog = () => { const status = useStatus({ @@ -23,11 +22,16 @@ export const SyncingDialog = () => { return ( setIsOpen(false)}> +
+ + Keep the extension open to improve sync speed + +
- - Decrypting blocks to update your local state + + Decrypting blocks to update your local state. You can click away, but your data may not be current @@ -42,25 +46,8 @@ export const SyncingDialog = () => { )}
- {!!status?.isCatchingUp && status.latestKnownBlockHeight ? ( - - ) : null}
); }; - -const RemainingTime = ({ - fullSyncHeight, - latestKnownBlockHeight, -}: { - fullSyncHeight: bigint; - latestKnownBlockHeight: bigint; -}) => { - const { formattedTimeRemaining } = useSyncProgress(fullSyncHeight, latestKnownBlockHeight); - return (Estimated time remaining: {formattedTimeRemaining}); -}; From 60f4d35d1de1c3462b968bff5e3dbc99566852e6 Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Tue, 7 Jan 2025 00:14:36 -0800 Subject: [PATCH 2/2] changeset --- .changeset/fast-maps-allow.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fast-maps-allow.md diff --git a/.changeset/fast-maps-allow.md b/.changeset/fast-maps-allow.md new file mode 100644 index 000000000..a3b46ff46 --- /dev/null +++ b/.changeset/fast-maps-allow.md @@ -0,0 +1,5 @@ +--- +'minifront': minor +--- + +prompt user to keep extension open in sync modal