Skip to content

Improve repo search UI #29767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 15, 2024
Merged

Improve repo search UI #29767

merged 9 commits into from
Mar 15, 2024

Conversation

wxiaoguang
Copy link
Contributor

  1. Introduce a special "flex-items-block" for menu items, to align the dropdown menu items
  2. Simplify the "repo search" form
  3. Add missing "TopicOnly" search option

Screenshots:

The old UI items don't align:

image

New UI (doesn't change much, but the items align)

image

image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 13, 2024
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/frontend modifies/templates This PR modifies the template files labels Mar 13, 2024
@silverwind
Copy link
Member

Conflicts with #29530?

@wxiaoguang
Copy link
Contributor Author

@silverwind
Copy link
Member

In any case, let's merge #29530 first.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 13, 2024
@wxiaoguang
Copy link
Contributor Author

In any case, let's merge #29530 first.

29530 looks like an over-engineering to me. And I haven't got time to test it. If it looks good to most reviewers, I am neutral.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 13, 2024
@denyskon
Copy link
Member

(please wait for my PR to be merged)

Copy link
Member

@silverwind silverwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait on #29530

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. labels Mar 13, 2024
@silverwind silverwind self-requested a review March 14, 2024 23:35
@silverwind
Copy link
Member

Unblocked now as #29530 was merged. Some conflicts as expected.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged labels Mar 14, 2024
# Conflicts:
#	templates/shared/repo_search.tmpl
#	templates/shared/searchinput.tmpl
@denyskon denyskon added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 15, 2024
@lunny lunny enabled auto-merge (squash) March 15, 2024 09:35
@lunny lunny added this to the 1.22.0 milestone Mar 15, 2024
@lunny lunny merged commit 7a6260f into go-gitea:main Mar 15, 2024
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 15, 2024
@wxiaoguang wxiaoguang deleted the fix-repo-search-topic branch March 15, 2024 11:49
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants