Skip to content

Commit 4eb7eb1

Browse files
qstearnsclaude
andcommitted
fmt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e3cd89 commit 4eb7eb1

File tree

4 files changed

+32
-46
lines changed

4 files changed

+32
-46
lines changed

client/dashboard/src/components/app-sidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
2828

2929
const [isUpgradeModalOpen, setIsUpgradeModalOpen] = useState(false);
3030

31-
const isSlackAppsEnabled =
32-
telemetry.isFeatureEnabled("slack-apps") ?? false;
31+
const isSlackAppsEnabled = telemetry.isFeatureEnabled("slack-apps") ?? false;
3332

3433
const teamUrl =
3534
organization?.userWorkspaceSlugs &&

client/dashboard/src/components/upload.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ export function useAssetImageUploadHandler(
1313
const { fetch } = useFetcher();
1414

1515
return async (file: File) => {
16-
console.log("[upload] file:", file.name, "type:", file.type, "size:", file.size);
16+
console.log(
17+
"[upload] file:",
18+
file.name,
19+
"type:",
20+
file.type,
21+
"size:",
22+
file.size,
23+
);
1724

1825
const res = await fetch("/rpc/assets.uploadImage", {
1926
method: "POST",

client/dashboard/src/pages/slackapp/SlackApp.tsx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ import { Button, Icon, Stack } from "@speakeasy-api/moonshine";
1919
import { Outlet } from "react-router";
2020
import React, { useState } from "react";
2121

22-
export function StatusBadge({ status, installCount }: { status: string; installCount?: number }) {
22+
export function StatusBadge({
23+
status,
24+
installCount,
25+
}: {
26+
status: string;
27+
installCount?: number;
28+
}) {
2329
if (status === "active") {
2430
const n = installCount ?? 0;
2531
return (
@@ -106,7 +112,8 @@ function SlackAppCard({ app }: { app: SlackAppResult }) {
106112
</Type>
107113
<div className="flex items-center justify-between">
108114
<Type muted small>
109-
{app.toolsetIds.length} toolset{app.toolsetIds.length !== 1 ? "s" : ""}
115+
{app.toolsetIds.length} toolset
116+
{app.toolsetIds.length !== 1 ? "s" : ""}
110117
</Type>
111118
<Type muted small>
112119
<HumanizeDateTime date={new Date(app.createdAt)} />
@@ -196,9 +203,7 @@ function CreateSlackAppDialog({
196203
placeholder="My Slack App"
197204
maxLength={36}
198205
validate={(v) =>
199-
v.length > 36
200-
? "Name must be 36 characters or fewer"
201-
: true
206+
v.length > 36 ? "Name must be 36 characters or fewer" : true
202207
}
203208
/>
204209
</div>
@@ -253,9 +258,7 @@ function CreateSlackAppDialog({
253258
: "border-muted-foreground/40",
254259
)}
255260
>
256-
{selected && (
257-
<Icon name="check" className="h-3 w-3" />
258-
)}
261+
{selected && <Icon name="check" className="h-3 w-3" />}
259262
</div>
260263
<div className="min-w-0">
261264
<Type className="font-medium truncate block">
@@ -326,11 +329,7 @@ export default function SlackAppsIndex() {
326329
</Page.Section.CTA>
327330
<Page.Section.Body>
328331
{isLoading ? (
329-
<Stack
330-
align="center"
331-
justify="center"
332-
className="py-16"
333-
>
332+
<Stack align="center" justify="center" className="py-16">
334333
<Icon
335334
name="loader-circle"
336335
className="w-6 h-6 animate-spin text-muted-foreground"

client/dashboard/src/pages/slackapp/SlackAppDetail.tsx

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ export default function SlackAppDetailPage() {
104104
<Dialog.Header>
105105
<Dialog.Title>Delete Slack App</Dialog.Title>
106106
<Dialog.Description>
107-
Are you sure you want to delete <strong>{app.name}</strong>? This
108-
action cannot be undone.
107+
Are you sure you want to delete <strong>{app.name}</strong>?
108+
This action cannot be undone.
109109
</Dialog.Description>
110110
</Dialog.Header>
111111
<Dialog.Footer>
@@ -307,20 +307,11 @@ function LeftPanel({ app }: { app: SlackAppResult }) {
307307
</Button.LeftIcon>
308308
<Button.Text>Manage on Slack</Button.Text>
309309
</Button>
310-
<Button
311-
variant="secondary"
312-
size="sm"
313-
onClick={handleCopyInviteLink}
314-
>
310+
<Button variant="secondary" size="sm" onClick={handleCopyInviteLink}>
315311
<Button.LeftIcon>
316-
<Icon
317-
name={copied ? "check" : "copy"}
318-
className="w-3.5 h-3.5"
319-
/>
312+
<Icon name={copied ? "check" : "copy"} className="w-3.5 h-3.5" />
320313
</Button.LeftIcon>
321-
<Button.Text>
322-
{copied ? "Copied!" : "Copy Invite Link"}
323-
</Button.Text>
314+
<Button.Text>{copied ? "Copied!" : "Copy Invite Link"}</Button.Text>
324315
</Button>
325316
</Stack>
326317

@@ -374,23 +365,16 @@ function LeftPanel({ app }: { app: SlackAppResult }) {
374365
Installations
375366
</Type>
376367
<div className="flex flex-col items-center justify-center rounded-lg border border-dashed py-10 px-6">
377-
<Icon
378-
name="slack"
379-
className="w-6 h-6 text-muted-foreground mb-3"
380-
/>
368+
<Icon name="slack" className="w-6 h-6 text-muted-foreground mb-3" />
381369
<Type muted small className="text-center mb-3">
382-
No installs yet. Share the invite link to get your first workspace connected.
370+
No installs yet. Share the invite link to get your first workspace
371+
connected.
383372
</Type>
384373
<Button variant="secondary" size="sm" onClick={handleCopyInviteLink}>
385374
<Button.LeftIcon>
386-
<Icon
387-
name={copied ? "check" : "copy"}
388-
className="w-3.5 h-3.5"
389-
/>
375+
<Icon name={copied ? "check" : "copy"} className="w-3.5 h-3.5" />
390376
</Button.LeftIcon>
391-
<Button.Text>
392-
{copied ? "Copied!" : "Copy Invite Link"}
393-
</Button.Text>
377+
<Button.Text>{copied ? "Copied!" : "Copy Invite Link"}</Button.Text>
394378
</Button>
395379
</div>
396380
</Stack>
@@ -422,10 +406,7 @@ function RightPanel() {
422406
Chat Logs
423407
</Type>
424408
<div className="flex flex-col items-center justify-center rounded-lg border border-dashed border-warning/40 bg-warning/5 py-16 px-6">
425-
<Icon
426-
name="triangle-alert"
427-
className="w-6 h-6 text-warning mb-3"
428-
/>
409+
<Icon name="triangle-alert" className="w-6 h-6 text-warning mb-3" />
429410
<Type small className="text-warning text-center">
430411
I need to be wired up before we remove the feature flag
431412
</Type>

0 commit comments

Comments
 (0)