feat(agents, validation): enhance agent profile and player management with input validation
Added input validation for admin login and player creation forms, ensuring usernames and passwords meet specified criteria. Introduced new components for numeric input handling in agent profile fields, improving user experience. Updated agent line detail and provision wizard to reflect these changes, enhancing overall data integrity and user interaction.
This commit is contained in:
@@ -39,7 +39,6 @@ import {
|
||||
REPORT_UI_TO_JOB_TYPE,
|
||||
type ReportUiKey,
|
||||
} from "@/lib/report-export-map";
|
||||
import { ReportJobsPanel } from "@/modules/reports/report-jobs-panel";
|
||||
import { getAdminRiskPoolDetail, getAdminRiskPools } from "@/api/admin-risk";
|
||||
import { getAdminUsers } from "@/api/admin-users";
|
||||
import { getAdminTransferOrders } from "@/api/admin-wallet";
|
||||
@@ -662,7 +661,6 @@ export function ReportsConsole({ initialCategory }: { initialCategory?: ReportCa
|
||||
const [page, setPage] = useState(1);
|
||||
const [perPage, setPerPage] = useState(20);
|
||||
const [exporting, setExporting] = useState<ExportFormat | null>(null);
|
||||
const [jobRefreshToken, setJobRefreshToken] = useState(0);
|
||||
const [search, setSearch] = useState<SearchState>(emptySearch);
|
||||
const playOptions = useCachedPlayTypeOptions();
|
||||
const tRef = useTranslationRef(["reports", "common"]);
|
||||
@@ -1180,7 +1178,6 @@ export function ReportsConsole({ initialCategory }: { initialCategory?: ReportCa
|
||||
export_format: format === "excel" ? "xlsx" : "csv",
|
||||
parameters,
|
||||
});
|
||||
setJobRefreshToken((n) => n + 1);
|
||||
const { blob, filename } = await downloadAdminReportJob(job.id);
|
||||
const ext = job.export_format === "xlsx" ? "xlsx" : "csv";
|
||||
downloadBlob(blob, filename ?? `${exportFileBase}.${ext}`);
|
||||
@@ -1789,12 +1786,6 @@ export function ReportsConsole({ initialCategory }: { initialCategory?: ReportCa
|
||||
) : null}
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<ReportJobsPanel
|
||||
canExport={canExportReports}
|
||||
refreshToken={jobRefreshToken}
|
||||
reportType={REPORT_UI_TO_JOB_TYPE[selectedReport.key as ReportUiKey]}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user