{
diff --git a/webapp/src/gql/producer.gql.js b/webapp/src/gql/producer.gql.js
index 7d522f64..1c204798 100644
--- a/webapp/src/gql/producer.gql.js
+++ b/webapp/src/gql/producer.gql.js
@@ -220,7 +220,7 @@ export const FASTEST_ENDPOINTS_QUERY = gql`query($today: date){
}`
export const HISTORY_ENDPOINTS_BY_PRODUCER_QUERY = gql`query($id: Int){
- endpoints: check_history_by_endpoint(order_by: [{value: asc},{date: asc}], where: {producer_id: {_eq: $id}}) {
+ endpoints: check_history_by_endpoint(order_by: [{value: asc},{date: asc}], where: {producer_id: {_eq: $id}}, distinct_on: [value]) {
value
date
avg_time
diff --git a/webapp/src/hooks/customHooks/useEndpointsState.js b/webapp/src/hooks/customHooks/useEndpointsState.js
index b321f560..ee1f8422 100644
--- a/webapp/src/hooks/customHooks/useEndpointsState.js
+++ b/webapp/src/hooks/customHooks/useEndpointsState.js
@@ -45,19 +45,17 @@ const useEndpointsState = () => {
}, [data])
const handleFilter = useCallback(value => {
- const filter = value
- ? { response: { _contains: { status: 200 } } }
- : { value: { _gt: '' } }
+ const filter = value
+ ? { response: { _contains: { isWorking: true } } }
+ : { value: { _gt: '' } }
- setPagination(prev => ({
- ...prev,
- page: 1,
- where: { ...prev.where, nodes: { endpoints: filter } },
- endpointFilter: value
- ? { _or: [{ type: { _eq: 'p2p' } }, filter] }
- : undefined,
- }))
- }, [setPagination])
+ setPagination(prev => ({
+ ...prev,
+ page: 1,
+ where: { ...prev.where, nodes: { endpoints: filter } },
+ endpointFilter: value ? filter : undefined,
+ }))
+ }, [setPagination])
return [
{ loading, pagination, producers: items, filters },
diff --git a/webapp/src/language/en.json b/webapp/src/language/en.json
index 4f197a50..8ab6f267 100644
--- a/webapp/src/language/en.json
+++ b/webapp/src/language/en.json
@@ -290,8 +290,8 @@
"cpuBenchmark": "CPU Benchmark Average",
"isFull": "Is full",
"supportedApis": "Supported APIs",
- "allWorking": "All API and SSL endpoints are responding",
- "noneWorking": "No API or SSL endpoints are responding",
+ "allWorking": "All endpoints are responding",
+ "noneWorking": "No endpoints are responding",
"endpointPlural": "Endpoints not responding are the",
"endpointSingular": "Endpoint not responding is the"
},
diff --git a/webapp/src/language/es.json b/webapp/src/language/es.json
index 08187e58..fff5d015 100644
--- a/webapp/src/language/es.json
+++ b/webapp/src/language/es.json
@@ -297,8 +297,8 @@
"cpuBenchmark": "Promedio del Benchmark de CPU",
"isFull": "Es completo",
"supportedApis": "APIs Soportadas",
- "allWorking": "Todos los endpoints API y SSL están respondiendo",
- "noneWorking": "Ningún endpoint API o SSL está respondiendo",
+ "allWorking": "Todos los endpoints están respondiendo",
+ "noneWorking": "Ningún endpoint está respondiendo",
"endpointPlural": "Los endpoints que no responden son los",
"endpointSingular": "El endpoint que no responde es el"
},
@@ -392,7 +392,13 @@
"Payment Required": "La solicitud requiere un pago",
"Forbidden": "La solicitud está prohibida",
"Request Timeout": "Tiempo de la solicitud superado",
- "Too Many Request": "Demasiadas solicitudes"
+ "Too Many Request": "Demasiadas solicitudes",
+ "Connection refused": "Conexión rechazada",
+ "Connection timeout exceeded": "Tiempo de espera de conexión excedido",
+ "Connection error": "Error de conexión",
+ "Connection established": "Conexión establecida",
+ "Success": "Éxitosa",
+ "Failed": "Fallida"
},
"nodeSearchComponent": {
"title": "Buscar Nodo",
diff --git a/webapp/src/routes/EndpointsList/index.js b/webapp/src/routes/EndpointsList/index.js
index 2ecaee41..57c8eecf 100644
--- a/webapp/src/routes/EndpointsList/index.js
+++ b/webapp/src/routes/EndpointsList/index.js
@@ -96,7 +96,9 @@ const EndpointsList = () => {
{!!producers?.length ? (
) : (
-
+
+
+
)}
{pagination.pages > 1 && (
diff --git a/webapp/src/routes/EndpointsList/styles.js b/webapp/src/routes/EndpointsList/styles.js
index 70c1a80d..739ec412 100644
--- a/webapp/src/routes/EndpointsList/styles.js
+++ b/webapp/src/routes/EndpointsList/styles.js
@@ -46,4 +46,9 @@ export default (theme) => ({
cardShadow: {
boxShadow: '0px 1px 5px rgba(0, 0, 0, 0.15) !important',
},
+ noShadow: {
+ '& .MuiPaper-root': {
+ boxShadow: 'none !important'
+ }
+ }
})