fix(board): warn on unverified addresses

This commit is contained in:
Tommaso Casaburi
2026-05-21 17:33:14 +07:00
parent 75d90c8264
commit a31c3b44d3
38 changed files with 154 additions and 36 deletions
+12
View File
@@ -594,6 +594,13 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, t
}, [title, shortAddress, communityAddress, isVisible, params.boardIdentifier, boardIdentifierProp, directories, isInAllView, isInSubscriptionsView, isInModView, t]);
const shouldShowErrorToUser = communityError?.message && feed.length === 0;
const shouldShowUnverifiedAddressWarning =
!isMultiboardView &&
typeof communityIdentifier?.name === 'string' &&
communityIdentifier.name.includes('.') &&
typeof communityIdentifier.publicKey === 'string' &&
communityIdentifier.publicKey.length > 0 &&
communityData?.nameResolved === false;
const displayFeed = effectiveInfiniteScroll ? combinedFeed : currentPageFeed;
return (
@@ -605,6 +612,11 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, t
<ErrorDisplay error={communityError} />
</div>
)}
{shouldShowUnverifiedAddressWarning && (
<div className={styles.addressWarning} role='status'>
{t('board_address_unverified_warning')}
</div>
)}
{effectiveInfiniteScroll ? (
<Virtuoso
defaultItemHeight={defaultBoardItemHeight}