#403 Custom Invoice Branding with Logo Upload FIXED - #551
Merged
Kingsman-99 merged 2 commits intoJul 30, 2026
Merged
Conversation
|
@felladaniel36-hash is attempting to deploy a commit to the kingsman-99's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@felladaniel36-hash 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! 🚀 |
…th-Logo-Upload-FIX
6 tasks
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.
🔍 Findings & ✅ Fix Features
Findings — what was wrong with the repo (at HEAD
0dbc453)Corrupted merge commit (
606da98) — "Add wallet persistence, RPC error boundary, skeleton loading, status filters (Add wallet persistence, RPC error boundary, skeleton loading, and sta… #530)" inserted new code without removing the old versions, leaving 8 source files with duplicated/interleaved functions and broken JSX:src/app/dashboard/page.tsx,src/app/invoice/[id]/page.tsx,src/app/layout.tsxsrc/components/DashboardClient.tsx,src/components/Skeleton.tsx,src/components/WalletConnect.tsxsrc/lib/dashboardFilters.ts,src/app/invoice/new/page.tsx→
npx tsc --noEmitfailed outright; the repo could not compile, so no feature could ship.Dependency API breaks vs. the pinned SDKs (TypeScript errors):
SorobanRpc(nowrpc),FederationServer(nowFederation.Server.resolve()), top-levelServer(nowHorizon.Server), andmemo_idon federation records (nowmemo/memo_type).authenticator; must usegenerateSecret(),generateURI(),verifySync().30 failing tests across 18 files — invalid 55-char fixture addresses,
JSON.stringifycrashing on bigint, jsdom/CLDR differences in Node 20 (es-ES grouping), stale stellar-sdk mocks, missingasynconitcallbacks, broken inline component mocks.4 ESLint errors at HEAD (unescaped quotes/apostrophes in JSX) — CI's
npm run lintwas red.Missing dependency — the issue requires a react-hook-form + zod branding form, but
react-hook-form/@hookform/resolversweren't even installed.Fix features — what was delivered
🎨 The branding feature (the GitHub issue)
/settings/branding— react-hook-form + zodsrc/app/settings/branding/page.tsx,src/components/settings/BrandingForm.tsxLOGO_TYPE_ERROR/LOGO_SIZE_ERROR); server re-enforces (415/413)src/lib/brandSettings.ts,src/app/api/settings/branding/logo/route.tsBLOB_READ_WRITE_TOKEN) in prod; local fallback route serves bytes withCache-Control: public, max-age=31536000, immutable; intrinsic PNG/JPEG/WebP dimension parsing with a 300-dpi low-res warningsrc/lib/brandAssetStorage.ts,logo/[...key]/route.tssrc/lib/contrast.ts,BrandingForm.tsxBrandingForm.tsxserverAddressBook); GET/PUT/DELETE APIsrc/app/api/settings/branding/route.ts,src/lib/brandSettingsStore.tsBrandHeader(logo + accent + tagline) on live/invoice/[id], accent applied to pay buttonssrc/components/invoice/InvoiceView.tsx,src/app/invoice/[id]/page.tsxsrc/components/InvoiceExportButton.tsx#4f46e5default, no header rendered)🩹 The repairs (to make CI green)
tsc --noEmitexit 0;npm run buildexit 0 with/settings/branding+ Branding APIs listed in the route table.BLOB_READ_WRITE_TOKENin.env.example; addedreact-hook-form,@hookform/resolvers,@vercel/blob,@types/qrcodetopackage.json.Net change: 40 modified + 18 created files; all CI checks (lint, test, build) green.
CLOSE #403