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

feat: upstream merge #22

Merged
merged 1,222 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1222 commits
Select commit Hold shift + click to select a range
9f7cb35
update screenshot
maxaleks Jul 12, 2024
db474fc
temporary remove NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_API_KEY from…
tom2drum Jul 12, 2024
9b15774
Syncronize dev ENVs presets (#2093)
tom2drum Jul 12, 2024
3349bec
change counter labels to H2
isstuev Jul 14, 2024
d97d03e
update evn
maxaleks Jul 15, 2024
5e9c6a1
return back wallet validation
maxaleks Jul 15, 2024
f713619
Merge branch 'main' into dapp-rating
maxaleks Jul 15, 2024
7aa5546
add secret
maxaleks Jul 15, 2024
64e52b9
update tests
maxaleks Jul 15, 2024
2b14314
Changing the description for flatteners during the verification
NikitaSavik Jul 15, 2024
fd71861
update screenshots
tom2drum Jul 15, 2024
815d391
Merge pull request #2096 from blockscout/NikitaSavik-patch-1
tom2drum Jul 15, 2024
dc28dff
add mixpanel events
maxaleks Jul 15, 2024
490d61b
implement rating change
maxaleks Jul 15, 2024
e5f83ac
disable wallet validation
maxaleks Jul 15, 2024
cabfcc3
RPC tests (#2101)
tom2drum Jul 16, 2024
f9c59fb
delete gas used utilization for some rollups
isstuev Jul 16, 2024
48a26fd
remove unnecessary style
maxaleks Jul 16, 2024
0643a72
Merge branch 'main' into dapp-rating
maxaleks Jul 16, 2024
4cee52c
update tests
maxaleks Jul 16, 2024
b759749
moved the use of the hook to another place
maxaleks Jul 16, 2024
2776830
dapps lazy loading
maxaleks Jul 16, 2024
dc72550
fix svg icon
maxaleks Jul 16, 2024
3d6ae52
change toast margins
maxaleks Jul 17, 2024
ccc01ed
move csp for marketplace to separate file
maxaleks Jul 17, 2024
0b447d5
rename var
maxaleks Jul 17, 2024
8ef0807
move favorite icon to separate file
maxaleks Jul 17, 2024
2d26d67
remove padding on last element
maxaleks Jul 17, 2024
fbc0ac7
fix rating records duplication
maxaleks Jul 17, 2024
7dc8252
add try-catch
maxaleks Jul 17, 2024
3b2cc76
fix tooltip width
maxaleks Jul 17, 2024
5ea5b18
update screenshots with toast
maxaleks Jul 17, 2024
7f63678
fix style of menu tooltip
maxaleks Jul 17, 2024
83cffb9
Merge pull request #2102 from blockscout/fe-1974
isstuev Jul 17, 2024
654382d
add tests for useRatings hook
maxaleks Jul 17, 2024
5852d19
Merge branch 'main' into dapp-rating
maxaleks Jul 17, 2024
bfb0855
Block Countdown page (#2091)
tom2drum Jul 18, 2024
0653e13
Token name is shortened incorrectly on CSV export page (#2079)
tom2drum Jul 18, 2024
4bde57e
Update navigation menu styles (#2094)
tom2drum Jul 18, 2024
6f7c284
Show error if contract method has invalid data structure (#2087)
tom2drum Jul 18, 2024
b850b46
Merge branch 'main' into dapp-rating
maxaleks Jul 18, 2024
6000e9c
Public tags design updates (#2078)
tom2drum Jul 18, 2024
094152b
Merge branch 'main' into dapp-rating
maxaleks Jul 18, 2024
5621018
update screenshots
maxaleks Jul 18, 2024
0120aff
chore: remove trailing spaces and add newline at end of file
maxaleks Jul 18, 2024
2f42b47
Update Address.pw.tsx_default_degradation-view-1.png
maxaleks Jul 18, 2024
c3f130a
remove action button experiment
maxaleks Jul 18, 2024
6e32891
lock marketplace action bar at the top of the page
maxaleks Jul 18, 2024
5f3b88d
add get gas button
maxaleks Jul 19, 2024
0ccd05a
Merge pull request #2099 from blockscout/fe-2060
isstuev Jul 22, 2024
8a49493
Add tooltip with full date on "age" fields
isstuev Jul 15, 2024
7ecea8b
Stats: give emphasis to incomplete data days (#2085)
tom2drum Jul 22, 2024
bf34442
Merge pull request #2095 from blockscout/fe-2049
isstuev Jul 22, 2024
8baf669
remove the second shadow
maxaleks Jul 22, 2024
ad7d8d1
fix margins
maxaleks Jul 22, 2024
0f84e8d
Update ENVS.md
maxaleks Jul 22, 2024
fdbf1de
replace chain id at init
maxaleks Jul 22, 2024
9e6c078
Merge pull request #2105 from blockscout/remove-action-button-experiment
maxaleks Jul 22, 2024
a309ca1
change min number of txs
maxaleks Jul 22, 2024
cef5fca
change texts
maxaleks Jul 23, 2024
035256a
Merge pull request #2089 from blockscout/dapp-rating
maxaleks Jul 23, 2024
65d9671
Merge branch 'main' into lock-marketplace-action-bar
maxaleks Jul 23, 2024
1ad4f2f
update screenshots
maxaleks Jul 23, 2024
589d58f
make usd_threshold required
maxaleks Jul 23, 2024
995e563
move get gas button to a separate file and refactor
maxaleks Jul 23, 2024
240f9d9
Merge pull request #2106 from blockscout/lock-marketplace-action-bar
maxaleks Jul 23, 2024
7e11f56
Don't retry SolidityScan resources (#2110)
tom2drum Jul 23, 2024
2faf418
change button text
maxaleks Jul 23, 2024
a0b15f5
MUD
isstuev Jul 18, 2024
0891adb
design fixes 1
isstuev Jul 17, 2024
a44d803
mud mobile views
isstuev Jul 18, 2024
957b2e7
design fixes and tests
isstuev Jul 23, 2024
913859e
env fix
isstuev Jul 23, 2024
d2e39b3
remove get gas button from address page
maxaleks Jul 25, 2024
7b79379
replace '--chmod=+x' with '--chmod=755' for 'COPY' instructions in Do…
fullkomnun Jul 25, 2024
fdf70b1
remove usd_threshold prop
maxaleks Jul 25, 2024
1cf91f6
move get gas button to top bar
maxaleks Jul 25, 2024
50ea260
add test
maxaleks Jul 25, 2024
64a3944
Update ENVS.md
maxaleks Jul 25, 2024
34520c9
design fixes and tests 2
isstuev Jul 24, 2024
cbc9b1b
change verification type and validator title for Arbitrum and zkEvm
isstuev Jul 25, 2024
ed6f0b2
fix review variables
isstuev Jul 25, 2024
362671b
remove marketplace env vars from deployment values
maxaleks Jul 26, 2024
403eaee
fix empty state
isstuev Jul 26, 2024
261395a
return envs back to review and remove secret from review-l2
maxaleks Jul 26, 2024
5134c4f
add preset selection for review-l2
maxaleks Jul 26, 2024
256df16
remove NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL
maxaleks Jul 26, 2024
654761a
Merge pull request #2121 from blockscout/remove-marketplace-env-vars
maxaleks Jul 26, 2024
b9984aa
Fix: using `===` to check `NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE`
cheng404 Jul 27, 2024
ff019b4
Merge pull request #2119 from fullkomnun/support_podman
tom2drum Jul 29, 2024
c44a995
use `=== 'false' ? false : true` to keep compatibility
cheng404 Jul 29, 2024
0dfb125
add item to the table of contents
maxaleks Jul 29, 2024
f06a987
Merge pull request #2122 from cheng404/main
tom2drum Jul 29, 2024
8acf844
Merge pull request #2108 from blockscout/get-gas-button
maxaleks Jul 29, 2024
6220f18
Support hiding "REST API" and "GraphQL" links from navigation
tom2drum Jul 30, 2024
322e040
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/i…
tom2drum Jul 30, 2024
03c1bd4
Merge pull request #2128 from blockscout/tom2drum/issue-2127
tom2drum Jul 30, 2024
2a0bc74
fix tests
tom2drum Jul 30, 2024
c4ae053
Merge pull request #2090 from blockscout/mud
tom2drum Jul 30, 2024
478d080
fix ETH value tooltip in contract read result
tom2drum Jul 30, 2024
fc07665
fis stats on home page when there is no gas info
tom2drum Jul 30, 2024
07c2433
fix time ago increment hook
isstuev Jul 31, 2024
1374ea8
Update verification methods in the UI
tom2drum Jul 31, 2024
0c0461b
update foundary template
tom2drum Jul 31, 2024
ec539c4
mud fixes
isstuev Jul 31, 2024
271447c
update stats icon and fix horizontal menu popover position
tom2drum Jul 31, 2024
d99fe2d
Merge branch 'release/v1_33_0-fixes' of github.com:blockscout/fronten…
tom2drum Jul 31, 2024
c60ce02
mud review fixes
isstuev Jul 31, 2024
fd97407
fix initial loading with existing search query
maxaleks Jul 31, 2024
39321ae
fix deletion of other query params
maxaleks Jul 31, 2024
2ba7d62
fix nesting
maxaleks Jul 31, 2024
b53a425
return 404 for graphIQl page if the features is disabled
tom2drum Aug 1, 2024
da2d9bf
hide tooltip when modal is open
maxaleks Aug 1, 2024
a5a2b75
replace Text with Box
maxaleks Aug 1, 2024
c5a4eef
display ens in tx interpretation
maxaleks Aug 1, 2024
0255649
Merge pull request #2129 from blockscout/release/v1_33_0-fixes
tom2drum Aug 2, 2024
9da3114
fix marketplace sorting display
maxaleks Aug 2, 2024
7d70f11
arbitrum latest batches and deposits
isstuev Aug 1, 2024
5fcde0f
New homepage layout loading bug on mobile
tom2drum Aug 5, 2024
d59ae8a
return maxW for Layout Container
tom2drum Aug 5, 2024
92edd4d
add garnet to L2 demo workflow
tom2drum Aug 5, 2024
c4cc982
Merge pull request #2142 from blockscout/tom2drum/issue-2137
tom2drum Aug 6, 2024
8865605
Merge pull request #2138 from blockscout/fix-marketplace-sorting
maxaleks Aug 6, 2024
c582d91
Merge pull request #2133 from blockscout/fix-wallet-tooltip
maxaleks Aug 6, 2024
5d1edc5
Merge pull request #2132 from blockscout/fix-marketplace-search-query
maxaleks Aug 6, 2024
291210d
improve loading
maxaleks Aug 6, 2024
9fb08da
add test
maxaleks Aug 6, 2024
cec56f1
Merge pull request #2134 from blockscout/ens-in-tx-interpretation
maxaleks Aug 6, 2024
d3db2e9
display address name and tag in tx interpretation
maxaleks Aug 7, 2024
ddb5c42
add arbitrum batch DA
isstuev Aug 7, 2024
403355d
process unexpected response from solidityscan
isstuev Aug 7, 2024
580f41b
display ens on wallet button and in menu
maxaleks Aug 8, 2024
0cbc1fd
add signers mobile view
isstuev Aug 8, 2024
7f3a04d
mud design fixes
isstuev Aug 8, 2024
9ee3d3c
add tests for wallet menu
maxaleks Aug 8, 2024
981f1fc
add tests for loading state
maxaleks Aug 8, 2024
acecd9b
check redirect only on search bar submit
isstuev Aug 9, 2024
05ca4fb
Hide toggle "Show external call data" when data is not available (#2158)
tom2drum Aug 12, 2024
d5ed4f8
UML diagram caching (#2157)
tom2drum Aug 12, 2024
2081c83
ENS: add offchain support and fix bugs (#2156)
tom2drum Aug 12, 2024
45b93c5
Merge pull request #2146 from blockscout/name-tag-in-tx-interpretation
tom2drum Aug 12, 2024
2fb9169
Pack Chakra theme into NPM package (#2115)
tom2drum Aug 12, 2024
de007f5
Merge pull request #2160 from blockscout/fe-2077
isstuev Aug 13, 2024
bc62c5c
Merge pull request #2154 from blockscout/fe-2135
isstuev Aug 13, 2024
a2bb162
Merge pull request #2150 from blockscout/fe-2098
isstuev Aug 13, 2024
df2f9d9
Merge pull request #2139 from blockscout/fe-2100
isstuev Aug 13, 2024
4824ac1
add article
isstuev Aug 13, 2024
d6e0615
Merge pull request #2148 from blockscout/security-report-secure
isstuev Aug 13, 2024
af2d668
Cancel previous search queries when typing
tom2drum Aug 13, 2024
f56e0f6
fix web3modal csp issue
Revolution1 Aug 14, 2024
341756f
fix time ago
isstuev Aug 14, 2024
de941ba
Merge pull request #2162 from blockscout/reload-the-page
isstuev Aug 14, 2024
cb3c6da
fix typo
isstuev Aug 14, 2024
fd1bf03
Merge pull request #2167 from Revolution1/fix-csp
tom2drum Aug 14, 2024
9c2e990
Merge pull request #2170 from blockscout/fix-typo
isstuev Aug 14, 2024
fc0ee3b
Merge pull request #2168 from blockscout/time-ago-noves-fix
isstuev Aug 14, 2024
c099afd
Display shortened address for proxy contracts
isstuev Aug 16, 2024
075d8a8
review fixes
isstuev Aug 12, 2024
bc1ebf3
Merge pull request #2176 from blockscout/fe-2175
isstuev Aug 16, 2024
d1e5206
Merge pull request #2120 from blockscout/fe-2067
isstuev Aug 19, 2024
45b5907
Arbitrum: tx page - add L1 tx
isstuev Aug 19, 2024
5df9179
Merge pull request #2164 from blockscout/tom2drum/issue-2149
tom2drum Aug 20, 2024
f58a3e9
Add support for zkSync smart-contracts (#2173)
tom2drum Aug 20, 2024
9cf6ce9
Top accounts: show public tag next to address (#2163)
tom2drum Aug 21, 2024
283e292
ENS: add offchain support and fix bugs (#2156)
tom2drum Aug 12, 2024
089ef89
fix condition
tom2drum Aug 22, 2024
c7aa0f6
Merge branch 'main' of github.com:blockscout/frontend into release/v1…
tom2drum Aug 23, 2024
11d95e0
Merge pull request #2187 from blockscout/release/v1-33-2
tom2drum Aug 23, 2024
eb6a0da
Using wildcard version of blockscout helm for review envs
nzenchik Aug 23, 2024
7e71786
Merge pull request #2183 from blockscout/fe-2166
isstuev Aug 26, 2024
0684b06
SolidityScan API response schema validation (#2190)
tom2drum Aug 26, 2024
54b63a3
use bens api for domain query
maxaleks Aug 27, 2024
d13961c
rename components
maxaleks Aug 27, 2024
1ec7749
update tests
maxaleks Aug 27, 2024
2a76c7c
Merge branch 'main' into ens-in-wallet-menu
maxaleks Aug 27, 2024
b870a43
update snapshots
maxaleks Aug 27, 2024
18eb812
Merge pull request #2153 from blockscout/ens-in-wallet-menu
maxaleks Aug 27, 2024
64c4d1c
add rating count
maxaleks Aug 27, 2024
2b0f8d3
put the airtable api key back
maxaleks Aug 27, 2024
5c1ecb3
Metadata: show Notes (#2191)
tom2drum Aug 28, 2024
fb6b1b1
Mixpanel - add Theme parameter to Page view event (#2193)
tom2drum Aug 28, 2024
4221b04
Limit page content width (#2197)
tom2drum Aug 28, 2024
54a512b
Celo: Block views customizations (#2185)
tom2drum Aug 28, 2024
203d5af
add copy link button
maxaleks Aug 28, 2024
d13bc9f
update snapshots
maxaleks Aug 28, 2024
f294adc
reuse CopyToClipboard component
maxaleks Aug 28, 2024
13344f0
remove env var
maxaleks Aug 28, 2024
4251065
update snapshot
maxaleks Aug 28, 2024
8688b62
truncate app url
maxaleks Aug 28, 2024
bb881d1
fix param default value
maxaleks Aug 28, 2024
60fad46
add share button to app modal and update colors
maxaleks Aug 28, 2024
6a33095
update snapshots
maxaleks Aug 28, 2024
e2081d4
Merge pull request #2198 from blockscout/rating-count
maxaleks Aug 28, 2024
030b510
support "alertStatus" field in address metadata payload
tom2drum Aug 30, 2024
cd8305d
add support of raw string inputs for json-like config ENVs
tom2drum Aug 30, 2024
7f9e454
fix tests
tom2drum Aug 30, 2024
08500d9
fix note metadata alert on mobile
tom2drum Sep 3, 2024
8d1994b
remove isMounted check for AddressDetails component
tom2drum Sep 4, 2024
f2038ac
fix address blocks validated
isstuev Sep 5, 2024
06d1d60
fix arbitrum tx message info
isstuev Sep 5, 2024
c9dcfbc
fix csp when default color mode is dark
tom2drum Sep 5, 2024
21c9b3b
Merge branch 'release/v1-34-0' of github.com:blockscout/frontend into…
tom2drum Sep 5, 2024
b5abddc
remove AddressCoinBalanceHistoryChartOld
tom2drum Sep 5, 2024
c39d3e9
remove unnecessary sx props
tom2drum Sep 5, 2024
9e3e337
OP rollup: Batch view and DA fields (#2210)
tom2drum Sep 6, 2024
e9e0b8c
Main search vs search on page (#2212)
tom2drum Sep 6, 2024
6ef6e39
Stats Update: secondary token icon (#2206)
tom2drum Sep 6, 2024
fc1deed
NFT collection view: animation/image (#2202)
tom2drum Sep 6, 2024
eb86be6
Hero banner: more customizations (#2199)
tom2drum Sep 6, 2024
4571aa6
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/s…
tom2drum Sep 6, 2024
e198919
move optimism mocks to separate folder
tom2drum Sep 6, 2024
758ca37
remove optimization fields for zkSync contract verification
tom2drum Sep 6, 2024
53ddeb5
add mud release version
isstuev Sep 6, 2024
d37205b
Fix the "Scroll to active tab" behavior on mobile devices (#2214)
tom2drum Sep 6, 2024
73fd6c2
Merge pull request #2200 from blockscout/release/v1-34-0
tom2drum Sep 9, 2024
803a352
fix docs
tom2drum Sep 10, 2024
5583bdc
Merge branch 'main' into tom2drum/sx-and-more
tom2drum Sep 10, 2024
26524e8
fix tests
tom2drum Sep 10, 2024
23ffec8
Bump micromatch from 4.0.5 to 4.0.8
dependabot[bot] Sep 10, 2024
f8f7c7b
Merge pull request #2223 from blockscout/dependabot/npm_and_yarn/micr…
tom2drum Sep 10, 2024
37c056a
Favicon generator: escape special characters in master url (#2225)
tom2drum Sep 11, 2024
7184a66
Bump webpack from 5.93.0 to 5.94.0 in /theme (#2224)
dependabot[bot] Sep 11, 2024
abad1b8
Next.js compliant command for production builds (#2219)
omnus Sep 11, 2024
ca0569f
Bump axios from 1.6.2 to 1.7.7 (#2226)
dependabot[bot] Sep 11, 2024
cac3f63
Bump micromatch from 4.0.7 to 4.0.8 in /theme (#2227)
dependabot[bot] Sep 11, 2024
a3cdf62
Public tags: dedicated tag page (#2217)
tom2drum Sep 11, 2024
71fd48c
Home page stats config (#2221)
tom2drum Sep 11, 2024
4d9e174
Bump path-to-regexp from 6.2.1 to 8.1.0 (#2228)
dependabot[bot] Sep 11, 2024
87ebabf
Bump up packages versions (#2229)
tom2drum Sep 11, 2024
d1632da
Display proxy pattern info on contract page (#2230)
tom2drum Sep 12, 2024
6da61c8
Long `Call` field value in `Decoded input data` breaks adaptive UI on…
tom2drum Sep 13, 2024
6770347
Support new CSV export limit in the UI (#2237)
tom2drum Sep 13, 2024
bbc37ef
Display checksum-ed addresses (#2240)
tom2drum Sep 13, 2024
344fbae
GasHawk integration (#2232)
tom2drum Sep 13, 2024
9657e42
Pass the file path when verifying a multi-part contract (#2208)
tom2drum Sep 13, 2024
f80a5e7
Change max width of page content
tom2drum Sep 16, 2024
3e24ed7
Tx interpretation: change margins between elements (#2241)
tom2drum Sep 16, 2024
96191df
fix paddings
tom2drum Sep 16, 2024
c07fb4e
Merge branch 'main' of github.com:blockscout/frontend into tom2drum/c…
tom2drum Sep 17, 2024
9944652
Merge pull request #2247 from blockscout/tom2drum/content-max-width
tom2drum Sep 17, 2024
35b715c
add blackfort validators
isstuev Sep 19, 2024
3716c2f
Arbitrum: handle case with partial data in latest deposits on main pa…
tom2drum Sep 23, 2024
55bc66e
Merge pull request #2253 from blockscout/fe-2233
isstuev Sep 23, 2024
f961731
up nextjs version
isstuev Sep 23, 2024
53697bb
Merge pull request #2259 from blockscout/next-up
isstuev Sep 23, 2024
9218a97
Merge Upstream main
Wolmin Oct 2, 2024
222c8ef
Fix Build errors
Wolmin Oct 4, 2024
3b5f094
Merge main further
Wolmin Oct 6, 2024
75f4077
Remove build errors
Wolmin Oct 6, 2024
5bd1c8d
Small corrections
Wolmin Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=xxx
NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY=xxx
NEXT_PUBLIC_AUTH0_CLIENT_ID=xxx
FAVICON_GENERATOR_API_KEY=xxx
NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY=xxx
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ const RESTRICTED_MODULES = {
{ name: '@chakra-ui/icons', message: 'Using @chakra-ui/icons is prohibited. Please use regular svg-icon instead (see examples in "icons/" folder)' },
{ name: '@metamask/providers', message: 'Please lazy-load @metamask/providers or use useProvider hook instead' },
{ name: '@metamask/post-message-stream', message: 'Please lazy-load @metamask/post-message-stream or use useProvider hook instead' },
{ name: 'playwright/TestApp', message: 'Please use render() fixture from test() function of playwright/lib module' },
{
name: '@chakra-ui/react',
importNames: [ 'Popover', 'Menu', 'useToast' ],
message: 'Please use corresponding component or hook from ui/shared/chakra component instead',
},
{
name: 'lodash',
message: 'Please use `import [package] from \'lodash/[package]\'` instead.',
},
],
patterns: [
'icons/*',
'!lodash/*',
],
};

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/chakra-npm-publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish Chakra theme package to NPM

on:
workflow_dispatch:
inputs:
version:
description: Package version
type: string
required: true
workflow_call:
inputs:
version:
description: Package version
type: string
required: true

jobs:
publish:
runs-on: ubuntu-latest
name: Publish package to NPM registry
permissions:
id-token: write

steps:
- name: Checkout repo
uses: actions/checkout@v4

# Also it will setup .npmrc file to publish to npm
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Update package version
run: |
cd ./theme
npm version ${{ inputs.version }}

- name: Build the package
run: |
cd ./theme
yarn
yarn build

- name: Publish to NPM registry
run: |
cd ./theme
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
116 changes: 116 additions & 0 deletions .github/workflows/copy-issues-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Copy issues labels to pull request

on:
workflow_dispatch:
inputs:
pr_number:
description: Pull request number
required: true
type: string
issues:
description: JSON encoded list of issue ids
required: true
type: string
workflow_call:
inputs:
pr_number:
description: Pull request number
required: true
type: string
issues:
description: JSON encoded list of issue ids
required: true
type: string

jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Find unique labels
id: find_unique_labels
uses: actions/github-script@v7
env:
ISSUES: ${{ inputs.issues }}
with:
script: |
const issues = JSON.parse(process.env.ISSUES);

const WHITE_LISTED_LABELS = [
'client feature',
'feature',

'bug',

'dependencies',
'performance',

'chore',
'enhancement',
'refactoring',
'tech',
'ENVs',
]

const labels = await Promise.all(issues.map(getIssueLabels));
const uniqueLabels = uniqueStringArray(labels.flat().filter((label) => WHITE_LISTED_LABELS.includes(label)));

if (uniqueLabels.length === 0) {
core.info('No labels found.\n');
return [];
}

core.info(`Found following labels: ${ uniqueLabels.join(', ') }.\n`);
return uniqueLabels;

async function getIssueLabels(issue) {
core.info(`Obtaining labels list for the issue #${ issue }...`);

try {
const response = await github.request('GET /repos/{owner}/{repo}/issues/{issue_number}/labels', {
owner: 'blockscout',
repo: 'frontend',
issue_number: issue,
});
return response.data.map(({ name }) => name);
} catch (error) {
core.error(`Failed to obtain labels for the issue #${ issue }: ${ error.message }`);
return [];
}
}

function uniqueStringArray(array) {
return Array.from(new Set(array));
}

- name: Update pull request labels
id: update_pr_labels
uses: actions/github-script@v7
env:
LABELS: ${{ steps.find_unique_labels.outputs.result }}
PR_NUMBER: ${{ inputs.pr_number }}
with:
script: |
const labels = JSON.parse(process.env.LABELS);
const prNumber = Number(process.env.PR_NUMBER);

if (labels.length === 0) {
core.info('Nothing to update.\n');
return;
}

for (const label of labels) {
await addLabelToPr(prNumber, label);
}
core.info('Done.\n');

async function addLabelToPr(prNumber, label) {
console.log(`Adding label to the pull request #${ prNumber }...`);

return await github.request('POST /repos/{owner}/{repo}/issues/{issue_number}/labels', {
owner: 'blockscout',
repo: 'frontend',
issue_number: prNumber,
labels: [ label ],
});
}
34 changes: 10 additions & 24 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ on:
push:
branches:
- main
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.husky/**'
- '.vscode/**'
- 'docs/**'
- 'jest/**'
- 'mocks/**'
- 'playwright/**'
- 'stubs/**'
- 'tools/**'
workflow_dispatch:

concurrency:
Expand All @@ -15,27 +25,3 @@ jobs:
name: Publish Docker image
uses: './.github/workflows/publish-image.yml'
secrets: inherit

deploy_main:
name: Deploy frontend
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: front
globalEnv: main
helmfileDir: deploy
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev
vaultRole: ci-dev
secrets: inherit

deploy_l2:
name: Deploy frontend (L2)
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: l2-optimism-goerli
globalEnv: optimism-goerli
helmfileDir: deploy
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev
vaultRole: ci-dev
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/deploy-review-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@ name: Deploy review environment (L2)

on:
workflow_dispatch:
inputs:
envs_preset:
description: ENVs preset
required: false
default: ""
type: choice
options:
- none
- arbitrum
- arbitrum_nova
- base
- celo_alfajores
- garnet
- gnosis
- eth
- eth_sepolia
- eth_goerli
- optimism
- optimism_celestia
- optimism_sepolia
- polygon
- rootstock
- stability
- zkevm
- zksync

jobs:
make_slug:
Expand All @@ -23,6 +48,7 @@ jobs:
uses: './.github/workflows/publish-image.yml'
with:
tags: ghcr.io/blockscout/frontend:review-${{ needs.make_slug.outputs.REF_SLUG }}
build_args: ENVS_PRESET=${{ inputs.envs_preset }}
secrets: inherit

deploy_review_l2:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/deploy-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@ name: Deploy review environment

on:
workflow_dispatch:
inputs:
envs_preset:
description: ENVs preset
required: false
default: ""
type: choice
options:
- none
- arbitrum
- arbitrum_nova
- base
- celo_alfajores
- garnet
- gnosis
- eth
- eth_sepolia
- eth_goerli
- optimism
- optimism_celestia
- optimism_sepolia
- polygon
- rootstock
- stability
- zkevm
- zksync

jobs:
make_slug:
Expand All @@ -23,6 +48,7 @@ jobs:
uses: './.github/workflows/publish-image.yml'
with:
tags: ghcr.io/blockscout/frontend:review-${{ needs.make_slug.outputs.REF_SLUG }}
build_args: ENVS_PRESET=${{ inputs.envs_preset }}
secrets: inherit

deploy_review:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ jobs:
label_description: Tasks in pre-release right now
secrets: inherit

# Temporary disable this step because it is broken
# There is an issue with building web3modal deps
upload_source_maps:
name: Upload source maps to Sentry
if: false
uses: './.github/workflows/upload-source-maps.yml'
secrets: inherit
20 changes: 15 additions & 5 deletions .github/workflows/project-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
issues: "[${{ github.event.issue.number }}]"
secrets: inherit

review_requested_issues:
pr_linked_issues:
name: Get issues linked to PR
runs-on: ubuntu-latest
if: ${{ github.event.pull_request && github.event.action == 'review_requested' }}
Expand Down Expand Up @@ -76,14 +76,24 @@ jobs:

return issues;

review_requested_tasks:
issues_in_review:
name: Update status for issues in review
needs: [ review_requested_issues ]
if: ${{ needs.review_requested_issues.outputs.issues }}
needs: [ pr_linked_issues ]
if: ${{ needs.pr_linked_issues.outputs.issues }}
uses: './.github/workflows/update-project-cards.yml'
secrets: inherit
with:
project_name: ${{ vars.PROJECT_NAME }}
field_name: Status
field_value: Review
issues: ${{ needs.review_requested_issues.outputs.issues }}
issues: ${{ needs.pr_linked_issues.outputs.issues }}

copy_labels:
name: Copy issues labels to pull request
needs: [ pr_linked_issues ]
if: ${{ needs.pr_linked_issues.outputs.issues }}
uses: './.github/workflows/copy-issues-labels.yml'
secrets: inherit
with:
pr_number: ${{ github.event.pull_request.number }}
issues: ${{ needs.pr_linked_issues.outputs.issues }}
11 changes: 10 additions & 1 deletion .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: Image tags
required: false
type: string
build_args:
description: Build-time variables
required: false
type: string
platforms:
description: Image platforms (you can specify multiple platforms separated by comma)
required: false
Expand All @@ -18,6 +22,10 @@ on:
description: Image tags
required: false
type: string
build_args:
description: Build-time variables
required: false
type: string
platforms:
description: Image platforms (you can specify multiple platforms separated by comma)
required: false
Expand Down Expand Up @@ -72,4 +80,5 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
${{ inputs.build_args }}
Loading
Loading