Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: tsx formatting

Luigi Agosti839f6f0bcd3c
diff --git a/dashboard/src/components/molecules/ProfileDetailsModal.tsx b/dashboard/src/components/molecules/ProfileDetailsModal.tsx
index 8a9cf1d7..f2046bd0 100644
--- a/dashboard/src/components/molecules/ProfileDetailsModal.tsx
+++ b/dashboard/src/components/molecules/ProfileDetailsModal.tsx
@@ -59,9 +59,9 @@ export default function ProfileDetailsModal({
? allTabs.filter((t) => t.instanceId === instance.id)
: [];
setTabs(instanceTabs);
- const instanceLogs = await api.fetchInstanceLogs(instance.id).catch(
- () => "",
- );
+ const instanceLogs = await api
+ .fetchInstanceLogs(instance.id)
+ .catch(() => "");
setLogs(instanceLogs);
} catch (e) {
console.error("Failed to load live data", e);
diff --git a/dashboard/src/components/molecules/ProfileDetailsPanel.tsx b/dashboard/src/components/molecules/ProfileDetailsPanel.tsx
index e5a451f1..a19ad7d3 100644
--- a/dashboard/src/components/molecules/ProfileDetailsPanel.tsx
+++ b/dashboard/src/components/molecules/ProfileDetailsPanel.tsx
@@ -265,7 +265,9 @@ export default function ProfileDetailsPanel({
<span className="dashboard-section-title text-[0.68rem]">
Status
</span>
- <span className="text-right">{instance?.status || "stopped"}</span>
+ <span className="text-right">
+ {instance?.status || "stopped"}
+ </span>
</div>
{instance?.port && (
<div className="flex items-center justify-between gap-3">
diff --git a/dashboard/src/pages/ProfilesPage.test.tsx b/dashboard/src/pages/ProfilesPage.test.tsx
index 35359434..37f6ec51 100644
--- a/dashboard/src/pages/ProfilesPage.test.tsx
+++ b/dashboard/src/pages/ProfilesPage.test.tsx
@@ -125,7 +125,9 @@ describe("ProfilesPage", () => {
const detailPanel = screen
.getByRole("heading", { name: "alpha" })
.closest(".dashboard-panel") as HTMLElement;
- const saveButton = within(detailPanel).getByRole("button", { name: "Save" });
+ const saveButton = within(detailPanel).getByRole("button", {
+ name: "Save",
+ });
const nameInput = within(detailPanel).getByDisplayValue("alpha");
expect(saveButton).toBeDisabled();
diff --git a/dashboard/src/pages/ProfilesPage.tsx b/dashboard/src/pages/ProfilesPage.tsx
index dbee3bba..739109e6 100644
--- a/dashboard/src/pages/ProfilesPage.tsx
+++ b/dashboard/src/pages/ProfilesPage.tsx
@@ -240,7 +240,9 @@ export default function ProfilesPage() {
<h3 className="text-sm font-semibold text-text-secondary">
Profiles ({profiles.length})
</h3>
- <Badge variant={runningProfiles > 0 ? "success" : "default"}>
+ <Badge
+ variant={runningProfiles > 0 ? "success" : "default"}
+ >
{runningProfiles} running
</Badge>
</div>
@@ -273,7 +275,9 @@ export default function ProfilesPage() {
<button
key={getProfileKey(profile)}
type="button"
- onClick={() => setSelectedProfileKey(getProfileKey(profile))}
+ onClick={() =>
+ setSelectedProfileKey(getProfileKey(profile))
+ }
className={`w-full rounded-2xl border px-4 py-3 text-left transition ${
isSelected
? "dashboard-panel-selected border-primary"
@@ -447,7 +451,6 @@ export default function ProfilesPage() {
</div>
</div>
</Modal>
-
</div>
);
}