Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add 'select/deselect all' buttons for custom events in webhooks#35980

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
TimurRin wants to merge1 commit intogo-gitea:main
base:main
Choose a base branch
Loading
fromTimurRin:main

Conversation

@TimurRin
Copy link

This PR addsSelect All andDeselect All buttons to the 'Custom events' section of the webhook view.

This is useful when you need select all events but one.

select-deselect

splitt3r and silverwind reacted with thumbs up emoji
@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelNov 19, 2025
@github-actionsgithub-actionsbot added modifies/translation modifies/templatesThis PR modifies the template files labelsNov 19, 2025
@lunnylunny added the topic/uiChange the appearance of the Gitea UI labelNov 19, 2025
@lunnylunny added this to the1.26.0 milestoneNov 19, 2025
all.forEach(i=> {i.checked=false; });
});
})();
</script>
Copy link
Member

@silverwindsilverwindDec 5, 2025
edited
Loading

Choose a reason for hiding this comment

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

  1. We need to move this code toweb_src/js/features/repo-settings.ts. We avoid inline scripts because they are problematic with CSP and also the linter does not lint them.
  2. Usefor-of loops instead offorEach, but the linter will also tell you that 😉.

TimurRin reacted with thumbs up emoji
Copy link
Author

Choose a reason for hiding this comment

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

Isn't it better to place this code toweb_src/js/features/comp/WebHookEditor.ts? There is already 'custom events' switch logic presented and webhooks are not bound to repos.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that looks like a even better place.

{{ctx.Locale.Tr"repo.settings.event_button_deselect_all"}}
</button>
</div>
</div>
Copy link
Member

@silverwindsilverwindDec 5, 2025
edited
Loading

Choose a reason for hiding this comment

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

Please move it to line 97. It's more logical for it to be after the "Repository Events" header.

TimurRin reacted with thumbs up emoji
@silverwind
Copy link
Member

Definitely a useful feature, thanks.

TimurRin reacted with thumbs up emoji

@silverwind
Copy link
Member

silverwind commentedDec 17, 2025
edited
Loading

Maybe those buttons could even be moved to the right side of the header to save even more space, pseudo code:

<divclass="tw-flex tw-justify-between tw-gap-2"><h2>Repository-Events</h2><div>...buttons</div></div>

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@silverwindsilverwindsilverwind left review comments

Assignees

No one assigned

Labels

lgtm/need 2This PR needs two approvals by maintainers to be considered for merging.modifies/templatesThis PR modifies the template filesmodifies/translationtopic/uiChange the appearance of the Gitea UI

Projects

None yet

Milestone

1.26.0

Development

Successfully merging this pull request may close these issues.

4 participants

@TimurRin@silverwind@lunny@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp