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

cartesi / rollups-explorer / 11943333351

20 Nov 2024 11:09PM UTC coverage: 86.535% (-0.07%) from 86.605%
11943333351

push

github

brunomenezes
chore(ci): Set the Preview endpoint when available in the CI settings.

1276 of 1529 branches covered (83.45%)

Branch coverage included in aggregate %.

9077 of 10435 relevant lines covered (86.99%)

44.89 hits per line

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

0.0
/apps/web/src/components/inputs/inputCard.tsx
1
import { Group, Paper, Stack, Text } from "@mantine/core";
×
2
import { FC } from "react";
3
import prettyMilliseconds from "pretty-ms";
×
4
import Jazzicon, { jsNumberForAddress } from "react-jazzicon";
×
5
import { InputItemFragment } from "../../graphql/explorer/operations";
6

7
export type InputCardProps = {
8
    input: InputItemFragment;
9
};
10

11
const InputCard: FC<InputCardProps> = ({ input }) => {
×
12
    const age = prettyMilliseconds(Date.now() - input.timestamp * 1000, {
×
13
        unitCount: 2,
×
14
        verbose: true,
×
15
    });
×
16
    return (
×
17
        <Paper>
×
18
            <Group>
×
19
                <Jazzicon
×
20
                    diameter={50}
×
21
                    seed={jsNumberForAddress(input.application.id)}
×
22
                />
×
23
                <Stack gap={0}>
×
24
                    <Group>
×
25
                        <Text fw={700}>From</Text>
×
26
                        <Text>{input.msgSender}</Text>
×
27
                    </Group>
×
28
                    <Group>
×
29
                        <Text fw={700}>To</Text>
×
30
                        <Text>{input.application.id}</Text>
×
31
                    </Group>
×
32
                    <Group>
×
33
                        <Text fw={700}>Index</Text>
×
34
                        <Text>{input.index}</Text>
×
35
                    </Group>
×
36
                    <Group>
×
37
                        <Text fw={700}>Age</Text>
×
38
                        <Text>{age} ago</Text>
×
39
                    </Group>
×
40
                </Stack>
×
41
            </Group>
×
42
        </Paper>
×
43
    );
44
};
×
45

46
export default InputCard;
×
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