gitea icon indicating copy to clipboard operation
gitea copied to clipboard

enhancement of compare feature

Open a1012112796 opened this issue 11 months ago • 6 comments

splited from #25322

  • split branch/tags dropdown as two parts: repository dropdown and branch/tags dropdown. that's same with github.

image

  • user can search any repository in repository search box.

image image

  • show a single error log instead of a 404 page when the head repo or user, the head or base ref is not exist. then user still can choose other option easyly.

image image

a1012112796 avatar Mar 13 '24 11:03 a1012112796

image

I think it's supposed to render like this, at least does so for me on current main:

image

silverwind avatar Mar 14 '24 00:03 silverwind

image I think it's supposed to render like this, at least does so for me on current main: image

fixed https://github.com/go-gitea/gitea/pull/29766/commits/94916dbfc057b345f82c3a66c6a4d35f5a3c3dff

a1012112796 avatar Mar 14 '24 01:03 a1012112796

Test failures related.

silverwind avatar Mar 15 '24 09:03 silverwind

split branch/tags dropdown as two parts: repository dropdown and branch/tags dropdown. that's same with github.

Is there a condition when it shows 4 selection boxes or is it always?

Wondering because at least in some cases, github only shows 2 boxes, like here:

https://github.com/go-gitea/gitea/compare/release/v1.22

silverwind avatar Apr 16 '24 20:04 silverwind

Is there a condition when it shows 4 selection boxes or is it always?

to chose other repository easily. then the server can save time loading branch information for the all associated repository it uses. at last user can chose all repos by ui now.

Wondering because at least in some cases, github only shows 2 boxes, like here:

yes, in fact github provide two optional views, one has repo chose options, the others don't have, and user can switch it by click the 'compare across forks' buttuon. I has try it in #25322 also. but as lunny says (https://github.com/go-gitea/gitea/pull/25322#issuecomment-1595791732), looks the second view is not so necessary.

a1012112796 avatar Apr 17 '24 12:04 a1012112796

image Github has a link `compare across forks` to switch from 2 columns to 4 columns compare UI.

lunny avatar May 02 '24 03:05 lunny