Render reply tree on post detail screen#1046
Render reply tree on post detail screen#1046joelmuraguri wants to merge 3 commits intojoel/reply-tree-data-layerfrom
Conversation
Summary of ChangesHello @joelmuraguri, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the user experience on the post detail screen by introducing a structured and visually intuitive way to display threaded replies. By rendering replies as a tree with indentation and connecting lines, users can more easily follow complex conversations. The implementation includes mechanisms to limit the initial display of replies, ensuring a clean UI while providing options to expand and view the full discussion. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces the functionality to render a reply tree with proper indentation and branch lines on the post detail screen. It adds new composables ReplyTreePost and ReplyTreeItem to handle the recursive rendering of replies, including logic for depth limits and expanding hidden replies. New constants for reply tree depth, sibling limits, and indentation have been added, improving maintainability. The changes correctly integrate the new reply tree display into the existing timeline item rendering logic.
ui/timeline/src/commonMain/kotlin/com/tunjid/heron/timeline/ui/TimelineItem.kt
Outdated
Show resolved
Hide resolved
ui/timeline/src/commonMain/kotlin/com/tunjid/heron/timeline/ui/TimelineItem.kt
Outdated
Show resolved
Hide resolved
ui/timeline/src/commonMain/kotlin/com/tunjid/heron/timeline/ui/TimelineItem.kt
Outdated
Show resolved
Hide resolved
|
I think the UI needs quite a bit of work. The gaps in the timeline lines in the UI can't be merged in this state. If there's any indentation in the reply node, there should be a curved arrow to the reply like in the bsky app. Also I don't think this is shippable without a toggle between the old and new behavior |
Demo
XRecorder_20260226_01.mp4