Skip to content

Commit 194fbbc

Browse files
Merge pull request #322 from MeshJS/feature/email-notification-center
Feature/email notification center
2 parents 23945e9 + dd00755 commit 194fbbc

32 files changed

Lines changed: 2735 additions & 10 deletions

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,14 @@ NEXT_PUBLIC_BLOCKFROST_API_KEY_PREPROD="your-blockfrost-preprod-api-key"
5858
# DISCORD_CLIENT_SECRET="your-discord-client-secret"
5959
# DISCORD_BOT_TOKEN="your-discord-bot-token"
6060
# DISCORD_GUILD_ID="your-discord-guild-id"
61+
62+
# Optional: Email notifications via Resend
63+
# RESEND_API_KEY="re_..."
64+
# EMAIL_FROM="Mesh Multisig <notifications@your-domain.example>"
65+
# EMAIL_REPLY_TO="support@your-domain.example"
66+
# Optional: override notification email links. Required for localhost links when
67+
# using `next start` locally (NODE_ENV is production). Defaults to
68+
# http://localhost:3000 in `next dev` and the production site URL otherwise.
69+
# NOTIFICATION_LINK_BASE_URL="http://localhost:3000"
70+
# NOTIFICATION_DRAIN_SECRET="your-notification-drain-secret"
71+
# NOTIFICATIONS_EMAIL_ENABLED="false"

.github/workflows/trpc-integration-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
trpc-tests:
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 15
16+
timeout-minutes: 25
1717

1818
services:
1919
postgres:
@@ -46,8 +46,14 @@ jobs:
4646
node-version: 22
4747
cache: npm
4848

49+
- name: Use repo npm version
50+
run: npm install -g "$(node -p 'require("./package.json").packageManager')" && npm --version
51+
4952
- name: Install dependencies
50-
run: npm ci
53+
run: npm ci --ignore-scripts
54+
55+
- name: Generate Prisma client
56+
run: npx prisma generate
5157

5258
- name: Run database migrations
5359
run: npx prisma migrate deploy

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
unit-tests:
1515
name: Transaction builder unit tests
1616
runs-on: ubuntu-latest
17-
timeout-minutes: 10
17+
timeout-minutes: 20
1818

1919
steps:
2020
- name: Checkout repository
@@ -25,8 +25,14 @@ jobs:
2525
with:
2626
node-version: 22
2727

28+
- name: Use repo npm version
29+
run: npm install -g "$(node -p 'require("./package.json").packageManager')" && npm --version
30+
2831
- name: Install dependencies
29-
run: npm ci
32+
run: npm ci --ignore-scripts
33+
34+
- name: Generate Prisma client
35+
run: npx prisma generate
3036

3137
- name: Run transaction builder tests
3238
run: npm run test:ci -- --testPathPatterns="src/__tests__/tx-builders"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ yarn-error.log*
3838
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
3939
.env
4040
.env*.local
41+
.env.playwright
4142

4243
# bot ref client config (contains secret)
4344
scripts/bot-ref/bot-config.json

Dockerfile.ci

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ ENV NODE_OPTIONS=--experimental-wasm-modules
2424
COPY package.json package-lock.json* ./
2525
COPY prisma ./prisma
2626
COPY prisma.config.ts ./
27-
RUN npm ci
27+
RUN npm install -g "$(node -p 'require("./package.json").packageManager')" \
28+
&& npm --version
29+
RUN npm ci --ignore-scripts
30+
RUN npx prisma generate
2831

2932
# Copy full source for containerized CI runs.
3033
COPY . .

0 commit comments

Comments
 (0)