• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cartesi / rollups-explorer / 8962206712

06 May 2024 12:17AM CUT coverage: 95.125% (-0.1%) from 95.257%
8962206712

push

github

web-flow
Feat: Application summary page access (#176)

536 of 658 branches covered (81.46%)

Branch coverage included in aggregate %.

95 of 95 new or added lines in 3 files covered. (100.0%)

8 existing lines in 2 files now uncovered.

7191 of 7465 relevant lines covered (96.33%)

21.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.49
/apps/web/src/components/applications/userApplicationsTable.tsx
1
import { Box, Loader, Table, Text } from "@mantine/core";
1✔
2
import { FC } from "react";
1✔
3
import { Application } from "../../graphql/explorer/types";
1✔
4
import { ApplicationsTableProps } from "./applicationsTable";
1✔
5
import UserApplicationsRow from "./userApplicationsRow";
1✔
6

1✔
7
interface UserApplicationsTableProps extends ApplicationsTableProps {
1✔
8
    noResultsMessage?: string;
1✔
9
}
1✔
10

1✔
11
const UserApplicationsTable: FC<UserApplicationsTableProps> = (props) => {
1✔
12
    const {
1✔
13
        applications,
1✔
14
        fetching,
1✔
15
        totalCount,
1✔
16
        noResultsMessage = "No applications",
1✔
17
    } = props;
1✔
18
    return (
1✔
19
        <Box>
1✔
20
            <Table>
1✔
21
                <Table.Thead>
1✔
22
                    <Table.Tr>
1✔
23
                        <Table.Th>Id</Table.Th>
1✔
24
                        <Table.Th>URL</Table.Th>
1✔
25
                        <Table.Th>Age</Table.Th>
1✔
26
                    </Table.Tr>
1✔
27
                </Table.Thead>
1✔
28
                <Table.Tbody>
1✔
29
                    {fetching ? (
1!
30
                        <Table.Tr>
×
31
                            <Table.Td align="center" colSpan={3}>
×
32
                                <Loader />
×
33
                            </Table.Td>
×
34
                        </Table.Tr>
×
35
                    ) : (
1✔
36
                        totalCount === 0 && (
1!
UNCOV
37
                            <Table.Tr>
×
UNCOV
38
                                <Table.Td colSpan={3} align="center">
×
UNCOV
39
                                    <Text fw={700}>{noResultsMessage}</Text>
×
UNCOV
40
                                </Table.Td>
×
UNCOV
41
                            </Table.Tr>
×
42
                        )
1✔
43
                    )}
1✔
44
                    {applications.map((application) => (
1✔
45
                        <UserApplicationsRow
×
46
                            key={application.id}
×
47
                            application={
×
48
                                application as Omit<Application, "inputs">
×
49
                            }
×
50
                        />
×
51
                    ))}
1✔
52
                </Table.Tbody>
1✔
53
            </Table>
1✔
54
        </Box>
1✔
55
    );
1✔
56
};
1✔
57

1✔
58
export default UserApplicationsTable;
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc