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

stacklok / codegate-ui / 12906676440

22 Jan 2025 10:55AM UTC coverage: 69.143% (+0.1%) from 69.048%
12906676440

Pull #165

github

web-flow
Merge b4f867116 into 6fb502c2e
Pull Request #165: fix: show banner in archived workspace

303 of 530 branches covered (57.17%)

Branch coverage included in aggregate %.

10 of 12 new or added lines in 5 files covered. (83.33%)

609 of 789 relevant lines covered (77.19%)

56.99 hits per line

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

66.67
/src/features/workspace/hooks/use-restore-workspace-button.tsx
1
import { Button } from "@stacklok/ui-kit";
2
import { ComponentProps } from "react";
3
import { useRestoreWorkspace } from "./use-restore-workspace";
4

5
export function useRestoreWorkspaceButton({
6
  workspaceName,
7
}: {
8
  workspaceName: string;
9
}): ComponentProps<typeof Button> {
10
  const { mutate, isPending } = useRestoreWorkspace();
17✔
11

12
  return {
17✔
13
    isPending,
14
    isDisabled: isPending,
NEW
15
    onPress: () => mutate({ path: { workspace_name: workspaceName } }),
×
16
    children: "Restore",
17
  };
18
}
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