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

stacklok / codegate-ui / 12828464111

17 Jan 2025 11:48AM CUT coverage: 65.711% (+0.8%) from 64.918%
12828464111

Pull #94

github

web-flow
Merge de9616a3a into d873272ed
Pull Request #94: feat: initial work on codegate version check widget

223 of 416 branches covered (53.61%)

Branch coverage included in aggregate %.

42 of 48 new or added lines in 9 files covered. (87.5%)

442 of 596 relevant lines covered (74.16%)

27.08 hits per line

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

77.78
/src/features/dashboard-codegate-status/components/codegate-status-health.tsx
1
import { LoaderCircle, CheckCircle2, XCircle } from "lucide-react";
2
import { HealthStatus } from "../lib/get-codegate-health";
3

4
export const CodegateStatusHealth = ({
3✔
5
  data: data,
6
  isPending,
7
}: {
8
  data: HealthStatus | null;
9
  isPending: boolean;
10
}) => {
11
  if (isPending || data === null) {
77✔
12
    return (
13
      <div className="flex gap-2 items-center text-secondary justify-end overflow-hidden">
14
        Checking <LoaderCircle className="size-4 shrink-0 animate-spin" />
15
      </div>
16
    );
17
  }
18

19
  switch (data) {
63!
20
    case HealthStatus.HEALTHY:
21
      return (
22
        <div className="flex gap-2 items-center text-primary justify-end">
23
          {HealthStatus.HEALTHY} <CheckCircle2 className="size-4 shrink-0" />
24
        </div>
25
      );
26
    case HealthStatus.UNHEALTHY:
27
      return (
28
        <div className="flex gap-2 items-center text-primary justify-end overflow-hidden">
29
          {HealthStatus.UNHEALTHY} <XCircle className="size-4 shrink-0" />
30
        </div>
31
      );
32
    default: {
NEW
33
      data satisfies never;
×
34
    }
35
  }
36
};
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