diff --git a/components/visualization/performance-polres.tsx b/components/visualization/performance-polres.tsx
index 523bb92c..7cb69b64 100644
--- a/components/visualization/performance-polres.tsx
+++ b/components/visualization/performance-polres.tsx
@@ -22,19 +22,17 @@ export default function PerformancePolresViz() {
const baseUrl = "https://db-mediahub.polri.go.id/";
const url = "https://db-mediahub.polri.go.id/trusted/";
- const view1 =
- levelName == "MABES POLRI"
- ? isInternational[0]
- ? "views/2023_04_MediaHUB-Viz_INTL_Rev202/db-konten-top10?"
- : "views/2023_09_db-ranking-polda_rev100/db-ranking-13-polda?"
- : `/views/2023_09_db-ranking-polres-by-polda_rev100/db-ranking-by-polda?polda-selected=${poldaState}&`;
-
+ const view1 = `views/2025_10_MediaHUB-Viz-POLDA_Rev203/db-ranking-polda-satker?polda-selected=${poldaState}&`;
+ const view2 = `views/2023_09_db-ranking-polres-by-polda_rev100/db-ranking-by-polda?polda-selected=${poldaState}&`;
const param = ":embed=yes&:toolbar=yes&:iframeSizedToWindow=true";
useEffect(() => {
async function initState() {
const response1 = await generateTicket();
setTicket1(response1?.data?.data);
+
+ const response2 = await generateTicket();
+ setTicket2(response2?.data?.data);
}
initState();
@@ -48,19 +46,10 @@ export default function PerformancePolresViz() {
// Render
if (!hasMounted) return null;
- const handleInternational = (index: number, val: boolean) => {
- const updatedIsInternational = [...isInternational];
-
- updatedIsInternational[index] = val;
- setIsInternational(updatedIsInternational);
- };
-
return (
);
}
diff --git a/components/visualization/performance-satker.tsx b/components/visualization/performance-satker.tsx
index e53116cd..8e222306 100644
--- a/components/visualization/performance-satker.tsx
+++ b/components/visualization/performance-satker.tsx
@@ -10,24 +10,16 @@ export default function PerformanceSatkerViz() {
const [hasMounted, setHasMounted] = useState(false);
const t = useTranslations("AnalyticsDashboard");
const levelName = getCookiesDecrypt("ulnae");
- const poldaState = Cookies.get("state");
+ const state = Cookies.get("state");
const provState = Cookies.get("state-prov");
const [ticket1, setTicket1] = useState("");
- const [ticket2, setTicket2] = useState("");
- const [ticket3, setTicket3] = useState("");
- const [ticket4, setTicket4] = useState("");
const [isInternational, setIsInternational] = useState([false, false, false]);
const baseUrl = "https://db-mediahub.polri.go.id/";
const url = "https://db-mediahub.polri.go.id/trusted/";
- const view1 =
- levelName == "MABES POLRI"
- ? isInternational[0]
- ? "views/2023_04_MediaHUB-Viz_INTL_Rev202/db-konten-top10?"
- : "views/2023_04_MediaHUB-Viz-POLDA_Rev201/db-konten-top10?"
- : `/views/2023_09_db-ranking-polres-by-polda_rev100/db-ranking-by-polda?polda-selected=${provState}&`;
+ const view1 = `views/2025_10_MediaHUB-Viz-POLDA_Rev203/db-ranking-polda-satker?polda-selected=${state}&unit-work-level-1=SATKER`;
const param = ":embed=yes&:toolbar=yes&:iframeSizedToWindow=true";
@@ -59,7 +51,7 @@ export default function PerformanceSatkerViz() {
- {isInternational[0] ? "SATKER PERFORMANCE" : "POLFORMANCE SATKER"}
+ {isInternational[0] ? "SATKER PERFORMANCE" : "PERFORMANCE SATKER"}
diff --git a/lib/menus.ts b/lib/menus.ts
index 25b24f01..ed74c6f6 100644
--- a/lib/menus.ts
+++ b/lib/menus.ts
@@ -2649,8 +2649,7 @@ export function getMenuList(pathname: string, t: any): Group[] {
(Number(roleId) == 3 || Number(roleId) == 14 || Number(roleId) == 15) &&
Number(levelNumber) == 3
) {
- if (Number(userParentLevelId) != 761)
- {
+ if (Number(userParentLevelId) != 761) {
menusSelected = [
{
groupLabel: t("apps"),
@@ -4009,20 +4008,20 @@ export function getMenuList(pathname: string, t: any): Group[] {
},
],
},
- {
- groupLabel: "",
- id: "agenda-setting",
- menus: [
- {
- id: "agenda-setting",
- href: "/contributor/agenda-setting",
- label: t("agenda-setting"),
- active: pathname.includes("/agenda-setting"),
- icon: "iconoir:journal-page",
- submenus: [],
- },
- ],
- },
+ // {
+ // groupLabel: "",
+ // id: "agenda-setting",
+ // menus: [
+ // {
+ // id: "agenda-setting",
+ // href: "/contributor/agenda-setting",
+ // label: t("agenda-setting"),
+ // active: pathname.includes("/agenda-setting"),
+ // icon: "iconoir:journal-page",
+ // submenus: [],
+ // },
+ // ],
+ // },
{
groupLabel: "",
id: "performance-polres",
@@ -4050,7 +4049,7 @@ export function getMenuList(pathname: string, t: any): Group[] {
submenus: [
{
href: "/admin/media-tracking/tracking-berita",
- label: "Tracking Beritra",
+ label: "Tracking Berita",
active: pathname === "/admin/media-tracking/tracking-berita",
icon: "heroicons:arrow-trending-up",
children: [],
@@ -4119,41 +4118,41 @@ export function getMenuList(pathname: string, t: any): Group[] {
icon: "heroicons:arrow-trending-up",
children: [],
},
- {
- href: "/admin/settings/banner",
- label: "Banner",
- active: pathname === "/admin/settings/banner",
- icon: "heroicons:arrow-trending-up",
- children: [],
- },
- {
- href: "/admin/settings/feedback",
- label: "Feedback",
- active: pathname === "/admin/settings/feedback",
- icon: "heroicons:arrow-trending-up",
- children: [],
- },
- {
- href: "/admin/settings/faq",
- label: "FAQ",
- active: pathname === "/admin/settings/faq",
- icon: "heroicons:arrow-trending-up",
- children: [],
- },
- {
- href: "https://nat-mediahub.polri.go.id/",
- label: "Mediahub 2022",
- active: pathname === "/admin/settings/mediahub-2022",
- icon: "heroicons:arrow-trending-up",
- children: [],
- },
- {
- href: "/admin/settings/privacy",
- label: t("privacy"),
- active: pathname === "/admin/settings/privacy",
- icon: "heroicons:arrow-trending-up",
- children: [],
- },
+ // {
+ // href: "/admin/settings/banner",
+ // label: "Banner",
+ // active: pathname === "/admin/settings/banner",
+ // icon: "heroicons:arrow-trending-up",
+ // children: [],
+ // },
+ // {
+ // href: "/admin/settings/feedback",
+ // label: "Feedback",
+ // active: pathname === "/admin/settings/feedback",
+ // icon: "heroicons:arrow-trending-up",
+ // children: [],
+ // },
+ // {
+ // href: "/admin/settings/faq",
+ // label: "FAQ",
+ // active: pathname === "/admin/settings/faq",
+ // icon: "heroicons:arrow-trending-up",
+ // children: [],
+ // },
+ // {
+ // href: "https://nat-mediahub.polri.go.id/",
+ // label: "Mediahub 2022",
+ // active: pathname === "/admin/settings/mediahub-2022",
+ // icon: "heroicons:arrow-trending-up",
+ // children: [],
+ // },
+ // {
+ // href: "/admin/settings/privacy",
+ // label: t("privacy"),
+ // active: pathname === "/admin/settings/privacy",
+ // icon: "heroicons:arrow-trending-up",
+ // children: [],
+ // },
],
},
],
@@ -4259,7 +4258,7 @@ export function getMenuList(pathname: string, t: any): Group[] {
submenus: [
{
href: "/admin/media-tracking/tracking-berita",
- label: "Tracking Beritra",
+ label: "Tracking Berita",
active: pathname === "/admin/media-tracking/tracking-berita",
icon: "heroicons:arrow-trending-up",
children: [],
diff --git a/messages/en.json b/messages/en.json
index 5926772d..d5536714 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -327,7 +327,7 @@
"sellers": "Sellers",
"typography": "Typography",
"colors": "Colors",
- "performance-polda": "Performance Polda",
+ "performance-polda": "Performance Polda/Satker",
"performance-polres": "Performance Polres",
"performance-satker": "Performance Satker",
"analysis": "Analysis",
diff --git a/messages/in.json b/messages/in.json
index 9caf08c1..ec7a6481 100644
--- a/messages/in.json
+++ b/messages/in.json
@@ -328,7 +328,7 @@
"sellers": "Sellers",
"typography": "Typography",
"colors": "Colors",
- "performance-polda": "Performa Polda",
+ "performance-polda": "Performa Polda/Satker",
"performance-polres": "Performa Polres",
"performance-satker": "Performa Satker",
"analysis": "Analisa",