fix(web): avoid duplicate keys for same-second messages - #1415
Conversation
Fallback key `from-date` collides when two messages share sender and second-precision date. Append array index as discriminator so same-second bursts render as distinct DOM nodes. Stable messageId path untouched. Fixes meshtastic#1277 Signed-off-by: RuffR1d3r <76077201+RuffR1d3r@users.noreply.github.com>
|
@RuffR1d3r is attempting to deploy a commit to the Meshtastic Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe message list fallback key now includes the mapped item index. Messages with ChangesMessage rendering key fix
Estimated code review effort: 2 (Simple) | ~5 minutes Merge Risk: ⚪ Minimal · up to The PR only adjusts the fallback discriminator for message keys while preserving the stable messageId path. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Description checkExplanation The description identifies issue Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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. Comment |
|
/coderabbit review |
Fixes #1277
Fallback key
from-datecollides when two messages share sender and second-precision date. Append array index as discriminator so same-second bursts render as distinct DOM nodes. Stable messageId path untouched.Testing:
Research: React docs + CopilotKit #3258 (duplicate keys during streaming) — stable ID first, index only as fallback disambiguator, never Math.random()
Summary by CodeRabbit