diff --git a/.gitignore b/.gitignore index a069fb5..fd6bff9 100755 --- a/.gitignore +++ b/.gitignore @@ -59,8 +59,9 @@ keyring passwords.py *github* *tech_spec* -dashboards -backend/mappings.db +/dashboards +dashboards_example/**/dashboards/ +backend/mappings.db backend/tasks.db diff --git a/frontend/src/routes/dashboards/+page.svelte b/frontend/src/routes/dashboards/+page.svelte new file mode 100644 index 0000000..348546d --- /dev/null +++ b/frontend/src/routes/dashboards/+page.svelte @@ -0,0 +1,1258 @@ + + + +
{$t.dashboards?.empty || "No dashboards found"}
+| Source Database | +Target Database | +Match % | +
|---|---|---|
| {mapping.source_db} | ++ {#if dbMappings[mapping.source_db_uuid]} + {targetDatabases.find( + (d) => + d.uuid === + dbMappings[mapping.source_db_uuid], + )?.database_name || mapping.target_db} + {:else} + Not mapped + {/if} + | ++ + {Math.round(mapping.confidence * 100)}% + + | +
| + {targetEnvId + ? "No databases found to map" + : "Select target environment to see mappings"} + | +||
+ ID: {dashboardId}{#if dashboard?.slug} • {dashboard.slug}{/if} +
+Last modified
+{formatDate(dashboard.last_modified)}
+Charts
+{dashboard.chart_count || 0}
+Datasets
+{dashboard.dataset_count || 0}
+{dashboard.description}
+| Chart | +Dataset | +Overview | +Last modified | +
|---|---|---|---|
|
+ {chart.title}
+ ID: {chart.id}{#if chart.viz_type} • {chart.viz_type}{/if}
+ |
+ + {#if chart.dataset_id} + + {:else} + - + {/if} + | +{chart.overview || "-"} | +{formatDate(chart.last_modified)} | +