From b9ace387fdaef84591d47077e7274233ae2b24e8 Mon Sep 17 00:00:00 2001 From: isstuev Date: Tue, 15 Oct 2024 14:56:42 +0300 Subject: [PATCH] Public tags: improvement batch --- mocks/metadata/address.ts | 11 ++++ .../details/AddressMetadataAlert.pw.tsx | 2 +- ui/address/details/AddressMetadataAlert.tsx | 49 +++++++++--------- ...tadataAlert.pw.tsx_default_base-view-1.png | Bin 4474 -> 10374 bytes ui/pages/Address.tsx | 2 +- ui/shared/EntityTags/EntityTags.tsx | 2 +- 6 files changed, 38 insertions(+), 28 deletions(-) diff --git a/mocks/metadata/address.ts b/mocks/metadata/address.ts index 93860f4b44..186711cc04 100644 --- a/mocks/metadata/address.ts +++ b/mocks/metadata/address.ts @@ -102,3 +102,14 @@ export const noteTag: AddressMetadataTagApi = { data: 'Warning! This is scam! See the report', }, }; + +export const noteTag2: AddressMetadataTagApi = { + slug: 'note0', + name: 'note_0', + tagType: 'note', + ordinal: 0, + meta: { + alertStatus: 'info', + data: 'The token MILF was launched on May 13, 2021. The maximum total supply of the token is 100 billion.', + }, +}; diff --git a/ui/address/details/AddressMetadataAlert.pw.tsx b/ui/address/details/AddressMetadataAlert.pw.tsx index 7fedde5059..70cba4a672 100644 --- a/ui/address/details/AddressMetadataAlert.pw.tsx +++ b/ui/address/details/AddressMetadataAlert.pw.tsx @@ -6,7 +6,7 @@ import { test, expect } from 'playwright/lib'; import AddressMetadataAlert from './AddressMetadataAlert'; test('base view', async({ render }) => { - const component = await render(); + const component = await render(); await expect(component).toHaveScreenshot(); }); diff --git a/ui/address/details/AddressMetadataAlert.tsx b/ui/address/details/AddressMetadataAlert.tsx index aced9dc091..fc982b229c 100644 --- a/ui/address/details/AddressMetadataAlert.tsx +++ b/ui/address/details/AddressMetadataAlert.tsx @@ -1,4 +1,4 @@ -import { Alert, chakra } from '@chakra-ui/react'; +import { Alert, Flex, chakra } from '@chakra-ui/react'; import React from 'react'; import type { AddressMetadataTagFormatted } from 'types/client/addressMetadata'; @@ -9,35 +9,34 @@ interface Props { } const AddressMetadataAlert = ({ tags, className }: Props) => { - const noteTag = tags?.find(({ tagType }) => tagType === 'note'); - if (!noteTag) { - return null; - } - - const content = noteTag.meta?.data; + const noteTags = tags?.filter(({ tagType }) => tagType === 'note').filter(({ meta }) => meta?.data); - if (!content) { + if (!noteTags?.length) { return null; } return ( - + + { noteTags.map((noteTag) => ( + + )) } + ); }; diff --git a/ui/address/details/__screenshots__/AddressMetadataAlert.pw.tsx_default_base-view-1.png b/ui/address/details/__screenshots__/AddressMetadataAlert.pw.tsx_default_base-view-1.png index 68bf3dc7d066fa6070f4356a46f49e0bba009425..f3e1c59562f38efd835a80d591cd67df1f62504c 100644 GIT binary patch literal 10374 zcma)iWmr^E*Y*%fcS$1+N~m-UozmSQ(kb1bNQ*Q>*MM|)!wAyN(A^>3{f*-DKJTyh z`u2~RbDgu#+N<}v*V&;;3Q`!TB&YxY07FJvTm=9?EQej&Aj89c&yVJpV1IB{bTie`> zV5mlsgaV4}@5W$qw@>^Oim}nD#&V)Tl@GD+!fCyPU&Mb2 zG_P1;9)mv9RHptr`h;rVo)vu`by?mqs^_s5uHOO%{g%WnL&ANc^C=ZyYZ7(8Z;z-M z8M&r?emv2uk^PmF_}_7D`+@z}WFR6Sr%|G9=_7~q-@9jDBKr?7#0Tf1V?t@5-n{Z6f?PXZfL-u4^L^Qu^#^0fPGeH!3+r|7*gSx(Xv_pg!7@ zz|0P^5fk6^p58ut{z3SOX*KaTRJ4C*FlWEOeiEKQ*`@mH~kLR>Ei|KxWkHfzfn-#VYj=vQg8NSpW?@9F>D01)YxV-WN_=WeDc*`0-o> zh?&6?5g;cRWJ)CWgJh!uF~aAldoI73{zM`cf{foFNrmq$=*Js;7N(5rY-(Q?PB`ETEl353(x#BRmwpK!r-x_nO#q~_B8iB zsQ^HuO^0sjw9D`f9jR55_GPxK%z)K5in-`0yUDN}=6OFm5odGD2hEW?vu!1~@Zl9v z+Em-o5^9Z_&xUVa^H|r&H;dpbhsM+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DUyLM>X{^|ruET@`YSR<)hBM)DH6b*=;>ml>wLVqf`sLybX0*M8GjE^K|M=Yd0 z=P&x4@^4GDw_cx$9xj|KQMY8OluAzP>>x$oA)X5izEC}y9UY4ce;AwC^=i3}*M%I0 zX4J}|Znjat&|HjmuS%g&38l{TVQn6nsftLlhm*6zVi%P9t9cu$E*Zc+UEoXuhezV1 zR3 { { slug: 'mud', name: 'MUD World', tagType: 'custom' as const, ordinal: -10 } : undefined, ...formatUserTags(addressQuery.data), - ...(addressMetadataQuery.data?.addresses?.[hash.toLowerCase()]?.tags || []), + ...(addressMetadataQuery.data?.addresses?.[hash.toLowerCase()]?.tags.filter(tag => tag.tagType !== 'note') || []), ].filter(Boolean).sort(sortEntityTags); }, [ addressMetadataQuery.data, addressQuery.data, hash, isSafeAddress, userOpsAccountQuery.data, mudTablesCountQuery.data, usernameApiTag ]); diff --git a/ui/shared/EntityTags/EntityTags.tsx b/ui/shared/EntityTags/EntityTags.tsx index a9cfa0cf17..c7f4370c4d 100644 --- a/ui/shared/EntityTags/EntityTags.tsx +++ b/ui/shared/EntityTags/EntityTags.tsx @@ -45,7 +45,7 @@ const EntityTags = ({ tags, className, isLoading }: Props) => { +{ tags.length - visibleNum } - + { tags.slice(visibleNum).map((tag) => ) }