UI improvements: filters, map layout, search bar
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:
Ruslan Bakiev
2026-01-08 10:42:59 +07:00
parent 0c88cf383c
commit d6865d2129
15 changed files with 87 additions and 78 deletions

View File

@@ -0,0 +1,9 @@
query GetAvailableProducts {
getAvailableProducts {
uuid
name
categoryId
categoryName
terminusSchemaId
}
}

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -0,0 +1,3 @@
query GetHubCountries {
hubCountries
}

View File

@@ -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)
}

View File

@@ -6,6 +6,8 @@ query GetTeamOrders {
totalAmount
currency
sourceLocationName
sourceLatitude
sourceLongitude
destinationLocationName
createdAt
orderLines {