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

Release v2.3.1 #52

Merged
merged 102 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
956663b
feat: includes history in RealToken and add History tab in property …
jycssu-com Dec 24, 2023
ccf681f
refactor: extract RpcProvider
jycssu-com Dec 24, 2023
331cd38
chore: use ES20 for typescript
jycssu-com Feb 8, 2024
2ac9710
fix: use full react fragment for avoid loop without keys error
jycssu-com Feb 8, 2024
cd1a93b
style: prettier
jycssu-com Feb 8, 2024
57d72e3
feat: clear expired cache on start
jycssu-com Feb 8, 2024
aaf77aa
chore: update ethers library
jycssu-com Feb 8, 2024
23343ef
feat: update margins in table view
jycssu-com Feb 8, 2024
1b0056a
feat: add external link to community tutorial
jycssu-com Feb 8, 2024
8639447
fix: typing error on modals
jycssu-com Feb 8, 2024
1780b33
feat: fetch all users transactions for compute properties purchase pr…
jycssu-com Feb 8, 2024
48c0d5c
feat: add page for display updates on rents and property valuation
jycssu-com Feb 8, 2024
b442edc
feat: add page for display history of all user transactions
jycssu-com Feb 8, 2024
91bbd86
Merge branch 'feature/rmm-v3' into feature/transfers-purchase-price
jycssu-com Feb 10, 2024
6f674ef
Merge branch 'develop' into feature/transfers-purchase-price
jycssu-com Feb 10, 2024
6832282
style: fix prettier import plugin
jycssu-com Feb 10, 2024
6d6f7e3
style: remove some types and lint errors
jycssu-com Feb 10, 2024
d848eca
chore: clean the package.json from useless or redundant dependencies
jycssu-com Feb 10, 2024
8d97106
feat: migrate to mantine 7
jycssu-com Feb 17, 2024
bcc7eaf
chore: update dependencies
jycssu-com Feb 17, 2024
56acef7
feat: exclude sort settings from filters indicator and filters reset
jycssu-com Feb 18, 2024
fddb090
fix: use correct background for header
jycssu-com Feb 18, 2024
25f4df8
feat: change rent update card style
jycssu-com Feb 18, 2024
2a4648b
refactor: improve histories page
jycssu-com Feb 18, 2024
5518b80
refactor: improve transactions page filter mechanism
jycssu-com Feb 18, 2024
4afe95b
feat: add number of elements in histories and transactions pages
jycssu-com Feb 18, 2024
61f38f8
feat: hide migrated tokens and offering closed tokens
jycssu-com Feb 18, 2024
5d12933
refactor: use createSelector for all redux selectors
jycssu-com Feb 18, 2024
a84c23f
fix: keep search/filters visibles when they hide all properties
jycssu-com Feb 18, 2024
c836c01
feat: add link to property page on transactions and histories pages
jycssu-com Feb 18, 2024
d63755f
feat: add link to open a transaction on gnosis scan
jycssu-com Feb 18, 2024
72e4d35
feat: add message when property has no history, user transactions, or…
jycssu-com Feb 18, 2024
f74c9c0
feat: add some RMM deposit token as stablecoins
jycssu-com Feb 18, 2024
c0f640a
feat: include rmm v3 in transfers parser
jycssu-com Feb 18, 2024
3ef0acf
fix: lowercase realtoken before find related levinswap event
jycssu-com Feb 18, 2024
2d608bf
fix: improve compute unit cost price calculation
jycssu-com Feb 18, 2024
8d1342d
fix: use current price for price cost if it can't be computed with tx
jycssu-com Feb 22, 2024
dde1710
fix: round currency values too close to 0
jycssu-com Feb 22, 2024
2026f66
feat: reset transaction db when reset user data
jycssu-com Feb 23, 2024
09a9cbb
feat: fetch transactions from ethereum
jycssu-com Feb 23, 2024
8a7b88e
feat: keep the levinswap share received when add or remove liquidity
jycssu-com Feb 23, 2024
be64ac4
feat: save transfers as mint and burn
jycssu-com Feb 24, 2024
33666d5
feat: save more details on levinSwap pool in/out transactions
jycssu-com Feb 24, 2024
712cb56
feat: take into account the transactions for migrated token
jycssu-com Feb 24, 2024
932692a
feat: improve transaction exchanged price fetching
jycssu-com Feb 24, 2024
77c55d7
feat: set a one year lifetime for language cookie
jycssu-com Mar 10, 2024
e89c7a2
feat: add initial transfers loading dialog
jycssu-com Mar 10, 2024
4626d6c
fix: take into account resale to realt with decimals
jycssu-com Mar 10, 2024
82a102b
fix: set dateFns language when user change app language
jycssu-com Mar 25, 2024
4ab5adb
fix: use user locale for format history date
jycssu-com Mar 25, 2024
22c799d
add realtime mode indicator (#36)
NandyBa Jun 4, 2024
fb60b52
fix: allow initialLaunchDate to be undefined
jycssu-com Jun 8, 2024
2b6e2f4
fix: sort correctly histories
jycssu-com Jun 8, 2024
89511b9
fix: fetch up to 1000 properties on rmm
jycssu-com Jun 8, 2024
9c166f0
feat: filter product type on dashboard
jycssu-com Jun 8, 2024
2498e7b
fix: disable temporary transfer related features
jycssu-com Jun 8, 2024
2c0bd96
add realtime mode indicator (#36)
jycssu-com Jun 8, 2024
5b44184
Merge branch 'develop' into 'feature/transfers-purchase-price'
jycssu-com Jun 8, 2024
9ca7ffd
feat: display transfers related features only if they are loaded
jycssu-com Jun 8, 2024
2439d23
chore: run npm audit
jycssu-com Jun 8, 2024
973b42f
feat: migrate to the decentralized subgraphs
jycssu-com Jun 8, 2024
f59bc75
chore: add dayjs dependency in package.json
jycssu-com Jun 8, 2024
9d66953
chore: export thegraph api key for docker from github secrets
jycssu-com Jun 11, 2024
305743c
chore: transfer env variable to docker compose
jycssu-com Jun 11, 2024
197a681
chore: fix docker compose syntax
jycssu-com Jun 11, 2024
a002ad2
chore: change method for send env var to docker
jycssu-com Jun 11, 2024
e1485af
Create .env.sample
Sigri44 Jun 11, 2024
033d982
Update CI/CD
Sigri44 Jun 11, 2024
a1a55ad
Update project name
Sigri44 Jun 11, 2024
07cd7a3
chore: use publicRuntimeConfig for theGraphApiKey
jycssu-com Jun 11, 2024
fc169fa
Update env vars
Sigri44 Jun 11, 2024
db9e536
Remove deprecated version
Sigri44 Jun 11, 2024
ff699ae
Merge pull request #43 from RealToken-Community/Sigri44-patch-1
jycssu-com Jun 11, 2024
6d0d9cb
Merge pull request #44 from RealToken-Community/updated-ci/cd
jycssu-com Jun 11, 2024
5af1047
chore: use same workflow for all branches environments
jycssu-com Jun 11, 2024
aef2e8b
chore: fix temporary path for deploy branch environment
jycssu-com Jun 11, 2024
0497c6c
Update root dir & var env
Sigri44 Jun 11, 2024
22ebf8f
Merge pull request #45 from RealToken-Community/Fix-CI/CD
jycssu-com Jun 11, 2024
40d8445
chore: try use .env file as volume
jycssu-com Jun 11, 2024
bc92bb5
chore: try build docker image with env var
jycssu-com Jun 11, 2024
0ebf133
fix: dockerfile syntax
jycssu-com Jun 11, 2024
f7e7568
chore: use build args on docker for thegraph api key
jycssu-com Jun 11, 2024
abed135
feat: use runtime env instead of build env for thegraph token
jycssu-com Jun 12, 2024
2b39e3d
chore: improve env in github workflow
jycssu-com Jun 12, 2024
ab4e3d2
chore: clean dockerfile
jycssu-com Jun 12, 2024
6d1926c
chore: try remove usage of env file in branch environment
jycssu-com Jun 12, 2024
26e1c5f
chore: rename env name for thegraph api key
jycssu-com Jun 12, 2024
c549544
chore: change syntax for send env var in workflow
jycssu-com Jun 12, 2024
5a1f6d6
chore: add env in workflow
jycssu-com Jun 12, 2024
1527d63
chore: add some error logs on fetch properties
jycssu-com Jun 12, 2024
9b1bc3c
chore: use env file for community api key
jycssu-com Jun 12, 2024
b78f59d
chore: use secrets variable from Github for community api
jycssu-com Jun 12, 2024
09d6998
feat: avoid thegraph request for trustedIntermediary
jycssu-com Jun 12, 2024
73823e1
refactor: use rpc for fetching stables on rmm v3
jycssu-com Jun 12, 2024
c10c0dd
chore: update prod workflow and docker compose
jycssu-com Jun 12, 2024
b0ffa67
chore: release v2.2.1
jycssu-com Jun 12, 2024
9d7e06f
chore(deps): bump braces from 3.0.2 to 3.0.3 (#46)
dependabot[bot] Jun 13, 2024
88d4c7a
chore(deps): bump lodash from 1.3.1 to 4.17.21 (#49)
dependabot[bot] Jun 13, 2024
fb9598e
Feature/add-favicon (#47)
Yohann76 Jun 13, 2024
80005aa
chore: merge branches and production github workflow
jycssu-com Jun 20, 2024
2152eb6
style: fix eslint warning
jycssu-com Jun 20, 2024
c9d3f4e
chore: release v2.3.1
jycssu-com Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BUILD_ENV=
COMMUNITY_API_KEY=
THEGRAPH_API_KEY=
31 changes: 18 additions & 13 deletions .github/workflows/preprod.yml → .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Test and deploy to pre-production
name: Test and deploy to branch

on:
push:
branches:
- master
- preprod
- develop

jobs:
validate:
name: Validate pre-production
name: Validate branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -29,25 +30,25 @@ jobs:
run: npm run build

deploy:
name: Deploy to pre-production
name: Deploy to branch
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Login to registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWD }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: registry.realt.community/realtdashboard_preprod:latest
tags: ${{ secrets.DOCKER_REGISTRY }}/dashboard:${{ github.ref_name }}

- name: Configure SSH
run: |
Expand All @@ -68,10 +69,14 @@ jobs:
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_PORT: ${{ secrets.SSH_PORT }}

- name: Update pre-production environment
- name: Update branch environment
run: |
ssh staging 'cd /home/realt/docker/dashboard-v2/preprod
git pull origin develop
docker compose --file docker-compose-preprod.yml pull
docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWD }} ${{ secrets.DOCKER_REGISTRY }}
docker compose --file docker-compose-preprod.yml up -d'
ssh staging 'export DOCKER_BRANCH=${{ github.ref_name }} DOCKER_REGISTRY=${{ secrets.DOCKER_REGISTRY }}
cd /var/docker/dashboard-v2/${DOCKER_BRANCH}
git pull origin ${DOCKER_BRANCH}
docker compose --file docker-compose-branch.yml pull
docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWD }} ${DOCKER_REGISTRY}
THEGRAPH_API_KEY=${{ secrets.THEGRAPH_API_KEY }} \
COMMUNITY_API_KEY=${{ secrets.COMMUNITY_API_KEY }} \
HOSTNAME=${{ github.ref_name == 'master' && 'dashboard.realt.community' || 'dashboard.${DOCKER_BRANCH}.realt.community' }} \
docker compose --project-name ${{ github.ref_name }}-dashboard --file docker-compose-branch.yml up -d'
76 changes: 0 additions & 76 deletions .github/workflows/prod.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .prettierrc

