Skip to content

Agent/ayden pr7 - #11

Open
syntaxPriest wants to merge 9 commits into
mainfrom
agent/ayden-pr7
Open

Agent/ayden pr7#11
syntaxPriest wants to merge 9 commits into
mainfrom
agent/ayden-pr7

Conversation

@syntaxPriest

Copy link
Copy Markdown
Owner

No description provided.

syntaxPriest and others added 9 commits July 31, 2026 15:05
Booking route (app/api/booking/route.ts):
- Move Resend API key to process.env.RESEND_API_KEY (was a hardcoded live secret)
- Type the body and wrap req.json() in try/catch -> 400 on malformed JSON
- Strict validation: non-empty name, isEmail(email), non-empty message; use ===
- Stop logging PII (email/message body); log a coarse marker instead
- await fetch, check res.ok, handle network errors -> 502; escape message HTML
- Drop Math.random() id from the response

Helpers:
- dateStats: fix average() out-of-bounds loop + empty-array guard; fix inverted
  truncate() logic; guard mostRecent() against empty input
- money: total() now treats discountPct as a percentage (÷100) and clamps 0–100
  so typical inputs like 20 no longer produce negative totals
- slugify: replace all non-alphanumeric runs (not just the first space); fix
  labelFromPath out-of-bounds index and strip the file extension
- validate: real email regex; escapeHtml escapes & < > " ' globally; mailtoLink
  URL-encodes email and subject

Typechecks clean (pre-existing missing-dependency errors in unrelated components
are unaffected). No test suite in repo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ction, slugify dotfiles, whitespace

- booking route: send notification to configured owner (BOOKING_TO_EMAIL),
  not the form submitter; set reply_to so the owner can reply to the submitter
- booking route: strip CR/LF from the submitter name before it goes in the
  Subject header, preventing email header injection
- slugify.labelFromPath: keep dotfiles like .gitignore intact instead of
  returning an empty label
- parallaxImage: remove trailing-whitespace blank lines (27, 35)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for danieladewale ready!

Name Link
🔨 Latest commit 8245c64
🔍 Latest deploy log https://app.netlify.com/projects/danieladewale/deploys/6a8c0d6b1d6580000815db12
😎 Deploy Preview https://deploy-preview-11--danieladewale.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant