Open
Conversation
…t unit tests workflow
Contributor
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.

Fitur PPID (Layanan Informasi Publik Desa)
Ringkasan
Menambahkan modul PPID (Layanan Informasi Publik Desa) yang lengkap untuk memenuhi kebutuhan transparansi informasi publik di desa sesuai dengan regulasi. Fitur ini mencakup:
Files yang Ditambahkan (11 files baru)
Database & Models
database/migrations/2026_01_29_120000_create_ppid_pengaturan_table.phpdatabase/migrations/2026_01_29_130000_create_ppid_pertanyaan_table.phpapp/Models/PpidPengaturan.phpapp/Models/PpidPertanyaan.phpController & Routes
app/Http/Controllers/PpidPengaturanController.phproutes/web.php(modifikasi)Views
resources/views/ppid/pengaturan/edit.blade.phpresources/views/ppid/pengaturan/_form.blade.phpresources/views/layouts/fragments/sidebar.blade.php(modifikasi)Testing
tests/Browser/PpidPengaturanTest.phpPerubahan Detail
1. Database Schema
Table:
ppid_pengaturanTable:
ppid_pertanyaan2. Routes
Location:
routes/web.php:434-4463. Menu Sidebar
Location:
resources/views/layouts/fragments/sidebar.blade.php:424-437Menambahkan menu PPID dengan icon
fa-info-circledi antara menu Informasi dan Publikasi.4. User Interface
Layout 2 Kolom Profesional
Kolom Kiri (col-md-4):
/img/no-image.pngKolom Kanan (col-md-8):
Box Pengaturan PPID:
Box Form Permohonan (Pertanyaan):
5. Controller Methods
PpidPengaturanController.php:
index()/ppid/pengaturanupdate()/ppid/pengaturan/{id}storePertanyaan()/ppid/pertanyaandestroyPertanyaan()/ppid/pertanyaan/{id}updateStatusPertanyaan()/ppid/{id}/status6. Model Features
PpidPertanyaan.php:
scopeInformasi()- Filter pertanyaan tipe Informasi (ppid_tipe = 1)scopeMendapatkan()- Filter pertanyaan tipe Mendapatkan (ppid_tipe = 2)scopeKeberatan()- Filter pertanyaan tipe Keberatan (ppid_tipe = 0)getTipeLabelAttribute()- Label tipe dalam bahasa IndonesiaisAktif()- Check status aktifCara Instalasi & Penggunaan
Instalasi
Penggunaan
Akses Halaman:
http://localhost/ppid/pengaturanUpdate Pengaturan:
Tambah Pertanyaan:
Kelola Pertanyaan:
Akses & Hak
Role yang Diizinkan
super-adminadmin-kecamatanadministrator-websitekontributor-artikelMiddleware
['role:administrator-website|super-admin|admin-kecamatan|kontributor-artikel']Fitur Utama
✅ Pengaturan PPID Dinamis
✅ Manajemen Pertanyaan Dinamis
✅ UI/UX Modern
✅ Professional Code Quality
Testing & Quality Assurance
Test Coverage: Test Cases
Pengaturan Tests (8)
✅ Display page correctly
✅ Auto-create default data
✅ Update pengaturan
✅ Field validation
✅ Banner upload
✅ File type validation
✅ Error handling
✅ Success messages
Pertanyaan Tests (9)
✅ Tab navigation
✅ Add pertanyaan (3 types)
✅ Delete pertanyaan
✅ Toggle status
✅ List ordering
✅ Empty states
✅ AJAX responses
✅ Modal interactions
ppid_untuk menghindari konflik/ppidyang unikDependencies
Tidak ada dependency baru yang ditambahkan. Menggunakan:
Screenshots
1. Halaman Pengaturan PPID
2. Modal Tambah Pertanyaan
Changelog
Penambahan
ppid_pengaturanuntuk konfigurasippid_pertanyaanuntuk manajemen pertanyaanPenambahan Router
routes/web.php- Tambah route group PPIDresources/views/layouts/fragments/sidebar.blade.php- Tambah menu PPIDCatatan Penting
Single Record Pattern: Pengaturan menggunakan pola single record (ID=1) dengan auto-create jika belum ada
Enum Values:
'1'= Aktif (yes)'0'= Non-Aktif (no)Tipe Pertanyaan:
'0'= Keberatan'1'= Informasi'2'= MendapatkanFile Upload: Banner disimpan di
storage/app/public/ppid/dengan nama hashedRole Access: Dapat disesuaikan di routes sesuai kebutuhan
Checklist untuk Reviewer