From 6d20f25a2f9e583c4dcd829fa030a8d8cddcf9ff Mon Sep 17 00:00:00 2001 From: varnit-goyal_navi Date: Thu, 28 Mar 2024 08:33:52 +0530 Subject: [PATCH] TP-22332 | uat feedbacks incorporation --- src/assets/icons/CsaIncomingIconSquare.tsx | 36 +++ .../icons/CsaOutgoingRequestSquareIcon.tsx | 39 +++ src/components/utlis/apiHelper.ts | 6 +- src/screens/cosmosSupport/CSAFilters.tsx | 46 ++-- src/screens/cosmosSupport/CustomerCard.tsx | 76 ++++-- .../cosmosSupport/CustomerDetailListItem.tsx | 4 +- src/screens/cosmosSupport/ListItem.tsx | 13 +- src/screens/cosmosSupport/RelativeTime.tsx | 10 +- .../cosmosSupport/RenderCommentsTimeline.tsx | 3 +- src/screens/cosmosSupport/RequestDetail.tsx | 6 +- src/screens/cosmosSupport/RequestSupport.tsx | 10 +- src/screens/cosmosSupport/TaskForMe.tsx | 27 +- src/screens/cosmosSupport/TeleSupport.tsx | 26 +- .../cosmosSupport/TextFieldWithInput.tsx | 31 ++- .../cosmosSupport/ViewRequestHistory.tsx | 12 +- src/screens/cosmosSupport/constant/index.ts | 4 +- src/screens/cosmosSupport/constant/types.ts | 9 +- yarn.lock | 250 +----------------- 18 files changed, 261 insertions(+), 347 deletions(-) create mode 100644 src/assets/icons/CsaIncomingIconSquare.tsx create mode 100644 src/assets/icons/CsaOutgoingRequestSquareIcon.tsx diff --git a/src/assets/icons/CsaIncomingIconSquare.tsx b/src/assets/icons/CsaIncomingIconSquare.tsx new file mode 100644 index 00000000..bea3da10 --- /dev/null +++ b/src/assets/icons/CsaIncomingIconSquare.tsx @@ -0,0 +1,36 @@ +import * as React from "react" +import Svg, { Rect, Mask, Path, G } from "react-native-svg" + +function CsaIncomingIconSquare() { + return ( + + + + + + + + + + ) +} + +export default CsaIncomingIconSquare; diff --git a/src/assets/icons/CsaOutgoingRequestSquareIcon.tsx b/src/assets/icons/CsaOutgoingRequestSquareIcon.tsx new file mode 100644 index 00000000..91b03dcf --- /dev/null +++ b/src/assets/icons/CsaOutgoingRequestSquareIcon.tsx @@ -0,0 +1,39 @@ +import * as React from "react" +import Svg, { Rect, Mask, Path, G } from "react-native-svg" + +function CsaOutgoingRequestSquareIcon() { + return ( + + + + + + + + + + ) +} + +export default CsaOutgoingRequestSquareIcon; diff --git a/src/components/utlis/apiHelper.ts b/src/components/utlis/apiHelper.ts index ccec8c5f..e9910ac1 100644 --- a/src/components/utlis/apiHelper.ts +++ b/src/components/utlis/apiHelper.ts @@ -69,7 +69,8 @@ export enum ApiKeys { GET_VISIBILITY_STATUS = 'GET_VISIBILITY_STATUS', GET_CSA_TICKETS = 'GET_CSA_TICKETS', - GET_CSA_SINGLE_TICKET = 'GET_CSA_SINGLE_TICKET', + h + = 'GET_CSA_SINGLE_TICKET', CREATE_TICKET = 'CREATE_TICKET', ACKNOWLEDGE_TICKET = 'ACKNOWLEDGE_TICKET', ADD_COMMENT = 'ADD_COMMENT', @@ -301,13 +302,14 @@ axiosInstance.interceptors.response.use( ); axiosInstance.defaults.headers.common['Content-Type'] = 'application/json'; -axiosInstance.defaults.headers.common['routing_key'] = '2aeff6e1-c6c8-4cf2-9e47-daf3de565483'; +axiosInstance.defaults.headers.common['routing_key'] = 'e953bef9-6427-467c-b825-a6b3409a7a69'; axiosInstance.defaults.baseURL = BASE_AV_APP_URL; // TODO:: Ideally should happen through middlewares. export const registerNavigateAndDispatch = (dispatchParam: Dispatch) => (dispatch = dispatchParam); + export const isAxiosError = (err: Error) => { return axios.isAxiosError(err); }; diff --git a/src/screens/cosmosSupport/CSAFilters.tsx b/src/screens/cosmosSupport/CSAFilters.tsx index 6e3f57d6..5d7af19e 100644 --- a/src/screens/cosmosSupport/CSAFilters.tsx +++ b/src/screens/cosmosSupport/CSAFilters.tsx @@ -1,4 +1,4 @@ -import { Pressable, StyleSheet, TouchableHighlight, View } from 'react-native' +import {Pressable, StyleSheet, Switch, TouchableHighlight, View} from 'react-native' import React, { useState } from 'react' import { GenericStyles, getShadowStyle } from '@rn-ui-lib/styles' import Button from '@rn-ui-lib/components/Button' @@ -15,6 +15,11 @@ import { FilterOptions } from './constant' import Text from '@rn-ui-lib/components/Text' import { navigateToScreen } from '@components/utlis/navigationUtlis' import { ProfileScreenStackEnum } from '@screens/Profile/ProfileStack' +import TextInput from "@rn-ui-lib/components/TextInput"; +import IconButton from "@rn-ui-lib/components/IconButton"; +import FilterIcon from "@assets/icons/FilterIcon"; +import {noop} from "@rn-ui-lib/utils/common"; +import SearchIcon from "@rn-ui-lib/icons/SearchIcon"; const HeaderNode = () => { @@ -70,28 +75,35 @@ const CSAFilters: React.FC = (props) => { GenericStyles.p16, GenericStyles.row, GenericStyles.justifyContentSpaceBetween, + GenericStyles.alignCenter, { ...getShadowStyle(1) }, GenericStyles.whiteBackground, ]} > -