This file was deleted.

21 changes: 21 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
tabWidth: 2,
useTabs: false,
singleQuote: true,
jsxSingleQuote: true,
semi: false,
endOfLine: 'auto',

plugins: [require.resolve('@trivago/prettier-plugin-sort-imports')],
importOrder: [
'^react',
'^next',
'^@(.*)$',
'^i18next(.*)',
'^(?!(src|../|./))(.*)',
'^src(.*)$',
'^(.*)$'
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ To run the project you will need to set-up a `.env` file in the root folder:

```
COMMUNITY_API_KEY=XXXXXXXXXXXX
THEGRAPH_API_KEY=XXXXXXXXXXXX
```

To get a `COMMUNITY_API_KEY`, join the dedicated [telegram dev channel](https://t.me/+XQyoaFfmN61yk7X0) then ask for.

To get a THEGRAPH_API_KEY, you need to create an account on thegraph.com [Thegraph docs](https://thegraph.com/docs/en/querying/managing-api-keys/)

### Node.js version

<strong>📣 Node.js needed version is `v18.12.1`</strong>
Expand Down
19 changes: 19 additions & 0 deletions docker-compose-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
app:
image: ${DOCKER_REGISTRY}/dashboard:${DOCKER_BRANCH}
container_name: ${DOCKER_BRANCH}-dashboard
environment:
- THEGRAPH_API_KEY=$THEGRAPH_API_KEY
- COMMUNITY_API_KEY=$COMMUNITY_API_KEY
networks:
- traefik-realt
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.dashboard-${DOCKER_BRANCH}.rule=Host(`${HOSTNAME}`)'
- 'traefik.http.routers.dashboard-${DOCKER_BRANCH}.entrypoints=websecure'
- 'traefik.http.services.dashboard-${DOCKER_BRANCH}.loadbalancer.server.port=3000'
restart: always

networks:
traefik-realt:
external: true
21 changes: 0 additions & 21 deletions docker-compose-preprod.yml

This file was deleted.

21 changes: 0 additions & 21 deletions docker-compose-prod.yml

This file was deleted.

Loading
Loading