Skip to content
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

Optimize the ui for edit project-column and fix project-column-issue disappear #27718

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BaiZe1998
Copy link

@BaiZe1998 BaiZe1998 commented Oct 21, 2023

fix: #27672
branch:main
modification:
image
desc:

  1. when I tried to change the color of the column header I found that it was still ugly, so in the end I chose to only change the color of the counter after editing the color
  2. I noticed that the previous code reversed the color of the text within the column headers based on the column background color after editing,I have removed this part
  3. 🐞[Another Bug Fix]:I think Clean some functions about project issue #27705 made some break modifications,which causes project-column-issues disappear, so I rollback a portion of the code

checkout version: cab7b7f before #27705
image

checkout version: eb14787
This change caused the issue list to disappear
image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 21, 2023
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 21, 2023
@techknowlogick techknowlogick changed the title Optimize the ui for edit project-column and fix project-column-issue disappear caused by https://github.com/go-gitea/gitea/pull/27705 Optimize the ui for edit project-column and fix project-column-issue disappear Oct 21, 2023
@lng2020
Copy link
Member

lng2020 commented Oct 21, 2023

The reason is I misspell Eq with Neq. Sorry for that and thanks for pointing it out.
Edited: see PR #27720 for the bug fix.

@BaiZe1998
Copy link
Author

The reason is I misspell Eq with Neq. Sorry for that and thanks for pointing it out. Edited: see PR #27720 for the bug fix.

ok, I've undo the changes to this part of the code

lunny pushed a commit that referenced this pull request Oct 25, 2023
See #27718 (comment)
. Add a test to ensure its behavior.
Why this test uses `ProjectBoardID=0`? Because in `SearchOptions`,
`ProjectBoardID=0` means what it is. But in `IssueOptions`,
`ProjectBoardID=0` means there is no condition, and
`ProjectBoardID=db.NoConditionID` means the board ID = 0.
It's really confusing. Probably it's better to separate the db search
engine and the other issue search code. It's really two different
systems. As far as I can see, `IssueOptions` is not necessary for most
of the code, which has very simple issue search conditions.
@lunny
Copy link
Member

lunny commented Oct 29, 2023

I think the background color should still be optional.

fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this pull request Jan 17, 2024
See go-gitea#27718 (comment)
. Add a test to ensure its behavior.
Why this test uses `ProjectBoardID=0`? Because in `SearchOptions`,
`ProjectBoardID=0` means what it is. But in `IssueOptions`,
`ProjectBoardID=0` means there is no condition, and
`ProjectBoardID=db.NoConditionID` means the board ID = 0.
It's really confusing. Probably it's better to separate the db search
engine and the other issue search code. It's really two different
systems. As far as I can see, `IssueOptions` is not necessary for most
of the code, which has very simple issue search conditions.
silverwind pushed a commit to silverwind/gitea that referenced this pull request Feb 20, 2024
See go-gitea#27718 (comment)
. Add a test to ensure its behavior.
Why this test uses `ProjectBoardID=0`? Because in `SearchOptions`,
`ProjectBoardID=0` means what it is. But in `IssueOptions`,
`ProjectBoardID=0` means there is no condition, and
`ProjectBoardID=db.NoConditionID` means the board ID = 0.
It's really confusing. Probably it's better to separate the db search
engine and the other issue search code. It's really two different
systems. As far as I can see, `IssueOptions` is not necessary for most
of the code, which has very simple issue search conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can you improve the color scheme for project management? 能不能改进一下项目管理这块的颜色?
5 participants