ovity / octotree

GitHub on steroids
https://www.octotree.io/
GNU Affero General Public License v3.0
22.8k stars 1.79k forks source link

Unable to load branches with long names truncated with ellipsis #1179

Open dvanoni opened 3 months ago

dvanoni commented 3 months ago

Description

When viewing a branch with a long name, GitHub truncates the name with an ellipsis character () in the branch dropdown. When navigating to such a branch on GitHub Enterprise Server 3.12.2, Octotree fails to load the branch.

CleanShot 2024-05-29 at 15 32 33@2x

Viewing the console logs, it appears that Octotree is trying to request the branch based on the truncated name rather than the full name of the branch.

CleanShot 2024-05-29 at 15 33 52@2x

Viewing the inspector, it appears that the text value of the element is truncated with an ellipsis rather than just via CSS. I'm not sure if this is where Octotree is getting the value of the currently-visible branch, but if so, I could see how it would cause this bug.

CleanShot 2024-05-29 at 15 52 26@2x

The same issue does not occur on github.com, and I wonder if it's because the truncation is performed using CSS, retaining the full branch name within the text value of the element.

CleanShot 2024-05-29 at 15 45 17@2x

Environment (if bug)