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
10 changes: 10 additions & 0 deletions .changeset/task-shadowed-field-group.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 5 additions & 2 deletions src/objects/task.object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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,
Expand Down
Loading