feat: add onboarding with oldmarr import (#1606)

This commit is contained in:
Meier Lukas authored and GitHub committed 2024-12-15 15:40:26 +01:00
1 parent 82ec77d2da
commit 6de74d9525
108 files changed
+6045 -312

No files matched your search

@@ -0,0 +1,19 @@
import type { ValidAnalyseConfig } from "../analyse/types";
export type PreparedIntegration = ReturnType<typeof prepareIntegrations>[number];
export const prepareIntegrations = (analyseConfigs: ValidAnalyseConfig[]) => {
return analyseConfigs.flatMap(({ config }) => {
return config.apps
.map((app) =>
app.integration?.type
? {
...app.integration,
name: app.name,
url: app.url,
}
: null,
)
.filter((integration) => integration !== null);
});
};