• 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

82.14
/apps/web/src/components/applications/applicationsTable.tsx
1
"use client";
1✔
2

1✔
3
import { Loader, Table, Text } from "@mantine/core";
1✔
4
import { FC } from "react";
1✔
5
import { ApplicationItemFragment } from "../../graphql/explorer/operations";
1✔
6
import { Application } from "../../graphql/explorer/types";
1✔
7
import ApplicationRow from "./applicationRow";
1✔
8

1✔
9
export interface ApplicationsTableProps {
1✔
10
    applications: ApplicationItemFragment[];
1✔
11
    fetching: boolean;
1✔
12
    totalCount: number;
1✔
13
}
1✔
14

1✔
15
const ApplicationsTable: FC<ApplicationsTableProps> = (props) => {
1✔
16
    const { applications, fetching, totalCount } = props;
5✔
17

5✔
18
    return (
5✔
19
        <Table>
5✔
20
            <Table.Thead>
5✔
21
                <Table.Tr>
5✔
22
                    <Table.Th>Id</Table.Th>
5✔
23
                    <Table.Th>Owner</Table.Th>
5✔
24
                    <Table.Th>URL</Table.Th>
5✔
25
                </Table.Tr>
5✔
26
            </Table.Thead>
5✔
27
            <Table.Tbody>
5✔
28
                {fetching ? (
5!
29
                    <Table.Tr>
×
30
                        <Table.Td align="center" colSpan={3}>
×
31
                            <Loader />
×
32
                        </Table.Td>
×
33
                    </Table.Tr>
×
34
                ) : (
5✔
35
                    totalCount === 0 && (
5✔
36
                        <Table.Tr>
5✔
37
                            <Table.Td colSpan={3} align="center">
5✔
38
                                <Text fw={700}>No applications</Text>
5✔
39
                            </Table.Td>
5✔
40
                        </Table.Tr>
5✔
41
                    )
5✔
42
                )}
5✔
43
                {applications.map((application) => (
5✔
44
                    <ApplicationRow
×
45
                        key={application.id}
×
46
                        application={application as Omit<Application, "inputs">}
×
47
                    />
×
48
                ))}
5✔
49
            </Table.Tbody>
5✔
50
        </Table>
5✔
51
    );
5✔
52
};
5✔
53

1✔
54
export default ApplicationsTable;
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