Commit Graph

27 Commits

Author SHA1 Message Date
Gerhard Scheikl d454843856 fix(email): use invoice language so email matches PDF attachment 2026-05-09 17:14:20 +02:00
Gerhard Scheikl b5d41046a0 feat(invoices): make order number link to admin order page 2026-05-09 17:11:13 +02:00
Gerhard Scheikl cc159f9b6b feat(ui): add Send/Re-send button on invoices page and order block 2026-05-09 17:09:33 +02:00
Gerhard Scheikl 227c00b3a0 fix(settings): place save banner next to Save button 2026-05-09 16:21:55 +02:00
Gerhard Scheikl f97d6dc9d2 feat(email): text colour menu in WYSIWYG (LinumIQ blue + presets) 2026-05-09 16:11:49 +02:00
Gerhard Scheikl 26e4af97bc fix(email): preserve <img style> in WYSIWYG so logo stays scaled 2026-05-09 08:22:07 +02:00
Gerhard Scheikl 67204d79ac feat(email): render shop logo inside WYSIWYG editor (cid swap) 2026-05-09 08:05:00 +02:00
Gerhard Scheikl 573dfbfd50 feat(email): default template with inline logo + shop contact vars
Mirrors the layout from data/mail_template.png:
- Company name + greeting headline
- Body referencing the invoice number
- Inline logo (cid:invoice-logo) attached automatically
- Footer with mailto + website links

New template vars: {{shopEmail}}, {{shopWebsite}}.
Settings UI prefills empty fields with the defaults so users see and
can tweak them without losing the fallback.
2026-05-08 23:12:23 +02:00
Gerhard Scheikl 04933fcac6 feat(email): WYSIWYG template editor with variable substitution
- Add emailSubject{De,En} + emailBodyHtml{De,En} to ShopSettings
- New RichTextEditor component (TipTap) with toolbar + variable insert
- Settings UI: Email templates section per language
- email.server.ts: substitute {{var}} placeholders, fall back to defaults
- Default vars: invoiceNumber, customerName, customerFirstName, orderName,
  totalGross, dueDate, companyName, ownerName
2026-05-08 23:06:40 +02:00
Gerhard Scheikl 537dfd34cb fix(pdf): hide payment terms text on paid invoices 2026-05-08 22:52:18 +02:00
Gerhard Scheikl 64ac54d3c3 fix(ui): align section headings (drop padding=none + redundant inner s-box) 2026-05-08 22:47:10 +02:00
Gerhard Scheikl 093db30b6c feat(email): always BCC shop@linumiq.com on outgoing invoice mails 2026-05-08 22:44:21 +02:00
Gerhard Scheikl 02a93b502b fix(health): add /healthz route and tighten docker healthcheck 2026-05-08 22:42:09 +02:00
Gerhard Scheikl 64dbdcbc6f set context for linumiq.com deployment 2026-05-08 22:07:38 +02:00
Gerhard Scheikl bbb2cdc94a fixed dockerfile location in final folder 2026-05-08 22:02:01 +02:00
Gerhard Scheikl e865bc5985 deploy: add shopify.app.prod.toml (linumiq-invoice prod app, client_id c5cb73...) 2026-05-08 21:50:33 +02:00
Gerhard Scheikl 9557a3b335 deploy: split into dev/prod with separate Shopify configs and containers
- shopify.app.toml -> shopify.app.dev.toml (domain: invoice-app-dev.linumiq.com)
- New shopify.app.prod.toml will be created via shopify app config link --config prod
- docker-compose split into deploy/docker-compose.{dev,prod}.yml with distinct
  container names (linumiq-invoice-{dev,prod}), images, env files and bind mounts
- Caddyfile snippet maps both subdomains to their respective containers
- .env.{dev,prod}.example templates committed in deploy/
- deploy/README.md documents the layout and day-to-day workflow
2026-05-08 21:41:22 +02:00
Gerhard Scheikl bdec06bc67 chore: ignore locally generated PDF artifacts in data/ 2026-05-08 17:22:54 +02:00
Gerhard Scheikl edd72f2776 feat(invoice): add Send invoice email action
Adds a Send button to the order action extension and a corresponding
"send" op to /api/orders/:orderId/invoice. Generates the invoice on
demand if missing, then sends via the configured SMTP.
2026-05-08 15:27:16 +02:00
Gerhard Scheikl a67fc0767e fix(api): wrap invoice API responses with cors() helper
The order-action / order-block UI extensions are hosted on
extensions.shopifycdn.com and call our app via fetch(). Without CORS
headers the browser blocked the response. authenticate.admin already
returns a cors helper and handles OPTIONS preflight - wrap every
Response with it.
2026-05-08 15:12:52 +02:00
Gerhard Scheikl 58cfc30cd7 fix(build): extract STORED_LOGO_SENTINEL to non-server module
Vite/React Router refused to bundle the client because
app/routes/app.settings.tsx imported the constant from a .server file
and used it inside the route component (not just loader/action), so it
could not be tree-shaken out.

Move the sentinel to logoCache.constants.ts, re-export from
logoCache.server.ts for backwards compatibility, and import the constant
from constants in the route while keeping the server-only functions
(deleteStoredLogo, storeUploadedLogo) imported from .server (they are
only referenced inside the action and get tree-shaken correctly).
2026-05-08 14:41:48 +02:00
Gerhard Scheikl 23246fe31f deploy: point Caddy snippet at container on caddy_net 2026-05-08 14:36:44 +02:00
Gerhard Scheikl 383e9c7944 updated docker-compose file for linumiq.com server 2026-05-08 14:21:03 +02:00
Gerhard Scheikl a275197ce4 make app production-ready 2026-05-08 11:01:08 +02:00
Gerhard Scheikl 770c6fd16a many updates :-) 2026-05-08 10:40:19 +02:00
Gerhard Scheikl 5b2aa5d62b first version 2026-04-28 21:56:11 +02:00
Gerhard Scheikl 0f75dbaccb initial version (template only) 2026-04-28 13:34:35 +02:00