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

update main #210

Merged
merged 43 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a74910c
🔧 fix(preview-apps-delete.yml): remove unnecessary steps for download…
sebpalluel Oct 31, 2023
500e5d7
137 staging bugs (#144)
AlexandreG-tech Oct 31, 2023
d74fa45
145 back office cleanup main layout and put real menu similarly to we…
sebpalluel Nov 1, 2023
7d7218c
149 web add new orderstatus is minting (#150)
AlexandreG-tech Nov 7, 2023
be7821c
add: generateMetadata in page.tsx for organizer/organizerSlug/event/e…
AlexandreG-tech Nov 7, 2023
0d0fa4a
RBAC back-office (#153)
sebpalluel Nov 9, 2023
d2af7cc
🐛 fix(layout.tsx): fix missing rates variable assignment in RootLayou…
sebpalluel Nov 9, 2023
b8fce7a
⬆️ chore(package.json): update @sentry/nextjs and @sentry/utils to ve…
sebpalluel Nov 10, 2023
3c558b4
try to check if SIWE working with last versions of packages
sebpalluel Nov 10, 2023
0592e0b
try to remove webpack to check if SIWE issue fixed
sebpalluel Nov 10, 2023
d0b0762
try to remove webpack to check if SIWE issue fixed
sebpalluel Nov 10, 2023
d07520f
155 back office roles UI app nav (#157)
sebpalluel Nov 14, 2023
c048139
161 UI new table and data table component (#162)
sebpalluel Nov 20, 2023
bcc823b
154 e2e replace cypress with playwright (#168)
AlexandreG-tech Nov 24, 2023
1a4f034
158 back office rework of events management section and fix roles bug…
sebpalluel Nov 24, 2023
ae5e912
166 user should be able to download a pass (#173)
AlexandreG-tech Nov 27, 2023
4f031a7
172 web home page with offline event (#175)
sebpalluel Nov 27, 2023
0f0c3b3
add: e2e tests for pass and update version of thirdweb sdk to fix non…
AlexandreG-tech Nov 30, 2023
ba4b90d
🔧 chore(vercel.json): update buildCommand and outputDirectory paths f…
sebpalluel Dec 1, 2023
6f16066
🐛 fix(vercel.json): fix cron paths to use absolute paths instead of r…
sebpalluel Dec 1, 2023
5062df6
🔧 chore(.env.local): add NX_VERCEL_REMOTE_CACHE_TOKEN and NX_VERCEL_R…
sebpalluel Dec 1, 2023
b6720a3
🐛 fix(vercel.json): update outputDirectory path for back-office and w…
sebpalluel Dec 1, 2023
cf3767d
176 web organizer page (#180)
sebpalluel Dec 4, 2023
9ffa3d9
fix: name of file (#183)
AlexandreG-tech Dec 4, 2023
0f0bf62
🔥 refactor(i18n): remove unused code and dependencies
sebpalluel Dec 4, 2023
9363c3d
🔧 fix(EventPassList.tsx): fix formatting of getEventWithPasses functi…
sebpalluel Dec 4, 2023
4909d86
🐛 fix(mockServiceWorker.js): remove unnecessary semicolons to improve…
sebpalluel Dec 4, 2023
210a052
🐛 fix(mockServiceWorker.js): add missing semicolons to improve code r…
sebpalluel Dec 4, 2023
4c43882
198 web 404 on event page (#199)
sebpalluel Dec 5, 2023
04d9b5b
163 seo add dynamic sitemap for web app (#182)
AlexandreG-tech Dec 5, 2023
b9bc6d2
184 ticket dr 01 update eventpassnftcontract for delayed reveal funct…
sebpalluel Dec 5, 2023
962eb24
185 ticket dr 02 update hygraph model and gql queries for eventpassde…
sebpalluel Dec 6, 2023
7cf5b61
🔧 chore(next.config.js): update next.config.js to set environment var…
sebpalluel Dec 6, 2023
c279595
add: e2e basic tests for back-office and ci (#205)
AlexandreG-tech Dec 7, 2023
2752ac9
204 auth upgrade to latest safeauth + fix bugs on language change sig…
sebpalluel Dec 7, 2023
82c3442
🐛 fix(vercel.json): fix ignoreCommand logic to correctly handle pull …
sebpalluel Dec 7, 2023
a714641
🐛 fix(vercel.json): update ignoreCommand to correctly handle pull req…
sebpalluel Dec 7, 2023
8031841
200 back office finalise integration of normal event deploy (#208)
sebpalluel Dec 8, 2023
39952b1
🐛 fix(vercel.json): update ignoreCommand to include check for VERCEL_…
sebpalluel Dec 8, 2023
a12041d
🐛 fix(vercel.json): update ignoreCommand to use node script instead o…
sebpalluel Dec 8, 2023
9372827
🔧 chore(vercel.json): update ignoreCommand in back-office and web ver…
sebpalluel Dec 8, 2023
feaa79d
187 ticket dr 04 deployment and validation mechanism for delayed reve…
AlexandreG-tech Dec 12, 2023
be7a791
integrate PostHog for analytics and feature flags + bypass kyc with f…
sebpalluel Dec 12, 2023
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
  •  
  •  
  •  
36 changes: 25 additions & 11 deletions .env.local

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ hasura/app/**
.next/**
.next
.swcrc
mockServiceWorker.js
mockServiceWorker.js
.nx
8 changes: 8 additions & 0 deletions .eslintrc.ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": [".eslintrc.json"],
"rules": {
"import/no-cycle": "error",
"import/no-unused-modules": "error",
"import/no-deprecated": "error"
}
}
30 changes: 18 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"root": true,
"plugins": [
"@nx/nx",
"eslint-plugin-prettier",
"markdown",
"sonarjs",
"tailwindcss"
],
"plugins": ["@nx/eslint-plugin", "markdown", "sonarjs", "tailwindcss"],
"extends": [
"eslint-config-prettier",
"plugin:import/recommended",
Expand All @@ -15,13 +9,14 @@
"plugin:json/recommended",
"plugin:sonarjs/recommended",
"plugin:storybook/recommended",
"plugin:playwright/recommended",
"plugin:tailwindcss/recommended"
],
"settings": {
"import/resolver": {
"node": "true",
"typescript": {
"project": ["apps/**/tsconfig.*?.json", "libs/**/tsconfig.*?.json"]
"project": ["apps/*/tsconfig.json", "libs/*/tsconfig.json"]
}
},
"tailwindcss": {
Expand All @@ -32,6 +27,10 @@
}
},
"rules": {
"import/named": "off",
"import/namespace": "off",
"import/default": "off",
"import/no-named-as-default-member": "off",
"tailwindcss/no-custom-classname": [
"error",
{
Expand Down Expand Up @@ -63,19 +62,26 @@
"sonarjs/no-duplicate-string": "off"
}
},
{
"files": ["!**/*", "**/e2e/**/*.spec.ts"],
"extends": ["plugin:playwright/recommended"]
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"extends": ["plugin:@nx/eslint-plugin/typescript"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"import/no-cycle": "error"
"import/no-cycle": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"extends": ["plugin:@nx/eslint-plugin/javascript"],
"rules": {
"import/no-cycle": "error"
"import/no-cycle": "off",
"@typescript-eslint/no-unused-vars": "warn"
}
},
{
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/build-and-e2e-back-office-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and E2E back-office tests

on:
workflow_dispatch:

env:
NODE_OPTIONS: '--max_old_space_size=4096'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout [Pull Request]
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- uses: actions/checkout@v3
name: Checkout [Default Branch]
if: ${{ github.event_name != 'pull_request' }}
with:
fetch-depth: 0

- name: Derive appropriate SHAs for base and head for nx affected commands
id: nx
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: staging

- name: Set up environment and cache dependencies
uses: sebpalluel/ci/.github/actions/setup-environment@latest

- name: Build and check if back-office affected
id: check
run: |
affected=$(pnpm nx affected -t=build)
if [[ $affected == *"back-office:build:production"* ]]; then
echo "::set-output name=back-office::true"
else
echo "::set-output name=back-office::false"
fi

- name: Launch docker services
if: steps.check.outputs.back-office == 'true'
run: pnpm docker:services & pnpm nx run back-office:build:production

- name: Run e2e tests
if: steps.check.outputs.back-office == 'true'
run: pnpm nx run back-office:e2e --skipInstall
55 changes: 55 additions & 0 deletions .github/workflows/build-and-e2e-web-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and E2E web tests

on:
workflow_dispatch:

env:
NODE_OPTIONS: '--max_old_space_size=4096'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout [Pull Request]
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- uses: actions/checkout@v3
name: Checkout [Default Branch]
if: ${{ github.event_name != 'pull_request' }}
with:
fetch-depth: 0

- name: Derive appropriate SHAs for base and head for nx affected commands
id: nx
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: staging

- name: Set up environment and cache dependencies
uses: sebpalluel/ci/.github/actions/setup-environment@latest

- name: Build and check if web affected
id: check
run: |
affected=$(pnpm nx affected -t=build)
if [[ $affected == *"web:build:production"* ]]; then
echo "::set-output name=web::true"
else
echo "::set-output name=web::false"
fi

- name: Launch docker services
if: steps.check.outputs.web == 'true'
run: pnpm docker:services & pnpm nx run web:build:production

- name: Run e2e tests
if: steps.check.outputs.web == 'true'
run: pnpm nx run web:e2e --skipInstall
50 changes: 50 additions & 0 deletions .github/workflows/chromatic-back-office.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 'Chromatic Back-Office'

on:
pull_request:
paths:
- libs/ui/**
- libs/features/**
push:
branches: ['staging']
paths:
- libs/ui/**
- libs/features/**
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
chromatic-deployment:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
name: Checkout [Pull Request]
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- uses: actions/checkout@v3
name: Checkout [Default Branch]
if: ${{ github.event_name != 'pull_request' }}
with:
fetch-depth: 0

- name: Set up environment and cache dependencies
uses: sebpalluel/ci/.github/actions/setup-environment@latest

- name: Install Libvips
run: sudo apt-get update && sudo apt-get install -y libvips-dev

- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_BACK_OFFICE_PROJECT_TOKEN }}
exitZeroOnChanges: true
onlyChanged: true
buildScriptName: build-storybook:back-office
11 changes: 10 additions & 1 deletion .github/workflows/chromatic-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
paths:
- libs/ui/**
push:
branches: ['main']
branches: ['staging']
paths:
- libs/ui/**
workflow_dispatch:
Expand All @@ -19,6 +19,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout [Pull Request]
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- uses: actions/checkout@v3
name: Checkout [Default Branch]
if: ${{ github.event_name != 'pull_request' }}
with:
fetch-depth: 0

Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/chromatic-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ on:
pull_request:
paths:
- libs/ui/**
- apps/web/**
- libs/features/**
- '!libs/features/back-office/**'
push:
branches: ['main']
branches: ['staging']
paths:
- libs/ui/**
- apps/web/**
- libs/features/**
- '!libs/features/back-office/**'
workflow_dispatch:

concurrency:
Expand All @@ -22,6 +24,15 @@ jobs:

steps:
- uses: actions/checkout@v3
name: Checkout [Pull Request]
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- uses: actions/checkout@v3
name: Checkout [Default Branch]
if: ${{ github.event_name != 'pull_request' }}
with:
fetch-depth: 0

Expand Down
Loading