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

Pack Chakra theme into NPM package #2115

Merged
merged 4 commits into from
Aug 12, 2024
Merged

Pack Chakra theme into NPM package #2115

merged 4 commits into from
Aug 12, 2024

Conversation

tom2drum
Copy link
Collaborator

Description and Related Issue(s)

Create an NPM package with the current Chakra theme to reuse it in other projects.

Checklist for PR author

  • I have tested these changes locally.
  • I added tests to cover any new functionality, following this guide
  • Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.
  • If I have added, changed, renamed, or removed an environment variable
    • I updated the list of environment variables in the documentation
    • I made the necessary changes to the validator script according to the guide
    • I added "ENVs" label to this pull request

@tom2drum tom2drum added the tech Issues related to building, testing, and other project tooling label Jul 23, 2024
@tom2drum tom2drum requested a review from isstuev July 29, 2024 06:36
@tom2drum tom2drum merged commit 2fb9169 into main Aug 12, 2024
12 checks passed
@tom2drum tom2drum deleted the tom2drum/chakra-theme-lib branch August 12, 2024 16:13
Wolmin added a commit to lukso-network/network-explorer-execution-frontend that referenced this pull request Oct 10, 2024
* update screenshot

* temporary remove NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_API_KEY from deployment values

* Syncronize dev ENVs presets (blockscout#2093)

* base functionality

* update presets

* update docs

* change counter labels to H2

* update evn

* return back wallet validation

* add secret

* update tests

* Changing the description for flatteners during the verification

Replaced POA flattener with instructions on Hardhat flattener

* update screenshots

* add mixpanel events

* implement rating change

* disable wallet validation

* RPC tests (blockscout#2101)

* test for degraded block details tab

* fix marketplace app test

* more tests for degraded block

* test for address degradation view

* delete gas used utilization for some rollups

* remove unnecessary style

* update tests

* moved the use of the hook to another place

* dapps lazy loading

* fix svg icon

* change toast margins

* move csp for marketplace to separate file

* rename var

* move favorite icon to separate file

* remove padding on last element

* fix rating records duplication

* add try-catch

* fix tooltip width

* update screenshots with toast

* fix style of menu tooltip

* add tests for useRatings hook

* Block Countdown page (blockscout#2091)

* page placeholder

* block info snippet

* add actions for calendar buttons

* add timer

* add redirect when timer runs out

* add redirect from not found block page

* block countdown index page

* link to countdown index page

* add link to search suggest

* add URL to an event

* add link to block countdown on mobile

* tests

* add countdown text to search result page

* update margins

* show block countdown when search results are not empty

* Token name is shortened incorrectly on CSV export page (blockscout#2079)

Fixes blockscout#2043

* Update navigation menu styles (blockscout#2094)

Fixes blockscout#2028

* Show error if contract method has invalid data structure (blockscout#2087)

* show error if contract method has invalid data structure

* convert address to checksum when reading from contract method

* Public tags design updates (blockscout#2078)

* update styles of name tags

* update screenshots

* update screenshots

* fix tests

* update screenshot

* update screenshots

* chore: remove trailing spaces and add newline at end of file

* Update Address.pw.tsx_default_degradation-view-1.png

* remove action button experiment

* lock marketplace action bar at the top of the page

* add get gas button

* Add tooltip with full date on "age" fields

* Stats: give emphasis to incomplete data days (blockscout#2085)

* draw dotted line for incomplete data

* add title to tooltip

* refactor parts into separate components

* move utils

* refactor render logic of tooltip

* more refactoring

* fix issue in safari

* tweaks

* test

* make an approximation as a straight line.

* update screenshots

* fix the tooltip hiding behavior.

* add prop for disabling animation

* remove the second shadow

* fix margins

* Update ENVS.md

* replace chain id at init

* change min number of txs

* change texts

* update screenshots

* make usd_threshold required

* move get gas button to a separate file and refactor

* Don't retry SolidityScan resources (blockscout#2110)

Fixes blockscout#2104

* change button text

* MUD

* design fixes 1

* mud mobile views

* design fixes and tests

* env fix

* remove get gas button from address page

* replace '--chmod=+x' with '--chmod=755' for 'COPY' instructions in Dockerfile to be podman-friendly

* remove usd_threshold prop

* move get gas button to top bar

* add test

* Update ENVS.md

* design fixes and tests 2

* change verification type and validator title for Arbitrum and zkEvm

* fix review variables

* remove marketplace env vars from deployment values

* fix empty state

* return envs back to review and remove secret from review-l2

* add preset selection for review-l2

* remove NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL

* Fix: using `===` to check `NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE`

* use `=== 'false' ? false : true`  to keep compatibility

Co-authored-by: tom goriunov <tom@ohhhh.me>

* add item to the table of contents

* Support hiding "REST API" and "GraphQL" links from navigation

Fixes blockscout#2127

* fix tests

* fix ETH value tooltip in contract read result

* fis stats on home page when there is no gas info

* fix time ago increment hook

* Update verification methods in the UI

* update foundary template

* mud fixes

* update stats icon and fix horizontal menu popover position

* mud review fixes

* fix initial loading with existing search query

* fix deletion of other query params

* fix nesting

* return 404 for graphIQl page if the features is disabled

* hide tooltip when modal is open

* replace Text with Box

* display ens in tx interpretation

* fix marketplace sorting display

* arbitrum latest batches and deposits

* New homepage layout loading bug on mobile

Fixes blockscout#2137

* return maxW for Layout Container

* add garnet to L2 demo workflow

* improve loading

* add test

* display address name and tag in tx interpretation

* add arbitrum batch DA

* process unexpected response from solidityscan

* display ens on wallet button and in menu

* add signers mobile view

* mud design fixes

* add tests for wallet menu

* add tests for loading state

* check redirect only on search bar submit

* Hide toggle "Show external call data" when data is not available (blockscout#2158)

Fixes blockscout#2103

* UML diagram caching (blockscout#2157)

Fixes blockscout#2124

* ENS: add offchain support and fix bugs (blockscout#2156)

* ens: add offchain support and fix bugs

Fixes blockscout#2136

* fix ts

* Pack Chakra theme into NPM package (blockscout#2115)

* build package

* update version

* fix name collision

* add workflow

* add article

* Cancel previous search queries when typing

Fixes blockscout#2149

* fix web3modal csp issue

* fix time ago

* fix typo

* Display shortened address for proxy contracts

* review fixes

* Arbitrum: tx page - add L1 tx

* Add support for zkSync smart-contracts (blockscout#2173)

* additional form fields

* pass optimization modes from API and handle single verification method case

* display zk contract info

* Top accounts: show public tag next to address (blockscout#2163)

* Public tags: remove references to old tags from the code

Fixes blockscout#1894

* show name tag of proxy contracts in list views

* ENS: add offchain support and fix bugs (blockscout#2156)

* ens: add offchain support and fix bugs

Fixes blockscout#2136

* fix ts

* fix condition

* Using wildcard version of blockscout helm for review envs

* SolidityScan API response schema validation (blockscout#2190)

* add schema validation to solidity scan report resource

* report invalid API schema event to prometheus

* use bens api for domain query

* rename components

* update tests

* update snapshots

* add rating count

* put the airtable api key back

* Metadata: show Notes (blockscout#2191)

Fixes blockscout#2174

* Mixpanel - add Theme parameter to Page view event (blockscout#2193)

Fixes blockscout#2126

* Limit page content width (blockscout#2197)

* limit content width for horizontal menu layout

* limit content width for vertical menu layout

* limit amout of tabs in routed tabs skeleton

* fix width of error screen

* add NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL L2 review envs

* add tests

* fixes

* fix tests

* move content wrapper to render fixture

* update screenshots and fix tests

* Celo: Block views customizations (blockscout#2185)

* show flag next to epoch block

* block view customizations

* add hint with link

* display block epoch transfers

* show epoch election reward types

* show reward details

* show base fee token from API

* display current epoch on main page

* mobile view

* tests

* add infinite scroll loading to reward details resource

* update useApiQuery options

* update screenshots

* update layout of reward details on desktop

* change hints of block epoch reward distribution

* add copy link button

* update snapshots

* reuse CopyToClipboard component

* remove env var

* update snapshot

* truncate app url

* fix param default value

* add share button to app modal and update colors

* update snapshots

* support "alertStatus" field in address metadata payload

* add support of raw string inputs for json-like config ENVs

* fix tests

* fix note metadata alert on mobile

* remove isMounted check for AddressDetails component

* fix address blocks validated

* fix arbitrum tx message info

* fix csp when default color mode is dark

* remove AddressCoinBalanceHistoryChartOld

* remove unnecessary sx props

* OP rollup: Batch view and DA fields (blockscout#2210)

* tx batches view adjustments

* blocks and txs tabs of batch page

* batch details

* add batch info to block details view

* display batch blob data in EIP-4844 and calldata container

* display batch blob data in celestia container

* tests

* add optimism_celestia preset

* review fixes

* update screenshots

* Main search vs search on page (blockscout#2212)

Fixes blockscout#2131

* Stats Update: secondary token icon (blockscout#2206)

Fixes blockscout#1849

* NFT collection view: animation/image (blockscout#2202)

Fixes blockscout#2196

* Hero banner: more customizations (blockscout#2199)

* add ENVs to configure typefaces

* migrate current evns to new config

* add env to configure the banner border

* make button variants for hero and header

* add customization for hero button

* tests for new button variants

* envs for demo

* update button styles and tests

* add tests for banner

* remove unnecessary test

* remove demo values

* move optimism mocks to separate folder

* remove optimization fields for zkSync contract verification

* add mud release version

* Fix the "Scroll to active tab" behavior on mobile devices (blockscout#2214)

* fix scroll left position calculation when changing the tab

* do not scroll if the selected tab is on the first page

* fix docs

* fix tests

* Bump micromatch from 4.0.5 to 4.0.8

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Favicon generator: escape special characters in master url (blockscout#2225)

favicon generator: escape special characters in master url

* Bump webpack from 5.93.0 to 5.94.0 in /theme (blockscout#2224)

Bumps [webpack](https://github.com/webpack/webpack) from 5.93.0 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.93.0...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Next.js compliant command for production builds (blockscout#2219)

* feat: Vercel compliant command for prod builds

* feat: simplify to a single command, rename command

Also included the script to download assets.

* fix: exclude vercel injected env vars

Vercel injects a number of environment variables, that in some cases can result in run time errors when the app is reading from envs.js. Exclude these.

* Bump axios from 1.6.2 to 1.7.7 (blockscout#2226)

Bumps [axios](https://github.com/axios/axios) from 1.6.2 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.6.2...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump micromatch from 4.0.7 to 4.0.8 in /theme (blockscout#2227)

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/micromatch@4.0.7...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Public tags: dedicated tag page  (blockscout#2217)

* page layout

* text with results number

* fix ts

* tests

* add quotes to network id env value

* fix null balance and result num

* fix mobile layout

* Home page stats config (blockscout#2221)

Fixes blockscout#2143

* Bump path-to-regexp from 6.2.1 to 8.1.0 (blockscout#2228)

* Bump path-to-regexp from 6.2.1 to 8.0.0

Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) from 6.2.1 to 8.0.0.
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases)
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](pillarjs/path-to-regexp@v6.2.1...v8.0.0)

---
updated-dependencies:
- dependency-name: path-to-regexp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* bump path-to-regexp up to v8.1.0

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tom <tom@ohhhh.me>

* Bump up packages versions (blockscout#2229)

* Bump up packages vertions

* fix wagmi config, wc csp policy and id type in account resources

* Display proxy pattern info on contract page (blockscout#2230)

* Display proxy pattern info in UI

Fixes blockscout#2209

* update texts

* [skip ci] adjust alert condition

* Long `Call` field value in `Decoded input data` breaks adaptive UI on mobile (blockscout#2239)

Fixes blockscout#2216

* Support new CSV export limit in the UI (blockscout#2237)

Fixes blockscout#2215

* Display checksum-ed addresses (blockscout#2240)

Fixes blockscout#2222

* GasHawk integration (blockscout#2232)

* GasHawk integration

Fixes blockscout#2205

* change link url

* Pass the file path when verifying a multi-part contract (blockscout#2208)

Fixes blockscout#2207

* Change max width of page content

* Tx interpretation: change margins between elements (blockscout#2241)

Paddings: icons + amount/text in interpretation

Fixes blockscout#1997

* fix paddings

* add blackfort validators

* Arbitrum: handle case with partial data in latest deposits on main page (blockscout#2244)

* Arbitrum: handle case with partial data in latest deposits on main page

Fixes blockscout#2243

* [skip ci] roll back arbitrum envs

* up nextjs version

* Merge Upstream main

* Fix Build errors

* Remove build errors

* Small corrections

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Max Alekseenko <nnwen0609@gmail.com>
Co-authored-by: tom <tom@ohhhh.me>
Co-authored-by: isstuev <isstuev@gmail.com>
Co-authored-by: NikitaSavik <NikitaSavik@users.noreply.github.com>
Co-authored-by: Igor Stuev <108066576+isstuev@users.noreply.github.com>
Co-authored-by: Or Noyman <17881579+fullkomnun@users.noreply.github.com>
Co-authored-by: Cheng Wei <chgweiz@gmail.com>
Co-authored-by: Revolution1 <revol.cai@gmail.com>
Co-authored-by: Nick Zenchik <n.zenchik@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: omnus <omnusunmo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech Issues related to building, testing, and other project tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants