Canvas: Logs tab
Change-Id: Iddf52dbce6fb2090f095cecb04bafcb50c47e4a7
diff --git a/apps/canvas/front/src/Integrations.tsx b/apps/canvas/front/src/Integrations.tsx
index 931e7b5..eb68a2a 100644
--- a/apps/canvas/front/src/Integrations.tsx
+++ b/apps/canvas/front/src/Integrations.tsx
@@ -72,60 +72,52 @@
return (
<div className="px-5 space-y-6">
<div>
- <h3 className="text-md font-medium mb-2">GitHub</h3>
- <div className="space-y-4">
- <div className="flex items-center space-x-2">
- <Checkbox checked={!!githubService} disabled />
- <label className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
- GitHub Access Token
- </label>
- </div>
-
- {!!githubService && !isEditing && (
- <Button variant="outline" onClick={() => setIsEditing(true)}>
- Update Access Token
- </Button>
- )}
-
- {(!githubService || isEditing) && (
- <Form {...form}>
- <form className="space-y-4" onSubmit={form.handleSubmit(onSubmit)}>
- <FormField
- control={form.control}
- name="githubToken"
- render={({ field }) => (
- <FormItem>
- <FormControl>
- <Input
- type="password"
- placeholder="GitHub Personal Access Token"
- className="border border-black"
- {...field}
- />
- </FormControl>
- <FormMessage />
- </FormItem>
- )}
- />
- <div className="flex space-x-2">
- <Button type="submit" disabled={isSaving}>
- {isSaving ? "Saving..." : "Save"}
- </Button>
- {!!githubService && (
- <Button
- type="button"
- variant="outline"
- onClick={handleCancel}
- disabled={isSaving}
- >
- Cancel
- </Button>
- )}
- </div>
- </form>
- </Form>
- )}
+ <div className="flex items-center space-x-2">
+ <Checkbox checked={!!githubService} disabled />
+ <label className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
+ <h3 className="text-md font-medium mb-2">GitHub</h3>
+ </label>
</div>
+
+ {!!githubService && !isEditing && (
+ <Button variant="outline" onClick={() => setIsEditing(true)}>
+ Update Access Token
+ </Button>
+ )}
+
+ {(!githubService || isEditing) && (
+ <Form {...form}>
+ <form className="space-y-4" onSubmit={form.handleSubmit(onSubmit)}>
+ <FormField
+ control={form.control}
+ name="githubToken"
+ render={({ field }) => (
+ <FormItem>
+ <FormControl>
+ <Input
+ type="password"
+ placeholder="GitHub Personal Access Token"
+ className="border border-black"
+ {...field}
+ />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ <div className="flex space-x-2">
+ <Button type="submit" disabled={isSaving}>
+ {isSaving ? "Saving..." : "Save"}
+ </Button>
+ {!!githubService && (
+ <Button type="button" variant="outline" onClick={handleCancel} disabled={isSaving}>
+ Cancel
+ </Button>
+ )}
+ </div>
+ </form>
+ </Form>
+ )}
</div>
</div>
);