Remember for each user which Kanban cards have their task list open
The open cards are kept in the user's board preferences (expanded_cards, at most 500), saved without redrawing the board and restored on return. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+2
-1
@@ -38,7 +38,7 @@ class EloquentBoardRepository implements BoardRepository
|
||||
|
||||
return $model === null
|
||||
? BoardPreferences::defaults()
|
||||
: BoardPreferences::fromStored($model->density, $model->urgent_threshold, $model->column_colors ?? [], $model->column_sorts ?? []);
|
||||
: BoardPreferences::fromStored($model->density, $model->urgent_threshold, $model->column_colors ?? [], $model->column_sorts ?? [], $model->expanded_cards ?? []);
|
||||
}
|
||||
|
||||
public function savePreferences(int $userId, BoardPreferences $preferences): void
|
||||
@@ -48,6 +48,7 @@ class EloquentBoardRepository implements BoardRepository
|
||||
'urgent_threshold' => $preferences->urgentThreshold->value,
|
||||
'column_colors' => $preferences->colorValues(),
|
||||
'column_sorts' => $preferences->sortValues(),
|
||||
'expanded_cards' => $preferences->expandedCards,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user