{"id":3803,"date":"2026-09-28T19:22:40","date_gmt":"2026-09-28T19:22:40","guid":{"rendered":"https:\/\/springboard.partners\/?page_id=3803"},"modified":"2026-10-16T16:45:25","modified_gmt":"2026-10-16T16:45:25","slug":"etc-dashboard","status":"publish","type":"page","link":"https:\/\/springboard.partners\/zh\/etc-dashboard\/","title":{"rendered":"ETC Dashboard"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"3803\" class=\"elementor elementor-3803\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b46d6c0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b46d6c0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c520ba0\" data-id=\"c520ba0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-412e0fc elementor-widget elementor-widget-html\" data-id=\"412e0fc\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n<meta charset=\"UTF-8\" \/>\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>\r\n<title>Ethical Tuna Collaboration \u2014 Dashboard Concept (v2, ETC Feedback Applied)<\/title>\r\n<script src=\"https:\/\/cdn.tailwindcss.com\"><\/script>\r\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/chart.js@4\"><\/script>\r\n<\/head>\r\n<body class=\"bg-slate-50 min-h-screen\">\r\n\r\n  <header class=\"bg-white border-b border-slate-200\">\r\n\r\n\r\n    <div class=\"max-w-6xl mx-auto px-6 py-5\">\r\n\r\n<table><tr><td style=\"font-size: 5px; border: 0px\">&nbsp;<\/td><\/tr><tr>\r\n<td width=700px style=\"font-size: 55px; font-weight: 800; color: #2C2A68; border: 0px\">Dashboard Mock-Up<\/td>\r\n<td width=50px style=\"border: 0px\">&nbsp;<\/td><td width=\"200px\" align=\"center\" style=\"border: 0px\"><a href=\"https:\/\/ethicaltuna.org\/overview\" style=\"background-color: #d90303; padding: 10px 15px; border: 5px #d90303; border-radius: 10px; font-size: 15px; color: #ffffff; font-weight: 700\">Return to Overview<\/a><\/td><\/tr><tr><td style=\"font-size: 5px; border: 0px\">&nbsp;<\/td><\/tr><\/table>\r\n\r\n\r\n    <\/div>\r\n\r\n\r\n  <\/header>\r\n\r\n  <main class=\"max-w-6xl mx-auto px-6 py-6\">\r\n\r\n    <nav class=\"flex flex-wrap gap-2 mb-4\">\r\n      <button data-role=\"buyer\" class=\"role-tab px-4 py-2 rounded-md text-sm font-medium bg-slate-800 text-white\">Buyer<\/button>\r\n      <button data-role=\"supplier\" class=\"role-tab px-4 py-2 rounded-md text-sm font-medium text-slate-600 bg-white border border-slate-200\">Supplier \/ Trader<\/button>\r\n      <button data-role=\"owner\" class=\"role-tab px-4 py-2 rounded-md text-sm font-medium text-slate-600 bg-white border border-slate-200\">Vessel Owner<\/button>\r\n    <\/nav>\r\n\r\n    <div id=\"entitySelectWrap\" class=\"mb-4\">\r\n      <label class=\"text-xs text-slate-400 uppercase tracking-wide font-semibold mr-2\">Viewing as:<\/label>\r\n      <select id=\"entitySelect\" class=\"border border-slate-300 rounded-md px-3 py-1.5 text-sm bg-white\"><\/select>\r\n    <\/div>\r\n\r\n    <div id=\"content\"><\/div>\r\n\r\n  <\/main>\r\n\r\n  <footer class=\"max-w-6xl mx-auto px-6 pb-10 text-xs text-slate-400\">\r\n    Sources: \"ETC Dashboard Brainstorm [internal].docx\" and \"Refreshed short overview - ETC - 9.18.26.docx\".\r\n    Built as a discussion aid \u2014 not connected to any real data source, portal, or API.\r\n  <\/footer>\r\n\r\n    <!--\r\n    NOTE: data.js and app.js are inlined directly below (instead of via\r\n    <script src=\"data.js\">\/<script src=\"app.js\">) for this distribution\r\n    copy. Corporate email security gateways frequently strip or quarantine\r\n    .js file attachments -- even inside a zip -- as a malware precaution,\r\n    which silently breaks the dashboard for external recipients (page\r\n    loads, but every tab is empty). Inlining removes that failure mode\r\n    entirely. The source-of-truth data.js\/app.js files live one level up\r\n    in the main project folder for ongoing editing -- this file is\r\n    generated by build_dist.py, not a fork to hand-edit.\r\n  -->\r\n  <script>\r\n\/*\r\n * ETC Dashboard Mockup v2 \u2014 mock data\r\n * -----------------------------------------------------------------\r\n * Fork of ..\/etc-dashboard-mockup\/data.js (original stays untouched).\r\n * Vessel-level facts are IDENTICAL to v1 -- nothing about vessel\r\n * status was changed. The only structural edits here: PROCESSORS and\r\n * OPEN_QUESTIONS lists removed (v2 drops the Processor tab and the\r\n * open-questions box), and the per-vessel `brand` field + BRANDS\r\n * constant removed (the Supplier tab's pivot is now End Buyer \/\r\n * Vessel Owner instead of End Buyer \/ Brand -- see app.js and the\r\n * BRAND FIELD note below).\r\n *\r\n * BUYER VIEW FEEDBACK (this round): per \"Add same sorts of examples\r\n * for recruitment fee rather than graying out,\" vessels 2-5 and 7-11\r\n * now have an illustrative `epp.status` string instead of a blank\r\n * value (clearly marked \"(example)\"). Vessels 1 and 6 keep their\r\n * literal \"N\/A\" from the source table\/fleet convention -- that's\r\n * read as \"not applicable to this vessel,\" a distinct, real-feeling\r\n * status from \"no data yet,\" so it wasn't replaced with invented\r\n * text. These epp.status values feed the Buyer (and Supplier) tables'\r\n * Recruitment (EPP) column; they do NOT affect the Vessel Owner tab's\r\n * `indicators.recruitment`, which stays `null` everywhere per the\r\n * Vessel Owner feedback's own honesty-about-gaps treatment.\r\n * -----------------------------------------------------------------\r\n *\/\r\n\r\n\/*\r\n * ETC Dashboard Mockup \u2014 mock data\r\n * -----------------------------------------------------------------\r\n * SOURCE OF TRUTH FOR VESSEL DATA:\r\n *   \"ETC Dashboard Brainstorm [internal].docx\" sample table.\r\n *   All vessel field values below (wifi\/grievance\/wage\/EPP status,\r\n *   escalation text) are copied verbatim from that table. Nothing\r\n *   about vessel status was invented.\r\n *\r\n * BUYER NAMES: anonymized to \"End Buyer 1\/2\/3\" so this mockup can be\r\n *   shared without naming real companies. The source brainstorm table\r\n *   does tag vessels to real buyer companies, but that mapping is\r\n *   deliberately not reproduced here.\r\n *\r\n * PLACEHOLDER \/ ILLUSTRATIVE DATA (clearly marked \"(Example)\"):\r\n *   Supplier names, Vessel Owner names, and the Processor entity are\r\n *   NOT in either source doc. There is no real supplier or\r\n *   vessel-owner name anywhere in the source material, so these are\r\n *   generic stand-ins purely to demonstrate the dashboard concept.\r\n *   Swap them for real entities once you have real data.\r\n *\r\n * BRAND FIELD (v1 only, removed here): v1 had a made-up business-\r\n *   segment label under each supplier to demo a \"view by brand\"\r\n *   pivot on the Supplier\/Trader tab. Per ETC team feedback (\"use of\r\n *   brand in particular [is] hard to follow\"), v2 drops it entirely\r\n *   -- the Supplier tab's pivot is now End Buyer \/ Vessel Owner\r\n *   instead of End Buyer \/ Brand. See app.js.\r\n *\r\n * VESSELS 6-11 \/ \"Vessel Owner F (Example)\": added to demo a\r\n *   multi-vessel fleet owner (a vessel owner overseeing several\r\n *   vessels at once). UNLIKE vessels 1-5, the status data for these 6\r\n *   vessels is INVENTED for demo purposes, not copied from the\r\n *   brainstorm doc \u2014 the doc's sample table only had 5 rows. Flagged\r\n *   here and in the Vessel Owner banner so this is never mistaken for\r\n *   real reported data.\r\n * -----------------------------------------------------------------\r\n *\/\r\n\r\nconst VESSELS = [\r\n  {\r\n    id: 1,\r\n    buyers: [\"End Buyer 1\"],\r\n    supplier: \"Supplier A (Example)\",\r\n    owner: \"Vessel Owner A (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Meets ETC Guidelines\", note: \"(see documents)\" },\r\n    grievance: { status: \"In Place\", guideline: \"Meets ETC Guidelines\" },\r\n    wage: { system: \"IKAN in Place\", compliance: \"94% meeting contract requirements\" },\r\n    epp: { status: \"N\/A\" },\r\n    indicators: {\r\n      wage: [true, true, true, true, true],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, true, true],\r\n      grievance: [true, true],\r\n    },\r\n    escalations: [\r\n      { type: \"Grievance Access\", dateEscalated: \"2026-07-20\", dateResolved: null, doc: null },\r\n      { type: \"Grievance Access\", dateEscalated: \"2026-08-05\", dateResolved: null, doc: null },\r\n      { type: \"Grievance Access\", dateEscalated: \"2026-08-22\", dateResolved: null, doc: null },\r\n    ],\r\n  },\r\n  {\r\n    id: 2,\r\n    buyers: [\"End Buyer 1\"],\r\n    supplier: \"Supplier A (Example)\",\r\n    owner: \"Vessel Owner B (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Meets ETC Guidelines\", note: \"(see documents)\" },\r\n    grievance: { status: \"Not in Place\", guideline: \"Does not meet ETC Guidelines\" },\r\n    wage: { system: \"IKAN in Place\", compliance: \"43% meeting contract requirements\" },\r\n    epp: { status: \"No EPP policy on file (example)\" },\r\n    indicators: {\r\n      wage: [true, true, true, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, true, true],\r\n      grievance: [false, false],\r\n    },\r\n    escalations: [],\r\n  },\r\n  {\r\n    id: 3,\r\n    buyers: [\"End Buyer 1\", \"End Buyer 3\", \"End Buyer 2\"],\r\n    supplier: \"Supplier B (Example)\",\r\n    owner: \"Vessel Owner C (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Partially Meets ETC Guidelines\", note: \"\" },\r\n    grievance: { status: \"In Place\", guideline: \"Meets ETC Guidelines\" },\r\n    wage: { system: \"Alternative system in place\", compliance: \"89% meeting contract requirements\" },\r\n    epp: { status: \"EPP policy drafted, not yet verified (example)\" },\r\n    indicators: {\r\n      wage: [false, true, true, true, true],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, false, false],\r\n      grievance: [true, true],\r\n    },\r\n    escalations: [\r\n      { type: \"Grievance Access\", dateEscalated: \"2026-06-01\", dateResolved: null, doc: null, note: \"1 of 60+ open (sample)\" },\r\n      { type: \"Grievance Access\", dateEscalated: \"2026-06-14\", dateResolved: null, doc: null, note: \"1 of 60+ open (sample)\" },\r\n    ],\r\n  },\r\n  {\r\n    id: 4,\r\n    buyers: [\"End Buyer 2\"],\r\n    supplier: \"Supplier C (Example)\",\r\n    owner: \"Vessel Owner D (Example)\",\r\n    wifi: { status: \"Not in Place\", guideline: \"Does not meet ETC Guidelines\", note: \"\" },\r\n    grievance: { status: \"In Place\", guideline: \"Partially Meets ETC Guidelines\" },\r\n    wage: { system: \"No wage verification system in place\", compliance: \"Unverified\" },\r\n    epp: { status: \"No EPP policy on file (example)\" },\r\n    indicators: {\r\n      wage: [false, false, false, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [false, false, false, false],\r\n      grievance: [true, false],\r\n    },\r\n    escalations: [],\r\n  },\r\n  {\r\n    id: 5,\r\n    buyers: [\"End Buyer 1\"],\r\n    supplier: \"Supplier D (Example)\",\r\n    owner: \"Vessel Owner E (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Meets ETC Guidelines\", note: \"(see documents)\" },\r\n    grievance: { status: \"Not in Place\", guideline: \"Does not meet ETC Guidelines\" },\r\n    wage: { system: \"IKAN in Place\", compliance: \"No contract available\" },\r\n    epp: { status: \"Itemized fee documentation missing (example)\" },\r\n    indicators: {\r\n      wage: [true, false, false, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, true, true],\r\n      grievance: [false, false],\r\n    },\r\n    escalations: [{ type: \"Wage Payment\", dateEscalated: \"2026-06-01\", dateResolved: null, doc: null, note: \"No contract on file\" }],\r\n  },\r\n  \/\/ ---- Vessels 6-11: illustrative fleet for \"Vessel Owner F (Example)\" ----\r\n  \/\/ Invented for demo purposes only \u2014 see file header comment. Deliberately\r\n  \/\/ varied so the multi-vessel owner view has a mix of clean, warning, and\r\n  \/\/ red-flagged vessels to show off.\r\n  {\r\n    id: 6,\r\n    buyers: [\"End Buyer 1\"],\r\n    supplier: \"Supplier A (Example)\",\r\n    owner: \"Vessel Owner F (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Meets ETC Guidelines\", note: \"(see documents)\" },\r\n    grievance: { status: \"In Place\", guideline: \"Meets ETC Guidelines\" },\r\n    wage: { system: \"IKAN in Place\", compliance: \"91% meeting contract requirements\" },\r\n    epp: { status: \"N\/A\" },\r\n    indicators: {\r\n      wage: [true, true, true, true, true],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, true, true],\r\n      grievance: [true, true],\r\n    },\r\n    escalations: [],\r\n  },\r\n  {\r\n    id: 7,\r\n    buyers: [\"End Buyer 2\"],\r\n    supplier: \"Supplier B (Example)\",\r\n    owner: \"Vessel Owner F (Example)\",\r\n    wifi: { status: \"Not in Place\", guideline: \"Does not meet ETC Guidelines\", note: \"\" },\r\n    grievance: { status: \"Not in Place\", guideline: \"Does not meet ETC Guidelines\" },\r\n    wage: { system: \"No wage verification system in place\", compliance: \"Unverified\" },\r\n    epp: { status: \"No EPP policy on file (example)\" },\r\n    indicators: {\r\n      wage: [false, false, false, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [false, false, false, false],\r\n      grievance: [false, false],\r\n    },\r\n    escalations: [\r\n      { type: \"Grievance Access\", dateEscalated: \"2026-07-01\", dateResolved: null, doc: null, note: \"2 of 5+ open (sample)\" },\r\n      { type: \"Grievance Access\", dateEscalated: \"2026-07-18\", dateResolved: null, doc: null, note: \"2 of 5+ open (sample)\" },\r\n    ],\r\n  },\r\n  {\r\n    id: 8,\r\n    buyers: [\"End Buyer 3\"],\r\n    supplier: \"Supplier C (Example)\",\r\n    owner: \"Vessel Owner F (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Meets ETC Guidelines\", note: \"(see documents)\" },\r\n    grievance: { status: \"In Place\", guideline: \"Partially Meets ETC Guidelines\" },\r\n    wage: { system: \"Alternative system in place\", compliance: \"76% meeting contract requirements\" },\r\n    epp: { status: \"EPP policy in place, fees itemized (example)\" },\r\n    indicators: {\r\n      wage: [false, true, true, true, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, true, true],\r\n      grievance: [true, false],\r\n    },\r\n    escalations: [],\r\n  },\r\n  {\r\n    id: 9,\r\n    buyers: [\"End Buyer 1\", \"End Buyer 2\"],\r\n    supplier: \"Supplier D (Example)\",\r\n    owner: \"Vessel Owner F (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Partially Meets ETC Guidelines\", note: \"\" },\r\n    grievance: { status: \"In Place\", guideline: \"Meets ETC Guidelines\" },\r\n    wage: { system: \"IKAN in Place\", compliance: \"No contract available\" },\r\n    epp: { status: \"EPP policy drafted, not yet verified (example)\" },\r\n    indicators: {\r\n      wage: [true, false, false, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, false, false],\r\n      grievance: [true, true],\r\n    },\r\n    escalations: [{ type: \"Wage Payment\", dateEscalated: \"2026-09-01\", dateResolved: null, doc: null, note: \"Contract renewal overdue\" }],\r\n  },\r\n  {\r\n    id: 10,\r\n    buyers: [\"End Buyer 2\"],\r\n    supplier: \"Supplier A (Example)\",\r\n    owner: \"Vessel Owner F (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Meets ETC Guidelines\", note: \"(see documents)\" },\r\n    grievance: { status: \"Not in Place\", guideline: \"Does not meet ETC Guidelines\" },\r\n    wage: { system: \"IKAN in Place\", compliance: \"55% meeting contract requirements\" },\r\n    epp: { status: \"Itemized fee documentation missing (example)\" },\r\n    indicators: {\r\n      wage: [true, true, true, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, true, true],\r\n      grievance: [false, false],\r\n    },\r\n    escalations: [{ type: \"Grievance Access\", dateEscalated: \"2026-08-23\", dateResolved: null, doc: null }],\r\n  },\r\n  {\r\n    id: 11,\r\n    buyers: [\"End Buyer 3\"],\r\n    supplier: \"Supplier B (Example)\",\r\n    owner: \"Vessel Owner F (Example)\",\r\n    wifi: { status: \"Not in Place\", guideline: \"Does not meet ETC Guidelines\", note: \"\" },\r\n    grievance: { status: \"In Place\", guideline: \"Meets ETC Guidelines\" },\r\n    wage: { system: \"Alternative system in place\", compliance: \"82% meeting contract requirements\" },\r\n    epp: { status: \"EPP policy in place, fees itemized (example)\" },\r\n    indicators: {\r\n      wage: [false, true, true, true, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [false, false, false, false],\r\n      grievance: [true, true],\r\n    },\r\n    escalations: [{ type: \"Retaliation\", dateEscalated: \"2026-07-15\", dateResolved: null, doc: null, note: \"Labor dispute under review\" }],\r\n  },\r\n  \/\/ ---- Vessels 12-13: additional illustrative \"Improving\" examples ----\r\n  \/\/ Invented for demo purposes only (same treatment as vessels 6-11).\r\n  \/\/ Added per Oct 2026 feedback: the Supplier\/Trader and Vessel Owner\r\n  \/\/ tabs default to \"Supplier A (Example)\" \/ \"Vessel Owner A (Example)\"\r\n  \/\/ on load (see ROLE_CONFIG in app.js), and until now every vessel\r\n  \/\/ under those two defaults was either fully compliant or fully\r\n  \/\/ non-compliant -- so the \"Improving\" badge never showed up without\r\n  \/\/ digging through the dropdown first. These two vessels give each\r\n  \/\/ tab's default view (and Supplier C \/ Vessel Owner D, for extra\r\n  \/\/ variety) a mixed example, so all three status options are visible\r\n  \/\/ the same way they already were on the Buyer tab's default view.\r\n  {\r\n    id: 12,\r\n    buyers: [\"End Buyer 1\"],\r\n    supplier: \"Supplier A (Example)\",\r\n    owner: \"Vessel Owner A (Example)\",\r\n    wifi: { status: \"Partially in place\", guideline: \"Partially Meets ETC Guidelines\", note: \"(example)\" },\r\n    grievance: { status: \"In Place\", guideline: \"Meets ETC Guidelines\" },\r\n    wage: { system: \"IKAN in Place\", compliance: \"68% meeting contract requirements (example)\" },\r\n    epp: { status: \"EPP policy drafted, not yet verified (example)\" },\r\n    indicators: {\r\n      wage: [true, true, true, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, false, false],\r\n      grievance: [true, true],\r\n    },\r\n    escalations: [],\r\n  },\r\n  {\r\n    id: 13,\r\n    buyers: [\"End Buyer 3\"],\r\n    supplier: \"Supplier C (Example)\",\r\n    owner: \"Vessel Owner D (Example)\",\r\n    wifi: { status: \"In Place\", guideline: \"Meets ETC Guidelines\", note: \"(see documents)\" },\r\n    grievance: { status: \"In Place\", guideline: \"Partially Meets ETC Guidelines\" },\r\n    wage: { system: \"Alternative system in place\", compliance: \"71% meeting contract requirements (example)\" },\r\n    epp: { status: \"EPP policy drafted, not yet verified (example)\" },\r\n    indicators: {\r\n      wage: [true, true, true, false, false],\r\n      recruitment: [null, null, null, null],\r\n      wifi: [true, true, true, true],\r\n      grievance: [true, false],\r\n    },\r\n    escalations: [],\r\n  },\r\n];\r\n\r\n\/\/ Buyer companies, anonymized \u2014 see comment block above.\r\nconst BUYERS = [\"End Buyer 1\", \"End Buyer 2\", \"End Buyer 3\"];\r\n\r\n\/\/ Illustrative-only entities derived from the vessel list above.\r\nconst SUPPLIERS = [\"Supplier A (Example)\", \"Supplier B (Example)\", \"Supplier C (Example)\", \"Supplier D (Example)\"];\r\nconst VESSEL_OWNERS = [...new Set(VESSELS.map((v) => v.owner))];\r\n\r\n\/\/ NOTE (v2): PROCESSORS removed -- the Processor tab is dropped in\r\n\/\/ this version per ETC team feedback to streamline to Buyer \/\r\n\/\/ Supplier \/ Vessel Owner only.\r\n\r\n\/\/ Indicator labels + per-vessel y\/n values, copied verbatim from the\r\n\/\/ ETC team's feedback-doc indicator table (Vessel Owner view\r\n\/\/ section). Order matches the boolean arrays stored on each vessel's\r\n\/\/ `indicators` object above. Replaces the old GUIDELINES constant\r\n\/\/ (generic bullet lists), since the feedback doc's own table is more\r\n\/\/ specific and was explicitly requested for this view.\r\n\/\/\r\n\/\/ NOTE: the `indicators` values on each vessel above are DERIVED\r\n\/\/ deterministically from that vessel's existing aggregate status\r\n\/\/ fields (wifi\/wage\/grievance status + compliance %), since the\r\n\/\/ source docs don't have indicator-level granularity to draw real\r\n\/\/ values from. Recruitment (EPP) indicators are `null` (no data) for\r\n\/\/ every vessel -- no vessel in the source sample has real EPP data,\r\n\/\/ consistent with the \"not yet tracked\" treatment used elsewhere.\r\nconst INDICATOR_LABELS = {\r\n  wage: [\r\n    \"IKAN in use\",\r\n    \"All workers have written contracts in their own language\",\r\n    \"All workers paid in full per contract\",\r\n    \"All workers paid on time per contract\",\r\n    \"All workers paid legal minimum wage\",\r\n  ],\r\n  recruitment: [\"EPP policy\", \"Legally registered recruiter\", \"Itemized list of recruitment fees\", \"Vessel owner pays all recruitment fees to recruiter\"],\r\n  wifi: [\"Hardware installed\", \"Wi-Fi available to crew\", \"Wi-Fi access agreement between vessel owner and crew\", \"Mechanism to validate Wi-Fi use by fishers\"],\r\n  grievance: [\"Grievance mechanism accessible\", \"Designated contact at vessel level and fleet level for case resolution\"],\r\n  \/\/ ^ Trimmed from 5 to 2 items per request: dropped \"available in all\r\n  \/\/ crew languages,\" \"allows anonymous reporting,\" and \"Union or\r\n  \/\/ worker representative identified for case resolution.\" Each\r\n  \/\/ vessel's indicators.grievance array above was trimmed to match\r\n  \/\/ (kept positions 1 and 5 of the original 5). Vessel 4's values were\r\n  \/\/ adjusted from [true, true] to [true, false] to preserve its\r\n  \/\/ \"Improving\" demo status after the trim (it would otherwise have\r\n  \/\/ flipped to \"Meets Requirements\").\r\n};\r\n\r\n\/\/ Display order + labels for the 4 ETC priority categories on the\r\n\/\/ Vessel Owner tab, per feedback: \"Adjust headers and order: Wage\r\n\/\/ Payment, Recruitment Fees (EPP), Wi-Fi Access, Grievance Access.\"\r\nconst CATEGORY_ORDER = [\r\n  { key: \"wage\", label: \"Wage Payment\" },\r\n  { key: \"recruitment\", label: \"Recruitment Fees (EPP)\" },\r\n  { key: \"wifi\", label: \"Wi-Fi Access\" },\r\n  { key: \"grievance\", label: \"Grievance Access\" },\r\n];\r\n\r\n\/\/ NOTE (v2): OPEN_QUESTIONS removed -- the \"open questions\" box is\r\n\/\/ dropped from the page per ETC team feedback (\"Remove ... white\r\n\/\/ open question box at the bottom\").\r\n\r\n\r\n<\/script>\r\n  <script>\r\n\/*\r\n * ETC Dashboard Mockup v2 \u2014 rendering logic\r\n * Forked from ..\/etc-dashboard-mockup\/app.js. Changes in this file:\r\n *   - Dropped renderProcessor\/renderAggregate (Processor + Public\r\n *     Aggregate Report tabs removed per ETC team \"streamline to 3\r\n *     views\" feedback).\r\n *   - Added `simpleTopicBadge()` + a shared column descriptor\r\n *     (SIMPLE_COLUMNS) so Buyer, Supplier, and Vessel Owner tables\r\n *     all use the same column order (Wage, Recruitment\/EPP, Wi-Fi,\r\n *     Grievance) and the same plain Meets\/Does Not Meet\/No data\r\n *     badge in their \"Vessel detail\" expansions -- no tab shows more\r\n *     detailed percentage\/system-name badges than another.\r\n *   - Supplier view's pivot MECHANISM is UNCHANGED (still a simple\r\n *     two-mode toggle with nested rollup, not the ETC team's fuller\r\n *     direct\/indirect-relationship branching proposal). The dimension\r\n *     swapped per their feedback: \"View by Brand\" became \"View by\r\n *     Vessel Owner\" (brand language was called out as \"hard to\r\n *     follow\"); \"View by End Buyer\" is unchanged.\r\n *   - Vessel Owner view got the FULL feedback treatment: real y\/n\r\n *     indicator checklists per category (INDICATOR_LABELS, from the\r\n *     feedback doc's indicator table), category status badges (Does\r\n *     Not Meet Requirements \/ Improving \/ Meets Requirements, per the\r\n *     feedback doc's Year-1 definitions, relabeled to match the\r\n *     Buyer\/Supplier badge language), and structured escalation\r\n *     records (type, date escalated, date resolved, resolution doc)\r\n *     instead of a single free-text escalation string.\r\n *   - Removed the Buyer view's \"Also sourced by other ETC buyers...\"\r\n *     per-vessel note (and the now-unused `vesselOnlyNote()` helper).\r\n *     Per Oct 2026 feedback, some buyers may not be comfortable with\r\n *     even an anonymous hint that a vessel is shared with other ETC\r\n *     buyers, so that line no longer appears in the \"Vessel detail\"\r\n *     expansion for MVP.\r\n *\/\r\n\r\n\/*\r\n * ETC Dashboard Mockup \u2014 rendering logic\r\n * All status \u2192 color\/label classification lives in one place (below)\r\n * so every persona view stays visually consistent. No business logic\r\n * here invents new facts \u2014 it only formats what's in data.js.\r\n *\/\r\n\r\n\/\/ ---------- badge classification helpers (single source of truth) ----------\r\n\r\nfunction badge(text, tone) {\r\n  const tones = {\r\n    good: \"bg-emerald-50 text-emerald-700 border-emerald-300\",\r\n    warn: \"bg-amber-50 text-amber-700 border-amber-300\",\r\n    notmet: \"bg-orange-50 text-orange-700 border-orange-300\",\r\n    escalation: \"bg-orange-100 text-red-700 border-red-400\",\r\n    neutral: \"bg-slate-100 text-slate-500 border-slate-300\",\r\n  };\r\n  return `<span class=\"inline-block px-2 py-0.5 rounded-full text-xs font-medium border ${tones[tone]}\">${text}<\/span>`;\r\n}\r\n\r\n\/\/ Escalation badges, per feedback: \"Recommend simplify to just\r\n\/\/ Escalations for the mock-up ... I would also just do red color for\r\n\/\/ this so we don't have to explain what yellow vs. red means here.\"\r\n\/\/ Also: \"For escalations - it could be useful to see which of ETC's\r\n\/\/ four priorities, plus retaliation, the grievance pertains to?\" --\r\n\/\/ so the per-vessel badge now names the open escalation type(s)\r\n\/\/ instead of a free-text description, reusing the same structured\r\n\/\/ `escalations` records built for the Vessel Owner tab.\r\nfunction openEscalationTypes(vessel) {\r\n  const open = (vessel.escalations || []).filter((r) => !r.dateResolved);\r\n  if (!open.length) return null;\r\n  return [...new Set(open.map((r) => r.type))].join(\", \");\r\n}\r\n\r\nfunction vesselEscalationBadge(vessel) {\r\n  const types = openEscalationTypes(vessel);\r\n  if (!types) return badge(\"None\", \"good\");\r\n  return badge(`Open \u2014 ${types}`, \"escalation\");\r\n}\r\n\r\n\/\/ Simple, consistent badge for Supplier\/Vessel Owner tables: just\r\n\/\/ Meets Requirements \/ Does Not Meet Requirements \/ No data, reusing\r\n\/\/ the same topic classification Buyer's rollup already uses. Per\r\n\/\/ feedback, this replaces the more detailed percentage\/system-name\r\n\/\/ badges on those two tabs (Buyer's own detail badges are untouched).\r\nfunction simpleTopicBadge(topic) {\r\n  if (topic === \"compliant\") return badge(\"Meets Requirements\", \"good\");\r\n  if (topic === \"improving\") return badge(\"Improving\", \"warn\");\r\n  if (topic === \"noncompliant\") return badge(\"Does Not Meet Requirements\", \"notmet\");\r\n  return badge(\"No data\", \"neutral\");\r\n}\r\n\r\n\/\/ ---------- small UI builders ----------\r\n\r\nfunction statCard(label, value, sub) {\r\n  return `\r\n    <div class=\"bg-white rounded-lg border border-slate-200 p-4 shadow-sm\">\r\n      <p class=\"text-xs uppercase tracking-wide text-slate-400 font-semibold\">${label}<\/p>\r\n      <p class=\"text-2xl font-bold text-slate-800 mt-1\">${value}<\/p>\r\n      ${sub ? `<p class=\"text-xs text-slate-400 mt-1\">${sub}<\/p>` : \"\"}\r\n    <\/div>`;\r\n}\r\n\r\nfunction mockUploadButton(vesselId) {\r\n  return `<button onclick=\"mockUpload(${vesselId})\" class=\"text-xs px-2 py-1 rounded border border-slate-300 text-slate-600 hover:bg-slate-50\">Upload documentation<\/button>`;\r\n}\r\n\r\nfunction mockUpload(vesselId) {\r\n  alert(\r\n    `[Mockup only] This would open a document upload flow for Vessel ${vesselId}, ` +\r\n      `matching the \"Dashboard needs: ability to upload documentation support\" requirement from the brainstorm doc. Not wired to real storage yet.`\r\n  );\r\n}\r\n\r\n\/\/ Per feedback: \"Remove 'illustrative' and 'example' under suppliers.\"\r\n\/\/ Buyer view strips the \"(Example)\"\/\"(illustrative)\" placeholder tags\r\n\/\/ from supplier labels -- this mockup's suppliers are still\r\n\/\/ placeholders, that's just disclosed once in the page banner instead\r\n\/\/ of repeated on every row.\r\nfunction stripExampleTag(name) {\r\n  return name.replace(\/\\s*\\((?:Example|illustrative)\\)\\s*$\/i, \"\");\r\n}\r\n\r\n\/\/ ---------- Topic-level classification (compliant \/ improving \/ non-compliant \/ no data) ----------\r\n\/\/ Used to roll vessel-level facts up to a supplier level for the Buyer view.\r\n\/\/ Buyers asked to see \"how many vessels are in compliance vs. not\" per topic,\r\n\/\/ not a vessel-by-vessel table, so this is the shared classification logic\r\n\/\/ that both the supplier rollup and its mini progress bars are built from.\r\n\/\/\r\n\/\/ Three meaningful states (plus \"no data\") give a middle-ground\r\n\/\/ \"Improving\" bucket between full compliance and non-compliance, per\r\n\/\/ feedback request. For Wi-Fi\/Grievance, \"Improving\" means the guideline\r\n\/\/ field literally says \"Partially Meets ETC Guidelines\" (vs. flatly\r\n\/\/ meets\/does not meet). For Wage, it's the same 50-79% band wageBadge\r\n\/\/ already used for its \"warn\" tone. For Recruitment (EPP), it's a\r\n\/\/ policy that's drafted but not yet verified.\r\n\r\nfunction guidelineTopic(guideline) {\r\n  const g = guideline || \"\";\r\n  if (\/does not meet\/i.test(g)) return \"noncompliant\";\r\n  if (\/partially meets\/i.test(g)) return \"improving\";\r\n  if (\/meets etc guidelines\/i.test(g)) return \"compliant\";\r\n  return \"nodata\";\r\n}\r\n\r\nfunction wifiTopic(v) {\r\n  return guidelineTopic(v.wifi.guideline);\r\n}\r\n\r\nfunction grievanceTopic(v) {\r\n  return guidelineTopic(v.grievance.guideline);\r\n}\r\n\r\nfunction wageTopic(v) {\r\n  const c = v.wage.compliance || \"\";\r\n  const m = c.match(\/(\\d+)%\/);\r\n  if (m) {\r\n    const n = parseInt(m[1], 10);\r\n    return n >= 80 ? \"compliant\" : n >= 50 ? \"improving\" : \"noncompliant\";\r\n  }\r\n  if (\/unverified|no wage verification|no contract available\/i.test(c)) return \"noncompliant\";\r\n  return \"nodata\";\r\n}\r\n\r\nfunction eppStatusTopic(eppField) {\r\n  const s = (eppField && eppField.status ? eppField.status : \"\").trim();\r\n  if (!s || \/^n\\\/a$\/i.test(s)) return \"nodata\";\r\n  if (\/drafted|not yet verified\/i.test(s)) return \"improving\";\r\n  if (\/missing|no .*policy on file\/i.test(s)) return \"noncompliant\";\r\n  if (\/in place|itemized|implemented|complete|compliant\/i.test(s)) return \"compliant\";\r\n  return \"nodata\";\r\n}\r\n\r\nfunction eppTopic(v) {\r\n  return eppStatusTopic(v.epp);\r\n}\r\n\r\nfunction computeTopicCounts(vessels, classifier) {\r\n  const counts = { compliant: 0, improving: 0, noncompliant: 0, nodata: 0, total: vessels.length };\r\n  vessels.forEach((v) => counts[classifier(v)]++);\r\n  return counts;\r\n}\r\n\r\nfunction topicCell(counts) {\r\n  const total = counts.total || 1;\r\n  const pct = (n) => (n \/ total) * 100;\r\n  const bar = `\r\n    <div class=\"w-24 h-2 rounded-full overflow-hidden flex bg-slate-100\">\r\n      ${counts.compliant ? `<div style=\"width:${pct(counts.compliant)}%\" class=\"bg-emerald-500\"><\/div>` : \"\"}\r\n      ${counts.improving ? `<div style=\"width:${pct(counts.improving)}%\" class=\"bg-amber-400\"><\/div>` : \"\"}\r\n      ${counts.noncompliant ? `<div style=\"width:${pct(counts.noncompliant)}%\" class=\"bg-orange-500\"><\/div>` : \"\"}\r\n      ${counts.nodata ? `<div style=\"width:${pct(counts.nodata)}%\" class=\"bg-slate-300\"><\/div>` : \"\"}\r\n    <\/div>`;\r\n  const parts = [];\r\n  if (counts.compliant) parts.push(`<span class=\"text-emerald-700\">${counts.compliant} Meets Requirements<\/span>`);\r\n  if (counts.improving) parts.push(`<span class=\"text-amber-700\">${counts.improving} Improving<\/span>`);\r\n  if (counts.noncompliant) parts.push(`<span class=\"text-orange-700\">${counts.noncompliant} Does Not Meet Requirements<\/span>`);\r\n  if (counts.nodata) parts.push(`<span class=\"text-slate-400\">${counts.nodata} no data<\/span>`);\r\n  return `<div>${bar}<p class=\"text-xs mt-1\">${parts.join(\" &middot; \")}<\/p><\/div>`;\r\n}\r\n\r\nfunction escalationCell(vessels) {\r\n  const flagged = vessels.filter((v) => openEscalationTypes(v));\r\n  if (!flagged.length) return badge(\"No open escalations\", \"good\");\r\n  return badge(`${flagged.length} of ${vessels.length} vessels`, \"escalation\");\r\n}\r\n\r\nfunction toggleSupplierDetail(rowId) {\r\n  const el = document.getElementById(rowId);\r\n  if (el) el.classList.toggle(\"hidden\");\r\n}\r\n\r\n\/\/ ---------- Column configs for rollup tables ----------\r\n\/\/ Shared by Buyer, Supplier, and Vessel Owner rollup tables, per\r\n\/\/ feedback: \"Adjust headers and order: Wage Payment, Recruitment Fees\r\n\/\/ (EPP), Wi-Fi Access, Grievance Access.\" All three tabs now use the\r\n\/\/ same plain Meets\/Does Not Meet\/No data badges in their \"Vessel\r\n\/\/ detail\" expansion -- no tab gets more detailed percentage\/\r\n\/\/ system-name badges than another, so they stay visually consistent.\r\nconst SIMPLE_COLUMNS = [\r\n  { key: \"wage\", header: \"Wage Payment\", topic: wageTopic, detailBadge: (v) => simpleTopicBadge(wageTopic(v)) },\r\n  { key: \"recruitment\", header: \"Recruitment Fees (EPP)\", topic: eppTopic, detailBadge: (v) => simpleTopicBadge(eppTopic(v)) },\r\n  { key: \"wifi\", header: \"Wi-Fi Access\", topic: wifiTopic, detailBadge: (v) => simpleTopicBadge(wifiTopic(v)) },\r\n  { key: \"grievance\", header: \"Grievance Access\", topic: grievanceTopic, detailBadge: (v) => simpleTopicBadge(grievanceTopic(v)) },\r\n];\r\n\r\n\/\/ ---------- Shared rollup-table builder ----------\r\n\/\/ Renders a table whose ROWS are an aggregated group (e.g. supplier,\r\n\/\/ vessel owner, or end buyer) with per-topic compliance bars + an\r\n\/\/ optional \"Vessel detail\" toggle that reveals the individual vessels\r\n\/\/ behind that row. Used by both the Buyer view (rolled up by\r\n\/\/ supplier) and the Supplier\/Trader view (rolled up by vessel owner\r\n\/\/ or end buyer, depending on the pivot) so the two stay visually\r\n\/\/ consistent and the aggregation logic isn't duplicated per view.\r\n\r\nfunction rollupRow(group, idx, opts) {\r\n  const rowId = `${opts.idPrefix}-${idx}`.replace(\/\\s+\/g, \"-\");\r\n  const columns = opts.columns;\r\n  const extraHeader = opts.detailExtraColumn ? `<th class=\"text-left py-1 px-2\">${opts.detailExtraColumn.header}<\/th>` : \"\";\r\n  const detailRows = group.vessels\r\n    .map(\r\n      (v) => `\r\n        <tr class=\"border-b border-slate-100\">\r\n          <td class=\"py-1.5 px-2 text-slate-400\">${opts.detailFirstCell(v)}<\/td>\r\n          ${columns.map((c) => `<td class=\"py-1.5 px-2\">${c.detailBadge(v)}<\/td>`).join(\"\")}\r\n          <td class=\"py-1.5 px-2\">${vesselEscalationBadge(v)}<\/td>\r\n          ${opts.detailExtraColumn ? `<td class=\"py-1.5 px-2\">${opts.detailExtraColumn.cell(v)}<\/td>` : \"\"}\r\n        <\/tr>`\r\n    )\r\n    .join(\"\");\r\n\r\n    const detailColspan = columns.length + 4 - (opts.hideRowHeader ? 1 : 0);\r\n\r\n  return `\r\n      <tr class=\"border-b border-slate-100 align-top\">\r\n        ${opts.hideRowHeader ? \"\" : `<td class=\"py-3 px-3 font-medium text-slate-700\">${group.label}<\/td>`}\r\n        <td class=\"py-3 px-3 text-slate-500\">${group.vessels.length}<\/td>\r\n        ${columns.map((c) => `<td class=\"py-3 px-3\">${topicCell(computeTopicCounts(group.vessels, c.topic))}<\/td>`).join(\"\")}\r\n        <td class=\"py-3 px-3\">${escalationCell(group.vessels)}<\/td>\r\n        <td class=\"py-3 px-3\"><button onclick=\"toggleSupplierDetail('${rowId}')\" class=\"text-xs text-blue-600 underline underline-offset-2\">Vessel detail<\/button><\/td>\r\n      <\/tr>\r\n      <tr id=\"${rowId}\" class=\"hidden bg-slate-50\">\r\n        <td colspan=\"${detailColspan}\" class=\"p-3\">\r\n          <table class=\"w-full text-xs\">\r\n            <thead class=\"text-slate-400 uppercase\">\r\n              <tr>\r\n                <th class=\"text-left py-1 px-2\">${opts.detailFirstColHeader || \"\"}<\/th>\r\n                ${columns.map((c) => `<th class=\"text-left py-1 px-2\">${c.header}<\/th>`).join(\"\")}\r\n                <th class=\"text-left py-1 px-2\">Escalations<\/th>\r\n                ${extraHeader}\r\n              <\/tr>\r\n            <\/thead>\r\n            <tbody>${detailRows}<\/tbody>\r\n          <\/table>\r\n        <\/td>\r\n      <\/tr>`;\r\n}\r\n\r\nfunction buildRollupTable(groups, opts) {\r\n  const rows = groups.map((g, idx) => rollupRow(g, idx, opts)).join(\"\");\r\n  const colspan = opts.columns.length + 4 - (opts.hideRowHeader ? 1 : 0);\r\n  return `\r\n    <div class=\"bg-white rounded-lg border border-slate-200 shadow-sm overflow-x-auto\">\r\n      <table class=\"w-full text-sm text-left\">\r\n        <thead class=\"bg-slate-50 text-slate-500 text-xs uppercase\">\r\n          <tr>\r\n            ${opts.hideRowHeader ? \"\" : `<th class=\"py-2 px-3\">${opts.rowHeader}<\/th>`}\r\n            <th class=\"py-2 px-3\">Vessels<\/th>\r\n            ${opts.columns.map((c) => `<th class=\"py-2 px-3\">${c.header}<\/th>`).join(\"\")}\r\n            <th class=\"py-2 px-3\">Escalations<\/th>\r\n            <th class=\"py-2 px-3\"><\/th>\r\n          <\/tr>\r\n        <\/thead>\r\n        <tbody>${rows || `<tr><td class=\"py-4 px-3 text-slate-400\" colspan=\"${colspan}\">${opts.emptyMessage}<\/td><\/tr>`}<\/tbody>\r\n      <\/table>\r\n    <\/div>`;\r\n}\r\n\r\n\/\/ ---------- Buyer view ----------\r\n\/\/ Default is an aggregate, supplier-level rollup (counts of vessels\r\n\/\/ meeting requirements vs. not per ETC topic) \u2014 buyers asked NOT to\r\n\/\/ see a raw vessel-by-vessel table by default. Vessel-level detail is\r\n\/\/ still available per supplier via an optional \"Vessel detail\" toggle.\r\n\/\/\r\n\/\/ Per ETC team Buyer View feedback applied here:\r\n\/\/   - Explanatory banner reworded to their suggested language.\r\n\/\/   - First stat card renamed \"Participating Suppliers\"; the \"Wi-Fi\r\n\/\/     meeting ETC guidelines\" card is removed (\"Consider removing\").\r\n\/\/   - \"Vessels with Open Escalations\" card now carries their proposed\r\n\/\/     plain-language definition.\r\n\/\/   - Column order\/labels now match Supplier\/Owner (Wage, Recruitment\r\n\/\/     (EPP), Wi-Fi, Grievance), and \"Vessel detail\" now uses the same\r\n\/\/     simplified Meets\/Does Not Meet\/No data badges as those tabs\r\n\/\/     (SIMPLE_COLUMNS) instead of the old detailed percentage\/\r\n\/\/     system-name badges.\r\n\/\/   - \"(illustrative)\"\/\"(Example)\" tags removed from supplier labels.\r\n\/\/   - Vessel detail rows now show a \"Vessel {id}\" identifier (there\r\n\/\/     wasn't one before) and the open escalation's type(s).\r\n\/\/\r\n\/\/ NOT changed (feedback doc marks these \"Discuss\", i.e. open\r\n\/\/ questions rather than firm asks): the rollup's progress-category\r\n\/\/ language (\"Meets\/Does Not Meet Requirements\") and whether to show\r\n\/\/ 2 vs. 3 categories. The doc offers \"show all three categories\" as\r\n\/\/ one valid option, which is what this rollup already does --- left\r\n\/\/ as-is rather than guessing at an unresolved design discussion.\r\n\r\nfunction renderBuyer(buyerName) {\r\n  const vessels = VESSELS.filter((v) => v.buyers.includes(buyerName));\r\n  const openFlags = vessels.filter((v) => openEscalationTypes(v)).length;\r\n  const supplierNames = [...new Set(vessels.map((v) => v.supplier))];\r\n\r\n  const cards = [\r\n    statCard(\"Participating Suppliers\", supplierNames.length),\r\n    statCard(\"Participating vessels\", vessels.length),\r\n    statCard(\r\n      \"Vessels with Open Escalations\",\r\n      openFlags,\r\n      \"A local partner has escalated an unresolved grievance to ETC for resolution.\"\r\n    ),\r\n  ];\r\n\r\n  const groups = supplierNames.map((supplier) => ({\r\n    label: stripExampleTag(supplier),\r\n    vessels: vessels.filter((v) => v.supplier === supplier),\r\n  }));\r\n\r\n  const table = buildRollupTable(groups, {\r\n    rowHeader: \"Supplier\",\r\n    idPrefix: `supplier-detail-${buyerName}`,\r\n    detailFirstColHeader: \"Vessel\",\r\n    detailFirstCell: (v) => `Vessel ${v.id}`,\r\n    emptyMessage: \"No suppliers in this buyer's supply chain in the sample data.\",\r\n    columns: SIMPLE_COLUMNS,\r\n  });\r\n\r\n  return `\r\n\r\n\r\n    <div class=\"mb-4 rounded-lg bg-blue-50 border border-blue-200 text-blue-800 text-sm px-4 py-3\">\r\n      End buyers see information on suppliers and vessels in their own supply chain only. Vessels outside of\r\n      <strong>${buyerName}<\/strong>'s own supply chain, or other buyers' data, are never shown. Information is\r\n      organized by supplier. Click \"Vessel detail\" to see more information about each supplier's vessels.\r\n    <\/div>\r\n    <div class=\"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6\">${cards.join(\"\")}<\/div>\r\n    ${table}`;\r\n}\r\n\r\n\/\/ ---------- Supplier \/ Trader view ----------\r\n\/\/ A supplier\/trader can operate vessels across multiple end buyers,\r\n\/\/ so this tab offers a pivot: view the rollup organized by End Buyer\r\n\/\/ (vessel owners roll up underneath, same pattern as the Buyer tab\r\n\/\/ rolling vessels up by supplier), or organized by Vessel Owner (end\r\n\/\/ buyers roll up underneath instead). Either way, vessel-level detail\r\n\/\/ is one click away via \"Vessel detail\" -- suppliers manage these\r\n\/\/ vessels directly, so nothing is hidden from them.\r\n\/\/\r\n\/\/ Per ETC team feedback (\"the organization of this information and\r\n\/\/ the language -- use of brand in particular -- hard to follow\" \/\r\n\/\/ suppliers with direct vessel relationships \"would just want to see\r\n\/\/ vessel by vessel, potentially grouped by vessel owner\"): the old\r\n\/\/ \"View by Brand\" pivot is replaced with \"View by Vessel Owner\" here.\r\n\/\/ NOT adopted: their fuller proposal to branch the UI by whether a\r\n\/\/ supplier has direct vs. indirect vessel relationships -- that isn't\r\n\/\/ modeled in this mockup's data, and this keeps the existing simple\r\n\/\/ two-mode pivot mechanism rather than a conditional one.\r\n\r\nlet supplierPivotMode = \"buyer\"; \/\/ \"buyer\" | \"owner\" | \"supplier\"\r\n\r\nfunction setSupplierPivot(mode) {\r\n  supplierPivotMode = mode;\r\n  const select = document.getElementById(\"entitySelect\");\r\n  document.getElementById(\"content\").innerHTML = renderSupplier(select.value);\r\n}\r\n\r\nfunction pivotToggle(mode) {\r\n  const isActive = supplierPivotMode === mode;\r\n  const cls = isActive ? \"bg-slate-800 text-white\" : \"bg-white text-slate-600 border border-slate-200\";\r\n  const labels = { buyer: \"View by End Buyer\", owner: \"View by Vessel Owner\", supplier: \"View by Supplier\" };\r\n  return `<button onclick=\"setSupplierPivot('${mode}')\" class=\"px-3 py-1.5 rounded-md text-xs font-medium ${cls}\">${labels[mode]}<\/button>`;\r\n}\r\n\r\nfunction supplierUploadCell(v) {\r\n  return mockUploadButton(v.id);\r\n}\r\n\r\n\/\/ \"View by Supplier\" is a flat, single-group table -- same shape as\r\n\/\/ the Buyer view's rollup (one row per group, \"Vessel detail\" drill-\r\n\/\/ down), just with a single row since this tab is already scoped to\r\n\/\/ one supplier's own vessels. No outer\/inner nesting, unlike the\r\n\/\/ other two pivot modes.\r\nfunction renderSupplierFlat(supplierName, vessels) {\r\n  const table = buildRollupTable(\r\n    [{ label: stripExampleTag(supplierName), vessels }],\r\n    {\r\n      rowHeader: \"Supplier\",\r\n      idPrefix: `supplier-flat-${supplierName}`,\r\n      detailFirstColHeader: \"Vessel\",\r\n      detailFirstCell: (v) => `Vessel ${v.id}`,\r\n      detailExtraColumn: { header: \"Actions\", cell: supplierUploadCell },\r\n      emptyMessage: \"No vessels for this supplier.\",\r\n      columns: SIMPLE_COLUMNS,\r\n    }\r\n  );\r\n  return `<div class=\"mb-6\">${table}<\/div>`;\r\n}\r\n\r\nfunction renderSupplier(supplierName) {\r\n  const vessels = VESSELS.filter((v) => v.supplier === supplierName);\r\n\r\n  if (supplierPivotMode === \"supplier\") {\r\n    return `\r\n    <div class=\"mb-4 rounded-lg bg-purple-50 border border-purple-200 text-purple-800 text-sm px-4 py-3\">\r\n      Suppliers see information on upstream suppliers and vessels in their own supply chain only. Information\r\n      from vessels or companies outside of their own supply chain is never shown. Suppliers can view ETC\r\n      information organized by their customers (End Buyer view), upstream suppliers (Supplier view) or vessel\r\n      owners. Currently showing a flat list of <strong>${supplierName}<\/strong>'s own vessels, with no End Buyer\r\n      or Vessel Owner grouping.\r\n    <\/div>\r\n    <div class=\"flex gap-2 mb-4\">${pivotToggle(\"buyer\")}${pivotToggle(\"supplier\")}${pivotToggle(\"owner\")}<\/div>\r\n    ${renderSupplierFlat(supplierName, vessels)}`;\r\n  }\r\n\r\n  \/\/ Outer sections depend on the pivot: End Buyer sections roll up by\r\n  \/\/ Vessel Owner underneath, Vessel Owner sections roll up by End\r\n  \/\/ Buyer underneath.\r\n  const outerKeys = supplierPivotMode === \"buyer\" ? BUYERS : VESSEL_OWNERS;\r\n  const getOuterVessels = (key) => (supplierPivotMode === \"buyer\" ? vessels.filter((v) => v.buyers.includes(key)) : vessels.filter((v) => v.owner === key));\r\n\r\n  const sections = outerKeys\r\n    .map((key) => ({ key, vessels: getOuterVessels(key) }))\r\n    .filter((s) => s.vessels.length > 0)\r\n    .map((s) => {\r\n      const innerKeys = supplierPivotMode === \"buyer\" ? [...new Set(s.vessels.map((v) => v.owner))] : BUYERS.filter((b) => s.vessels.some((v) => v.buyers.includes(b)));\r\n      const innerGroups = innerKeys.map((innerKey) => ({\r\n        label: innerKey,\r\n        vessels: supplierPivotMode === \"buyer\" ? s.vessels.filter((v) => v.owner === innerKey) : s.vessels.filter((v) => v.buyers.includes(innerKey)),\r\n      }));\r\n\r\n      \/\/ In the \"owner\" pivot (View by Vessel Owner), the outer section\r\n      \/\/ heading already identifies the vessel owner, and per feedback\r\n      \/\/ the inner \"End Buyer\" row-label column is redundant here --\r\n      \/\/ hidden via hideRowHeader (the \"buyer\" pivot keeps its \"Vessel\r\n      \/\/ Owner\" column since there's no outer label for it there).\r\n      const table = buildRollupTable(innerGroups, {\r\n        rowHeader: supplierPivotMode === \"buyer\" ? \"Vessel Owner\" : \"End Buyer\",\r\n        hideRowHeader: supplierPivotMode === \"owner\",\r\n        idPrefix: `supplier-pivot-${supplierName}-${s.key}`,\r\n        detailFirstCell: (v) => `Vessel ${v.id}`,\r\n        detailFirstColHeader: \"Vessel\",\r\n        detailExtraColumn: { header: \"Actions\", cell: supplierUploadCell },\r\n        emptyMessage: \"No vessels in this group.\",\r\n        columns: SIMPLE_COLUMNS,\r\n      });\r\n\r\n      return `\r\n      <div class=\"mb-6\">\r\n        <h3 class=\"text-sm font-semibold text-slate-700 mb-2\">${s.key} <span class=\"text-xs font-normal text-slate-400\">(${s.vessels.length} vessel${s.vessels.length === 1 ? \"\" : \"s\"})<\/span><\/h3>\r\n        ${table}\r\n      <\/div>`;\r\n    })\r\n    .join(\"\");\r\n\r\n  const pivotLabel = supplierPivotMode === \"buyer\" ? \"end buyer, with each buyer's vessels rolled up by vessel owner underneath\" : \"vessel owner, with each owner's vessels rolled up by end buyer underneath\";\r\n\r\n  return `\r\n    <div class=\"mb-4 rounded-lg bg-purple-50 border border-purple-200 text-purple-800 text-sm px-4 py-3\">\r\n      Suppliers see information on upstream suppliers and vessels in their own supply chain only. Information\r\n      from vessels or companies outside of their own supply chain is never shown. Suppliers can view ETC\r\n      information organized by their customers (End Buyer view), upstream suppliers (Supplier view) or vessel\r\n      owners. Currently grouped by ${pivotLabel}.\r\n    <\/div>\r\n    <div class=\"flex gap-2 mb-4\">${pivotToggle(\"buyer\")}${pivotToggle(\"supplier\")}${pivotToggle(\"owner\")}<\/div>\r\n    ${sections || `<p class=\"text-sm text-slate-400\">No vessels for this supplier.<\/p>`}`;\r\n}\r\n\r\n\/\/ ---------- Vessel Owner view ----------\r\n\r\n\/\/ ---------- Status categories + indicator checklist (per ETC feedback) ----------\r\n\/\/ Per the ETC team's Vessel Owner feedback, status per category is\r\n\/\/ one of: Does Not Meet Requirements (no indicators met), Improving\r\n\/\/ (some but not all met), Meets Requirements (all met) -- relabeled\r\n\/\/ from the feedback doc's original \"Not Improving\"\/\"Demonstrates Good\r\n\/\/ Practice\" wording to align with the other tabs' badge language.\r\n\/\/ This mockup\r\n\/\/ implements the Year-1 definitions only -- the feedback doc's Year\r\n\/\/ 2+ definitions involve year-over-year comparison, which isn't\r\n\/\/ modeled here (no historical snapshots exist in this mock data).\r\n\r\nfunction categorizeStatus(indicators) {\r\n  if (indicators.every((v) => v === null)) return \"no_data\";\r\n  const yes = indicators.filter((v) => v === true).length;\r\n  if (yes === 0) return \"not_improving\";\r\n  if (yes === indicators.length) return \"good\";\r\n  return \"improving\";\r\n}\r\n\r\nfunction categoryStatusBadge(indicators) {\r\n  const status = categorizeStatus(indicators);\r\n  if (status === \"no_data\") return badge(\"Not Yet Tracked\", \"neutral\");\r\n  if (status === \"not_improving\") return badge(\"Does Not Meet Requirements\", \"notmet\");\r\n  if (status === \"good\") return badge(\"Meets Requirements\", \"good\");\r\n  return badge(\"Improving\", \"warn\");\r\n}\r\n\r\nfunction indicatorValueBadge(value) {\r\n  if (value === true) return badge(\"Yes\", \"good\");\r\n  if (value === false) return badge(\"No\", \"notmet\");\r\n  return badge(\"No data\", \"neutral\");\r\n}\r\n\r\nfunction indicatorChecklist(categoryKey, indicators) {\r\n  const labels = INDICATOR_LABELS[categoryKey];\r\n  const rows = labels\r\n    .map((label, i) => `<li class=\"flex items-center justify-between gap-3 py-0.5\"><span>${label}<\/span>${indicatorValueBadge(indicators[i])}<\/li>`)\r\n    .join(\"\");\r\n  return `<ul class=\"text-xs text-slate-600 space-y-1 mt-2\">${rows}<\/ul>`;\r\n}\r\n\r\nfunction renderOwner(ownerName) {\r\n  const vessels = VESSELS.filter((v) => v.owner === ownerName);\r\n  if (!vessels.length) return `<p class=\"text-slate-400\">No vessel found for this owner.<\/p>`;\r\n  if (vessels.length === 1) return renderSingleVesselOwner(ownerName, vessels[0]);\r\n  return renderFleetOwner(ownerName, vessels);\r\n}\r\n\r\nfunction ownerVesselCards(vessel) {\r\n  return CATEGORY_ORDER.map((cat) => {\r\n    const indicators = vessel.indicators[cat.key];\r\n    const note = cat.key === \"wifi\" && vessel.wifi.note ? `<p class=\"text-xs text-slate-400 mb-1\">${vessel.wifi.note}<\/p>` : \"\";\r\n    return `\r\n    <div class=\"bg-white rounded-lg border border-slate-200 p-4 shadow-sm\">\r\n      <div class=\"flex items-center justify-between mb-2\">\r\n        <h3 class=\"font-semibold text-slate-700 text-sm\">${cat.label}<\/h3>\r\n        ${categoryStatusBadge(indicators)}\r\n      <\/div>\r\n      ${note}\r\n      ${indicatorChecklist(cat.key, indicators)}\r\n    <\/div>`;\r\n  }).join(\"\");\r\n}\r\n\r\n\/\/ Escalation records per feedback: \"For Escalations I would suggest\r\n\/\/ showing: Vessel name \/ ID number, escalation type (four priorities\r\n\/\/ + retaliation), date escalated, date resolved, resolution\r\n\/\/ documentation (link).\"\r\nfunction escalationRecordRow(vessel, rec) {\r\n  const status = rec.dateResolved ? badge(\"Resolved\", \"good\") : badge(\"Open\", \"escalation\");\r\n  const docOrNote = rec.doc ? `<a href=\"${rec.doc}\" class=\"text-blue-600 underline\">Resolution doc<\/a>` : rec.note || \"&mdash;\";\r\n  return `\r\n    <tr class=\"border-b border-slate-100\">\r\n      <td class=\"py-1.5 px-2\">Vessel ${vessel.id}<\/td>\r\n      <td class=\"py-1.5 px-2\">${rec.type}<\/td>\r\n      <td class=\"py-1.5 px-2\">${rec.dateEscalated}<\/td>\r\n      <td class=\"py-1.5 px-2\">${rec.dateResolved || \"&mdash;\"}<\/td>\r\n      <td class=\"py-1.5 px-2\">${status}<\/td>\r\n      <td class=\"py-1.5 px-2\">${docOrNote}<\/td>\r\n    <\/tr>`;\r\n}\r\n\r\nfunction ownerEscalationPanel(vessel) {\r\n  const records = vessel.escalations || [];\r\n  const openCount = records.filter((r) => !r.dateResolved).length;\r\n  const headerBadge = !records.length ? badge(\"No escalations logged\", \"good\") : badge(`${openCount} open of ${records.length}`, openCount ? \"escalation\" : \"good\");\r\n  const table = records.length\r\n    ? `\r\n      <table class=\"w-full text-xs mt-2\">\r\n        <thead class=\"text-slate-400 uppercase\">\r\n          <tr>\r\n            <th class=\"text-left py-1 px-2\">Vessel<\/th>\r\n            <th class=\"text-left py-1 px-2\">Escalation Type<\/th>\r\n            <th class=\"text-left py-1 px-2\">Date Escalated<\/th>\r\n            <th class=\"text-left py-1 px-2\">Date Resolved<\/th>\r\n            <th class=\"text-left py-1 px-2\">Status<\/th>\r\n            <th class=\"text-left py-1 px-2\">Resolution Doc \/ Note<\/th>\r\n          <\/tr>\r\n        <\/thead>\r\n        <tbody>${records.map((rec) => escalationRecordRow(vessel, rec)).join(\"\")}<\/tbody>\r\n      <\/table>`\r\n    : \"\";\r\n  return `\r\n    <div class=\"bg-white rounded-lg border border-slate-200 p-4 shadow-sm\">\r\n      <div class=\"flex items-center justify-between mb-2\">\r\n        <h3 class=\"font-semibold text-slate-700 text-sm\">Escalations<\/h3>\r\n        ${headerBadge}\r\n      <\/div>\r\n      ${table}\r\n      <div class=\"flex gap-2 mt-3\">\r\n        <button onclick=\"alert('[Mockup only] Would open a remediation note \/ acknowledgement flow for Vessel ${vessel.id}.')\" class=\"text-xs px-2 py-1 rounded border border-slate-300 text-slate-600 hover:bg-slate-50\">Acknowledge \/ add remediation note<\/button>\r\n        ${mockUploadButton(vessel.id)}\r\n      <\/div>\r\n    <\/div>`;\r\n}\r\n\r\n\/\/ A vessel owner with exactly one vessel gets the original full-detail\r\n\/\/ single-vessel layout \u2014 no need for a table wrapper around one row.\r\nfunction renderSingleVesselOwner(ownerName, vessel) {\r\n  return `\r\n    <div class=\"mb-4 rounded-lg bg-teal-50 border border-teal-200 text-teal-800 text-sm px-4 py-3\">\r\n      Vessel owners see the most detailed view, with information on how each vessel in their fleet is addressing\r\n      the four ETC priorities and any escalated grievances.\r\n    <\/div>\r\n    <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6\">${ownerVesselCards(vessel)}<\/div>\r\n    ${ownerEscalationPanel(vessel)}`;\r\n}\r\n\r\n\/\/ A vessel owner with a fleet of vessels gets an at-a-glance table\r\n\/\/ (one row per vessel, badges for every topic) so red flags and open\r\n\/\/ grievance escalations jump out immediately across the whole fleet.\r\n\/\/ \"Full detail\" reveals the same per-vessel guideline breakdown used\r\n\/\/ in the single-vessel view, so nothing is lost \u2014 just collapsed by\r\n\/\/ default to keep a 6-vessel fleet scannable.\r\nfunction ownerFleetRow(vessel, idx, ownerName) {\r\n  const rowId = `owner-vessel-${ownerName}-${idx}`.replace(\/\\s+\/g, \"-\");\r\n  const openCount = (vessel.escalations || []).filter((r) => !r.dateResolved).length;\r\n  const escBadge = openCount ? badge(`${openCount} open`, \"escalation\") : badge(\"None open\", \"good\");\r\n  return `\r\n    <tr class=\"border-b border-slate-100 align-top\">\r\n      <td class=\"py-3 px-3 font-medium text-slate-700\">Vessel ${vessel.id}<\/td>\r\n      <td class=\"py-3 px-3\">${categoryStatusBadge(vessel.indicators.wage)}<\/td>\r\n      <td class=\"py-3 px-3\">${categoryStatusBadge(vessel.indicators.recruitment)}<\/td>\r\n      <td class=\"py-3 px-3\">${categoryStatusBadge(vessel.indicators.wifi)}<\/td>\r\n      <td class=\"py-3 px-3\">${categoryStatusBadge(vessel.indicators.grievance)}<\/td>\r\n      <td class=\"py-3 px-3\">${escBadge}<\/td>\r\n      <td class=\"py-3 px-3\"><button onclick=\"toggleSupplierDetail('${rowId}')\" class=\"text-xs text-blue-600 underline underline-offset-2\">Full detail<\/button><\/td>\r\n    <\/tr>\r\n    <tr id=\"${rowId}\" class=\"hidden bg-slate-50\">\r\n      <td colspan=\"7\" class=\"p-3\">\r\n        <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4\">${ownerVesselCards(vessel)}<\/div>\r\n        ${ownerEscalationPanel(vessel)}\r\n      <\/td>\r\n    <\/tr>`;\r\n}\r\n\r\nfunction renderFleetOwner(ownerName, vessels) {\r\n  const openFlags = vessels.filter((v) => (v.escalations || []).some((r) => !r.dateResolved)).length;\r\n  const goodPracticeWifi = vessels.filter((v) => categorizeStatus(v.indicators.wifi) === \"good\").length;\r\n\r\n  const cards = [\r\n    statCard(\"Vessels owned\", vessels.length),\r\n    statCard(\"Vessels with open escalations\", openFlags, openFlags ? \"Needs attention\" : \"None currently\"),\r\n    statCard(\"Wi-Fi demonstrating good practice\", `${goodPracticeWifi}\/${vessels.length}`),\r\n  ];\r\n\r\n  const rows = vessels.map((v, idx) => ownerFleetRow(v, idx, ownerName)).join(\"\");\r\n\r\n  return `\r\n    <div class=\"mb-4 rounded-lg bg-teal-50 border border-teal-200 text-teal-800 text-sm px-4 py-3\">\r\n      Vessel owners see the most detailed view, with information on how each vessel in their fleet is addressing\r\n      the four ETC priorities and any escalated grievances.\r\n    <\/div>\r\n    <div class=\"grid grid-cols-2 md:grid-cols-3 gap-4 mb-6\">${cards.join(\"\")}<\/div>\r\n    <div class=\"bg-white rounded-lg border border-slate-200 shadow-sm overflow-x-auto\">\r\n      <table class=\"w-full text-sm text-left\">\r\n        <thead class=\"bg-slate-50 text-slate-500 text-xs uppercase\">\r\n          <tr>\r\n            <th class=\"py-2 px-3\">Vessel<\/th>\r\n            <th class=\"py-2 px-3\">Wage Payment<\/th>\r\n            <th class=\"py-2 px-3\">Recruitment (EPP)<\/th>\r\n            <th class=\"py-2 px-3\">Wi-Fi Access<\/th>\r\n            <th class=\"py-2 px-3\">Grievance Access<\/th>\r\n            <th class=\"py-2 px-3\">Escalations<\/th>\r\n            <th class=\"py-2 px-3\"><\/th>\r\n          <\/tr>\r\n        <\/thead>\r\n        <tbody>${rows}<\/tbody>\r\n      <\/table>\r\n    <\/div>`;\r\n}\r\n\r\n\/\/ ---------- Tab \/ entity wiring ----------\r\n\r\nconst ROLE_CONFIG = {\r\n  buyer: { entities: BUYERS, render: renderBuyer, label: \"Buyer\" },\r\n  supplier: { entities: SUPPLIERS, render: renderSupplier, label: \"Supplier \/ Trader\" },\r\n  owner: { entities: VESSEL_OWNERS, render: renderOwner, label: \"Vessel Owner\" },\r\n};\r\n\r\nfunction setActiveTab(role) {\r\n  document.querySelectorAll(\".role-tab\").forEach((btn) => {\r\n    btn.classList.toggle(\"bg-slate-800\", btn.dataset.role === role);\r\n    btn.classList.toggle(\"text-white\", btn.dataset.role === role);\r\n    btn.classList.toggle(\"text-slate-600\", btn.dataset.role !== role);\r\n  });\r\n\r\n  const config = ROLE_CONFIG[role];\r\n  const select = document.getElementById(\"entitySelect\");\r\n  const content = document.getElementById(\"content\");\r\n\r\n  select.innerHTML = config.entities.map((e) => `<option value=\"${e}\">${e}<\/option>`).join(\"\");\r\n  select.onchange = () => {\r\n    content.innerHTML = config.render(select.value);\r\n  };\r\n  content.innerHTML = config.render(config.entities[0]);\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n  document.querySelectorAll(\".role-tab\").forEach((btn) => {\r\n    btn.addEventListener(\"click\", () => setActiveTab(btn.dataset.role));\r\n  });\r\n  setActiveTab(\"buyer\");\r\n});\r\n\r\n<\/script>\r\n<\/body>\r\n<\/html>\r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Ethical Tuna Collaboration \u2014 Dashboard Concept (v2, ETC Feedback Applied) &nbsp; Dashboard Mock-Up &nbsp; Return to Overview &nbsp; Buyer Supplier \/ Trader Vessel Owner Viewing as: Sources: &#8220;ETC Dashboard Brainstorm [internal].docx&#8221; and &#8220;Refreshed short overview &#8211; ETC &#8211; 9.18.26.docx&#8221;. Built as a discussion aid \u2014 not connected to any real data source, portal, or API.<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-3803","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/pages\/3803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/comments?post=3803"}],"version-history":[{"count":19,"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/pages\/3803\/revisions"}],"predecessor-version":[{"id":3864,"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/pages\/3803\/revisions\/3864"}],"wp:attachment":[{"href":"https:\/\/springboard.partners\/zh\/wp-json\/wp\/v2\/media?parent=3803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}