Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with origin #8

Merged
merged 258 commits into from
Jul 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
21ac24d
add metadata service to .env.eth
maxaleks May 6, 2024
e6975fa
show action button if tx interpretation exists
maxaleks May 6, 2024
f5c890f
merge main
maxaleks May 6, 2024
7bfbb3a
remove old public tags page
tom2drum May 7, 2024
324af2c
rename vars
maxaleks May 7, 2024
349813a
memoize array of addresses
maxaleks May 7, 2024
1cea43f
rename meta props
maxaleks May 7, 2024
7d9b502
placeholder for the new page
tom2drum May 7, 2024
f15f909
change icon color
maxaleks May 7, 2024
cdfd9cf
add more checks!
maxaleks May 7, 2024
8cc2010
name and email fields
tom2drum May 7, 2024
c3a3216
add tests for action button
maxaleks May 7, 2024
77766fa
refactor TokenInstanceDetails test
maxaleks May 7, 2024
adee51e
add more tests
maxaleks May 7, 2024
4d0d415
addresses field
tom2drum May 7, 2024
bb6af2d
description field
tom2drum May 7, 2024
76380a6
add tests for AppActionButton
maxaleks May 7, 2024
7f6373d
change bg color and update screenshots
maxaleks May 7, 2024
b9ea29b
refactor addresses
tom2drum May 8, 2024
efbff6e
tag name, url and description
tom2drum May 8, 2024
a4ba2e3
add isEnabled param for useAppActionData
maxaleks May 8, 2024
a226314
tag type, bg and text color fields
tom2drum May 8, 2024
26ef668
color preview
tom2drum May 8, 2024
a33a8d5
tag preview
tom2drum May 8, 2024
36b4be0
add icon to tag type control
tom2drum May 9, 2024
fcb82bc
fix removing ad banners
isstuev May 9, 2024
cd32831
change color previews only if hex is correct
tom2drum May 9, 2024
6ff33e9
company name and website fields
tom2drum May 9, 2024
e620070
Merge pull request #1883 from blockscout/action-button
maxaleks May 9, 2024
4b906f0
Merge pull request #1902 from blockscout/no-ad-fix-2
tom2drum May 9, 2024
5909d48
reCaptcha and disabled state bg color fix
tom2drum May 9, 2024
ff311e5
refactor reCaptcha field
tom2drum May 9, 2024
f8d8e68
result screen: company and requester info
tom2drum May 9, 2024
e3ec6ff
add lightning label
maxaleks May 9, 2024
d44c84a
full success result screen
tom2drum May 9, 2024
0499c29
group submit result data
tom2drum May 10, 2024
f051029
fix typo
maxaleks May 10, 2024
11b723f
[skip ci] workflow for copying labels to pr
tom2drum May 10, 2024
0c77814
[skip ci] fix copy labels workflow
tom2drum May 10, 2024
4da9af0
[skip ci] add workflow for release notes
tom2drum May 10, 2024
7f74276
[skip ci] disable upload source map workflow
tom2drum May 10, 2024
8f8a54b
display mixed submit result
tom2drum May 13, 2024
a0b0cd7
add link to start over button
tom2drum May 13, 2024
ec07e2c
fix styles and add tests
maxaleks May 13, 2024
6720dbf
add env to goerli config
maxaleks May 13, 2024
c9b891a
pass form data to API and display result
tom2drum May 13, 2024
1f0d8b8
add "start over" button for all form result
tom2drum May 13, 2024
7ac64c7
fix link to form from address page
tom2drum May 13, 2024
a5b0110
pre-fill form with user data
tom2drum May 13, 2024
a1d394c
tests
tom2drum May 13, 2024
8b9a819
add env to eth sepolia
maxaleks May 14, 2024
ef8a244
Update .env.eth_sepolia
maxaleks May 14, 2024
0b60ada
add CSP for metadata service
tom2drum May 15, 2024
4925c11
design updates
tom2drum May 15, 2024
b9508d7
fix converter
tom2drum May 15, 2024
1ee7260
[skp ci] fix copy issues workflow
tom2drum May 15, 2024
bcbde75
Bump undici from 5.26.3 to 5.28.4
dependabot[bot] May 15, 2024
7a349a2
Merge pull request #1916 from blockscout/dependabot/npm_and_yarn/undi…
tom2drum May 15, 2024
a9c9032
Bump follow-redirects from 1.15.2 to 1.15.6
dependabot[bot] May 15, 2024
c218caa
Merge pull request #1917 from blockscout/dependabot/npm_and_yarn/foll…
tom2drum May 15, 2024
8796abb
Merge pull request #1915 from blockscout/release/v1_30_0
tom2drum May 15, 2024
5b9b78c
create DeFi dropdown
maxaleks May 15, 2024
abf8a44
Update styles of form inputs (#1914)
tom2drum May 15, 2024
15539cc
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/i…
tom2drum May 15, 2024
51c99be
remove unnecessary styles
tom2drum May 15, 2024
163ee43
add frame-ancestors rule to csp
maxaleks May 16, 2024
0eca4f3
fix image size
maxaleks May 16, 2024
85c9417
update styles
maxaleks May 16, 2024
ccb1d22
design fixes
tom2drum May 16, 2024
14de292
keep hash when updating query
maxaleks May 16, 2024
5815251
pass custom params and hash to iframe
maxaleks May 16, 2024
814b833
add # before tag hex
tom2drum May 16, 2024
5610292
change description
tom2drum May 16, 2024
bd7efd2
update tests
tom2drum May 16, 2024
3d486eb
Merge pull request #1922 from blockscout/hf-content-security-policy
tom2drum May 16, 2024
67771c3
add tests
maxaleks May 16, 2024
c1de671
update envs schema
maxaleks May 16, 2024
52b25e6
update screenshots
tom2drum May 16, 2024
79da6ab
[skip ci] fix dev script
tom2drum May 16, 2024
26b2a8d
bump version of web3modal to v4.2.1
tom2drum May 17, 2024
ddb2a4a
Merge pull request #1936 from blockscout/tom2drum/up-web3modal
tom2drum May 17, 2024
1a26889
rebuild dropdown
maxaleks May 17, 2024
601dca6
Element paddings updates (#1929)
tom2drum May 20, 2024
6cdaafc
Move generated assets into separate folder inside the public folder (…
tom2drum May 20, 2024
a1670d0
remove unsupported features from search results
isstuev May 21, 2024
c77b692
rework defi dropdown env value
maxaleks May 21, 2024
e3ec83b
update tests
maxaleks May 21, 2024
e3b40c1
add custom path param and rework logic
maxaleks May 21, 2024
ce7eb0c
update icons, add get gas button
maxaleks May 22, 2024
7748b12
update screenshots
maxaleks May 22, 2024
9f6bd93
Merge branch 'main' into defi-dropdown
maxaleks May 22, 2024
971175e
update screenshots
maxaleks May 22, 2024
da335f6
change variable names
maxaleks May 22, 2024
36cf355
export class name as const
maxaleks May 22, 2024
38154f8
replace hook with function
maxaleks May 22, 2024
f390458
fix different heights of components with a chart
maxaleks May 22, 2024
7a9bb10
update screenshots
maxaleks May 22, 2024
c75db4b
More custom elements for public tags (#1939)
tom2drum May 23, 2024
e131784
Gas tracker improvements (#1941)
tom2drum May 23, 2024
a9af448
Loader state for SolidityScan button (#1945)
tom2drum May 23, 2024
5b8ad31
Merge pull request #1944 from blockscout/fe-1900
isstuev May 23, 2024
fd8317c
add native token image
ArminaAiren Mar 15, 2024
aff6f7c
unpade screenshots
isstuev May 17, 2024
e2705c7
[skip ci] improve typing of useApiQuery hook
tom2drum May 24, 2024
e3ff494
native token icon separate
isstuev May 23, 2024
6ec9887
Merge pull request #1947 from blockscout/fix-chart-height
tom2drum May 24, 2024
2a18290
Merge pull request #1932 from blockscout/fe-1381-main
tom2drum May 24, 2024
34ea426
token balance design update
isstuev May 17, 2024
7437d53
update screenshots
isstuev May 25, 2024
ee968da
Merge pull request #1934 from blockscout/fe-1933
isstuev May 25, 2024
1b977de
Playwright tests refactoring, pt.5 (#1952)
tom2drum May 25, 2024
a684812
add certified conract label
isstuev May 20, 2024
9c194a1
add certified icon to search
isstuev May 21, 2024
70ddce7
Multi chain balance button
isstuev May 14, 2024
eb61e49
fix schema validation for NEXT_PUBLIC_MULTICHAIN_PROVIDER_CONFIG
isstuev May 15, 2024
76ed554
change portfolio url logics
isstuev May 17, 2024
8a46825
change NEXT_PUBLIC_MULTICHAIN_PROVIDER_CONFIG
isstuev May 17, 2024
8f9971e
Merge pull request #1940 from blockscout/fe-1860
isstuev May 26, 2024
ae4c59a
review fixes
isstuev May 26, 2024
c0d92d8
review fixes
tom2drum May 27, 2024
bd5cb3a
more fixes
tom2drum May 27, 2024
4e2f5b7
User Operations: add switcher to call data (#1950)
tom2drum May 27, 2024
04f051f
Merge pull request #1912 from blockscout/fe-1802
isstuev May 27, 2024
365de50
Sidebar, latest txs and verified contracts improvements (#1951)
tom2drum May 27, 2024
fbc8fe0
Merge branch 'main' into menu-lightning-label
maxaleks May 27, 2024
b1b3ba0
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/i…
tom2drum May 27, 2024
a746623
fix renaming
maxaleks May 27, 2024
ca3c93b
change text
maxaleks May 27, 2024
72e34cc
fix ts
tom2drum May 27, 2024
b33249f
reuse existing icon
maxaleks May 27, 2024
77cccb3
update screenshots
maxaleks May 27, 2024
eb1a0db
fix screenshot
tom2drum May 27, 2024
d49e8e5
change export order
maxaleks May 27, 2024
4f01b17
change type
maxaleks May 27, 2024
fbf6944
Merge pull request #1910 from blockscout/menu-lightning-label
tom2drum May 27, 2024
69d7149
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/i…
tom2drum May 27, 2024
86e33ca
Merge pull request #1919 from blockscout/tom2drum/issue-1826
tom2drum May 27, 2024
6dd5af6
fix text flickering
maxaleks May 27, 2024
46171bf
remove redundant code
maxaleks May 27, 2024
b49e2dc
dropdown item refactoring
maxaleks May 27, 2024
ce259c4
update screenshots
maxaleks May 27, 2024
555748c
OP Fault Proofs support
isstuev May 27, 2024
b5757e4
Details page: fix line height for rows (#1949)
tom2drum May 28, 2024
7ea03ef
move app url logic to separate file
maxaleks May 28, 2024
44eabda
add tests
maxaleks May 28, 2024
f8621e3
Merge branch 'main' into defi-dropdown
maxaleks May 28, 2024
65b91b4
fix after-merge issues
maxaleks May 28, 2024
3d40a9d
upd
isstuev May 28, 2024
9aac89f
update style
maxaleks May 28, 2024
a000b3d
rework tests
maxaleks May 28, 2024
76e90dd
Add possibility to change ERC to something else
isstuev May 28, 2024
6c2eaac
change export holders text
isstuev May 28, 2024
d8378ed
Merge pull request #1958 from blockscout/fe-1839
isstuev May 28, 2024
3230bc9
Merge pull request #1962 from blockscout/fe-1954
isstuev May 28, 2024
b127f76
remove custom active style
maxaleks May 29, 2024
988f700
Merge branch 'main' into defi-dropdown
maxaleks May 29, 2024
89be9fd
Merge pull request #1925 from blockscout/defi-dropdown
maxaleks May 29, 2024
8634bc5
Merge pull request #1961 from blockscout/fe-1955
isstuev May 29, 2024
ae20ab5
Add support for Diamond proxy standard (#1963)
tom2drum May 29, 2024
e45a58c
Token Instance Page: move critical requests to the page root (#1959)
tom2drum May 29, 2024
2e9728e
SEO: add canonicals and change meta titles (#1960)
tom2drum May 29, 2024
aa466df
Add Ad banner to 404 page
isstuev May 29, 2024
e4ef145
error color, token balance border radius and gas tooltop fixes
tom2drum May 30, 2024
af0c538
fix padding for page tabs
tom2drum May 30, 2024
a4f03b3
update screenshots
tom2drum May 30, 2024
12f0d9c
Merge pull request #1976 from blockscout/release/v1_31_0-fixes
isstuev May 31, 2024
0b59390
Adblock detect improvement
isstuev May 31, 2024
694b7c9
fix padding
isstuev May 31, 2024
7c60021
token balance fix
isstuev May 31, 2024
5c43ff2
Merge pull request #1983 from blockscout/token-balance-fix
isstuev May 31, 2024
5ea7590
Merge pull request #1984 from blockscout/fe-1982
isstuev May 31, 2024
4f89933
fix homepage chart margin
isstuev May 31, 2024
4ea465e
fix optimization runs condition
isstuev Jun 2, 2024
87ad018
Merge pull request #1981 from blockscout/fe-1980
isstuev Jun 2, 2024
6b762e9
Merge pull request #1985 from blockscout/fe-1973
isstuev Jun 2, 2024
981f97f
Merge pull request #1986 from blockscout/optimization-runs-fix
isstuev Jun 2, 2024
3061166
fix padding, switch executed and inner call data and fix scroll overlay
tom2drum Jun 3, 2024
a5b2f0b
Add endpoint what will return the list of app ENVs
tom2drum Jun 3, 2024
619406d
Fix lazy loading on NFT `Inventory` view
tom2drum Jun 3, 2024
a1b7070
fix multichain button for mobile
isstuev Jun 4, 2024
6021ab6
Merge pull request #1987 from blockscout/tom2drum/issue-1964
tom2drum Jun 5, 2024
cf1caf7
Merge pull request #1988 from blockscout/tom2drum/issue-1971
tom2drum Jun 5, 2024
e0259db
Update styles of outlined buttons and more (#1978)
tom2drum Jun 5, 2024
cae815d
Add supported frontend versions column in ENVS.md (#2005)
tom2drum Jun 10, 2024
2f0804a
Merge pull request #1989 from blockscout/multichain-mobile-fix
isstuev Jun 10, 2024
c20b7f8
Merge pull request #1967 from blockscout/fe-1799
isstuev Jun 10, 2024
e8e17bb
The possibility to query a contract with an empty array (#1943)
tom2drum Jun 10, 2024
a48171a
Removing front-main and l2-optimism-goerli envs
nzenchik Jun 11, 2024
f550077
Merge pull request #2011 from blockscout/remove-main-envs
tom2drum Jun 11, 2024
b1a4074
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 11, 2024
c9157c2
tag group select component
isstuev Jun 11, 2024
f863fd4
remove connected message and decrease closing timeout
maxaleks Jun 12, 2024
55ee8cf
Merge pull request #2012 from blockscout/dependabot/npm_and_yarn/brac…
tom2drum Jun 12, 2024
d8df64a
[skip ci] update text for service degradation warning
tom2drum Jun 13, 2024
d392e5c
BENS multiprotocol support (#2003)
tom2drum Jun 13, 2024
aeb16bf
Resolve BENS names from URL directly to address page (#2004)
tom2drum Jun 13, 2024
c3420f6
Blueprint contracts support (#2009)
tom2drum Jun 13, 2024
11fe8c6
Contract `Write` method returns a checksum error (#2021)
tom2drum Jun 13, 2024
e286f91
Migrate to `bens-types` (#2023)
tom2drum Jun 13, 2024
4ca72bd
Merge pull request #2017 from blockscout/fix-wallet-tooltip
maxaleks Jun 17, 2024
b0f1af4
Merge branch 'main' of ssh://github.com/blockscout/frontend into sync…
pustovalov Jun 17, 2024
baf47a6
arbitrum
isstuev Jun 13, 2024
bde9906
add security score to dapp card
maxaleks Jun 18, 2024
a65be3d
arbitrum tests
isstuev Jun 18, 2024
3bad1b7
TxInfo
pustovalov Jun 18, 2024
70bc577
add line break
maxaleks Jun 18, 2024
11e9e77
Show a Zerion button only for EOA addresses
isstuev Jun 18, 2024
bc291d9
Navigation: horizontal layout (#1991)
tom2drum Jun 19, 2024
52b1ee3
Merge pull request #2034 from blockscout/fe-2019
isstuev Jun 20, 2024
905ee28
display cards from md screen size
maxaleks Jun 20, 2024
2adfa54
display dropdown on the left side in the modal
maxaleks Jun 20, 2024
ca4e12d
change breakpoint for dapp modal
maxaleks Jun 20, 2024
02a122b
review fix
isstuev Jun 20, 2024
50d5037
add dapps sorting
maxaleks Jun 20, 2024
66af4e4
Merge pull request #2024 from blockscout/fe-2006
isstuev Jun 21, 2024
fe55066
disable next.js turbo mode
tom2drum Jun 21, 2024
0d5b1d9
Bump ws from 8.11.0 to 8.17.1
dependabot[bot] Jun 21, 2024
352c9c0
Merge pull request #2040 from blockscout/dependabot/npm_and_yarn/ws-8…
tom2drum Jun 21, 2024
ed64774
Bump braces from 3.0.2 to 3.0.3 in /deploy/tools/feature-reporter
dependabot[bot] Jun 21, 2024
8efd938
Merge pull request #2041 from blockscout/dependabot/npm_and_yarn/depl…
tom2drum Jun 21, 2024
2bcb375
fix tooltip of security score button
maxaleks Jun 21, 2024
222b90f
hide zero security score
maxaleks Jun 21, 2024
e2a32ee
update screenshots
maxaleks Jun 21, 2024
f487cf1
tag theme fix
isstuev Jun 23, 2024
8f31d24
Merge pull request #2014 from blockscout/tag-group-select
isstuev Jun 24, 2024
1de3806
replace old sort component
maxaleks Jun 24, 2024
f685a9f
Call contract read methods from the client (#2032)
tom2drum Jun 24, 2024
5a0b500
[skip ci] remove release notes workflow
tom2drum Jun 25, 2024
f10c2b2
arbitrum tx and block updates
isstuev Jun 25, 2024
3907d7c
block_count -> blocks_count
isstuev Jun 25, 2024
9b359f2
post-review changes
maxaleks Jun 25, 2024
df4699d
arbitrum messages status update
isstuev Jun 25, 2024
51f593c
Implement NFT instance metadata refetch button (#2039)
tom2drum Jun 25, 2024
e9e4826
Merge pull request #2031 from blockscout/dapp-card-redesign
maxaleks Jun 25, 2024
f92012f
Merge pull request #2047 from blockscout/arbitrum-update
isstuev Jun 26, 2024
c76664d
Public tags cutoff problem (#2048)
tom2drum Jun 26, 2024
48d6f5b
Mixpanel profiles (#2044)
tom2drum Jun 26, 2024
c76bd75
show pending toast until data is fetched
tom2drum Jun 27, 2024
a263aa6
update placeholder for name domains search input
tom2drum Jun 27, 2024
ff1f0c8
bump dappscout-iframe from 0.2.1 to 0.2.2
maxaleks Jun 27, 2024
4065e47
SVG sprite page (#2056)
tom2drum Jul 1, 2024
5cfcefb
show average gas price chart even if API doesn't return recent gas data
tom2drum Jul 2, 2024
dbf3be6
Merge branch 'release/v1_32_0-fixes' of github.com:blockscout/fronten…
tom2drum Jul 2, 2024
03d2393
change security score popover placement
maxaleks Jul 2, 2024
403162b
Merge branch 'main' of ssh://github.com/blockscout/frontend into sync…
pustovalov Jul 2, 2024
110076d
Migrate to `@blockscout/stats-types` and `@blockscout/visualizer-type…
tom2drum Jul 2, 2024
1a6be1a
add mockRpcResponse fixture and skip marketplace app test
tom2drum Jul 2, 2024
b8fedb9
fix show reward condition in blocks table
isstuev Jul 2, 2024
ca3d530
Merge pull request #2054 from blockscout/release/v1_32_0-fixes
tom2drum Jul 3, 2024
1d5f744
Merge branch 'main' of ssh://github.com/blockscout/frontend into sync…
pustovalov Jul 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
placeholder for the new page
tom2drum committed May 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7d9b5029508d017bc33484aef80dc577fb33cd09
1 change: 1 addition & 0 deletions configs/app/features/index.ts
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ export { default as marketplace } from './marketplace';
export { default as metasuites } from './metasuites';
export { default as mixpanel } from './mixpanel';
export { default as nameService } from './nameService';
export { default as publicTagsSubmission } from './publicTagsSubmission';
export { default as restApiDocs } from './restApiDocs';
export { default as rollup } from './rollup';
export { default as safe } from './safe';
28 changes: 28 additions & 0 deletions configs/app/features/publicTagsSubmission.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type { Feature } from './types';

import { getEnvValue } from '../utils';
import addressMetadata from './addressMetadata';

const apiHost = getEnvValue('NEXT_PUBLIC_ADMIN_SERVICE_API_HOST');

const title = 'Public tag submission';

const config: Feature<{ api: { endpoint: string; basePath: string } }> = (() => {
if (addressMetadata.isEnabled && apiHost) {
return Object.freeze({
title,
isEnabled: true,
api: {
endpoint: apiHost,
basePath: '',
},
});
}

return Object.freeze({
title,
isEnabled: false,
});
})();

export default config;
19 changes: 2 additions & 17 deletions deploy/tools/envs-validator/schema.ts
Original file line number Diff line number Diff line change
@@ -351,21 +351,6 @@ const accountSchema = yup
}),
});

const adminServiceSchema = yup
.object()
.shape({
NEXT_PUBLIC_ADMIN_SERVICE_API_HOST: yup
.string()
.when([ 'NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED', 'NEXT_PUBLIC_MARKETPLACE_ENABLED' ], {
is: (value1: boolean, value2: boolean) => value1 || value2,
then: (schema) => schema.test(urlTest),
otherwise: (schema) => schema.max(
-1,
'NEXT_PUBLIC_ADMIN_SERVICE_API_HOST cannot not be used if NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED or NEXT_PUBLIC_MARKETPLACE_ENABLED is not set to "true"',
),
}),
});

const featuredNetworkSchema: yup.ObjectSchema<FeaturedNetwork> = yup
.object()
.shape({
@@ -592,6 +577,7 @@ const schema = yup
NEXT_PUBLIC_CONTRACT_INFO_API_HOST: yup.string().test(urlTest),
NEXT_PUBLIC_NAME_SERVICE_API_HOST: yup.string().test(urlTest),
NEXT_PUBLIC_METADATA_SERVICE_API_HOST: yup.string().test(urlTest),
NEXT_PUBLIC_ADMIN_SERVICE_API_HOST: yup.string().test(urlTest),
NEXT_PUBLIC_GRAPHIQL_TRANSACTION: yup.string().matches(regexp.HEX_REGEXP),
NEXT_PUBLIC_WEB3_WALLETS: yup
.mixed()
@@ -639,7 +625,6 @@ const schema = yup
.concat(rollupSchema)
.concat(beaconChainSchema)
.concat(bridgedTokensSchema)
.concat(sentrySchema)
.concat(adminServiceSchema);
.concat(sentrySchema);

export default schema;
11 changes: 11 additions & 0 deletions docs/ENVS.md
Original file line number Diff line number Diff line change
@@ -566,6 +566,17 @@ This feature allows name tags and other public tags for addresses.

&nbsp;

### Public tag submission

This feature allows you to submit an application with a public address tag.

| Variable | Type| Description | Compulsoriness | Default value | Example value |
| --- | --- | --- | --- | --- | --- |
| NEXT_PUBLIC_METADATA_SERVICE_API_HOST | `string` | Metadata Service API endpoint url | Required | - | `https://metadata.services.blockscout.com` |
| NEXT_PUBLIC_ADMIN_SERVICE_API_HOST | `string` | Admin Service API endpoint url | Required | - | `https://admin-rs.services.blockscout.com` |

&nbsp;

### Data Availability

This feature enables views related to blob transactions (EIP-4844), such as the Blob Txns tab on the Transactions page and the Blob details page.
5 changes: 5 additions & 0 deletions lib/hooks/useNavItems.tsx
Original file line number Diff line number Diff line change
@@ -237,6 +237,11 @@ export default function useNavItems(): ReturnType {
nextRoute: { pathname: '/gas-tracker' as const },
isActive: pathname.startsWith('/gas-tracker'),
},
config.features.publicTagsSubmission.isEnabled && {
text: 'Submit public tag',
nextRoute: { pathname: '/public-tags/submit' as const },
isActive: pathname.startsWith('/public-tags/submit'),
},
...config.UI.sidebar.otherLinks,
].filter(Boolean),
},
1 change: 1 addition & 0 deletions lib/metadata/getPageOgType.ts
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ const OG_TYPE_DICT: Record<Route['pathname'], OGPageType> = {
'/account/custom-abi': 'Regular page',
'/account/tag-address': 'Regular page',
'/account/verified-addresses': 'Root page',
'/public-tags/submit': 'Regular page',
'/withdrawals': 'Root page',
'/visualize/sol2uml': 'Regular page',
'/csv-export': 'Regular page',
2 changes: 2 additions & 0 deletions lib/metadata/templates/description.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable max-len */
import type { Route } from 'nextjs-routes';

// equal og:description
@@ -32,6 +33,7 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'/account/custom-abi': DEFAULT_TEMPLATE,
'/account/tag-address': DEFAULT_TEMPLATE,
'/account/verified-addresses': DEFAULT_TEMPLATE,
'/public-tags/submit': 'Propose a new public tag for your address, contract or set of contracts for your dApp. Our team will review and approve your submission. Public tags are incredible tool which helps users identify contracts and addresses.',
'/withdrawals': DEFAULT_TEMPLATE,
'/visualize/sol2uml': DEFAULT_TEMPLATE,
'/csv-export': DEFAULT_TEMPLATE,
1 change: 1 addition & 0 deletions lib/metadata/templates/title.ts
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'/account/custom-abi': '- custom ABI',
'/account/tag-address': '- private tags',
'/account/verified-addresses': '- my verified addresses',
'/public-tags/submit': 'submit public tag',
'/withdrawals': 'withdrawals',
'/visualize/sol2uml': 'Solidity UML diagram',
'/csv-export': 'export data to CSV',
1 change: 1 addition & 0 deletions lib/mixpanel/getPageType.ts
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ export const PAGE_TYPE_DICT: Record<Route['pathname'], string> = {
'/account/custom-abi': 'Custom ABI',
'/account/tag-address': 'Private tags',
'/account/verified-addresses': 'Verified addresses',
'/public-tags/submit': 'Submit public tag',
'/withdrawals': 'Withdrawals',
'/visualize/sol2uml': 'Solidity UML diagram',
'/csv-export': 'Export data to CSV file',
11 changes: 11 additions & 0 deletions nextjs/getServerSideProps.ts
Original file line number Diff line number Diff line change
@@ -240,3 +240,14 @@ export const login: GetServerSideProps<Props> = async(context) => {

return base(context);
};

export const publicTagsSubmit: GetServerSideProps<Props> = async(context) => {

if (!config.features.publicTagsSubmission.isEnabled) {
return {
notFound: true,
};
}

return base(context);
};
1 change: 1 addition & 0 deletions nextjs/nextjs-routes.d.ts
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ declare module "nextjs-routes" {
| DynamicRoute<"/op/[hash]", { "hash": string }>
| StaticRoute<"/ops">
| StaticRoute<"/output-roots">
| StaticRoute<"/public-tags/submit">
| StaticRoute<"/search-results">
| StaticRoute<"/stats">
| DynamicRoute<"/token/[hash]", { "hash": string }>
18 changes: 18 additions & 0 deletions pages/public-tags/submit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { NextPage } from 'next';
import React from 'react';

import PageNextJs from 'nextjs/PageNextJs';

import PublicTagsSubmit from 'ui/pages/PublicTagsSubmit';

const Page: NextPage = () => {
return (
<PageNextJs pathname="/public-tags/submit">
<PublicTagsSubmit/>
</PageNextJs>
);
};

export default Page;

export { publicTagsSubmit as getServerSideProps } from 'nextjs/getServerSideProps';
30 changes: 30 additions & 0 deletions ui/pages/PublicTagsSubmit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from 'react';

import PageTitle from 'ui/shared/Page/PageTitle';

type Screen = 'form' | 'result';

const PublicTagsSubmit = () => {

const [ screen ] = React.useState<Screen>('form');

const content = (() => {
switch (screen) {
case 'form':
return 'FORM';
case 'result':
return 'RESULT';
default:
return null;
}
})();

return (
<>
<PageTitle title="Request a public tag/label"/>
{ content }
</>
);
};

export default PublicTagsSubmit;
2 changes: 1 addition & 1 deletion ui/shared/AccountActionsMenu/items/PublicTagMenuItem.tsx
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ const PublicTagMenuItem = ({ className, hash, onBeforeClick, type }: Props) => {
return;
}

router.push({ pathname: '/account/public-tags-request', query: { address: hash } });
router.push({ pathname: '/public-tags/submit', query: { address: hash } });
}, [ hash, onBeforeClick, router ]);

const element = (() => {