fix: dashboard edit previews, migration journal, and notes comments
Register drizzle journal entries for 0022/0023 so prod migrations apply. Key edit-mode widget previews by index so bangs.stats shows live data. Add comments to notes detail pages.
This commit is contained in:
@@ -11,7 +11,12 @@ export type WidgetPlacement = {
|
||||
};
|
||||
|
||||
export function widgetContentKey(placement: Pick<WidgetPlacement, "widgetId" | "config">): string {
|
||||
return `${placement.widgetId}::${JSON.stringify(placement.config)}`;
|
||||
return `${placement.widgetId}::${JSON.stringify(placement.config ?? null)}`;
|
||||
}
|
||||
|
||||
/** Stable key for edit-mode widget preview map (index-aligned with layout.widgets). */
|
||||
export function widgetContentIndexKey(index: number): string {
|
||||
return String(index);
|
||||
}
|
||||
|
||||
export type DashboardLayout = {
|
||||
|
||||
Reference in New Issue
Block a user