Skip to content

E-Mail to Peppol sending#10

Open
daanlenaerts wants to merge 6 commits intomainfrom
feat-email-to-peppol-sending
Open

E-Mail to Peppol sending#10
daanlenaerts wants to merge 6 commits intomainfrom
feat-email-to-peppol-sending

Conversation

@daanlenaerts
Copy link
Copy Markdown
Contributor

@daanlenaerts daanlenaerts commented Jan 15, 2026

  • Slug: server side generation
  • Rewrite sending to avoid code duplication in hot path

if (!json.success) {
toast.error(stringifyActionFailure(json.errors));
if (!json.success || !json.company) {
toast.error(stringifyActionFailure(!json.success ? json.errors : {}));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this?

if (!json.success) {
throw new Error(stringifyActionFailure(json.errors));
if (!json.success || !json.company) {
throw new Error(stringifyActionFailure(!json.success ? json.errors : {}));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this?

@@ -0,0 +1,299 @@
import { sendEmail } from "@core/lib/email";
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rewrite this. We can't afford code duplication in the sending hot path.

@kobeindemans kobeindemans force-pushed the feat-email-to-peppol-sending branch from d573656 to a02f610 Compare January 15, 2026 23:13
Copy link
Copy Markdown
Contributor Author

@daanlenaerts daanlenaerts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will still rewrite the sending over Peppol from email code, to avoid code duplication in the hot path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants