Merged in feature/IO-3499-React-19-ProductionBoard (pull request #2829)
Feature/IO-3499 React 19 ProductionBoard
This commit is contained in:
@@ -19,4 +19,5 @@ TEST_PASSWORD="test123"
|
||||
VITE_PUBLIC_POSTHOG_KEY=phc_xtLmBIu0rjWwExY73Oj5DTH1bGbwq1G1Y8jnlTceien
|
||||
VITE_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
|
||||
VITE_APP_AMP_URL=https://vp8k908qy2.execute-api.ca-central-1.amazonaws.com
|
||||
VITE_APP_AMP_KEY=46b1193a867d4e3131ae4c3a64a3fc78
|
||||
VITE_APP_AMP_KEY=46b1193a867d4e3131ae4c3a64a3fc78
|
||||
VITE_ENABLE_COMPILER_IN_DEV=1
|
||||
|
||||
@@ -80,7 +80,7 @@ export function Jobd3RdPartyModal({ bodyshop, jobId, job, technician }) {
|
||||
};
|
||||
|
||||
const handleVendorSelect = (vendorid) => {
|
||||
const vendor = VendorAutoCompleteData.vendors.filter((v) => v.id === vendorid)[0];
|
||||
const vendor = VendorAutoCompleteData?.vendors?.filter((v) => v.id === vendorid)[0];
|
||||
if (vendor) {
|
||||
form.setFieldsValue({
|
||||
addr1: vendor.name,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Form, Input, Select } from "antd";
|
||||
import { Card, Form, Input, Select } from "antd";
|
||||
import { useContext } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import JobCreateContext from "../../pages/jobs-create/jobs-create.context";
|
||||
@@ -29,7 +29,7 @@ export default function JobsCreateOwnerInfoNewComponent() {
|
||||
];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Card>
|
||||
<LayoutFormRow header={t("owners.forms.name")} grow>
|
||||
<Form.Item
|
||||
label={t("owners.fields.ownr_ln")}
|
||||
@@ -178,6 +178,6 @@ export default function JobsCreateOwnerInfoNewComponent() {
|
||||
<Select disabled={!state.owner.new} allowClear placeholder="Type" options={PREFERRED_CONTACT_OPTIONS} />
|
||||
</Form.Item>
|
||||
</LayoutFormRow>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Form, Input } from "antd";
|
||||
import { Card, Form, Input } from "antd";
|
||||
import { useContext } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import JobCreateContext from "../../pages/jobs-create/jobs-create.context";
|
||||
@@ -11,7 +11,7 @@ export default function JobsCreateVehicleInfoNewComponent({ form }) {
|
||||
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div>
|
||||
<Card>
|
||||
<LayoutFormRow header={t("vehicles.forms.detail")} grow>
|
||||
<Form.Item
|
||||
label={t("vehicles.fields.v_vin")}
|
||||
@@ -151,6 +151,6 @@ export default function JobsCreateVehicleInfoNewComponent({ form }) {
|
||||
<Input disabled={!state.vehicle.new} />
|
||||
</Form.Item>
|
||||
</LayoutFormRow>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Form, Statistic, Tooltip } from "antd";
|
||||
import { Card, Form, Statistic, Tooltip } from "antd";
|
||||
import { useMemo } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
@@ -27,7 +27,7 @@ export function JobsDetailDatesComponent({ jobRO, job, bodyshop }) {
|
||||
: [];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Card>
|
||||
<FormRow header={t("jobs.forms.estdates")}>
|
||||
<Form.Item label={t("jobs.fields.date_estimated")} name="date_estimated">
|
||||
<DateTimePicker disabled={jobRO} isDateOnly />
|
||||
@@ -122,7 +122,7 @@ export function JobsDetailDatesComponent({ jobRO, job, bodyshop }) {
|
||||
<DateTimePicker disabled={true} />
|
||||
</Form.Item>
|
||||
</FormRow>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Col, Form, Input, InputNumber, Row, Select, Space, Switch } from "antd";
|
||||
import { Card, Col, Form, Input, InputNumber, Row, Select, Space, Switch } from "antd";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -37,7 +37,7 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) {
|
||||
};
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Card>
|
||||
<FormRow header={t("jobs.forms.claiminfo")}>
|
||||
<Form.Item label={t("jobs.fields.clm_no")} name="clm_no">
|
||||
<Input disabled={jobRO} />
|
||||
@@ -268,7 +268,7 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) {
|
||||
<Input disabled={jobRO} allowClear />
|
||||
</Form.Item>
|
||||
</FormRow>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Divider, Form, Input, InputNumber, Select, Space, Switch, Tooltip } from "antd";
|
||||
import { Card, Divider, Form, Input, InputNumber, Select, Space, Switch, Tooltip } from "antd";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -25,7 +25,7 @@ const mapStateToProps = createStructuredSelector({
|
||||
export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div>
|
||||
<Card>
|
||||
<FormRow>
|
||||
<Form.Item label={t("jobs.fields.class")} name="class">
|
||||
<Select disabled={true} />
|
||||
@@ -227,7 +227,7 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
||||
</>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { PageHeader } from "@ant-design/pro-layout";
|
||||
import { useApolloClient, useMutation } from "@apollo/client/react";
|
||||
import { Button, Form, Popconfirm } from "antd";
|
||||
import { Button, Card, Form, Popconfirm } from "antd";
|
||||
import { phone } from "phone"; // Import phone utility for formatting
|
||||
import { useEffect, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@@ -116,7 +116,7 @@ function OwnerDetailFormContainer({ owner, refetch, bodyshop }) {
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card>
|
||||
<PageHeader
|
||||
title={t("menus.header.owners")}
|
||||
extra={[
|
||||
@@ -152,7 +152,7 @@ function OwnerDetailFormContainer({ owner, refetch, bodyshop }) {
|
||||
}
|
||||
/>
|
||||
</Form>
|
||||
</>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { PageHeader } from "@ant-design/pro-layout";
|
||||
import { useMutation } from "@apollo/client/react";
|
||||
import { Button, Form, Popconfirm } from "antd";
|
||||
import { Button, Card, Form, Popconfirm } from "antd";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
@@ -68,7 +68,7 @@ function VehicleDetailFormContainer({ vehicle, refetch }) {
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card>
|
||||
<PageHeader
|
||||
title={t("menus.header.vehicles")}
|
||||
extra={[
|
||||
@@ -100,7 +100,7 @@ function VehicleDetailFormContainer({ vehicle, refetch }) {
|
||||
>
|
||||
<VehicleDetailFormComponent form={form} loading={loading} />
|
||||
</Form>
|
||||
</>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user