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

Remove fomantic checkbox module (#30162) #30168

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

GiteaBot
Copy link
Contributor

Backport #30162 by @silverwind

CSS is pretty slim already and the .ui.toggle.checkbox sliders on admin page also still work. The only necessary JS is the one that links input and label so that it can be toggled via label. All checkboxes except the markdown ones render at --checkbox-size: 16px now.

Screenshot 2024-03-28 at 22 15 10 Screenshot 2024-03-28 at 21 00 07 Screenshot 2024-03-28 at 22 14 34

CSS is pretty slim already and the `.ui.toggle.checkbox` sliders on
admin page also still work. The only necessary JS is the one that links
`input` and `label` so that it can be toggled via label. All checkboxes
except the markdown ones render at `--checkbox-size: 16px` now.

<img width="174" alt="Screenshot 2024-03-28 at 22 15 10"
src="https://github.com/go-gitea/gitea/assets/115237/3455c1bb-166b-47e4-9847-2d20dd1f04db">

<img width="499" alt="Screenshot 2024-03-28 at 21 00 07"
src="https://github.com/go-gitea/gitea/assets/115237/412be2b3-d5a0-478a-b17b-43e6bc12e8ce">

<img width="83" alt="Screenshot 2024-03-28 at 22 14 34"
src="https://github.com/go-gitea/gitea/assets/115237/d8c89838-a420-4723-8c49-89405bb39474">

---------

Co-authored-by: delvh <[email protected]>
@GiteaBot GiteaBot added modifies/docs modifies/frontend modifies/js modifies/templates This PR modifies the template files type/refactoring Existing code has been cleaned up. There should be no new functionality. labels Mar 29, 2024
@GiteaBot GiteaBot added this to the 1.22.0 milestone Mar 29, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 29, 2024
@pull-request-size pull-request-size bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Mar 29, 2024
@lunny lunny closed this Mar 29, 2024
@GiteaBot GiteaBot removed this from the 1.22.0 milestone Mar 29, 2024
@wxiaoguang
Copy link
Contributor

I would suggest to re-consider it: #30165 (comment)

@wxiaoguang wxiaoguang reopened this Mar 29, 2024
@lunny
Copy link
Member

lunny commented Mar 29, 2024

per #30165 (comment)

@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 29, 2024
@silverwind
Copy link
Member

silverwind commented Mar 29, 2024

I think this is a neccesary enhancement 😆. #30165 (comment) can skip.

Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

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

rc1 should be a real RC -- stable, only fix bugs

@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 29, 2024
@silverwind
Copy link
Member

silverwind commented Mar 29, 2024

I will give it another special round of testing before merging this. I still think it's rather unnecessary to do it because 1.22 release is still a while off and we have plenty of time to catch issues.

@silverwind silverwind self-requested a review March 29, 2024 12:58
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. labels Mar 29, 2024
@GiteaBot GiteaBot removed the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 29, 2024
@GiteaBot GiteaBot added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Mar 29, 2024
@silverwind
Copy link
Member

Can't find anything wrong, let's merge.

@silverwind silverwind enabled auto-merge (squash) March 29, 2024 15:58
@silverwind silverwind added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 29, 2024
@silverwind
Copy link
Member

silverwind commented Mar 29, 2024

@techknowlogick can you adjust the "required checks" config for release/v1.22 branch so that test-mysql5 and test-mysql8 are removed and test-mysql is added?

@lunny
Copy link
Member

lunny commented Mar 29, 2024

@techknowlogick can you adjus the "required checks" config for release/v1.22 branch so that test-mysql5 and test-mysql8 are removed and test-mysql is added?

Done.

@silverwind silverwind merged commit 591759f into go-gitea:release/v1.22 Mar 29, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.22.0 milestone Mar 29, 2024
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 29, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jun 28, 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/docs modifies/js modifies/templates This PR modifies the template files size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants