Repository navigation
Formancy Report's example draws its sample's own Swiss QR Code, encoded as Report encodes it (0244) - #361
Merged
Conversation
…ed as Report encodes it (0244) The landing page's Report card and /products/report/ drew an empty square with only the Swiss cross where the QR-bill's code goes, which read as unfinished. They now draw the code Report's sample carries: the payload Report's runtime writes for invoice-en, encoded with uqr pinned at exactly 0.1.3 using Report's options and drawn as Report's renderer draws it, at 2 CSS pixels a module. Report's page prints on its slip what the code carries, under SIX's notice to separate it before paying in. The tests hold the drawing to the payload, to a reader that shares no code with uqr, and to a fingerprint of Report's published picture. The slip's words are held to the payload, and the browser gate checks the module size and the quiet zone. The share card was taken again. 0242 is superseded in part.
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
sharkysan
deleted the
feat/the-report-example-draws-the-swiss-qr-code
branch
November 26, 2026 19:58
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.
The paid-modules card on the landing page and
/products/report/both drew an empty square with only the Swiss cross where the Swiss QR Code belongs (0242). It read as unfinished, and the owner asked: "there is no qr code on the sample invoice?" Report's own published sample,invoice-en.png, already carries the real code. Its data is harmless: SIX's example QR-IBAN, which no bank books, on an invented firm's bill.What changes
swiss-qr-code.tsxencodesPAYLOADwith uqr pinned at exactly 0.1.3, using the options Report'sswissSymboluses (level M, no quiet zone, no boost, version 25 at most). It draws the code as Report'sswissCodeContentdoes: one path of runs and SIX's cross over the centre, as inline SVG with no style attribute.PAYLOADis the text Report's runtime writes forinvoice-en, read from Report'smain(81405cb) on 2026-11-26. It is 31 lines; the code is version 11, 61×61 modules.og.pngwas taken again the waydocs/images/README.mddescribes.How it is held
site.test.tsx:PAYLOAD, in black;src/testing/read-qr.tsthat shares no code with uqr reads them back toPAYLOADat level M;product-page.test.tsx:PAYLOAD;Each new guard was seen to fail on a planted fault, and each file was put back byte for byte. 0244 lists the failure messages.
Cost
Measured 2026-11-26, gzip at level 9:
/products/report/The landing page's JS grows so little because uqr was already there through
@formancy/react. Committing a generated module instead would have cost about 1 kB more JS on the landing page and about 2.8 kB less on Report's page.Not covered by any gate