From c94a624253b54dbc0322235fe733a7fcb08da80a Mon Sep 17 00:00:00 2001 From: Akash N Date: Thu, 7 May 2020 10:40:14 +0530 Subject: [PATCH] Query pane fixes - Remove search bar - Show server error message --- .../Editor/QueryEditor/QueryHomeScreen.tsx | 25 ------------------- app/client/src/sagas/QueryPaneSagas.ts | 3 ++- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/app/client/src/pages/Editor/QueryEditor/QueryHomeScreen.tsx b/app/client/src/pages/Editor/QueryEditor/QueryHomeScreen.tsx index 7863b9d249..dd051a9f8a 100644 --- a/app/client/src/pages/Editor/QueryEditor/QueryHomeScreen.tsx +++ b/app/client/src/pages/Editor/QueryEditor/QueryHomeScreen.tsx @@ -17,8 +17,6 @@ import { Datasource } from "api/DatasourcesApi"; import { RestAction } from "api/ActionAPI"; import history from "utils/history"; import { createActionRequest } from "actions/actionActions"; -import { BaseTextInput } from "components/designSystems/appsmith/TextInputComponent"; -import { Colors } from "constants/Colors"; import { PLUGIN_PACKAGE_MONGO, PLUGIN_PACKAGE_POSTGRES, @@ -67,19 +65,6 @@ const QueryHomePage = styled.div` } `; -const SearchContainer = styled.div` - display: flex; - width: 40%; -`; - -const SearchBar = styled(BaseTextInput)` - margin-bottom: 10px; - input { - background-color: ${Colors.WHITE}; - 1px solid ${Colors.GEYSER}; - } -`; - const CardsWrapper = styled.div` flex: 1; display: -webkit-box; @@ -215,16 +200,6 @@ class QueryHomeScreen extends React.Component { return ( - - null, - }} - placeholder="Search" - /> - -

Create Query

{dataSources.length > 0 && ( diff --git a/app/client/src/sagas/QueryPaneSagas.ts b/app/client/src/sagas/QueryPaneSagas.ts index 5962b4d450..0020cc4768 100644 --- a/app/client/src/sagas/QueryPaneSagas.ts +++ b/app/client/src/sagas/QueryPaneSagas.ts @@ -246,8 +246,9 @@ export function* executeQuerySaga( show: false, }, }); + AppToaster.show({ - message: "Query is invalid. Please edit to make it valid", + message: error.message, type: ToastType.ERROR, }); }