Skip to content

Pr 3324 fix#3342

Closed
deepshekhardas wants to merge 2 commits intotriggerdotdev:mainfrom
deepshekhardas:pr-3324-fix
Closed

Pr 3324 fix#3342
deepshekhardas wants to merge 2 commits intotriggerdotdev:mainfrom
deepshekhardas:pr-3324-fix

Conversation

@deepshekhardas
Copy link
Copy Markdown

Closes #

✅ Checklist

  • I have followed every step in the contributing guide
  • The PR title follows the convention.
  • I ran and tested the code works

Testing

[Describe the steps you took to test this change]


Changelog

[Short description of what has changed]


Screenshots

[Screenshots]

💯

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 8, 2026

🦋 Changeset detected

Latest commit: 6ad2764

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Hi @deepshekhardas, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions bot closed this Apr 8, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 8, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 1f4ff8eb-8719-442b-895e-6aae76827ad1

📥 Commits

Reviewing files that changed from the base of the PR and between def21b2 and 6ad2764.

📒 Files selected for processing (17)
  • .changeset/platform-notifications-admin.md
  • apps/webapp/app/components/BackgroundWrapper.tsx
  • apps/webapp/app/components/LoginPageLayout.tsx
  • apps/webapp/app/components/layout/AppLayout.tsx
  • apps/webapp/app/components/navigation/HelpAndFeedbackPopover.tsx
  • apps/webapp/app/components/navigation/OrganizationSettingsSideMenu.tsx
  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/primitives/Popover.tsx
  • apps/webapp/app/routes/_app.orgs.$organizationSlug_.projects.new/route.tsx
  • apps/webapp/app/routes/_app.orgs.new/route.tsx
  • apps/webapp/app/routes/admin.notifications.tsx
  • apps/webapp/app/routes/confirm-basic-details.tsx
  • apps/webapp/app/routes/invites.tsx
  • apps/webapp/app/routes/resources.platform-changelogs.tsx
  • apps/webapp/app/routes/resources.platform-notifications.tsx
  • apps/webapp/app/routes/vercel.onboarding.tsx
  • apps/webapp/app/services/platformNotifications.server.ts

Walkthrough

This pull request introduces platform notifications admin improvements with expanded management capabilities. Changes include adding delete, edit, and publish-now actions to the notifications admin interface; introducing organization/project scoping for notifications and changelog filtering; updating responsive layout breakpoints from md to lg across multiple components; adding a new variant="onboarding" prop to the MainCenteredContainer layout component and applying it across six onboarding routes; renaming hideArchived to hideInactive for inactive notification filtering; adding a danger state to PopoverMenuItem; implementing a new verification service for organization membership; and refactoring the notifications admin UI to use modal forms with per-row action controls including status-conditional actions like "Publish Now" for pending notifications.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 6 additional findings in Devin Review.

Open in Devin Review

Comment on lines 339 to 352
const notifications = await prisma.platformNotification.findMany({
where: {
surface: "WEBAPP",
payload: { path: ["data", "type"], equals: "changelog" },
startsAt: { lte: new Date() },
OR: [
{ scope: "GLOBAL" },
{ scope: "USER", userId },
...(organizationId ? [{ scope: "ORGANIZATION" as const, organizationId }] : []),
...(projectId ? [{ scope: "PROJECT" as const, projectId }] : []),
],
},
orderBy: [{ createdAt: "desc" }],
take: limit,
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.

🚩 getRecentChangelogs now adds startsAt and scope filtering — behavioral change from old version

The old getRecentChangelogs at platformNotifications.server.ts:323-362 had no scope or startsAt filtering — it showed all changelogs regardless of scope or schedule. The new version adds startsAt: { lte: new Date() } and scope-based OR filtering. This is a positive security improvement (prevents user-scoped changelogs from leaking to other users, and hides future-scheduled changelogs), but it's also a behavioral change: changelogs scoped to an organization won't appear in the Help menu when viewing the Account Settings page (where no organizationId is available). This is probably the correct behavior but worth verifying with product expectations.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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