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:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Cards whose task list the user keeps open on the board ("job-12", "task-34").
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('job_board_preferences', function (Blueprint $table) {
|
||||
$table->json('expanded_cards')->nullable()->after('column_sorts');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('job_board_preferences', function (Blueprint $table) {
|
||||
$table->dropColumn('expanded_cards');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user