Skip to content

Commit

Permalink
Changeset (#302)
Browse files Browse the repository at this point in the history
* feat(frontend): enable decentralization mode toggle while in library mode (#275)

Co-authored-by: Federico Luzzi <[email protected]>

* chore(frontend): v0.7.1

* feat(frontend): new links across the frontend (#276)

* feat(frontend): new links across the frontend

* chore(frontend): add landing page link to the footer

* chore(frontend): add 'about' external landing page link to the navbar

---------

Co-authored-by: Federico Luzzi <[email protected]>

* fix(ui): disable click on tokens while loading (#278)

* feat(frontend,ui): typography review (#277)

* feat(frontend): new links across the frontend

* chore(frontend): add landing page link to the footer

* chore(frontend): add 'about' external landing page link to the navbar

* feat(ui): new typography styles for both markdown and standard typography

* feat(frontend): adapt frontend to new ui config

* feat(ui): new line height for headings

* chore(ui): slightly tweak headings letter spacing

* fix(ui): make sure switzer font family is applied to markdown component's titles

* feat(frontend): reduce carrot logo width in footer

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore(ui): v0.47.0

* feat(frontend): remove forced decentralization mode setting in library mode

* chore(frontend): v0.7.2

* feat(frontend): new favicons (#279)

* feat(frontend): new favicons

* feat(frontend): new og thumb image

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore: upgrade dependencies (#280)

Co-authored-by: Federico Luzzi <[email protected]>

* chore(sdk): v1.27.4

* chore(ui): v0.47.1

* chore(react): v0.47.1

* chore(frontend): v0.7.3

* chore: explicity ts type imports

* chore(sdk): v1.27.5

* chore(ui): v0.47.2

* chore(react): v0.47.2

* chore(frontend): v0.7.4

* feat(ui): update step card title sizes

* chore(ui): v0.48.0

* fix(ui): fix select types (#281)

* fix(ui): fix select types

* fix(frontrend,ui): fix select typing

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore(ui): v0.48.1

* chore(frontend): v0.7.5

* chore(ui): fix types on select component

* chore(ui): v0.48.2

* feat(ui): avoid dorcing text size reduction for headings on mobile

* chore(ui): v0.48.3

* Fetch latest KPI tokens (#282)

* feat(sdk): add fetchLatestKPITokenAddresses fetcher

* fix(frontend): use new fetcher in the useLatestKPITokens hook

* fix(sdk): sort the KPI token by asc

* fix(frontend): reverse the latest KPI tokens array

* refactor: replace slice with cast

* refactor(sdk): move fetchers validation to common functions

* feat(ui): typography update (#283)

Co-authored-by: Federico Luzzi <[email protected]>

* fix(frontend): remove minimum height on hero

* fix(frontend): fix video not visible on safari in hero

* Add default block explorers for supported chains (#284)

* fix(frontend): add default block explorers for supported chains

* chore: upgrade dependencies

* chore: rollback to react-redux v8.0.7

* fix(ui): allow non serializable select values (#285)

* fix(ui): allow non serializable select values

* chore(ui): add use callback

* fix(ui): remove extra check

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore(ui): v0.48.4

* chore(sdk): format currency amount instead of token amount

* chore(sdk): v1.28.0

* fix(ui): fix sans body text typography config (#286)

Co-authored-by: Federico Luzzi <[email protected]>

* fix(ui): typography heading text size fix (#287)

* fix(ui): fix sans body text typography config

* chore(ui): v0.48.5

* fix(ui): fix heading typography config

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore(ui): v0.48.6

* fix(frontend): use ankr rpc for gnosis (#288)

* Collateral recover transaction (#289)

* feat(frontend): add ERC20 recover transaction types

* feat(react): add recover ERC20 transaction types

* feat(sdk): update KPI token abi

* chore(sdk): v1.28.1

* chore(sdk): v0.48.0

* chore(frontend): v0.8.0

* Upgrade dependencies (#290)

* chore: upgrade dependencies

* fix: downgrade eslint-config-turbo to v1.10.3

* fix: lock eslint-config-turbo version

* chore(sdk): v1.28.2

* chore(sdk): v1.28.2

* chore(ui): v0.48.7

* chore(react): v0.48.1

* chore(frontend): v0.8.1

* chore: upgrade deps (#291)

* chore: upgrade patched dependencies

* chore: upgrade minor deps

* chore: upgrade remaining dependencies

* chore: update peer dependencies and shared dependencies json

---------

Co-authored-by: Federico Luzzi <[email protected]>

* feat(react): avoid passing t function to federated components (#292)

Co-authored-by: Federico Luzzi <[email protected]>

* chore(react): v0.49.0

* chore(frontend): v0.9.0

* fix(subgraph): fix upgrade templates issue on subgraph (#294)

* chore(subgraph): update abis

* fix(subgraph): fix template upgrades overwriting previous template version

---------

Co-authored-by: Federico Luzzi <[email protected]>

* Revert "feat(react): avoid passing t function to federated components (#292)" (#295)

This reverts commit a1d2d3c.

Co-authored-by: Federico Luzzi <[email protected]>

* chore(react): v0.50.0

* chore(frontend): v0.10.0

* feat(react): avoid passing t function to federated components (#292) (#296)

Co-authored-by: Federico Luzzi <[email protected]>

* Revert "feat(react): avoid passing t function to federated components (#292) (#296)"

This reverts commit 1e75952.

* chore: update addresses (#297)

* chore(sdk): update addresses

* chore(sdk): update abis

* chore(subgraph): update gnosis addresses

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore(sdk): v1.29.0

* chore(ui): v0.48.8

* chore(react): v0.50.1

* chore(frontend): v0.11.0

* feat(react): avoid passing t function to federated components (#292)

Co-authored-by: Federico Luzzi <[email protected]>

* chore(react): v0.50.2

* chore(frontend): v0.11.1

* Revert "feat(react): avoid passing t function to federated components (#292)"

This reverts commit 06ec417.

* chore(react): v0.50.3

* chore(frontend): v0.11.2

* Css issue when loading ERC20 tokens (#293)

* fix(ui): css issue when loading ERC20 tokens

* fix(frontend): replace expired discord link

* fix(frontend): minor css issue

* Improve mobile menu, fix minor issues (#298)

* feat(frontend): improve mobile side menu

* fix(frontend): issues with the campaigns page

* chore: update repo link

* feat(frontend): mp4 source in hero video

* feat: introduce new ipfs pinning proxy (#299)

* feat: introduce new ipfs pinning proxy

* chore(frontend): remove extra if

---------

Co-authored-by: Federico Luzzi <[email protected]>

* Avoid resolving all the KPI tokens at once (#300)

* feat(frontend): avoid resolving all the kpi tokens at once

* feat(frontend): responsiveness and style fixes and hide template filters on campaigns page

* chore(frontend): ordering change in fathomrc

* fix(frontend): avoid grid flashing when tokens have been fetched but not yet transformed into array

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore: upgrade patched dependencies

* chore: upgrade minor dependencies and update storybook

* chore: upgrade prettier and eslint

* chore: update typescript eslint plugin

* chore: upgrade more dependencies

* chore: add changeset CI (#301)

* chore: add changeset CI

* docs: add CHANGELOG.md file with changeset info

* chore: remove .yarn folder

---------

Co-authored-by: Federico Luzzi <[email protected]>

* chore: add first changeset

---------

Co-authored-by: Federico Luzzi <[email protected]>
Co-authored-by: Paolo Guerra <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2023
1 parent e1ec7d3 commit a31ed92
Show file tree
Hide file tree
Showing 319 changed files with 6,851 additions and 5,278 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
9 changes: 9 additions & 0 deletions .changeset/good-lamps-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@carrot-kpi/shared-state": minor
"@carrot-kpi/host-frontend": minor
"@carrot-kpi/react": minor
"@carrot-kpi/sdk": minor
"@carrot-kpi/ui": minor
---

First changeset
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changesets:
name: Changesets
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Create release pull request or publish to npm
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
if: steps.changesets.outputs.hasChangesets == 'false'
run: yarn changeset:publish
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing

This document contains information on how to get started contributing on the
Carrot KPI monorepo.

## Changesets

To streamline the process of releasing new packages versions, the toolset
offered by `changeset` can be used. For more information about `changeset`, you
can visit their GitHub page [here](https://github.com/changesets/changesets).

The following operations should be done:

1. Create a new branch from `develop`
2. Run `yarn changeset` and follow the intructions in the cli (the command
should be run on one package at a time, this way we'll have a `CHANGELOG.md`
file dedicated to each package).
3. Open a new PR from `develop` targeting `main`, containing the files generated
by the changeset commands

At this point the [changeset bot](https://github.com/apps/changeset-bot)
configured on the Github repository will comment the PR adding details about the
provided changesets. Once the PR gets merged the GitHub workflow will consume
all changesets, and update to the most appropriate semver version based on those
changesets. It also writes changelog entries for each consumed changeset and
publish any new version to npm.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<p align="center">
<img src="https://img.shields.io/badge/License-GPLv3-blue.svg" alt="License: GPL v3">
<img src="https://github.com/carrot-kpi/v1-monorepo/actions/workflows/ci.yml/badge.svg" alt="CI">
<img src="https://github.com/carrot-kpi/monorepo/actions/workflows/ci.yml/badge.svg" alt="CI">
</p>

# Carrot frontend monorepo
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"name": "@carrot-kpi/v1-monorepo",
"name": "@carrot-kpi/monorepo",
"version": "1.0.0",
"description": "A monorepo for Carrot v1 packages.",
"author": "Federico Luzzi <[email protected]>",
Expand All @@ -9,6 +9,7 @@
"packages/*"
],
"scripts": {
"changeset:publish": "yarn run build && changeset publish",
"build": "turbo run build",
"build:frontend-production": "turbo run build:production --filter @carrot-kpi/host-frontend",
"build:frontend-staging": "turbo run build:staging --filter @carrot-kpi/host-frontend",
Expand All @@ -19,15 +20,14 @@
"start": "turbo run start",
"test": "turbo run test",
"size-limit": "turbo run size-limit",
"release": "turbo run release",
"commitlint": "commitlint -e",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"husky": "^8.0.1",
"prettier": "^2.8.8",
"turbo": "^1.9.4"
"turbo": "^1.10.9"
}
}
4 changes: 4 additions & 0 deletions packages/eslint-config-custom/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["custom"],
};
27 changes: 16 additions & 11 deletions packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@
"access": "public"
},
"scripts": {
"lint": "prettier --check './**/*.{json,md,js}'",
"format": "prettier --write './**/*.{json,md,js}'"
"lint": "eslint --ext .js ./ && prettier --check './**/*.{json,md}'",
"format": "eslint --fix --ext .js ./ && prettier --write './**/*.{json,md}'"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"eslint": "latest",
"eslint-config-next": "latest",
"eslint-config-prettier": "latest",
"eslint-config-turbo": "latest"
},
"peerDependencies": {
"eslint-config-prettier": "^8.8.0",
"eslint-config-turbo": "^1.9.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2"
"eslint-plugin-prettier": "latest",
"eslint-plugin-react": "latest",
"prettier": "latest"
},
"devDependencies": {
"eslint-config-prettier": "^8.8.0",
"eslint-config-turbo": "^1.9.4",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"prettier": "^2.8.8"
"eslint-plugin-prettier": "latest",
"eslint-plugin-react": "latest",
"prettier": "latest"
}
}
30 changes: 0 additions & 30 deletions packages/frontend/.eslintrc

This file was deleted.

26 changes: 26 additions & 0 deletions packages/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
root: true,
env: {
browser: true,
es6: true,
},
ignorePatterns: ["craco.config.js", "tailwind.config.js", "src/out"],
extends: [
"custom",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
plugins: ["react"],
settings: {
react: {
version: "detect",
},
},
rules: {
"react/react-in-jsx-scope": "off",
"space-before-function-paren": "off",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"react-hooks/exhaustive-deps": "error",
},
};
7 changes: 4 additions & 3 deletions packages/frontend/.fathomrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"outDir": "./src/out/fathom",
"events": [
"TX_ERC20_APPROVAL",
"TX_KPI_TOKEN_CREATION",
"TX_KPI_TOKEN_COLLATERAL_RECOVER",
"TX_CUSTOM",
"TX_KPI_TOKEN_REDEMPTION",
"TX_ERC20_APPROVAL",
"TX_ORACLE_FINALIZATION",
"TX_CUSTOM"
"TX_KPI_TOKEN_CREATION"
]
}
71 changes: 39 additions & 32 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carrot-kpi/host-frontend",
"license": "GPL-3.0-or-later",
"version": "0.7.0",
"version": "0.11.2",
"description": "Frontend for Carrot KPI protocol v1.",
"main": "./dist/bootstrap.js",
"module": "./dist/bootstrap.js",
Expand Down Expand Up @@ -40,67 +40,74 @@
"@carrot-kpi/react": "*",
"@carrot-kpi/sdk": "*",
"@carrot-kpi/ui": "*",
"class-variance-authority": "^0.6.0",
"dayjs": "^1.11.7",
"class-variance-authority": "^0.7.0",
"dayjs": "^1.11.8",
"eth-provider": "^0.13.6",
"ethereum-blockies-base64": "^1.0.2",
"ethereum-provider": "^0.7.7",
"react-router-dom": "^6.11.1",
"sanitize-html": "^2.9.0",
"use-fathom-client": "^1.3.1",
"viem": "^0.3.36"
"jwt-decode": "^3.1.2",
"react-redux": "8.1.1",
"react-router-dom": "^6.14.2",
"sanitize-html": "^2.11.0",
"use-fathom-client": "^1.3.2",
"viem": "^1.4.1"
},
"peerDependencies": {
"@carrot-kpi/shared-state": "*",
"@carrot-kpi/switzer-font": "^0.1.0",
"@fontsource/ibm-plex-mono": "^4.5.13",
"@tanstack/react-query": "^4.24.9",
"i18next": "^22.0.2",
"@fontsource/ibm-plex-mono": "^5.0.3",
"@tanstack/react-query": "^4.29.17",
"i18next": "^23.2.3",
"react": "^18.2.0",
"react-i18next": "^12.0.0",
"wagmi": "^1.0.5"
"react-i18next": "^13.0.1",
"wagmi": "^1.3.1"
},
"devDependencies": {
"@carrot-kpi/shared-state": "*",
"@carrot-kpi/switzer-font": "^0.1.0",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"@craco/craco": "^7.1.0",
"@fontsource/ibm-plex-mono": "^5.0.1",
"@react-spring/web": "^9.7.2",
"@rollup/plugin-commonjs": "^25.0.0",
"@fontsource/ibm-plex-mono": "^5.0.3",
"@react-spring/web": "^9.7.3",
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-replace": "^5.0.2",
"@size-limit/file": "^8.1.0",
"@tanstack/react-query": "^4.29.7",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.4",
"@size-limit/file": "^8.2.6",
"@tanstack/react-query": "^4.32.0",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.6",
"@types/react-router-dom": "^5.3.3",
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
"@types/sanitize-html": "^2.9.0",
"autoprefixer": "^10.4.14",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
"dotenv": "^16.0.3",
"dotenv": "^16.3.1",
"eslint-config-custom": "*",
"i18next": "^22.4.15",
"postcss": "^8.4.23",
"eslint-plugin-prettier": "^5.0.0",
"i18next": "^23.2.3",
"postcss": "^8.4.27",
"prettier": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^12.2.2",
"react-i18next": "^13.0.1",
"react-scripts": "^5.0.1",
"react-use": "^17.4.0",
"rimraf": "^5.0.0",
"rollup": "^3.21.7",
"rollup": "^3.26.3",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.34.0",
"size-limit": "^8.1.0",
"tailwindcss": "^3.3.2",
"rollup-plugin-typescript2": "^0.35.0",
"size-limit": "^8.2.6",
"tailwindcss": "^3.3.3",
"tsconfig": "*",
"typescript": "^5.0.4",
"wagmi": "^1.0.5",
"workbox-precaching": "^6.5.4",
"workbox-routing": "^6.5.4"
"turbo": "^1.10.9",
"typescript": "^5.1.3",
"wagmi": "^1.3.9",
"workbox-precaching": "^7.0.0",
"workbox-routing": "^7.0.0"
},
"browserslist": {
"production": [
Expand Down
Binary file modified packages/frontend/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/frontend/public/browserconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#000000</TileColor>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file modified packages/frontend/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<meta name="theme-color" content="#000000" />
<title>Carrot</title>
</head>
<body>
<body id="__app_body">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
Expand Down
Binary file modified packages/frontend/public/mstile-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/mstile-310x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/mstile-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/frontend/public/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 5 additions & 13 deletions packages/frontend/public/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

2 comments on commit a31ed92

@vercel
Copy link

@vercel vercel bot commented on a31ed92 Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

host-frontend – ./packages/frontend

host-frontend-carrot-labs.vercel.app
host-frontend-git-main-carrot-labs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on a31ed92 Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./packages/ui

ui-git-main-carrot-labs.vercel.app
ui-carrot-labs.vercel.app
ui.carrot-kpi.dev

Please sign in to comment.