perbaikan bantuan mengikuti ketentuan OpenSID#1080
Merged
Conversation
|
🔄 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.
Pull Request: Fitur Input kk_level dan Publikasi pada Form Bantuan
Description
Form bantuan pada OpenKab belum memiliki inputan untuk kk_level (Hubungan Dalam KK) jika sasaran program adalah "Keluarga / KK", serta belum ada inputan untuk publikasi seperti yang ada di OpenSID. PR ini menambahkan kedua fitur tersebut pada halaman create, edit, dan index bantuan.
Depedency
https://github.com/OpenSID/API-Database-Gabungan/pull/440
Changes made:
kk_level(multi-select) pada form bantuan create dan edit, yang muncul hanya jika sasaran = "Keluarga / KK"publikasi(Ya/Tidak) pada form bantuan create dan editReason for change:
Impact of change:
✅ Pengguna dapat memilih multiple hubungan dalam KK (kk_level) untuk bantuan bersasaran keluarga
✅ Pengguna dapat mengatur publikasi bantuan (Ya/Tidak)
✅ Data kk_level dan publikasi tersimpan dan ditampilkan pada tabel index
✅ Tampilan Select2 multi-select lebih konsisten dengan tema Bootstrap
Related Issue
Closes #1079
Steps to Reproduce
Before fix (problem):
After fix (solution):
Testing on related features:
Checklist
Technical Details
Technical Explanation
create.blade.php:
x-data="{ sasaran: '' }"pada<form>untuk Alpine.js reactivityx-show="sasaran == '2'"untuk conditional displayplaceholderdanallowClearSHDKEnum::select2()edit.blade.php:
@includedi dalam attributefetch()API$('select[name=sasaran]').on('change', ...)kk_leveldari API menggunakanJSON.parse()karena format"[\"1\",\"2\"]"sasarankeString()agar sesuai dengan option valueindex.blade.php:
CSS Styling
Dependencies added
No new dependencies.
Testing
Manual Testing
Screenshots / Video
Before:
After:
Breaking Changes
None
Migration Guide
Not required
References
Additional notes:
kk_leveldari API dikembalikan dalam format JSON string"[\"1\",\"2\"]", bukan comma-separated. Parsing dilakukan denganJSON.parse().@include('layouts.components.header_bearer_api_gabungan')di dalam attributex-dataAlpine.js menyebabkan syntax error.Video
simplescreenrecorder-2026-06-25_13.03.00.mp4