FE: Use unique filenames for saved messages - #1895
Conversation
|
AI Summary The issue describes a problem where saved message files in the Messages tab have identical filenames, making it difficult for users to distinguish between multiple saved messages. The proposed solution is to use a unique filename format combining the sanitized topic name, partition, and offset, ensuring each file is distinct. Manual testing was performed to validate the solution. |
📝 WalkthroughWalkthroughThe message download filename now includes a sanitized topic name plus partition and offset instead of a fixed filename. ChangesMessage download filename
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
What changes did you make? (Give an overview)
AS-IS
Currently, when users click the "Save as a file" button in the Messages tab, every file has the same name. As a result, users cannot distinguish between multiple saved messages.
TO-BE
The filename should use the following format:
${sanitizedTopicName}-${partition}-${offset}.jsonThis ensures that each saved message has a unique filename.
2026-06-25.11.31.37.mov
Is there anything you'd like reviewers to focus on?
None
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)
Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)
Summary by CodeRabbit