fix(kb): show 'pending' instead of past date for overdue next sync#4039
fix(kb): show 'pending' instead of past date for overdue next sync#4039waleedlatif1 merged 1 commit intostagingfrom
Conversation
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit 7abb202. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR fixes a UX bug in the knowledge base connectors section where Changes:
Confidence Score: 5/5Safe to merge — single-file, display-only change with correct logic. The change is minimal, targeted, and correct. No files require special attention.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/connectors-section/connectors-section.tsx | Adds isPast guard so overdue nextSyncAt displays "pending" instead of a past-relative timestamp; logic is correct and minimal. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[ConnectorCard renders next sync info] --> B{connector.nextSyncAt && status === 'active'?}
B -- No --> C[No next sync shown]
B -- Yes --> D{isPast nextSyncAt ?}
D -- Yes overdue --> E["Show: 'Next sync: pending'"]
D -- No future --> F["Show: 'Next sync: in X minutes/hours'"]
Reviews (1): Last reviewed commit: "fix(kb): show 'pending' instead of past ..." | Re-trigger Greptile
.../workspace/[workspaceId]/knowledge/[id]/components/connectors-section/connectors-section.tsx
Show resolved
Hide resolved
|
Re: double |
Summary
nextSyncAtis in the past (sync overdue / cron delayed), the UI was showing "Next sync: 2 days ago" viaformatDistanceToNow. Now shows "Next sync: pending" instead.Type of Change
Testing
Tested manually
Checklist