chat thread arrow layout is broken without breadcrumbs. If there isn't a parent thread, will just default to the thread name to not break the UI.
ios:
web:
https://linear.app/comm/issue/ENG-809/thread-arrows-are-not-aligned-correctly
Differential D3328
[web] [fix] give chat thread list breadCrumbs height • benschac on Mar 2 2022, 1:09 PM. Authored by Tags None Referenced Files
Details chat thread arrow layout is broken without breadcrumbs. If there isn't a parent thread, will just default to the thread name to not break the UI. ios: web: https://linear.app/comm/issue/ENG-809/thread-arrows-are-not-aligned-correctly arrow shouldn't loose it position if there isn't a parnet element. You can patch the code and toggle the conditional to see that the arrows layout never breaks.
Diff Detail
Event TimelineComment Actions
Is it ready now? Saw you updated it a minute later but just wanted to make sure Comment Actions yes! I updated the diff to include something (the ui name) in the top line if it's the root conversation. I thought the conversation item would look off it was just empty space. Comment Actions Hmm, I'm not sure the logic here is right? wrt the image you attached as being fixed: I'm pretty sure we should have GENESIS above "ashoat" Comment Actions Sorry I should have added this to my description. Just updated it now: The placeholder in the screenshot isn't the logic of the code. I didn't have a conversation in my local dev environment without a parent and just wanted to show what the placeholder would look like in practice. Comment Actions
I think the GENESIS thread? Comment Actions Yeah, it's weird. On development, the genesis thread will show on the top line of the chat thread item. But, not in production. (screenshot below). Assuming that something changed on the backend and genesis thread is now returned as a default. Development: Production: Comment Actions Why are we hacking this instead of fixing useAncestorThreads so native behaves in a consistent way here? Comment Actions @ashoat -- updated this diff and updated the useAncestorThreads hook so that the change is reflected in both native and web. Comment Actions Seems fine to me, but wondering if we should just return ancestorThreads directly. Curious to get @atul's perspective
Comment Actions
Yeah, at the time we decided to exclude the current thread from the path. If I remember correctly:
However, we did decide that we wanted to include the entire path in the ThreadSettings component (where we have the interactive horizontal scrolling ancestors component) because:
|