Skip to content

[comp] Production Deploy#2517

Merged
carhartlewis merged 3 commits intoreleasefrom
main
Apr 13, 2026
Merged

[comp] Production Deploy#2517
carhartlewis merged 3 commits intoreleasefrom
main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Apr 13, 2026 11:40am
comp-framework-editor Ready Ready Preview, Comment Apr 13, 2026 11:40am
portal (staging) Ready Ready Preview, Comment Apr 13, 2026 11:40am

Request Review

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 13, 2026

PR Summary

Medium Risk
Touches all outbound email templates’ root markup, which can affect rendering across email clients, but the change is small and guarded by new snapshot-style render tests.

Overview
Restores an explicit <head /> element inside the <Tailwind> wrapper for all email templates to fix Tailwind media-query injection and prevent production renders from falling back to an empty Suspense placeholder.

Adds Vitest-based regression tests (emails/render.test.tsx) that render each template via @react-email/render and assert the output is non-empty and not the Suspense fallback marker, plus wires up vitest (vitest.config.ts, package.json test script, and lockfile update) for the @trycompai/email package.

Reviewed by Cursor Bugbot for commit 3376196. Bugbot is set up for automated code reviews on this repo. Configure here.

@carhartlewis carhartlewis merged commit 3b3395c into release Apr 13, 2026
12 checks passed
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3376196. Configure here.

changedByName="Admin"
/>
),
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Test passes wrong props to TaskStatusNotificationEmail

Medium Severity

The regression test for TaskStatusNotificationEmail passes props (oldStatus, newStatus, organizationId, taskId, changedByName) that don't exist in the component's Props interface. The actually required props taskStatus and taskUrl are never provided. Since vitest uses esbuild which strips types, this test silently runs with undefined for both, giving false confidence that the component renders correctly while not actually testing it with valid data.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 3376196. Configure here.

policyId="p1"
isUpdate={false}
/>
),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Test passes wrong props to PolicyNotificationEmail

Medium Severity

The regression test for PolicyNotificationEmail passes policyId and isUpdate which don't exist in the component's Props interface, and omits the required notificationType prop (typed as 'new' | 'updated' | 're-acceptance'). At runtime, notificationType is undefined, so the switch always hits the default case. The test silently passes but doesn't validate the component with valid inputs.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 3376196. Configure here.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant