Repository navigation
Dasbor Indikator - #1312
Open
pandigresik wants to merge 34 commits into
Open
Dasbor Indikator#1312pandigresik wants to merge 34 commits into
pandigresik wants to merge 34 commits into
Conversation
…-dashboard)\n\n- spec.md with US1–US5, FR-001–FR-017, SC-001–SC-007 (no reload, tanpa data!=nol, clustering, popup flags)\n- plan.md + research.md + data-model.md + quickstart.md + contracts/view-contract.md\n- requirements checklist all pass
…oard) with US1–US5 phases
…asial sectors); no sektor picker; kecamatan-only filter
… filter, hover/click popup
…matan filter, hover/click popup
…/click popup, kecamatan-only filter, no sektor picker
Contributor
|
🔄 AI PR Review sedang antri di server...
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description - #1300: KAB-05 Dasbor Indikator
Description
Dasbor DataSpasial menggabungkan ringkasan indikator, grafik, tabel, peta, dan card pendukung dalam satu halaman sesuai acuan issue #1300. Filter (kecamatan, desa, sektor, periode, indikator) tersimpan di URL, sinkron dengan peta, dan data dimuat via AJAX setelah filter diterapkan. Dropdown sektor dan indikator dimuat dari controller dengan caching untuk mengurangi beban API Database Gabungan.
Changes
Backend (Controller/Service/Routes)
app/Http/Controllers/DataSpasial/DasborDataSpasialController.php: Halaman dasbor tanpa inisiasiresultviax-dataspasial-status(data di-load AJAX), kirimsektorListdanindikatorBySektor(di-cache 30 menit) dari skema terbit, endpoint data/peta/ekspor disesuaikan, hapuspetaDatatidak terpakai.app/Services/DasborDataSpasialService.php: Mendukung agregasi per desa/kecamatan, filter indikator fleksibel, normalisasi nilai dengan kode kecamatan/desa, grafik mengikuti filter kecamatan/desa.app/Http/Controllers/DataSpasial/PetaGabunganController.php: Support filterkode_kecamatan/kode_desa, menambahkan layer kategori dari fitur, dukungan grouping layer.routes/web.php: Hapus routedasbor/peta-datatidak terpakai (peta pakaidataspasial/peta/data).app/Policies/CustomCspPreset.php: Penyesuaian CSP jika diperlukan.Frontend (Views/JS)
resources/views/dataspasial/dasbor/index.blade.php: Layout baru - peta + card "Wilayah Prioritas Intervensi" dan "Verifikasi" (kanan), di bawah ada card Grafik (header mengikuti indikator), "Kepatuhan Update & Kualitas Desa", "Bantuan Pengisian Data". Hapus pembungkusx-dataspasial-status.resources/views/dataspasial/dasbor/filter.blade.php: Dropdown sektor & indikator di-render dari controller, tombol Reset/Tampilkan di baris baru full-width.resources/views/dataspasial/dasbor/grafik.blade.php,tabel.blade.php,kartu.blade.php,ekspor.blade.php: Penyesuaian tampilan sesuai dasbor gabungan.public/js/dataspasial/dasbor.js: Load data hanya saat klik Tampilkan atau ada query string, filter indikator per sektor, grafik per kecamatan/desa, auto-load jika ada query string.public/js/dataspasial/peta-gabungan.js: PenggunaanL.control.layers(show/hide overlay), grouping layer DataSpasial/Kategori/Geospasial Lama, perbaikan rendering layer.resources/views/dataspasial/peta/partials/peta.blade.php: Penyesuaian partial peta.Tests
tests/Feature/DataSpasial/DasborDataSpasialControllerTest.php,tests/Feature/DataSpasial/Fixtures.php: Penyesuaian/penambahan fixture untuk dasbor.Reason
Menggabungkan dasbor indikator sesuai kebutuhan issue #1300 (ringkasan, grafik, tabel, peta) dalam satu halaman dengan filter yang tersinkron dan bisa dibagikan via URL.
Impact
Related Issue
Steps to Reproduce
Testing Checklist
Technical Details
dataspasial:dasbor:filter-meta:v1(30 menit)dataspasial/peta/datadengan querykode_kecamatan,kode_desa,sektor,periodeL.control.layersuntuk overlayScreenshots