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

cartesi / rollups-explorer / 11726651411

07 Nov 2024 03:57PM CUT coverage: 86.104% (-0.5%) from 86.605%
11726651411

Pull #256

github

nevendyulgerov
chore(packages/ui): Cleanup
Pull Request #256: #251 Add ABI encoding for raw input form

1366 of 1627 branches covered (83.96%)

Branch coverage included in aggregate %.

756 of 920 new or added lines in 13 files covered. (82.17%)

9428 of 10909 relevant lines covered (86.42%)

47.35 hits per line

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

0.0
/apps/web/src/components/specification/components/EditSpecificationNotFound.tsx
1
"use client";
×
2
import { Card, Center, Group, Stack, Text, Title } from "@mantine/core";
×
3
import { isNotNilOrEmpty } from "ramda-adjunct";
×
4
import { FC } from "react";
5
import { useSpecification } from "../hooks/useSpecification";
×
6
import { EditSpecificationButton } from "./EditSpecificationButton";
×
7
import { NewSpecificationButton } from "./NewSpecificationButton";
×
8

9
export const EditSpecificationNotFound: FC<{ id: string }> = ({ id }) => {
×
10
    const { listSpecifications } = useSpecification();
×
11
    const specifications = listSpecifications() ?? [];
×
12
    const hasSpecs = isNotNilOrEmpty(specifications);
×
13

14
    return (
×
15
        <Stack>
×
16
            <Center>
×
17
                <Title order={3}>
×
18
                    We could not find the Specification id {id}
×
19
                </Title>
×
20
            </Center>
×
21
            {hasSpecs && (
×
22
                <Center>
×
23
                    <Stack>
×
24
                        <Title order={4}>
×
25
                            But you can edit one of the following
26
                        </Title>
×
27

28
                        {specifications.map((spec) => (
×
29
                            <Card key={spec.id}>
×
30
                                <Group justify="space-between">
×
31
                                    <Text>{spec.name}</Text>
×
32
                                    <EditSpecificationButton id={spec.id!} />
×
33
                                </Group>
×
34
                            </Card>
×
35
                        ))}
×
36
                    </Stack>
×
37
                </Center>
×
38
            )}
39
            {!hasSpecs && (
×
40
                <Center>
×
41
                    <Group>
×
42
                        <Title order={4}> You have none created!</Title>
×
43
                        <NewSpecificationButton btnText="Create a new one!" />
×
44
                    </Group>
×
45
                </Center>
×
46
            )}
47
        </Stack>
×
48
    );
49
};
×
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