From c907577d50ef4b5d00709ca8082b2f7bcd8ea2d8 Mon Sep 17 00:00:00 2001 From: habibie11 Date: Wed, 14 Jan 2026 10:38:58 +0700 Subject: [PATCH 1/3] tombol export excel seni budaya --- .../data_presisi/seni_budaya/index.blade.php | 31 +++++-------------- 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/resources/views/data_pokok/data_presisi/seni_budaya/index.blade.php b/resources/views/data_pokok/data_presisi/seni_budaya/index.blade.php index d3e8401a..be4037a5 100644 --- a/resources/views/data_pokok/data_presisi/seni_budaya/index.blade.php +++ b/resources/views/data_pokok/data_presisi/seni_budaya/index.blade.php @@ -28,27 +28,17 @@
-
- -
-
- + +
+
+ +
- +
@@ -80,7 +70,7 @@ url.searchParams.set("kode_kecamatan", "{{ session('kecamatan.kode_kecamatan') ?? '' }}"); url.searchParams.set("kode_desa", "{{ session('desa.id') ?? '' }}"); - var dtks = $('#table-kesehatan').DataTable({ + var dtks = $('#table-seni-budaya').DataTable({ processing: true, serverSide: true, autoWidth: false, @@ -225,13 +215,6 @@ function format(data) { data_grafik = []; grafikPie(); }); - - $('#cetak').on('click', function() { - let baseUrl = "{{ route('data-pokok.data-presisi-seni-budaya.cetak') }}"; - let params = dtks.ajax.params(); // Get DataTables params - let queryString = new URLSearchParams(params).toString(); // Convert params to query string - window.open(`${baseUrl}?${queryString}`, '_blank'); // Open the URL with appended query - }); }); @endsection From fd955d62eed0624bb4f2299264adb71537b58957 Mon Sep 17 00:00:00 2001 From: habibie11 Date: Wed, 14 Jan 2026 14:24:24 +0700 Subject: [PATCH 2/3] test --- ...DataPresisiSeniBudayaExcelDownloadTest.php | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tests/Feature/DataPresisiSeniBudayaExcelDownloadTest.php diff --git a/tests/Feature/DataPresisiSeniBudayaExcelDownloadTest.php b/tests/Feature/DataPresisiSeniBudayaExcelDownloadTest.php new file mode 100644 index 00000000..818b8117 --- /dev/null +++ b/tests/Feature/DataPresisiSeniBudayaExcelDownloadTest.php @@ -0,0 +1,58 @@ +get('/data-presisi/seni-budaya'); + + if ($response->status() !== 200) { + $this->markTestSkipped('Page /data-presisi/seni-budaya not accessible (status: ' . $response->status() . ')'); + return; + } + + $content = $response->getContent(); + + // Test komponen excel-download-button ada di halaman (setelah render menjadi button dengan data attributes) + $this->assertStringContainsString('data-download-url', $content); + $this->assertStringContainsString('table-seni-budaya', $content); + $this->assertStringContainsString('/api/v1/data-presisi/seni-budaya/rtm/download', $content); + } + + /** @test */ + public function test_seni_budaya_page_has_filter_tahun() + { + $response = $this->get('/data-presisi/seni-budaya'); + + if ($response->status() !== 200) { + $this->markTestSkipped('Page not accessible'); + return; + } + + $content = $response->getContent(); + + // Test filter-tahun ada di halaman + $this->assertStringContainsString('filter-tahun', $content); + } + + /** @test */ + public function test_seni_budaya_page_has_print_button() + { + $response = $this->get('/data-presisi/seni-budaya'); + + if ($response->status() !== 200) { + $this->markTestSkipped('Page not accessible'); + return; + } + + $content = $response->getContent(); + + // Test print button ada di halaman + $this->assertStringContainsString('data-presisi/seni-budaya/cetak', $content); + } +} \ No newline at end of file From 2703b59dc2c17630e1835a272340f94583c1e2c2 Mon Sep 17 00:00:00 2001 From: Abah Roland <59082428+vickyrolanda@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:35:11 +0700 Subject: [PATCH 3/3] [ci skip] memutahirkan catatan rilis --- catatan_rilis.md | 1 + 1 file changed, 1 insertion(+) diff --git a/catatan_rilis.md b/catatan_rilis.md index 867c4596..7d7b2a97 100644 --- a/catatan_rilis.md +++ b/catatan_rilis.md @@ -12,6 +12,7 @@ Di rilis ini, versi 2601.0.0 berisi penambahan dan perbaikan yang diminta penggu 8. [#907](https://github.com/OpenSID/OpenKab/issues/907) Penambahan fitur expor excel pada data presisi pendidikan. 9. [#906](https://github.com/OpenSID/OpenKab/issues/906) Penambahan expor excel pada data presisi pangan. 10. [#916](https://github.com/OpenSID/OpenKab/issues/916) Penambahan expor excel pada data presisi ketenagakerjaan. +11. [#908](https://github.com/OpenSID/OpenKab/issues/908) Penambahan expor excel pada data presisi seni budaya. #### Perbaikan BUG
Aksi