Kurikulum: tab Peta Visual dari Dashboard Pemetaan CPMK, memakai data versi kurikulum
Visualisasi dashboard-deploy/index.html (Sankey CPL→CPMK→MK, explorer bertingkat, matriks MK×CPL, kartu MK, deteksi celah) dipindah ke /kurikulum?tab=visual bergaya Vuexy. Data dibangun dari versi kurikulum yang dibuka (kurikulum.peta_visual), bukan lagi salinan statis. Explorer menampilkan Sub-CPMK sebagai akordeon per MK; sorotan CPL/CPMK/MK berlaku lintas panel dan tersimpan di hash URL. Tambahan: heatmap sebaran CPL per semester. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
99a1655f56
commit
2d7e0bd926
@@ -17,7 +17,8 @@ from . import kurikulum as K
|
||||
router = APIRouter()
|
||||
TAB = [("ringkasan", "Ringkasan", "layout-dashboard"), ("pl", "Profil Lulusan", "user-star"),
|
||||
("cpl", "CPL", "target-arrow"), ("bk", "Bahan Kajian", "books"), ("mk", "Struktur MK", "layout-columns"),
|
||||
("pemetaan", "Pemetaan", "grid-dots"), ("asesmen", "Asesmen", "clipboard-check")]
|
||||
("pemetaan", "Pemetaan", "grid-dots"),
|
||||
("visual", "Peta Visual", "chart-sankey"), ("asesmen", "Asesmen", "clipboard-check")]
|
||||
|
||||
|
||||
def _render(request, nama, ctx):
|
||||
@@ -79,6 +80,8 @@ def halaman(request: Request, tab: str = "ringkasan", versi: str = "", m: str =
|
||||
if tab == "pemetaan":
|
||||
ctx["mt"] = K.matriks(d, m)
|
||||
ctx["daftar_mt"] = K.MATRIKS
|
||||
if tab == "visual":
|
||||
ctx["peta"] = K.peta_visual(d)
|
||||
if tab == "asesmen":
|
||||
wajib = [x for x in K.mk_wajib(d)]
|
||||
wajib.sort(key=lambda x: (x.get("semester") or 99, x["kode"]))
|
||||
|
||||
Reference in New Issue
Block a user