Moderation Checklist Fixes (#3986)

* fix: DEV-164

* fix: dev-163

* feat: DEV-162
This commit is contained in:
IMB11
2025-07-13 19:08:55 +01:00
committed by GitHub
parent 6fb125cf0f
commit 058185c7fd
4 changed files with 104 additions and 19 deletions

View File

@@ -153,6 +153,13 @@ export interface DropdownActionOption extends WeightedMessage {
* The label of the option, which is displayed to the moderator.
*/
label: string
/**
* A function that determines whether this option should be shown for a given project.
*
* By default, it returns `true`, meaning the option is always shown.
*/
shouldShow?: (project: Project) => boolean
}
export interface DropdownAction extends BaseAction {
@@ -179,6 +186,13 @@ export interface MultiSelectChipsOption extends WeightedMessage {
* The label of the chip, which is displayed to the moderator.
*/
label: string
/**
* A function that determines whether this option should be shown for a given project.
*
* By default, it returns `true`, meaning the option is always shown.
*/
shouldShow?: (project: Project) => boolean
}
export interface MultiSelectChipsAction extends BaseAction {