From 49fe7477c4d3d8ff3892024e4dc701aa2023277e Mon Sep 17 00:00:00 2001 From: gintil Date: Mon, 10 Feb 2025 19:39:39 -0500 Subject: [PATCH] Improve accessibility in feed logs tab --- .../UserFeedLogs/DeliveryHistory/index.tsx | 51 ++++++++--- .../UserFeedLogs/RequestHistory/index.tsx | 86 +++++++++++++++---- .../feed/components/UserFeedLogs/index.tsx | 5 +- 3 files changed, 110 insertions(+), 32 deletions(-) diff --git a/services/backend-api/client/src/features/feed/components/UserFeedLogs/DeliveryHistory/index.tsx b/services/backend-api/client/src/features/feed/components/UserFeedLogs/DeliveryHistory/index.tsx index 6c129deaa..cbb90e063 100644 --- a/services/backend-api/client/src/features/feed/components/UserFeedLogs/DeliveryHistory/index.tsx +++ b/services/backend-api/client/src/features/feed/components/UserFeedLogs/DeliveryHistory/index.tsx @@ -29,6 +29,7 @@ import { ModalFooter, chakra, Tooltip, + Divider, } from "@chakra-ui/react"; import dayjs from "dayjs"; import { Link } from "react-router-dom"; @@ -131,7 +132,7 @@ export const DeliveryHistory = () => { const hasNoData = data?.result.logs.length === 0 && skip === 0; return ( - + @@ -147,9 +148,19 @@ export const DeliveryHistory = () => { - Article Delivery History + + + + Article Delivery History + + Delivery attempts for articles across all connections. + + + + + {status === "loading" && ( -
+
)} @@ -164,14 +175,14 @@ export const DeliveryHistory = () => { )} {data?.result && !hasNoData && ( - - - + + +
- + @@ -229,7 +240,7 @@ export const DeliveryHistory = () => { {!matchedArticle && ( - (unknown article) + (unknown article title) )} @@ -275,23 +286,35 @@ export const DeliveryHistory = () => {
Date ConnectionArticleArticle Title Status Details
- + diff --git a/services/backend-api/client/src/features/feed/components/UserFeedLogs/RequestHistory/index.tsx b/services/backend-api/client/src/features/feed/components/UserFeedLogs/RequestHistory/index.tsx index d37e889a9..96dfa4f08 100644 --- a/services/backend-api/client/src/features/feed/components/UserFeedLogs/RequestHistory/index.tsx +++ b/services/backend-api/client/src/features/feed/components/UserFeedLogs/RequestHistory/index.tsx @@ -4,9 +4,16 @@ import { Box, Button, Center, + Divider, Flex, HStack, Heading, + Popover, + PopoverArrow, + PopoverBody, + PopoverCloseButton, + PopoverContent, + PopoverTrigger, Skeleton, Spinner, Stack, @@ -17,7 +24,6 @@ import { Text, Th, Thead, - Tooltip, Tr, } from "@chakra-ui/react"; import { useTranslation } from "react-i18next"; @@ -88,10 +94,20 @@ export const RequestHistory = () => { const hasNoData = data?.result.requests.length === 0 && skip === 0; return ( - - {t("features.userFeeds.components.requestsTable.title")} + + + + + {t("features.userFeeds.components.requestsTable.title")} + + Outgoing HTTP requests to the feed URL along with their response details. + + + + + {status === "loading" && ( -
+
)} @@ -117,18 +133,42 @@ export const RequestHistory = () => { )} {data && !hasNoData && ( - - - + + +
@@ -160,23 +200,35 @@ export const RequestHistory = () => {
{t("features.userFeeds.components.requestsTable.tableHeaderDate")} {t("features.userFeeds.components.requestsTable.tableHeaderStatus")} Cache Duration{" "} - - - + + + + + + + + + + The duration, determined by the feed host, for which the contents of a + particular request will be re-used before a new request is made. This + is necessary to comply with polling requirements, and so it overrides + this feed's refresh rate. + + + +
- + diff --git a/services/backend-api/client/src/features/feed/components/UserFeedLogs/index.tsx b/services/backend-api/client/src/features/feed/components/UserFeedLogs/index.tsx index ae5781033..b27c37da9 100644 --- a/services/backend-api/client/src/features/feed/components/UserFeedLogs/index.tsx +++ b/services/backend-api/client/src/features/feed/components/UserFeedLogs/index.tsx @@ -1,10 +1,13 @@ -import { Stack } from "@chakra-ui/react"; +import { Heading, Stack } from "@chakra-ui/react"; import { DeliveryHistory } from "./DeliveryHistory"; import { RequestHistory } from "./RequestHistory"; export const UserFeedLogs = () => { return ( + + Logs +