From c4d730fa4eb9bf007914200f212da168b64cef65 Mon Sep 17 00:00:00 2001 From: Michalina Date: Tue, 27 Jun 2023 17:11:24 +0200 Subject: [PATCH 1/2] Rename `token-dashboard` repo to `dapp` We're renaming some of the repositories in the `threshold-network` organization. One of them is `token-dashboard` repo, which will be renamed to `website`. We need to update the references of the old name. --- .github/workflows/dashboard-ci.yml | 2 +- .github/workflows/dashboard-mainnet.yml | 2 +- .github/workflows/reusable-build-and-publish.yml | 2 +- README.md | 6 +++--- package.json | 2 +- src/enums/externalHref.ts | 2 +- src/store/tbtc/tbtcSlice.ts | 2 +- src/web3/connectors/coinbaseWallet.ts | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dashboard-ci.yml b/.github/workflows/dashboard-ci.yml index 83aac70a3..4eefaf249 100644 --- a/.github/workflows/dashboard-ci.yml +++ b/.github/workflows/dashboard-ci.yml @@ -44,7 +44,7 @@ jobs: - name: Install dependencies run: yarn install --ignore-scripts --frozen-lockfile - - name: Run token-dashboard post-install script + - name: Run dapp post-install script run: yarn run postinstall - name: Check formatting diff --git a/.github/workflows/dashboard-mainnet.yml b/.github/workflows/dashboard-mainnet.yml index e53f4189c..25d95e0e3 100644 --- a/.github/workflows/dashboard-mainnet.yml +++ b/.github/workflows/dashboard-mainnet.yml @@ -32,7 +32,7 @@ jobs: - name: Install dependencies run: yarn install --ignore-scripts --frozen-lockfile - - name: Run token-dashboard post-install script + - name: Run dapp post-install script run: yarn run postinstall # FIXME: It's work in progress, the contracts are not yet published. diff --git a/.github/workflows/reusable-build-and-publish.yml b/.github/workflows/reusable-build-and-publish.yml index d8279aa21..c9d53ad26 100644 --- a/.github/workflows/reusable-build-and-publish.yml +++ b/.github/workflows/reusable-build-and-publish.yml @@ -99,7 +99,7 @@ jobs: shell: bash run: yarn install --ignore-scripts --frozen-lockfile - - name: Run token-dashboard post-install script + - name: Run dapp post-install script shell: bash run: yarn run postinstall diff --git a/README.md b/README.md index d237a38a1..9bb6ddc87 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Threshold Token Dashboard -[![Token Dashboard / CI](https://github.com/threshold-network/token-dashboard/actions/workflows/dashboard-ci.yml/badge.svg?branch=main&event=push)](https://github.com/threshold-network/token-dashboard/actions/workflows/dashboard-ci.yml) +[![Token Dashboard / CI](https://github.com/threshold-network/dapp/actions/workflows/dashboard-ci.yml/badge.svg?branch=main&event=push)](https://github.com/threshold-network/dapp/actions/workflows/dashboard-ci.yml) [![Docs](https://img.shields.io/badge/docs-website-green)](https://docs.threshold.network) [![Chat with us on Discord](https://img.shields.io/badge/chat-Discord-5865f2.svg)](https://discord.gg/threshold) @@ -72,7 +72,7 @@ yarn upgrade @threshold-network/solidity-contracts@goerli \ using `goerli` tag results in `expected manifest` error - probably caused by bug in Yarn: https://github.com/yarnpkg/yarn/issues/4731. -**NOTE 2:** The `token-dashboard` package contains an indirect dependency to +**NOTE 2:** The `dapp` project contains an indirect dependency to `@summa-tx/relay-sol@2.0.2` package, which downloads one of its sub-dependencies via unathenticated `git://` protocol. That protocol is no longer supported by GitHub. This means that in certain situations installation of the package or @@ -100,7 +100,7 @@ The following procedure allows to deploy T token dashboard to production: and creating a PR with a release branch is not required. Dependencies and project version needs to be updated on the release branch. All `-dev`, `-goerli` dependencies need to be updated to mainnet versions. - See [this commit](https://github.com/threshold-network/token-dashboard/commit/5452b68886ebc514d941a087973dfa9ac3802a7e) + See [this commit](https://github.com/threshold-network/dapp/commit/5452b68886ebc514d941a087973dfa9ac3802a7e) for `v1.0.0` release as a good example. 2. Preview of the release branch will be uploaded to `preview.dashboard.threshold.network` under the directory named after the release branch. For example: diff --git a/package.json b/package.json index 6efee6457..202b65ae2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "token-dashboard", + "name": "dapp", "version": "1.8.0-pre", "private": true, "dependencies": { diff --git a/src/enums/externalHref.ts b/src/enums/externalHref.ts index 7083ed670..0d5ff2bfe 100644 --- a/src/enums/externalHref.ts +++ b/src/enums/externalHref.ts @@ -1,5 +1,5 @@ export enum ExternalHref { - thresholdGithub = "https://github.com/threshold-network/token-dashboard", + thresholdGithub = "https://github.com/threshold-network/dapp", thresholdDiscord = "https://discord.gg/WXK9PC6SRF", metamaskHomePage = "https://metamask.io/", stakingContractLeanMore = "https://github.com/threshold-network/solidity-contracts/issues/53", diff --git a/src/store/tbtc/tbtcSlice.ts b/src/store/tbtc/tbtcSlice.ts index 0fafce581..bd43e2336 100644 --- a/src/store/tbtc/tbtcSlice.ts +++ b/src/store/tbtc/tbtcSlice.ts @@ -151,5 +151,5 @@ export const registerTBTCListeners = () => { } // TODO: Move to the `../listener` file once we merge -// https://github.com/threshold-network/token-dashboard/pull/302. +// https://github.com/threshold-network/dapp/pull/302. registerTBTCListeners() diff --git a/src/web3/connectors/coinbaseWallet.ts b/src/web3/connectors/coinbaseWallet.ts index 3fc86638d..e4f475a45 100644 --- a/src/web3/connectors/coinbaseWallet.ts +++ b/src/web3/connectors/coinbaseWallet.ts @@ -39,6 +39,6 @@ class CoinbaseWalletConnector extends WalletLinkConnector { export const coinbaseConnector = new CoinbaseWalletConnector({ url: rpcUrl, - appName: "threshold-token-dashboard", + appName: "threshold-dapp", supportedChainIds: [+supportedChainId], }) From 156e4fa7779eb9b28ea9c101b97fbbeb1bf3521f Mon Sep 17 00:00:00 2001 From: Michalina Date: Tue, 4 Jul 2023 17:50:45 +0200 Subject: [PATCH 2/2] Rename dapp-related workflows We want the names of the workflows be in line with the naming we use for the repository. In the future we'll also likely change the address of the dapp to `dapp.threshold.network`. --- .github/workflows/{dashboard-ci.yml => dapp-ci.yml} | 2 +- .github/workflows/{dashboard-mainnet.yml => dapp-mainnet.yml} | 2 +- .github/workflows/reusable-build-and-publish.yml | 2 +- CODEOWNERS | 2 +- README.md | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{dashboard-ci.yml => dapp-ci.yml} (99%) rename .github/workflows/{dashboard-mainnet.yml => dapp-mainnet.yml} (99%) diff --git a/.github/workflows/dashboard-ci.yml b/.github/workflows/dapp-ci.yml similarity index 99% rename from .github/workflows/dashboard-ci.yml rename to .github/workflows/dapp-ci.yml index 4eefaf249..480bfda12 100644 --- a/.github/workflows/dashboard-ci.yml +++ b/.github/workflows/dapp-ci.yml @@ -1,4 +1,4 @@ -name: Token Dashboard / CI +name: Dapp / CI on: schedule: diff --git a/.github/workflows/dashboard-mainnet.yml b/.github/workflows/dapp-mainnet.yml similarity index 99% rename from .github/workflows/dashboard-mainnet.yml rename to .github/workflows/dapp-mainnet.yml index 25d95e0e3..5605aec2d 100644 --- a/.github/workflows/dashboard-mainnet.yml +++ b/.github/workflows/dapp-mainnet.yml @@ -1,4 +1,4 @@ -name: Token Dashboard / Mainnet +name: Dapp / Mainnet on: push: diff --git a/.github/workflows/reusable-build-and-publish.yml b/.github/workflows/reusable-build-and-publish.yml index c9d53ad26..72152573e 100644 --- a/.github/workflows/reusable-build-and-publish.yml +++ b/.github/workflows/reusable-build-and-publish.yml @@ -1,4 +1,4 @@ -name: Build the dashboard and deploy to a GCP Bucket +name: Build the dapp and deploy to a GCP Bucket on: workflow_call: inputs: diff --git a/CODEOWNERS b/CODEOWNERS index c6d8575e9..75e41216e 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -.github/workflows/dashboard-mainnet.yml @pdyraga @nkuba @lukasz-zimnoch \ No newline at end of file +.github/workflows/dapp-mainnet.yml @pdyraga @nkuba @lukasz-zimnoch \ No newline at end of file diff --git a/README.md b/README.md index 9bb6ddc87..4f437c192 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Threshold Token Dashboard +# Threshold Token dapp -[![Token Dashboard / CI](https://github.com/threshold-network/dapp/actions/workflows/dashboard-ci.yml/badge.svg?branch=main&event=push)](https://github.com/threshold-network/dapp/actions/workflows/dashboard-ci.yml) +[![Dapp / CI](https://github.com/threshold-network/dapp/actions/workflows/dapp-ci.yml/badge.svg?branch=main&event=push)](https://github.com/threshold-network/dapp/actions/workflows/dapp-ci.yml) [![Docs](https://img.shields.io/badge/docs-website-green)](https://docs.threshold.network) [![Chat with us on Discord](https://img.shields.io/badge/chat-Discord-5865f2.svg)](https://discord.gg/threshold)