fix(shared): preserve card sequence with in-feed reminder hero#5780
fix(shared): preserve card sequence with in-feed reminder hero#5780tomeredlich wants to merge 5 commits intomainfrom
Conversation
Adjust in-feed hero insertion index to account for pre-feed slot cards so the hero renders in its own row without breaking card order. Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@claude check pr |
|
Claude finished @tomeredlich's task in 3m 16s —— View job PR Review
SummaryThe fix adjusts the in-feed hero insertion index by Why the fix is correct: IssuesMinor: In itemCount > heroInsertIndex; // e.g. itemCount > 6But now the hero is actually inserted at Looks good
|
Pass the first feed-slot offset into the reminder hook and use the adjusted index for inline hero visibility checks, so edge cases with a pre-feed card still render consistently. Made-with: Cursor
Align reminder widget interactions with latest UI updates by removing the inline notification CTA, updating quick option labels, and preventing overflow in the options row. Also normalize enable-notification action alignment in modal CTA rendering. Made-with: Cursor
Keep in-feed hero placement after card rows while allowing debug mode to bypass homepage and scroll gates for easier QA. Also ensure the close action still hides the hero during the current session in debug mode. Made-with: Cursor
|
@claude check pr |
|
Claude finished @tomeredlich's task in 2m 5s —— View job PR Review
SummaryThe PR fixes in-feed hero row alignment when a pre-feed slot card (profile completion or brief) is present. The approach is sound and consistent with the existing Core Fix — Feed.tsx + useReadingReminderFeedHero.tsThe fix is correct. One minor note: notificationExperimentDebug.ts (new file)Well-structured debug utility. Properly gates behind Remaining Files
Scope NoteThe PR description says "scope change to feed placement logic only (Feed.tsx)" but 7 files changed. The additional changes appear to be legitimate polish bundled in the same branch — worth keeping the description accurate for future reference, but not a blocker. Overall: looks good. The stale-guard issue from the previous review has been addressed. The fix is correct and well-scoped. |
| label, | ||
| onEnableAction, | ||
| }: EnableNotificationProps): ReactElement | null { | ||
| const [isDismissedLocally, setIsDismissedLocally] = useState(false); |
There was a problem hiding this comment.
Why did you introduce state instead of using onDismiss directly?
| @@ -0,0 +1,136 @@ | |||
| import { isDevelopment } from '../../lib/constants'; | |||
Summary
Feed.tsx)Test plan
pnpm --filter shared exec eslint \"src/components/Feed.tsx\"Made with Cursor
Preview domain
https://fix-in-feed-hero-row-sequence.preview.app.daily.dev