workspaces to dashboards, imap email sync, ffmpeg tool, tts fix, file browser refresh, automation sidebar reorder

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 20:00:45 +00:00
co-authored by Claude Opus 4.6
parent bd362dc586
commit 927267e041
98 changed files with 1176 additions and 802 deletions
@@ -0,0 +1,4 @@
ALTER TABLE "workspaces" RENAME TO "dashboards";--> statement-breakpoint
ALTER TABLE "dashboards" DROP CONSTRAINT "workspaces_user_id_users_id_fk";--> statement-breakpoint
ALTER TABLE "dashboards" ADD CONSTRAINT "dashboards_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "dashboards" RENAME CONSTRAINT "uq_workspaces_user_id" TO "uq_dashboards_user_id";
@@ -8,6 +8,13 @@
"when": 1772121115932,
"tag": "0000_clammy_meteorite",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1772265600000,
"tag": "0001_rename_workspaces_to_dashboards",
"breakpoints": true
}
]
}
@@ -1,7 +1,7 @@
import { pgTable, serial, text, integer, timestamp, jsonb, unique } from 'drizzle-orm/pg-core';
import { users } from './auth';
export const workspaces = pgTable('workspaces', {
export const dashboards = pgTable('dashboards', {
id: text('id').primaryKey(),
userId: integer('user_id').notNull().references(() => users.id, { onDelete: 'cascade' }),
name: text('name').notNull(),
@@ -13,7 +13,7 @@ export const workspaces = pgTable('workspaces', {
createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
updatedAt: timestamp('updated_at', { withTimezone: true }).notNull().defaultNow(),
}, (table) => [
unique('uq_workspaces_user_id').on(table.userId, table.id),
unique('uq_dashboards_user_id').on(table.userId, table.id),
]);
export const screens = pgTable('screens', {
+1 -1
View File
@@ -1,7 +1,7 @@
export * from './auth';
export * from './user-data';
export * from './chat';
export * from './workspaces';
export * from './dashboards';
export * from './agent-items';
export * from './operations';
export * from './server';
+3 -3
View File
@@ -48,10 +48,10 @@ export type ChatMessageInsert = typeof Schema.chatMessages.$inferInsert;
export type ChatGroupSelect = typeof Schema.chatGroups.$inferSelect;
export type ChatGroupInsert = typeof Schema.chatGroups.$inferInsert;
// ── Workspaces ──
// ── Dashboards ──
export type WorkspaceSelect = typeof Schema.workspaces.$inferSelect;
export type WorkspaceInsert = typeof Schema.workspaces.$inferInsert;
export type DashboardSelect = typeof Schema.dashboards.$inferSelect;
export type DashboardInsert = typeof Schema.dashboards.$inferInsert;
export type ScreenSelect = typeof Schema.screens.$inferSelect;
export type ScreenInsert = typeof Schema.screens.$inferInsert;