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:
Power BI Dev
2026-10-17 20:59:37 +07:00
co-authored by Claude Opus 5.5
parent 99a1655f56
commit 2d7e0bd926
6 changed files with 545 additions and 2 deletions
+6 -1
View File
@@ -32,7 +32,7 @@ cek(db.sks_mk()["INF-211-203"]["sks"] == 3.0 and db.sks_mk()["INF-311-301"]["sem
cek(db.skor_maks_mk("MKWU-01") == {"CPMK011": 30.0, "CPMK012": 20.0, "CPMK013": 10.0, "CPMK021": 20.0, "CPMK022": 20.0}, "skor maks MKWU-01 (Tabel 10.2)")
# 2) semua tab tampil untuk tiap peran
TAB = ["ringkasan", "pl", "cpl", "bk", "mk", "pemetaan", "asesmen"]
TAB = ["ringkasan", "pl", "cpl", "bk", "mk", "pemetaan", "visual", "asesmen"]
for label, c in (("kaprodi", ck), ("dosen", cd)) + ((("mahasiswa", klien(mhs)),) if mhs else ()):
for t in TAB + (["periksa"] if label == "kaprodi" else []):
r = c.get(f"/kurikulum?tab={t}")
@@ -40,6 +40,11 @@ for label, c in (("kaprodi", ck), ("dosen", cd)) + ((("mahasiswa", klien(mhs)),)
for m in ("pl_cpl", "cpl_bk", "bk_mk", "cpl_mk"):
r = ck.get(f"/kurikulum?tab=pemetaan&m={m}")
cek(r.status_code == 200 and "matriks" in r.text, f"matriks {m}")
r = ck.get("/kurikulum?tab=visual")
import json as _json
pv = _json.loads(re.search(r'<script type="application/json" id="data-peta">(.*?)</script>', r.text, re.S).group(1))
cek(len(pv["cpl"]) == 10 and pv["mk"] and all(m["cpmk"] for m in pv["mk"]) and "peta_kurikulum.js" in r.text,
f"peta visual: {len(pv['cpl'])} CPL, {len(pv['cpmk'])} CPMK, {len(pv['mk'])} MK ber-CPMK")
r = ck.get("/kurikulum?tab=asesmen&mk=INF-211-203")
cek("Dasar Pemrograman" in r.text and "CPMK034" in r.text, "asesmen MK terpilih")
r = cd.get("/kurikulum?tab=cpl")