UI improvements: filters, map layout, search bar
Some checks failed
Build Docker Image / build (push) Failing after 1m29s
Some checks failed
Build Docker Image / build (push) Failing after 1m29s
- Add hubCountries query and country filter for hubs page - Add getAvailableProducts query for offers (only products with active offers) - Add sourceLatitude/sourceLongitude to orders GraphQL - Fix ListMapLayout with position fixed for proper map height - GlobalSearchBar: make fields wider, remove unit selector - Remove status/isVerified filters from suppliers/offers (backend handles this)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
query GetAvailableProducts {
|
||||
getAvailableProducts {
|
||||
uuid
|
||||
name
|
||||
categoryId
|
||||
categoryName
|
||||
terminusSchemaId
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
query GetOffers($status: String, $productUuid: String, $locationUuid: String, $categoryName: String, $teamUuid: String, $limit: Int, $offset: Int) {
|
||||
getOffers(status: $status, productUuid: $productUuid, locationUuid: $locationUuid, categoryName: $categoryName, teamUuid: $teamUuid, limit: $limit, offset: $offset) {
|
||||
query GetOffers($productUuid: String, $locationUuid: String, $categoryName: String, $teamUuid: String, $limit: Int, $offset: Int) {
|
||||
getOffers(productUuid: $productUuid, locationUuid: $locationUuid, categoryName: $categoryName, teamUuid: $teamUuid, limit: $limit, offset: $offset) {
|
||||
uuid
|
||||
teamUuid
|
||||
status
|
||||
# Location
|
||||
locationUuid
|
||||
locationName
|
||||
@@ -25,5 +24,5 @@ query GetOffers($status: String, $productUuid: String, $locationUuid: String, $c
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
getOffersCount(status: $status, productUuid: $productUuid, locationUuid: $locationUuid, categoryName: $categoryName, teamUuid: $teamUuid)
|
||||
getOffersCount(productUuid: $productUuid, locationUuid: $locationUuid, categoryName: $categoryName, teamUuid: $teamUuid)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
query GetSupplierProfiles($country: String, $isVerified: Boolean, $limit: Int, $offset: Int) {
|
||||
getSupplierProfiles(country: $country, isVerified: $isVerified, limit: $limit, offset: $offset) {
|
||||
query GetSupplierProfiles($country: String, $limit: Int, $offset: Int) {
|
||||
getSupplierProfiles(country: $country, limit: $limit, offset: $offset) {
|
||||
uuid
|
||||
teamUuid
|
||||
name
|
||||
@@ -7,11 +7,9 @@ query GetSupplierProfiles($country: String, $isVerified: Boolean, $limit: Int, $
|
||||
country
|
||||
countryCode
|
||||
logoUrl
|
||||
isVerified
|
||||
isActive
|
||||
offersCount
|
||||
latitude
|
||||
longitude
|
||||
}
|
||||
getSupplierProfilesCount(country: $country, isVerified: $isVerified)
|
||||
getSupplierProfilesCount(country: $country)
|
||||
}
|
||||
|
||||
3
graphql/operations/public/geo/GetHubCountries.graphql
Normal file
3
graphql/operations/public/geo/GetHubCountries.graphql
Normal file
@@ -0,0 +1,3 @@
|
||||
query GetHubCountries {
|
||||
hubCountries
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
query GetNodes($limit: Int, $offset: Int, $transportType: String) {
|
||||
nodes(limit: $limit, offset: $offset, transportType: $transportType) {
|
||||
query GetNodes($limit: Int, $offset: Int, $transportType: String, $country: String) {
|
||||
nodes(limit: $limit, offset: $offset, transportType: $transportType, country: $country) {
|
||||
uuid
|
||||
name
|
||||
latitude
|
||||
@@ -9,5 +9,5 @@ query GetNodes($limit: Int, $offset: Int, $transportType: String) {
|
||||
syncedAt
|
||||
transportTypes
|
||||
}
|
||||
nodesCount(transportType: $transportType)
|
||||
nodesCount(transportType: $transportType, country: $country)
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ query GetTeamOrders {
|
||||
totalAmount
|
||||
currency
|
||||
sourceLocationName
|
||||
sourceLatitude
|
||||
sourceLongitude
|
||||
destinationLocationName
|
||||
createdAt
|
||||
orderLines {
|
||||
|
||||
Reference in New Issue
Block a user