From 542637edb24b5e5e1eebdec9f8b7269d70fea32f Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Tue, 12 Apr 2022 13:17:56 -0700
Subject: [PATCH 1/6] Global search improvement.
---
.../global-search/global-search.component.jsx | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/client/src/components/global-search/global-search.component.jsx b/client/src/components/global-search/global-search.component.jsx
index 76c664b0a..147ea3f20 100644
--- a/client/src/components/global-search/global-search.component.jsx
+++ b/client/src/components/global-search/global-search.component.jsx
@@ -1,9 +1,10 @@
import { useLazyQuery } from "@apollo/client";
+import { LoadingOutlined } from "@ant-design/icons";
import { AutoComplete, Divider, Space } from "antd";
import _ from "lodash";
import React from "react";
import { useTranslation } from "react-i18next";
-import { Link } from "react-router-dom";
+import { Link, useHistory } from "react-router-dom";
import { GLOBAL_SEARCH_QUERY } from "../../graphql/search.queries";
import PhoneNumberFormatter from "../../utils/PhoneFormatter";
import AlertComponent from "../alert/alert.component";
@@ -12,8 +13,9 @@ import OwnerNameDisplay, {
} from "../owner-name-display/owner-name-display.component";
export default function GlobalSearch() {
const { t } = useTranslation();
-
- const [callSearch, { error, data }] = useLazyQuery(GLOBAL_SEARCH_QUERY);
+ const history = useHistory();
+ const [callSearch, { loading, error, data }] =
+ useLazyQuery(GLOBAL_SEARCH_QUERY);
const executeSearch = (v) => {
if (v && v.variables.search && v.variables.search !== "") callSearch(v);
@@ -171,8 +173,13 @@ export default function GlobalSearch() {
}
+ defaultActiveFirstOption
placeholder={t("general.labels.globalsearch")}
allowClear
+ onSelect={(val, opt) => {
+ history.push(opt.label.props.to);
+ }}
>
);
}
From 44ff032acc9f77af31f647f2d533f1eaddd81d14 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Wed, 13 Apr 2022 10:26:17 -0700
Subject: [PATCH 2/6] IO-1819 Allow private estimate lines to be modified.
---
bodyshop_translations.babel | 23 ++++++++++++++++-
.../job-detail-lines/job-lines.component.jsx | 14 +++++++++--
.../job-lines-upsert-modal.component.jsx | 6 ++++-
.../shop-info/shop-info.general.component.jsx | 25 +++++++++++++------
client/src/translations/en_us/common.json | 1 +
client/src/translations/es/common.json | 1 +
client/src/translations/fr/common.json | 1 +
7 files changed, 59 insertions(+), 12 deletions(-)
diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel
index d160cd70c..0d5fae5eb 100644
--- a/bodyshop_translations.babel
+++ b/bodyshop_translations.babel
@@ -1,4 +1,4 @@
-
+