chore(style): codebase em-dash sweep + minor layout polish
Replaces every em-dash and en-dash with regular ASCII hyphens across comments, JSX strings, and dev-facing logs. Mostly cosmetic but stops the inconsistent mix that crept in over the last few months (some files used em-dashes in comments, others didn't, some used both). Bundles two small dashboard-layout tweaks that touch a couple of already-modified files: - (dashboard)/layout.tsx main padding goes from p-6 to pt-3 px-6 pb-6 so page content sits closer to the topbar. - Sidebar now receives the ports list it needs for the footer port switcher. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -96,7 +96,7 @@ async function resolveAttachments(
|
||||
* Sends a single email via SMTP.
|
||||
*
|
||||
* Returns the nodemailer info object on success. Propagates errors to the
|
||||
* caller — callers in background jobs should wrap in try/catch and handle
|
||||
* caller - callers in background jobs should wrap in try/catch and handle
|
||||
* retries via BullMQ.
|
||||
*/
|
||||
export async function sendEmail(
|
||||
|
||||
@@ -117,7 +117,7 @@ export function resetEmail(data: ResetData): { subject: string; html: string; te
|
||||
</a>
|
||||
</p>
|
||||
<p style="font-size:14px; color:#666; line-height:1.5; padding:15px 0; border-top:1px solid #eee; margin-top:20px;">
|
||||
If you didn't request this, you can safely ignore this email — your password will remain unchanged.
|
||||
If you didn't request this, you can safely ignore this email - your password will remain unchanged.
|
||||
</p>
|
||||
<p style="font-size:16px; margin-top:30px;">
|
||||
Thank you,<br />
|
||||
|
||||
@@ -42,7 +42,7 @@ export interface ResidentialClientConfirmationData {
|
||||
}
|
||||
|
||||
export function residentialClientConfirmation(data: ResidentialClientConfirmationData) {
|
||||
const subject = 'Thank You for Your Interest — Port Nimara Residences';
|
||||
const subject = 'Thank You for Your Interest - Port Nimara Residences';
|
||||
const body = `
|
||||
<p style="margin-bottom:10px; font-size:18px; font-weight:bold; color:#007bff;">
|
||||
Welcome to Port Nimara
|
||||
@@ -78,7 +78,7 @@ export interface ResidentialSalesAlertData {
|
||||
}
|
||||
|
||||
export function residentialSalesAlert(data: ResidentialSalesAlertData) {
|
||||
const subject = `New Residential Inquiry — ${data.fullName}`;
|
||||
const subject = `New Residential Inquiry - ${data.fullName}`;
|
||||
const body = `
|
||||
<p style="margin-bottom:10px; font-size:18px; font-weight:bold; color:#007bff;">
|
||||
New residential inquiry
|
||||
@@ -93,7 +93,7 @@ export function residentialSalesAlert(data: ResidentialSalesAlertData) {
|
||||
${data.notes ? `<tr><td style="color:#666;">Notes</td><td>${escapeHtml(data.notes)}</td></tr>` : ''}
|
||||
</table>
|
||||
${data.crmDeepLink ? `<p style="text-align:center; margin:24px 0;"><a href="${data.crmDeepLink}" style="display:inline-block; background-color:#007bff; color:#ffffff; text-decoration:none; padding:12px 28px; border-radius:5px; font-weight:bold;">Open in CRM</a></p>` : ''}
|
||||
<p style="font-size:14px; color:#666;">— Port Nimara CRM</p>`;
|
||||
<p style="font-size:14px; color:#666;">- Port Nimara CRM</p>`;
|
||||
return { subject, html: shell({ title: subject, body }) };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user