You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Add a Share & download group to DocumentView: Download PDF (hits ?download=1 via a bearer-authed blob + save anchor), Create/Copy a public /share/<token> view link with the live-share list and one-click Revoke, Share on WhatsApp (wa.me/<client digits> prefilled with greeting + doc no + total + the share link), and native share (navigator.share of the link, falling back to Download where unsupported). Client api.ts gains the Share type, shares on getDocumentFull, createShare/ revokeShare, and downloadDocumentPdf. Vite dev proxies /share to the hq server so a minted link opens against the dev origin exactly as in prod (the hq server serves both the SPA and the public /share route on one origin). Server share/download endpoints and the golden renderer are unchanged. Browser-verified: minted a link, opened /share/<token> in a fresh unauthenticated context (200 application/pdf, viewer renders the doc), revoked and confirmed a 404 "Link unavailable" page with no data leak, and confirmed the WhatsApp deep link is prefilled. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
1 week ago | |
|---|---|---|
| .. | ||
| backoffice | 2 weeks ago | |
| hq | 1 week ago | |
| hq-web | 1 week ago | |
| pos | 2 weeks ago | |
| store-server | 2 weeks ago | |