Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/adr-0057-d11-drop-bu-kind-team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@objectstack/platform-objects": minor
---

Drop the unused `team` value from `sys_business_unit.kind` (ADR-0057 addendum D11).

The `team` kind collided head-on with the first-class `sys_team` object: a
`kind='team'` business unit walks the hierarchical `BusinessUnitGraphService`,
while `sys_team` is the flat better-auth collaboration grouping served by
`TeamGraphService`. `kind` is a display-only categorisation hint (it does not
change graph semantics) and had **zero** usages anywhere in the repo, so this is a
safe narrowing with no data migration. New enum:
`company | division | department | office | cost_center`.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
company: "company",
division: "division",
department: "department",
team: "team",
office: "office",
cost_center: "cost_center"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
company: "Empresa",
division: "División",
department: "Departamento",
team: "Equipo",
office: "Oficina",
cost_center: "Centro de coste"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
company: "会社",
division: "事業部",
department: "部門",
team: "チーム",
office: "オフィス",
cost_center: "コストセンター"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
company: "公司",
division: "事业部",
department: "部门",
team: "团队",
office: "办公地点",
cost_center: "成本中心"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ObjectSchema, Field } from '@objectstack/spec/data';
* `sys_team`** (which is the flat better-auth collaboration grouping).
*
* A single tenant typically has one `kind='company'` root, then nested
* `division` / `department` / `team` / `office` nodes underneath. The
* `division` / `department` / `office` nodes underneath. The
* `kind` enum is purely a display/categorisation hint — the recursive
* structure works identically regardless of value.
*
Expand Down Expand Up @@ -94,7 +94,7 @@ export const SysBusinessUnit = ObjectSchema.create({
}),

kind: Field.select(
['company', 'division', 'department', 'team', 'office', 'cost_center'],
['company', 'division', 'department', 'office', 'cost_center'],
{
label: 'Kind',
required: true,
Expand Down
Loading