refactor: streamline widget and integration architecture

This commit is contained in:
ajnart committed 2026-08-23 22:33:29 +02:00
1 parent ec295fe26e
commit 425cb653a1
243 files changed
+5722 -2255

No files matched your search

+3 -1
View File
@@ -124,6 +124,7 @@ export const placeAllWidgetsAsync = async (
}
}
let placedAppCount = 0;
for (const app of allApps) {
await placeWidgetAsync(
db,
@@ -133,6 +134,7 @@ export const placeAllWidgetsAsync = async (
superjson.stringify({ appId: app.id, openInNewTab: true, showTitle: true }),
{ width: 1, height: 1 },
);
placedAppCount += 1;
}
const bookmarkAppNames = new Set(defaultBookmarkApps.map((bookmark) => bookmark.name));
@@ -153,5 +155,5 @@ export const placeAllWidgetsAsync = async (
});
}
return placedWidgets.size + allApps.length;
return placedWidgets.size + placedAppCount;
};