Support the full set of chat space types

The PRD calls for company, division, department, project, pod and ad-hoc
spaces, but only company, department, project and direct were accepted. Add
division, pod and ad_hoc to the command contract, the service whitelist and the
new-space dialog. The space_type column is free text, so no migration is
needed.
This commit is contained in:
ZacharyZhang-NY committed 2026-05-28 19:47:16 -04:00
1 parent 43e1626f77
commit b4056502ec
3 files changed
+14 -3

No files matched your search

@@ -18,7 +18,15 @@ import { ChatMessageMutationService } from "./chat-message-mutation-service";
import { recordChatMentions, resolveChatMentions, type ResolvedMention } from "./chat-mentions";
import { FileHandoffService, type FileHandoffAttachment } from "./file-handoff-service";
const SPACE_TYPES = new Set<CreateChatSpaceInput["spaceType"]>(["company", "department", "project", "direct"]);
const SPACE_TYPES = new Set<CreateChatSpaceInput["spaceType"]>([
"company",
"division",
"department",
"project",
"pod",
"ad_hoc",
"direct",
]);
const SPACE_VISIBILITIES = new Set<CreateChatSpaceInput["visibility"]>(["workspace", "restricted"]);
const RETENTION_POLICIES = new Set(["standard_365d", "restricted_365d"]);