feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration Translations / Export Logs

This commit is contained in:
Dave
2025-11-10 14:30:11 -05:00
parent a5f8fbacc1
commit 91f419f4b3
5 changed files with 95 additions and 45 deletions

View File

@@ -192,25 +192,31 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
{dms === "rr" && (
<>
{/* Advisor + inline Refresh (restores original behavior with better UX) */}
{/* Advisor + inline Refresh (binding fixed via inner noStyle Form.Item) */}
<Col xs={24} sm={24} md={12} lg={8}>
<Form.Item name="advisorNo" label={t("jobs.fields.dms.advisor")} rules={[{ required: true }]}>
<Form.Item label={t("jobs.fields.dms.advisor")} required>
<Space.Compact block>
<Select
style={{ flex: 1 }}
loading={advLoading}
allowClear
placeholder={t("general.actions.select", "Select...")}
popupMatchSelectWidth
options={advisors
.map((a) => {
const value = getAdvisorNumber(a);
if (value == null) return null;
return { value: String(value), label: getAdvisorLabel(a) || String(value) };
})
.filter(Boolean)}
notFoundContent={advLoading ? t("general.loading") : t("general.none")}
/>
<Form.Item
name="advisorNo"
noStyle
rules={[{ required: true, message: t("general.validation.required") }]}
>
<Select
style={{ flex: 1 }}
loading={advLoading}
allowClear
placeholder={t("general.actions.select", "Select...")}
popupMatchSelectWidth
options={advisors
.map((a) => {
const value = getAdvisorNumber(a);
if (value == null) return null;
return { value: String(value), label: getAdvisorLabel(a) || String(value) };
})
.filter(Boolean)}
notFoundContent={advLoading ? t("general.labels.loading") : t("general.labels.none")}
/>
</Form.Item>
<Tooltip title={t("general.actions.refresh")}>
<Button
aria-label={t("general.actions.refresh")}
@@ -336,12 +342,12 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
style={{ marginBottom: 12 }}
title={`${t("jobs.fields.dms.payer.payer_type")} #${index + 1}`}
extra={
<Tooltip title={t("jobs.actions.remove", "Remove")}>
<Tooltip title={t("general.actions.remove", "Remove")}>
<Button
type="text"
danger
icon={<DeleteFilled />}
aria-label={t("jobs.actions.remove", "Remove")}
aria-label={t("general.actions.remove", "Remove")}
onClick={() => remove(field.name)}
/>
</Tooltip>
@@ -405,7 +411,7 @@ export function DmsPostForm({ bodyshop, socket, job, logsRef }) {
})) ?? []
}}
>
{/* Anchor trigger restored (was missing) */}
{/* Anchor trigger */}
<a href="#" onClick={(e) => e.preventDefault()}>
<DownOutlined />
</a>