diff --git a/app/main.wasp b/app/main.wasp index fba8738..41f8353 100644 --- a/app/main.wasp +++ b/app/main.wasp @@ -125,6 +125,7 @@ entity Chat {=psl team_name String? team_status String? chatType String? + shouldShowChat Boolean @default(false) proposedUserAction String[] @default([]) userRespondedWithNextAction Boolean @default(false) emailContent String? diff --git a/app/migrations/20240423082334_add_a_field_to_chat_model_to_decide_whether_to_show_the_daily_analysis_chat/migration.sql b/app/migrations/20240423082334_add_a_field_to_chat_model_to_decide_whether_to_show_the_daily_analysis_chat/migration.sql new file mode 100644 index 0000000..9e705bf --- /dev/null +++ b/app/migrations/20240423082334_add_a_field_to_chat_model_to_decide_whether_to_show_the_daily_analysis_chat/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Chat" ADD COLUMN "shouldShowChat" BOOLEAN NOT NULL DEFAULT false; diff --git a/app/migrations/20240423082642_set_the_should_show_chat_value_for_existing_daily_analysis_chats/migration.sql b/app/migrations/20240423082642_set_the_should_show_chat_value_for_existing_daily_analysis_chats/migration.sql new file mode 100644 index 0000000..17feba3 --- /dev/null +++ b/app/migrations/20240423082642_set_the_should_show_chat_value_for_existing_daily_analysis_chats/migration.sql @@ -0,0 +1,2 @@ +-- This migration sets the shouldShowChat value to true for all existing daily analysis chats. +UPDATE "Chat" SET "shouldShowChat" = TRUE WHERE "chatType" = 'daily_analysis'; diff --git a/app/src/client/App.tsx b/app/src/client/App.tsx index 8262653..de4d3d0 100644 --- a/app/src/client/App.tsx +++ b/app/src/client/App.tsx @@ -139,7 +139,15 @@ export default function App({ children }: { children: ReactNode }) {