Add i18n, Zod validation, Prisma migrations, and webhooks - #1291
Merged
Conversation
|
@king-aj-the-first Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Owner
|
Resolved merge conflicts and merged via local rebase. Commit 675739e is now on main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #1277
closes #1282
closes #1283
closes #1285
PR description
Summary
Closes #1277, #1282, #1283, and #1285 on YieldVault-RWA. The app now ships real i18next (EN/ES + RTL hooks), Zod validation on request bodies/query/params, a versioned Prisma migrate/rollback workflow, and a signed webhook pipeline with retries, monitoring, and registration.
#1277 — Internationalization (i18n)
frontend/src/i18n/as the single catalog (en+es) with a compatiblet/useTranslation/setLocaleAPI.localStorage(yieldvault.locale).dir/langon<html>before first paint, CSS for[dir="rtl"], andar/he/fa/urmapped for future catalogs.frontend/src/i18n/locales/.#1282 — Zod request validation
backend/src/types/validation.ts.validate({ body, query, params })middleware returns 400VALIDATION_ERRORwith per-fielddetails.backend/docs/REQUEST_VALIDATION.md.#1283 — Prisma migration workflow
prisma:generate,prisma:migrate,prisma:deploy,prisma:status,prisma:rollback.backend/prisma/migrations/(0_init+ follow-ups).backend/prisma/rollbacks/;scripts/prisma-rollback.jsapplies it and marks the migration rolled back.backend/src/__tests__/prismaMigrationWorkflow.test.ts.backend/docs/PRISMA_MIGRATIONS.md.#1285 — Webhook system
backend/src/types/webhooks.ts.POST /api/v1/webhooks(JWT) andPOST /admin/webhooks(API key).X-YieldVault-Signature), challenge verification, dead-letter retry.webhook.delivery.attempt|retry|success|failed), delivery list, andgetWebhookDeliveryMetrics().backend/docs/WEBHOOKS.md.Test plan
cd frontend && npm install && npm run test:run -- src/i18n/i18n.test.tslangon<html>dir="rtl"if locale is set to a future RTL code (ar)cd backend && npm test -- requestValidation prismaMigrationWorkflow validation webhookdetailsnpm run prisma:statusand dry-runPRISMA_ROLLBACK_DRY_RUN=1 npm run prisma:rollback -- --name 20260530020000_add_webhook_verification