diff --git a/.changeset/task-shadowed-field-group.md b/.changeset/task-shadowed-field-group.md new file mode 100644 index 00000000..1c04a759 --- /dev/null +++ b/.changeset/task-shadowed-field-group.md @@ -0,0 +1,10 @@ +--- +'hotcrm': patch +--- + +Drop the shadowed `assignment` field group on `crm_task`. #577 added the group +with `owner` as its only member, but the synthesized detail page hoists `owner` +into the highlight strip, so the group rendered on forms and never on detail +pages (`field-group-shadowed`). `owner` moves to `basic`, next to +subject/status/priority. Clears the warning #577 introduced; validate goes from +5 warnings to 4. diff --git a/src/objects/task.object.ts b/src/objects/task.object.ts index 9ed9a670..da1ebc3f 100644 --- a/src/objects/task.object.ts +++ b/src/objects/task.object.ts @@ -23,7 +23,10 @@ export const Task = ObjectSchema.create({ fieldGroups: [ { key: 'basic', label: 'Task Information', icon: 'info' }, { key: 'scheduling', label: 'Scheduling', icon: 'calendar' }, - { key: 'assignment', label: 'Assignment', icon: 'user' }, + // No 'assignment' group: `owner` was its only member, and the synthesized + // detail page hoists `owner` into the highlight strip — so the group + // rendered on forms and never on detail pages (`field-group-shadowed`). + // It lives in `basic` alongside subject/status/priority instead. { key: 'related', label: 'Related Records', icon: 'link' }, { key: 'recurrence', label: 'Recurrence', icon: 'refresh-ccw', defaultExpanded: false }, { key: 'effort', label: 'Progress & Effort', icon: 'activity', defaultExpanded: false }, @@ -123,7 +126,7 @@ export const Task = ObjectSchema.create({ // Assignment owner: Field.lookup('sys_user', { - group: 'assignment', + group: 'basic', defaultValue: cel`os.user.id`, label: 'Assigned To', trackHistory: true,