Minor bug fixes & Rome CI

This commit is contained in:
Patrick Fic
2024-04-01 14:42:05 -07:00
parent 72aece7f14
commit 3683bc161d
5 changed files with 162 additions and 103 deletions

View File

@@ -132,7 +132,7 @@ jobs:
name: Install Dependencies name: Install Dependencies
command: npm i command: npm i
- run: npm run build:rome - run: npm run build:production:rome
- aws-cli/setup: - aws-cli/setup:
aws_access_key_id: AWS_ACCESS_KEY_ID aws_access_key_id: AWS_ACCESS_KEY_ID
@@ -144,6 +144,31 @@ jobs:
to: "s3://rome-online-production/" to: "s3://rome-online-production/"
arguments: "--exclude '*.map'" arguments: "--exclude '*.map'"
promanager-app-build:
docker:
- image: cimg/node:18.18.2
working_directory: ~/repo/client
steps:
- checkout:
path: ~/repo
- run:
name: Install Dependencies
command: npm i
- run: npm run build:production:promanager
- aws-cli/setup:
aws_access_key_id: AWS_ACCESS_KEY_ID
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
region: AWS_REGION
- aws-s3/sync:
from: build
to: "s3://promanager-production/"
arguments: "--exclude '*.map'"
test-rome-hasura-migrate: test-rome-hasura-migrate:
docker: docker:
- image: cimg/node:18.18.2 - image: cimg/node:18.18.2
@@ -188,6 +213,31 @@ jobs:
to: "s3://rome-online-test/" to: "s3://rome-online-test/"
arguments: "--exclude '*.map'" arguments: "--exclude '*.map'"
test-promanager-app-build:
docker:
- image: cimg/node:18.18.2
working_directory: ~/repo/client
steps:
- checkout:
path: ~/repo
- run:
name: Install Dependencies
command: npm i
- run: npm run build:test:promanager
- aws-cli/setup:
aws_access_key_id: AWS_ACCESS_KEY_ID
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
region: AWS_REGION
- aws-s3/sync:
from: dist
to: "s3://promanager-testing/"
arguments: "--exclude '*.map'"
test-hasura-migrate: test-hasura-migrate:
docker: docker:
- image: cimg/node:18.18.2 - image: cimg/node:18.18.2
@@ -307,16 +357,16 @@ workflows:
- rome-api-deploy: - rome-api-deploy:
filters: filters:
branches: branches:
only: rome/master only: master-AIO
- rome-app-build: - rome-app-build:
filters: filters:
branches: branches:
only: rome/master only: master-AIO
- rome-hasura-migrate: - rome-hasura-migrate:
secret: ${HASURA_PROD_SECRET} secret: ${HASURA_PROD_SECRET}
filters: filters:
branches: branches:
only: rome/master only: master-AIO
- imex-test-app-build: - imex-test-app-build:
filters: filters:
branches: branches:
@@ -334,6 +384,14 @@ workflows:
filters: filters:
branches: branches:
only: test-AIO only: test-AIO
- test-promanager-app-build:
filters:
branches:
only: test-AIO
- promanager-app-build:
filters:
branches:
only: master-AIO
- test-rome-hasura-migrate: - test-rome-hasura-migrate:
secret: ${HASURA_ROME_TEST_SECRET} secret: ${HASURA_ROME_TEST_SECRET}
filters: filters:

View File

@@ -118,8 +118,8 @@ export function JobsDetailHeader({ job, bodyshop, disabled }) {
{job?.cccontracts?.length > 0 && ( {job?.cccontracts?.length > 0 && (
<DataLabel label={t("jobs.labels.contracts")}> <DataLabel label={t("jobs.labels.contracts")}>
{job.cccontracts.map((c, index) => ( {job.cccontracts.map((c, index) => (
<Space wrap> <Space key={c.id} wrap>
<Link key={c.id} to={`/manage/courtesycars/contracts/${c.id}`}> <Link to={`/manage/courtesycars/contracts/${c.id}`}>
{`${c.agreementnumber} - ${c.courtesycar.fleetnumber} ${c.courtesycar.year} ${c.courtesycar.make} ${c.courtesycar.model}`} {`${c.agreementnumber} - ${c.courtesycar.fleetnumber} ${c.courtesycar.year} ${c.courtesycar.make} ${c.courtesycar.model}`}
{index !== job.cccontracts.length - 1 ? "," : null} {index !== job.cccontracts.length - 1 ? "," : null}
</Link> </Link>

View File

@@ -4019,6 +4019,9 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
rome: <ShopInfoResponsibilitycentersTaxesComponent form={form} /> rome: <ShopInfoResponsibilitycentersTaxesComponent form={form} />
})} })}
{InstanceRenderManager({
rome: (
<>
<Form.Item <Form.Item
label={t("bodyshop.fields.responsibilitycenters.itemexemptcode")} label={t("bodyshop.fields.responsibilitycenters.itemexemptcode")}
rules={[ rules={[
@@ -4043,6 +4046,11 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
> >
<Input /> <Input />
</Form.Item> </Form.Item>
</>
),
promanager: "USE_ROME"
})}
{/*<LayoutFormRow id="local_tax">*/} {/*<LayoutFormRow id="local_tax">*/}
{/* <Form.Item*/} {/* <Form.Item*/}
{/* label={t("bodyshop.fields.responsibilitycenters.local_tax")}*/} {/* label={t("bodyshop.fields.responsibilitycenters.local_tax")}*/}

View File

@@ -207,6 +207,8 @@ export function TimeTicketList({
} }
} }
}, },
]),
{ {
title: t("timetickets.fields.created_by"), title: t("timetickets.fields.created_by"),
dataIndex: "created_by", dataIndex: "created_by",
@@ -274,7 +276,6 @@ export function TimeTicketList({
</Space> </Space>
) )
} }
])
]; ];
const handleTableChange = (pagination, filters, sorter) => { const handleTableChange = (pagination, filters, sorter) => {

View File

@@ -215,14 +215,6 @@ export function TimeTicketModalComponent({
> >
<InputNumber precision={1} /> <InputNumber precision={1} />
</Form.Item> </Form.Item>
{
// <TimeTicketCalculatorComponent
// jobid={form.getFieldValue("jobid")}
// setProductiveHours={(productivehrs) =>
// form.setFieldsValue({productivehrs})
// }
// />
}
</> </>
)} )}
</Form.Item> </Form.Item>