Seen on: component/git-history
What it fixes
On a phone-width or narrow right panel, Git History shows Branches and Details buttons in its header. If the history list is empty, failed to load, or the folder is not a repository, tapping Branches opens nothing, and the whole header, including Refresh, stops responding to taps. The only way out is to switch to another tab and back.
How to fix it
The branches and details sheets should exist in every panel state, not only when commits are loaded, or the header buttons should be disabled in the states that cannot show them. Either way, a tap on Branches must never leave the header inert with no sheet to close. Ships with a test for the error state in narrow layout.
Seen on: component/git-history
What it fixes
On a phone-width or narrow right panel, Git History shows Branches and Details buttons in its header. If the history list is empty, failed to load, or the folder is not a repository, tapping Branches opens nothing, and the whole header, including Refresh, stops responding to taps. The only way out is to switch to another tab and back.
How to fix it
The branches and details sheets should exist in every panel state, not only when commits are loaded, or the header buttons should be disabled in the states that cannot show them. Either way, a tap on Branches must never leave the header inert with no sheet to close. Ships with a test for the error state in narrow layout.