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 #888

Merged
merged 21 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
28dc02d
chore(vesting): update UC DAO proposal text to past tense
olegshilov Jun 14, 2024
f062d4d
chore: remove websites and their libs from repo
olegshilov Jun 14, 2024
037b3b1
chore: deps cleanup, remove unused code, fix styles
olegshilov Jun 14, 2024
d4347f4
fix: fallback to first supported chain if unsupported chain selected
olegshilov Jun 14, 2024
41f33da
chore(deps): use pnpm as package manager, update deps
olegshilov Jun 25, 2024
23f3f7b
refactor: get rid react-responsive
olegshilov Jun 25, 2024
fff8ba8
fix(shell): use posthog credentials from client envs
olegshilov Jun 25, 2024
5c0a3ee
ci: update workflows to use pnpm
olegshilov Jun 25, 2024
9b355d2
chore: get rid last yarn commands
olegshilov Jun 25, 2024
e44a91a
chore: use default build config for shell
olegshilov Jun 25, 2024
92bc52e
ci: update nx default base and increase paralell process
olegshilov Jun 25, 2024
60551d7
chore: log warnings instead errors in wagmi cookie parser
olegshilov Jun 25, 2024
bca3e93
ci: disable husky install
olegshilov Jun 25, 2024
9b657cd
refactor(shell): use prefixed envs
olegshilov Jun 25, 2024
7736088
ci: run main workflow without affected conmand
olegshilov Jun 28, 2024
df29f56
ci: cleanup envs
olegshilov Jun 28, 2024
e94e3de
chore(vesting): fix typo
olegshilov Jul 1, 2024
e2cec7b
feat(vesting): show dao locked balance from indexer
olegshilov Jul 1, 2024
8095fba
fix(vesting): hide dao participation block
olegshilov Jul 1, 2024
b778217
fix(ui-kit): close burger menu after click on link
hadzhehsen Jul 1, 2024
c12156e
fix(shell): remove unnecessary semicolon
hadzhehsen Jul 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 9 additions & 21 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
NX_FAUCET_SERVICE_ENDPOINT=http://0.0.0.0:1337
NX_FAUCET_RECAPTCHA_SITE_KEY=example_recaptcha_site_key
NX_FAUCET_AUTH0_DOMAIN=example_auth0_domain
NX_FAUCET_AUTH0_CLIENT_ID=example_auth0_client_id

NX_SHELL_SENTRY_DSN=example_sentry_dsn
NX_STAKING_SENTRY_DSN=example_sentry_dsn
NX_GOVERNANCE_SENTRY_DSN=example_sentry_dsn
NX_FAUCET_SENTRY_DSN=example_sentry_dsn
NX_VESTING_SENTRY_DSN=example_sentry_dsn

NX_WALLETCONNECT_PROJECT_ID=example_wallet_connect_project_id

GOOGLE_TAG_ID=example_ga_measurement_id

FALCONER_ENDPOINT=example_falconer_service_endpoint
TURNSTILE_SITEKEY=example_turnstile_sitekey
NX_AIRDROP_ENDPOINT=airdrop.local

INDEXER_ENDPOINT=indexer.local

# SHELL
NEXT_PUBLIC_FAUCET_SERVICE_ENDPOINT=http://0.0.0.0:1337
NEXT_PUBLIC_FAUCET_AUTH0_DOMAIN=example_auth0_domain
NEXT_PUBLIC_FAUCET_AUTH0_CLIENT_ID=example_auth0_client_id
NEXT_PUBLIC_FAUCET_RECAPTCHA_SITE_KEY=example_recaptcha_site_key
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=example_wallet_connect_project_id
NEXT_PUBLIC_POSTHOG_KEY=ph_project_api_key
NEXT_PUBLIC_POSTHOG_HOST=ph_instance_address

# Vesting
WALLETCONNECT_PROJECT_ID=example_wallet_connect_project_id
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.yarn/** linguist-generated
yarn.lock linguist-generated
pnpm-lock.yaml linguist-generated
11 changes: 0 additions & 11 deletions .github/.kodiak.toml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
codecov:
branch: dev
require_ci_to_pass: true
notify:
after_n_builds: 2
wait_for_ci: true

coverage:
range: [70, 90]
range: 60..80
round: down
precision: 2
status:
patch: false
project: false

flag_management:
default_rules:
Expand Down
32 changes: 25 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
actions: read
contents: read

env:
HUSKY: 0

jobs:
test-and-lint:
name: Test and Lint
Expand All @@ -23,18 +30,29 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
- name: Run lint
run: yarn nx run-many --target=lint --parallel=3
- name: Run tests
run: yarn nx run-many --target=test --parallel=3 --ci --coverage
run: |
pnpm install --frozen-lockfile
pnpm cypress install --force
- uses: nrwl/nx-set-shas@v4
# - name: Run lint for affected projects
# run: pnpm exec nx affected --target lint
# - name: Run tests for affected projects
# run: pnpm exec nx affected --target test --ci --coverage
# - name: Run build for affected projects
# run: pnpm exec nx affected --target build
- name: Run lint test and build
run: pnpm exec nx run-many --target lint test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
queries: security-and-quality
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
39 changes: 0 additions & 39 deletions .github/workflows/preview-vercel-haqq-website.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/preview-vercel-islamic-website.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .github/workflows/preview-vercel-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SHELL_PROJECT_ID_NEXT }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
HUSKY: 0
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Pull Vercel Environment Information
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
15 changes: 10 additions & 5 deletions .github/workflows/preview-vercel-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_STORYBOOK_PROJECT_ID }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
HUSKY: 0
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Pull Vercel Environment Information
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
15 changes: 10 additions & 5 deletions .github/workflows/preview-vercel-vesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_VESTING_PROJECT_ID }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
HUSKY: 0
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Pull Vercel Environment Information
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
35 changes: 0 additions & 35 deletions .github/workflows/production-vercel-haqq-website.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/production-vercel-islamic-website.yml

This file was deleted.

Loading
Loading