Skip to content

Change to rolling deadline on rfp#687

Draft
TylerDiorio wants to merge 2 commits intomainfrom
rollingdeadline
Draft

Change to rolling deadline on rfp#687
TylerDiorio wants to merge 2 commits intomainfrom
rollingdeadline

Conversation

@TylerDiorio
Copy link
Contributor

@TylerDiorio TylerDiorio commented Mar 6, 2026

Issue:

Users are messaging mods frequently asking about the Year 2099 deadlines for RFP's

Proposed Solution:

We should update this to just use terminology like "Rolling Deadline"

Note

Low Risk
Low risk UI-only change that adjusts how grant/RFP deadlines are communicated; no changes to application status logic or data handling.

Overview
Updates grant/RFP UI to stop showing specific “Closes {date}” deadlines for open grants and instead display a consistent “Rolling Deadline” indicator.

Introduces a reusable RollingDeadlineInfo component (label + info tooltip) and wires it into the feed card (GrantInfo), grant document header (GrantDocument), and status section (GrantStatusSection), removing the prior close-date and “expiring soon” countdown messaging.

Written by Cursor Bugbot for commit 3bd341a. This will update automatically on new commits. Configure here.

@TylerDiorio TylerDiorio requested a review from a team as a code owner March 6, 2026 18:36
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vercel
Copy link
Contributor

vercel bot commented Mar 6, 2026

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

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Mar 6, 2026 6:53pm

Copy link

@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 1 potential issue.

Bugbot Free Tier Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Early return hides rolling deadline for grants without endDate
    • Removed the early return guard clause and updated the component to handle missing endDate by treating it as active (rolling deadline), consistent with other components.

Create PR

Or push these changes by commenting:

@cursor push e8a20c3426
Preview (e8a20c3426)
diff --git a/components/work/components/GrantStatusSection.tsx b/components/work/components/GrantStatusSection.tsx
--- a/components/work/components/GrantStatusSection.tsx
+++ b/components/work/components/GrantStatusSection.tsx
@@ -11,20 +11,9 @@
 }
 
 export const GrantStatusSection = ({ work }: GrantStatusSectionProps) => {
-  // Handle missing deadline gracefully
-  if (!work.note?.post?.grant?.endDate) {
-    return (
-      <div>
-        <h3 className="text-base font-semibold text-gray-900 mb-2">Status</h3>
-        <div className="flex items-center gap-2 text-gray-800 text-sm">
-          <span className="h-2 w-2 rounded-full bg-gray-400 inline-block" />
-          <span>Unknown</span>
-        </div>
-      </div>
-    );
-  }
-
-  const endDate = new Date(work.note?.post?.grant?.endDate);
+  const endDate = work.note?.post?.grant?.endDate
+    ? new Date(work.note?.post?.grant?.endDate)
+    : null;
   const isActive =
     work.note?.post?.grant?.status === 'OPEN' &&
     (work.note?.post?.grant?.endDate ? isDeadlineInFuture(work.note?.post?.grant?.endDate) : true);
@@ -40,7 +29,7 @@
       </div>
       {/* Rolling deadline for open grants */}
       {isActive && <RollingDeadlineInfo className="mt-1" />}
-      {!isActive && (
+      {!isActive && endDate && (
         <div className="flex items-center gap-1 text-sm text-gray-600 mt-1">
           <Clock size={14} className="text-gray-500" />
           <span>
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

import { format } from 'date-fns';
import { Clock } from 'lucide-react';
import { isDeadlineInFuture } from '@/utils/date';
import { RollingDeadlineInfo } from './RollingDeadlineInfo';
Copy link

Choose a reason for hiding this comment

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

Early return hides rolling deadline for grants without endDate

High Severity

When a grant has no endDate (which is the expected state for a rolling deadline), GrantStatusSection returns early showing "Unknown" status with a gray dot, and the RollingDeadlineInfo component is never rendered. In contrast, GrantDocument and GrantInfo both handle missing endDate correctly by treating the grant as active via endDate ? isDeadlineInFuture(endDate) : true. The sidebar status section is inconsistent and will show the wrong status for rolling deadline grants.

Additional Locations (1)

Fix in Cursor Fix in Web

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

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