MCPcopy Index your code
hub / github.com/OpenPipe/OpenPipe / EmptyTableRow

Function EmptyTableRow

app/src/components/requestLogs/TableRow.tsx:237–283  ·  view source on GitHub ↗
({ filtersApplied = true }: { filtersApplied?: boolean })

Source from the content-addressed store, hash-verified

235};
236
237export const EmptyTableRow = ({ filtersApplied = true }: { filtersApplied?: boolean }) => {
238 const visibleColumns = useAppStore((s) => s.columnVisibility.visibleColumns);
239 const generalFilters = useFilters().filters;
240 const dateFilters = useDateFilter().filters;
241 const allFilters = [...generalFilters, ...dateFilters];
242 const { isFetching, isLoading } = useLoggedCalls();
243
244 if (isLoading || isFetching) {
245 return null;
246 }
247
248 if (allFilters.length && filtersApplied) {
249 return (
250 <Tr>
251 <Td w="full" colSpan={visibleColumns.size + 1}>
252 <Text color="gray.500" textAlign="center" w="full" p={4}>
253 No matching request logs found. Try removing some filters or view{" "}
254 <ProjectLink href={{ pathname: "/request-logs", query: { dateFilter: "[]" } }}>
255 <Text as="b" color="blue.600">
256 all
257 </Text>
258 </ProjectLink>{" "}
259 records.
260 </Text>
261 </Td>
262 </Tr>
263 );
264 }
265
266 return (
267 <Tr>
268 <Td w="full" colSpan={visibleColumns.size + 1}>
269 <Text color="gray.500" textAlign="center" w="full" p={4}>
270 This project has no request logs. Learn how to add request logs to your project in our{" "}
271 <ChakraLink
272 href="https://docs.openpipe.ai/getting-started/quick-start"
273 target="_blank"
274 color="blue.600"
275 >
276 Quick Start
277 </ChakraLink>{" "}
278 guide.
279 </Text>
280 </Td>
281 </Tr>
282 );
283};

Callers

nothing calls this directly

Calls 3

useFiltersFunction · 0.90
useDateFilterFunction · 0.90
useLoggedCallsFunction · 0.90

Tested by

no test coverage detected