From 652422c3eb7ee5cc3b58e4bc313d9a2ade7778d2 Mon Sep 17 00:00:00 2001 From: Novy San87 Date: Mon, 3 Aug 2026 17:38:48 +0700 Subject: [PATCH] Poles UI/UX modul Ambang SP premium MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Kartu threshold: strip gradient warna di atas, icon chip gradient, badge poin (≥ X poin), label Nonaktif, toggle & hapus di kanan, hover lift - Field: label uppercase tracking, suffix 'poin' di input Min Poin - Modal tambah: header gradient biru-indigo, color picker + 8 preset swatch interaktif (Alpine), preview warna terpilih - Info card jadi 'Tangga SP' dinamis mengikuti data threshold asli (bukan hardcoded), lengkap status nonaktif - Empty state & tombol simpan pakai sistem btn-primary - 2 smoke test baru render halaman (31 test total) --- resources/views/settings/thresholds.blade.php | 244 ++++++++++-------- tests/Feature/SettingsThresholdPageTest.php | 39 +++ 2 files changed, 179 insertions(+), 104 deletions(-) create mode 100644 tests/Feature/SettingsThresholdPageTest.php diff --git a/resources/views/settings/thresholds.blade.php b/resources/views/settings/thresholds.blade.php index c5a3013..a622a83 100644 --- a/resources/views/settings/thresholds.blade.php +++ b/resources/views/settings/thresholds.blade.php @@ -5,18 +5,18 @@ @section('content')
{{-- Header --}} -
+
-
@@ -29,86 +29,99 @@ @foreach($thresholds as $t) -
-
- {{-- Left color bar --}} -
+
+ {{-- Top gradient strip --}} +
-
- {{-- Header --}} -
-
-
- -
-
-
-

{{ $t->name }}

- -
-

Mulai dari {{ $t->min_points }} poin

-
+
+ {{-- Header --}} +
+
+
+
-
-
- @csrf @method('DELETE') - -
+
+
+

{{ $t->name }}

+ + ≥ {{ $t->min_points }} poin + + @if(! $t->is_active) + + Nonaktif + + @endif +
+

{{ $t->default_description ?: 'Tidak ada deskripsi' }}

- {{-- Fields --}} -
-
- - -
-
- +
+ {{-- Toggle aktif --}} + + + {{-- Hapus --}} +
+ @csrf @method('DELETE') + +
+
+
+ + {{-- Fields --}} +
+
+ + +
+
+ +
-
-
- - + class="input pr-8"> + poin
+
+ + +
@endforeach - @else {{-- Empty state --}} -
-
- +
+
+
-

Belum Ada Ambang SP

-

Tambahkan ambang Surat Peringatan untuk memantau level pelanggaran siswa

+

Belum Ada Ambang SP

+

Tambahkan ambang Surat Peringatan untuk memantau level pelanggaran siswa

@@ -116,8 +129,8 @@ @endif {{-- Create Modal --}} -