Skip to content

feat(api): email org owners/admins when a portal access request is submitted (CS-522)#3494

Open
github-actions[bot] wants to merge 2 commits into
mainfrom
chas/send-email-for-access-requests
Open

feat(api): email org owners/admins when a portal access request is submitted (CS-522)#3494
github-actions[bot] wants to merge 2 commits into
mainfrom
chas/send-email-for-access-requests

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to merge chas/send-email-for-access-requests into dev.
It was created by the [Auto Pull Request] action.


Summary by cubic

Implements CS-522: send email notifications to org owners/admins when an access-request form is submitted, with a clear review link. Adds a notifier and email template, wired into form submission and honoring unsubscribes.

  • New Features

    • Added EvidenceFormsNotifierService to email active owners/admins, skipping the submitter and users unsubscribed via @trycompai/email.
    • Introduced EvidenceAccessRequestSubmittedEmail with a "Review Request" link to the submission.
    • Triggered only for access-request submissions in EvidenceFormsService; module provides the notifier.
    • Builds the review URL from NEXT_PUBLIC_APP_URL or BETTER_AUTH_URL (fallback https://app.trycomp.ai); tests cover recipients and unsubscribe behavior.
  • Bug Fixes

    • Fixed a stale isActive filter assertion in the notifier spec to align with the query that excludes deactivated and inactive members.

Written for commit ca9c878. Summary will update on new commits.

Review in cubic

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
comp-framework-editor Ready Ready Preview, Comment Jul 23, 2026 9:13pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app Skipped Skipped Jul 23, 2026 9:13pm
portal Skipped Skipped Jul 23, 2026 9:13pm

Request Review

@chasprowebdev chasprowebdev changed the title [dev] [chasprowebdev] chas/send-email-for-access-requests feat(api): email org owners/admins when a portal access request is submitted (CS-522) Jul 23, 2026
@linear

linear Bot commented Jul 23, 2026

Copy link
Copy Markdown

CS-522

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 6 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/api/src/evidence-forms/evidence-forms-notifier.service.ts
Comment thread apps/api/src/evidence-forms/evidence-forms-notifier.service.ts
@vercel
vercel Bot temporarily deployed to Preview – app July 23, 2026 21:11 Inactive
@vercel
vercel Bot temporarily deployed to Preview – portal July 23, 2026 21:11 Inactive
@chasprowebdev

Copy link
Copy Markdown
Contributor

@cubic-dev-ai please review it.

@cubic-dev-ai

cubic-dev-ai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai please review it.

@chasprowebdev I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 6 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@chasprowebdev chasprowebdev self-assigned this Jul 23, 2026
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