Skip to content

Commit

Permalink
Merge pull request #5 from Cerebellum-Network/release/1.0.0
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
shamilkhan authored May 17, 2023
2 parents 9c504c7 + 805c6fe commit ab52f35
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ permissions:
id-token: write
contents: read

env:
REACT_APP_INCLUDE_TESTNET: true

jobs:
build-and-deploy:
uses: Cerebellum-Network/reusable-workflows/.github/workflows/deploy-to-cloudfront.yaml@master
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ permissions:
id-token: write
contents: read

env:
REACT_APP_INCLUDE_TESTNET: false

jobs:
build-and-deploy:
uses: Cerebellum-Network/reusable-workflows/.github/workflows/deploy-to-cloudfront.yaml@master
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ permissions:
id-token: write
contents: read

env:
REACT_APP_INCLUDE_TESTNET: true

jobs:
build-and-deploy:
uses: Cerebellum-Network/reusable-workflows/.github/workflows/deploy-to-cloudfront.yaml@master
Expand Down
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2023-05-17

### Added

- Google Tag Manager script
- Cere Logo and Icon
- Cere Mainnet and Testnet configurations
- Cere Network favicons

### Changed

- Refactored testnet inclusion condition in build-and-deploy job
- Updated branches for Stage and Prod
- Updated information about Inflation
- Fixed HTML page formatting, ChangeNominations, and CERE_URL
- Updated README.md, prod.yaml, Favicons, units, and URI Prefix
- Adjusted constants and networks for Cere
- Updated default Network and active networks fields

### Removed

- Binance fetch
- maxNominatorsCount from TotalNominations
- Feedback and Community pages
- Settings Modal
- UseInflation hook
- Removed auctionCounter field
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ REACT_APP_ORGANISATION="© Parity Technologies"
# provide a privacy policy url in the network bar
REACT_APP_PRIVACY_URL=https://www.parity.io/privacy/
# include the testnet configuration
REACT_APP_INCLUDE_TESTNET=true
```
## Config Files
There are some ad-hoc files defining app configuration where needed. These just provide a means of bootstrapping app data, and further abstraction could be explored in the future.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkadot-staking-dashboard",
"version": "0.1.0",
"version": "1.0.0",
"license": "apache-2.0",
"private": false,
"dependencies": {
Expand Down
6 changes: 5 additions & 1 deletion src/config/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ const cereTestnet = {
endpoint: 'wss://archive.testnet.cere.network/ws',
};

// Determine if the testnet should be included based on the REACT_APP_INCLUDE_TESTNET environment variable
// By default, includeTestnet is true or undefined unless REACT_APP_INCLUDE_TESTNET is explicitly set to 'false'
const includeTestnet = process.env.REACT_APP_INCLUDE_TESTNET !== 'false';

/*
* Network Configuration
*/
export const NETWORKS: Networks = {
cereMainnet,
cereTestnet,
...(includeTestnet ? { cereTestnet } : {}),
};

0 comments on commit ab52f35

Please sign in to comment.