From 2c62f7285c46300e3c02633c6d69f2d064c04f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= <50665615+flopez7@users.noreply.github.com> Date: Thu, 9 Oct 2025 11:40:40 +0200 Subject: [PATCH 1/4] [Github Actions] Add token configuration for publish workflow (#3605) --- .github/workflows/cd-packages.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cd-packages.yaml b/.github/workflows/cd-packages.yaml index c153ff9bb6..082f72a53c 100644 --- a/.github/workflows/cd-packages.yaml +++ b/.github/workflows/cd-packages.yaml @@ -14,6 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + with: + token: ${{ secrets.GH_GITBOOK_TOKEN }} - uses: actions/setup-node@v4 with: node-version-file: .nvmrc From 991dfc575a6418083549aa88050ab7a2a7e58823 Mon Sep 17 00:00:00 2001 From: KirillKirill Date: Wed, 15 Oct 2025 12:43:36 +0300 Subject: [PATCH 2/4] [HUMAN App] Modify report abuse form to use a dropdown for reason (#3615) --- .../jobs/components/report-abuse-modal.tsx | 61 ++++++++++++------- .../frontend/src/shared/i18n/en.json | 15 ++++- 2 files changed, 54 insertions(+), 22 deletions(-) diff --git a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx index 879ebd2c65..117ffd9ec4 100644 --- a/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx +++ b/packages/apps/human-app/frontend/src/modules/worker/jobs/components/report-abuse-modal.tsx @@ -4,9 +4,11 @@ import { Box, Button, CircularProgress, + FormControl, + MenuItem, + Select as MuiSelect, Stack, Typography, - TextField, } from '@mui/material'; import ErrorIcon from '@mui/icons-material/Error'; import SuccessIcon from '@mui/icons-material/CheckCircle'; @@ -23,6 +25,20 @@ interface ReportAbuseModalProps { const ABUSE_ERROR = 'Abuse has already been reported'; +const REASON_OPTIONS = [ + 'sexual_content', + 'nudity', + 'violence', + 'gore', + 'hate_or_racism', + 'drugs', + 'terrorism', + 'child_abuse', + 'self_harm', + 'weapons', + 'criminal_activity', +] as const; + function ErrorState({ error }: { error: string }) { const { t } = useTranslation(); @@ -101,11 +117,11 @@ export function ReportAbuseModal({ const isIdleOrLoading = isIdle || isPending; const handleReportAbuse = () => { - reason.trim().length > 0 && + reason.length > 0 && reportAbuseMutation({ escrow_address: escrowAddress, chain_id: chainId, - reason: reason.trim(), + reason, }); }; @@ -120,27 +136,30 @@ export function ReportAbuseModal({ {t('worker.reportAbuse.modalHeader')} {isIdleOrLoading && ( - - {t('worker.reportAbuse.modalParagraph')} - + <> + + {t('worker.reportAbuse.modalParagraph')} + + + { + setReason(e.target.value); + }} + > + {REASON_OPTIONS.map((value) => ( + + {t(`worker.reportAbuse.reasons.${value}`)} + + ))} + + + )} {isPending && } {isError && } {isSuccess && } - { - setReason(e.target.value); - }} - />