Darken the dark canvas, add customer colours, the ongoing status and the board model
- Dark theme page background is #5a5e60; text on it is lifted to zinc-200 / primary-100 and TallStackUI's dark labels, hints and checkbox labels are lightened so everything stays at 4.5:1. - Shared HexColor picks white or black text by the higher WCAG contrast; a native-dialog colour picker and a large work dialog component. - Customers get a header colour (customers.header_color), set on the customer page. - New job status Jatkuvat / Kausi (ongoing): open, never late, billed monthly like running jobs. - Kanban model: board columns and views, urgent threshold, per-user board preferences (density, column colours and sort), card positions, tasks of continuing jobs pinned to the board, MoveBoardCard and board queries with logged hours from TimeTracking. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -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
|
||||
{
|
||||
/**
|
||||
* The customer's colour (#rrggbb) for Kanban card headers and time sheet rows.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('customers', function (Blueprint $table) {
|
||||
$table->string('header_color', 7)->nullable()->after('is_internal');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('customers', function (Blueprint $table) {
|
||||
$table->dropColumn('header_color');
|
||||
});
|
||||
}
|
||||
};
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* The Kanban board's own card order inside a column, and tasks of
|
||||
* continuing jobs pinned to the board as cards of their own.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('customer_jobs', function (Blueprint $table) {
|
||||
$table->integer('board_position')->default(0)->after('priority');
|
||||
$table->index(['status', 'board_position'], 'customer_jobs_board_idx');
|
||||
});
|
||||
|
||||
Schema::table('tasks', function (Blueprint $table) {
|
||||
$table->boolean('is_pinned_to_board')->default(false)->after('status');
|
||||
$table->integer('board_position')->default(0)->after('is_pinned_to_board');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('tasks', function (Blueprint $table) {
|
||||
$table->dropColumn(['is_pinned_to_board', 'board_position']);
|
||||
});
|
||||
|
||||
Schema::table('customer_jobs', function (Blueprint $table) {
|
||||
$table->dropIndex('customer_jobs_board_idx');
|
||||
$table->dropColumn('board_position');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Each user's own Kanban board settings: density, urgent threshold and
|
||||
* per-column colours and order (JSON by board column).
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('job_board_preferences', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->unique()->constrained()->cascadeOnDelete();
|
||||
$table->string('density', 10)->default('normal');
|
||||
$table->string('urgent_threshold', 10)->default('urgent');
|
||||
$table->json('column_colors')->nullable();
|
||||
$table->json('column_sorts')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('job_board_preferences');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user