Files
Odoo-Modules/fusion_clock_ai/graphify-out/graph.html
gsinghpal 41d0908ade changes
2026-04-24 21:04:38 -04:00

257 lines
90 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>graphify - /Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/graphify-out/graph.html</title>
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0f0f1a; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; height: 100vh; overflow: hidden; }
#graph { flex: 1; }
#sidebar { width: 280px; background: #1a1a2e; border-left: 1px solid #2a2a4e; display: flex; flex-direction: column; overflow: hidden; }
#search-wrap { padding: 12px; border-bottom: 1px solid #2a2a4e; }
#search { width: 100%; background: #0f0f1a; border: 1px solid #3a3a5e; color: #e0e0e0; padding: 7px 10px; border-radius: 6px; font-size: 13px; outline: none; }
#search:focus { border-color: #4E79A7; }
#search-results { max-height: 140px; overflow-y: auto; padding: 4px 12px; border-bottom: 1px solid #2a2a4e; display: none; }
.search-item { padding: 4px 6px; cursor: pointer; border-radius: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item:hover { background: #2a2a4e; }
#info-panel { padding: 14px; border-bottom: 1px solid #2a2a4e; min-height: 140px; }
#info-panel h3 { font-size: 13px; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
#info-content { font-size: 13px; color: #ccc; line-height: 1.6; }
#info-content .field { margin-bottom: 5px; }
#info-content .field b { color: #e0e0e0; }
#info-content .empty { color: #555; font-style: italic; }
.neighbor-link { display: block; padding: 2px 6px; margin: 2px 0; border-radius: 3px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid #333; }
.neighbor-link:hover { background: #2a2a4e; }
#neighbors-list { max-height: 160px; overflow-y: auto; margin-top: 4px; }
#legend-wrap { flex: 1; overflow-y: auto; padding: 12px; }
#legend-wrap h3 { font-size: 13px; color: #aaa; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; border-radius: 4px; font-size: 12px; }
.legend-item:hover { background: #2a2a4e; padding-left: 4px; }
.legend-item.dimmed { opacity: 0.35; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-count { color: #666; font-size: 11px; }
#stats { padding: 10px 14px; border-top: 1px solid #2a2a4e; font-size: 11px; color: #555; }
</style>
</head>
<body>
<div id="graph"></div>
<div id="sidebar">
<div id="search-wrap">
<input id="search" type="text" placeholder="Search nodes..." autocomplete="off">
<div id="search-results"></div>
</div>
<div id="info-panel">
<h3>Node Info</h3>
<div id="info-content"><span class="empty">Click a node to inspect it</span></div>
</div>
<div id="legend-wrap">
<h3>Communities</h3>
<div id="legend"></div>
</div>
<div id="stats">97 nodes &middot; 145 edges &middot; 15 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_init_py", "label": "__init__.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 11, "community_name": "Community 11", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/__init__.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_manifest_py", "label": "__manifest__.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__manifest__.py", "community": 14, "community_name": "Community 14", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/__manifest__.py", "file_type": "code", "degree": 0}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_service_py", "label": "ai_service.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "ai_service.py", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 1}, {"id": "ai_service_fusionclockaiservice", "label": "FusionClockAIService", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 32.1, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionClockAIService", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 14}, {"id": "ai_service_fusionclockaiservice_get_client", "label": "._get_client()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_client()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_get_model", "label": "._get_model()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_model()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_get_max_tokens", "label": "._get_max_tokens()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_max_tokens()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_check_budget", "label": "._check_budget()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._check_budget()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_get_cache_key", "label": "._get_cache_key()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_cache_key()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_check_cache", "label": "._check_cache()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._check_cache()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_store_cache", "label": "._store_cache()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._store_cache()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_log_usage", "label": "._log_usage()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._log_usage()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "ai_service_fusionclockaiservice_get_system_prompt", "label": "._get_system_prompt()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 28.9, "font": {"size": 12, "color": "#ffffff"}, "title": "._get_system_prompt()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 12}, {"id": "ai_service_fusionclockaiservice_chat_completion", "label": ".chat_completion()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".chat_completion()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 19}, {"id": "ai_service_fusionclockaiservice_build_employee_context", "label": "._build_employee_context()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 19.5, "font": {"size": 12, "color": "#ffffff"}, "title": "._build_employee_context()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 6}, {"id": "ai_service_fusionclockaiservice_build_team_context", "label": "._build_team_context()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._build_team_context()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 3}, {"id": "ai_service_fusionclockaiservice_build_payroll_context", "label": "._build_payroll_context()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._build_payroll_context()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_service.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_clock_correction_ai_py", "label": "clock_correction_ai.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "clock_correction_ai.py", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/clock_correction_ai.py", "file_type": "code", "degree": 1}, {"id": "clock_correction_ai_clockcorrectionai", "label": "ClockCorrectionAI", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "ClockCorrectionAI", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/clock_correction_ai.py", "file_type": "code", "degree": 2}, {"id": "clock_correction_ai_clockcorrectionai_action_get_ai_advice", "label": ".action_get_ai_advice()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_get_ai_advice()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/clock_correction_ai.py", "file_type": "code", "degree": 4}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_hr_employee_ai_py", "label": "hr_employee_ai.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "hr_employee_ai.py", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/hr_employee_ai.py", "file_type": "code", "degree": 1}, {"id": "hr_employee_ai_hremployeeai", "label": "HrEmployeeAI", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "HrEmployeeAI", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/hr_employee_ai.py", "file_type": "code", "degree": 3}, {"id": "hr_employee_ai_hremployeeai_action_generate_ai_summary", "label": ".action_generate_ai_summary()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_generate_ai_summary()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/hr_employee_ai.py", "file_type": "code", "degree": 4}, {"id": "hr_employee_ai_hremployeeai_action_generate_coach_tip", "label": ".action_generate_coach_tip()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_generate_coach_tip()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/hr_employee_ai.py", "file_type": "code", "degree": 4}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_usage_py", "label": "ai_usage.py", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "ai_usage.py", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_usage.py", "file_type": "code", "degree": 1}, {"id": "ai_usage_fusionclockaiusage", "label": "FusionClockAIUsage", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionClockAIUsage", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_usage.py", "file_type": "code", "degree": 2}, {"id": "ai_usage_fusionclockaiusage_compute_total", "label": "._compute_total()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_total()", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_usage.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_prompt_py", "label": "ai_prompt.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "ai_prompt.py", "community": 9, "community_name": "Community 9", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_prompt.py", "file_type": "code", "degree": 1}, {"id": "ai_prompt_fusionclockaiprompt", "label": "FusionClockAIPrompt", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionClockAIPrompt", "community": 9, "community_name": "Community 9", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_prompt.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_hr_attendance_ai_py", "label": "hr_attendance_ai.py", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "hr_attendance_ai.py", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/hr_attendance_ai.py", "file_type": "code", "degree": 1}, {"id": "hr_attendance_ai_hrattendanceai", "label": "HrAttendanceAI", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "HrAttendanceAI", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/hr_attendance_ai.py", "file_type": "code", "degree": 2}, {"id": "hr_attendance_ai_hrattendanceai_ai_explain_incident", "label": "._ai_explain_incident()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._ai_explain_incident()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/hr_attendance_ai.py", "file_type": "code", "degree": 3}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_init_py", "label": "__init__.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 12, "community_name": "Community 12", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/__init__.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_conversation_py", "label": "ai_conversation.py", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "ai_conversation.py", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_conversation.py", "file_type": "code", "degree": 2}, {"id": "ai_conversation_fusionclockaiconversation", "label": "FusionClockAIConversation", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionClockAIConversation", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_conversation.py", "file_type": "code", "degree": 2}, {"id": "ai_conversation_fusionclockaiconversation_compute_title", "label": "._compute_title()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_title()", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_conversation.py", "file_type": "code", "degree": 1}, {"id": "ai_conversation_fusionclockaimessage", "label": "FusionClockAIMessage", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionClockAIMessage", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_conversation.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_clock_report_ai_py", "label": "clock_report_ai.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "clock_report_ai.py", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/clock_report_ai.py", "file_type": "code", "degree": 1}, {"id": "clock_report_ai_clockreportai", "label": "ClockReportAI", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "ClockReportAI", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/clock_report_ai.py", "file_type": "code", "degree": 3}, {"id": "clock_report_ai_clockreportai_action_generate_ai_narrative", "label": ".action_generate_ai_narrative()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 17.9, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_generate_ai_narrative()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/clock_report_ai.py", "file_type": "code", "degree": 5}, {"id": "clock_report_ai_clockreportai_action_generate_report", "label": ".action_generate_report()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_generate_report()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/clock_report_ai.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_res_config_settings_py", "label": "res_config_settings.py", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "res_config_settings.py", "community": 10, "community_name": "Community 10", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/res_config_settings.py", "file_type": "code", "degree": 1}, {"id": "res_config_settings_resconfigsettings", "label": "ResConfigSettings", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "ResConfigSettings", "community": 10, "community_name": "Community 10", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/res_config_settings.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_cache_py", "label": "ai_cache.py", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "ai_cache.py", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_cache.py", "file_type": "code", "degree": 1}, {"id": "ai_cache_fusionclockaicache", "label": "FusionClockAICache", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionClockAICache", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_cache.py", "file_type": "code", "degree": 2}, {"id": "ai_cache_fusionclockaicache_gc_expired_cache", "label": "._gc_expired_cache()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._gc_expired_cache()", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_cache.py", "file_type": "code", "degree": 2}, {"id": "ai_cache_rationale_20", "label": "Cron: delete cache entries older than 24 hours.", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "Cron: delete cache entries older than 24 hours.", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/models/ai_cache.py", "file_type": "rationale", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_static_src_js_ai_chat_portal_js", "label": "ai_chat_portal.js", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "ai_chat_portal.js", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_portal_fusionclockaiportalchat", "label": "FusionClockAIPortalChat", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionClockAIPortalChat", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 19}, {"id": "ai_chat_portal_fusionclockaiportalchat_setup", "label": ".setup()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": ".setup()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 3}, {"id": "ai_chat_portal_fusionclockaiportalchat_destroy", "label": ".destroy()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".destroy()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_portal_fusionclockaiportalchat_builddom", "label": "._buildDOM()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": "._buildDOM()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 4}, {"id": "ai_chat_portal_fusionclockaiportalchat_panelhtml", "label": "._panelHTML()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._panelHTML()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_portal_fusionclockaiportalchat_createelement", "label": "._createElement()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._createElement()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_portal_fusionclockaiportalchat_bindevents", "label": "._bindEvents()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._bindEvents()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_portal_fusionclockaiportalchat_togglepanel", "label": "._togglePanel()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._togglePanel()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 3}, {"id": "ai_chat_portal_fusionclockaiportalchat_openpanel", "label": "._openPanel()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._openPanel()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_portal_fusionclockaiportalchat_closepanel", "label": "._closePanel()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._closePanel()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_portal_fusionclockaiportalchat_appendmessage", "label": "._appendMessage()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.9, "font": {"size": 12, "color": "#ffffff"}, "title": "._appendMessage()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 5}, {"id": "ai_chat_portal_fusionclockaiportalchat_appendtyping", "label": "._appendTyping()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": "._appendTyping()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 4}, {"id": "ai_chat_portal_fusionclockaiportalchat_removetyping", "label": "._removeTyping()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._removeTyping()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 3}, {"id": "ai_chat_portal_fusionclockaiportalchat_scrolltobottom", "label": "._scrollToBottom()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._scrollToBottom()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 3}, {"id": "ai_chat_portal_fusionclockaiportalchat_sendmessage", "label": "._sendMessage()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.9, "font": {"size": 12, "color": "#ffffff"}, "title": "._sendMessage()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 5}, {"id": "ai_chat_portal_fusionclockaiportalchat_onquickaction", "label": "._onQuickAction()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 19.5, "font": {"size": 12, "color": "#ffffff"}, "title": "._onQuickAction()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 6}, {"id": "ai_chat_portal_fusionclockaiportalchat_openpolish", "label": "._openPolish()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._openPolish()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_portal_fusionclockaiportalchat_closepolish", "label": "._closePolish()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._closePolish()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_portal_fusionclockaiportalchat_sendpolish", "label": "._sendPolish()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._sendPolish()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_portal.js", "file_type": "code", "degree": 3}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_static_src_js_ai_chat_backend_js", "label": "ai_chat_backend.js", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "ai_chat_backend.js", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat", "label": "FusionClockAIChat", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 32.1, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionClockAIChat", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 14}, {"id": "ai_chat_backend_fusionclockaichat_setup", "label": ".setup()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".setup()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_suggestions", "label": ".suggestions()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".suggestions()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_tools", "label": ".tools()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".tools()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_hasmessages", "label": ".hasMessages()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".hasMessages()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_cansend", "label": ".canSend()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".canSend()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_switchtab", "label": ".switchTab()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".switchTab()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_newconversation", "label": ".newConversation()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".newConversation()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_oninput", "label": ".onInput()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".onInput()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "ai_chat_backend_fusionclockaichat_onkeydown", "label": ".onKeydown()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": ".onKeydown()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_backend_fusionclockaichat_onsuggestionclick", "label": ".onSuggestionClick()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": ".onSuggestionClick()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_backend_fusionclockaichat_scrolltobottom", "label": "._scrollToBottom()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._scrollToBottom()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 2}, {"id": "ai_chat_backend_fusionclockaichat_sendmessage", "label": ".sendMessage()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": ".sendMessage()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 4}, {"id": "ai_chat_backend_fusionclockaichat_runtool", "label": ".runTool()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": ".runTool()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/static/src/js/ai_chat_backend.js", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_ai_api_py", "label": "ai_api.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 17.9, "font": {"size": 12, "color": "#ffffff"}, "title": "ai_api.py", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 5}, {"id": "ai_api_fusionclockaiapi", "label": "FusionClockAIAPI", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionClockAIAPI", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 3}, {"id": "ai_api_fusionclockaiapi_get_employee", "label": "._get_employee()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_employee()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 1}, {"id": "ai_api_manager_chat", "label": "manager_chat()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": "manager_chat()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 4}, {"id": "ai_api_run_analysis", "label": "run_analysis()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 19.5, "font": {"size": 12, "color": "#ffffff"}, "title": "run_analysis()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 6}, {"id": "ai_api_fusionclockaiapi_build_geofence_context", "label": "._build_geofence_context()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "._build_geofence_context()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 2}, {"id": "ai_api_smart_config", "label": "smart_config()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "smart_config()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 3}, {"id": "ai_api_apply_config", "label": "apply_config()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.6, "font": {"size": 0, "color": "#ffffff"}, "title": "apply_config()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/ai_api.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_init_py", "label": "__init__.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 13, "community_name": "Community 13", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/__init__.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_portal_ai_py", "label": "portal_ai.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 16.3, "font": {"size": 12, "color": "#ffffff"}, "title": "portal_ai.py", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/portal_ai.py", "file_type": "code", "degree": 4}, {"id": "portal_ai_fusionclockportalai", "label": "FusionClockPortalAI", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 13.2, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionClockPortalAI", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/portal_ai.py", "file_type": "code", "degree": 2}, {"id": "portal_ai_fusionclockportalai_get_employee", "label": "._get_employee()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._get_employee()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/portal_ai.py", "file_type": "code", "degree": 3}, {"id": "portal_ai_employee_chat", "label": "employee_chat()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 17.9, "font": {"size": 12, "color": "#ffffff"}, "title": "employee_chat()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/portal_ai.py", "file_type": "code", "degree": 5}, {"id": "portal_ai_polish_reason", "label": "polish_reason()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.7, "font": {"size": 12, "color": "#ffffff"}, "title": "polish_reason()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/portal_ai.py", "file_type": "code", "degree": 3}, {"id": "portal_ai_my_coach_tip", "label": "my_coach_tip()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 17.9, "font": {"size": 12, "color": "#ffffff"}, "title": "my_coach_tip()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_clock_ai/controllers/portal_ai.py", "file_type": "code", "degree": 5}];
const RAW_EDGES = [{"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_clock_ai_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_service_py", "to": "ai_service_fusionclockaiservice", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_get_client", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_get_model", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_get_max_tokens", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_check_budget", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_get_cache_key", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_check_cache", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_store_cache", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_log_usage", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_get_system_prompt", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_build_employee_context", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_build_team_context", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice", "to": "ai_service_fusionclockaiservice_build_payroll_context", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_get_client", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_get_model", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_get_max_tokens", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_check_budget", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_get_cache_key", "to": "ai_api_run_analysis", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_check_cache", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_store_cache", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_log_usage", "to": "ai_service_fusionclockaiservice_chat_completion", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "clock_correction_ai_clockcorrectionai_action_get_ai_advice", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "hr_employee_ai_hremployeeai_action_generate_ai_summary", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "hr_employee_ai_hremployeeai_action_generate_coach_tip", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "hr_attendance_ai_hrattendanceai_ai_explain_incident", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "clock_report_ai_clockreportai_action_generate_ai_narrative", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "ai_api_manager_chat", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "ai_api_run_analysis", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "ai_api_smart_config", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "portal_ai_employee_chat", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "portal_ai_polish_reason", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_get_system_prompt", "to": "portal_ai_my_coach_tip", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "clock_correction_ai_clockcorrectionai_action_get_ai_advice", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "hr_employee_ai_hremployeeai_action_generate_ai_summary", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "hr_employee_ai_hremployeeai_action_generate_coach_tip", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "hr_attendance_ai_hrattendanceai_ai_explain_incident", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "clock_report_ai_clockreportai_action_generate_ai_narrative", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "ai_api_manager_chat", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "ai_api_run_analysis", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "ai_api_smart_config", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "portal_ai_employee_chat", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "portal_ai_polish_reason", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_chat_completion", "to": "portal_ai_my_coach_tip", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_employee_context", "to": "clock_correction_ai_clockcorrectionai_action_get_ai_advice", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_employee_context", "to": "hr_employee_ai_hremployeeai_action_generate_ai_summary", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_employee_context", "to": "hr_employee_ai_hremployeeai_action_generate_coach_tip", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_employee_context", "to": "portal_ai_employee_chat", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_employee_context", "to": "portal_ai_my_coach_tip", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_team_context", "to": "ai_api_manager_chat", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_team_context", "to": "ai_api_run_analysis", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "ai_service_fusionclockaiservice_build_payroll_context", "to": "clock_report_ai_clockreportai_action_generate_ai_narrative", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_clock_correction_ai_py", "to": "clock_correction_ai_clockcorrectionai", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "clock_correction_ai_clockcorrectionai", "to": "clock_correction_ai_clockcorrectionai_action_get_ai_advice", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_hr_employee_ai_py", "to": "hr_employee_ai_hremployeeai", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "hr_employee_ai_hremployeeai", "to": "hr_employee_ai_hremployeeai_action_generate_ai_summary", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "hr_employee_ai_hremployeeai", "to": "hr_employee_ai_hremployeeai_action_generate_coach_tip", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_usage_py", "to": "ai_usage_fusionclockaiusage", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_usage_fusionclockaiusage", "to": "ai_usage_fusionclockaiusage_compute_total", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_prompt_py", "to": "ai_prompt_fusionclockaiprompt", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_hr_attendance_ai_py", "to": "hr_attendance_ai_hrattendanceai", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "hr_attendance_ai_hrattendanceai", "to": "hr_attendance_ai_hrattendanceai_ai_explain_incident", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_conversation_py", "to": "ai_conversation_fusionclockaiconversation", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_conversation_py", "to": "ai_conversation_fusionclockaimessage", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_conversation_fusionclockaiconversation", "to": "ai_conversation_fusionclockaiconversation_compute_title", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_clock_report_ai_py", "to": "clock_report_ai_clockreportai", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "clock_report_ai_clockreportai", "to": "clock_report_ai_clockreportai_action_generate_ai_narrative", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "clock_report_ai_clockreportai", "to": "clock_report_ai_clockreportai_action_generate_report", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "clock_report_ai_clockreportai_action_generate_ai_narrative", "to": "clock_report_ai_clockreportai_action_generate_report", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_res_config_settings_py", "to": "res_config_settings_resconfigsettings", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_models_ai_cache_py", "to": "ai_cache_fusionclockaicache", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_cache_fusionclockaicache", "to": "ai_cache_fusionclockaicache_gc_expired_cache", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_cache_fusionclockaicache_gc_expired_cache", "to": "ai_cache_rationale_20", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_static_src_js_ai_chat_portal_js", "to": "ai_chat_portal_fusionclockaiportalchat", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_setup", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_destroy", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_builddom", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_panelhtml", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_createelement", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_bindevents", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_togglepanel", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_openpanel", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_closepanel", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_appendmessage", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_appendtyping", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_removetyping", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_scrolltobottom", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_sendmessage", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_onquickaction", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_openpolish", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_closepolish", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat", "to": "ai_chat_portal_fusionclockaiportalchat_sendpolish", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_setup", "to": "ai_chat_portal_fusionclockaiportalchat_builddom", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_setup", "to": "ai_chat_portal_fusionclockaiportalchat_bindevents", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_builddom", "to": "ai_chat_portal_fusionclockaiportalchat_createelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_builddom", "to": "ai_chat_portal_fusionclockaiportalchat_panelhtml", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_togglepanel", "to": "ai_chat_portal_fusionclockaiportalchat_closepanel", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_togglepanel", "to": "ai_chat_portal_fusionclockaiportalchat_openpanel", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_appendmessage", "to": "ai_chat_portal_fusionclockaiportalchat_scrolltobottom", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_appendmessage", "to": "ai_chat_portal_fusionclockaiportalchat_sendmessage", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_appendmessage", "to": "ai_chat_portal_fusionclockaiportalchat_onquickaction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_appendmessage", "to": "ai_chat_portal_fusionclockaiportalchat_sendpolish", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_appendtyping", "to": "ai_chat_portal_fusionclockaiportalchat_scrolltobottom", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_appendtyping", "to": "ai_chat_portal_fusionclockaiportalchat_sendmessage", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_appendtyping", "to": "ai_chat_portal_fusionclockaiportalchat_onquickaction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_removetyping", "to": "ai_chat_portal_fusionclockaiportalchat_sendmessage", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_removetyping", "to": "ai_chat_portal_fusionclockaiportalchat_onquickaction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_sendmessage", "to": "ai_chat_portal_fusionclockaiportalchat_onquickaction", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_onquickaction", "to": "ai_chat_portal_fusionclockaiportalchat_openpolish", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_portal_fusionclockaiportalchat_closepolish", "to": "ai_chat_portal_fusionclockaiportalchat_sendpolish", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_static_src_js_ai_chat_backend_js", "to": "ai_chat_backend_fusionclockaichat", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_setup", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_suggestions", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_tools", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_hasmessages", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_cansend", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_switchtab", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_newconversation", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_oninput", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_onkeydown", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_onsuggestionclick", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_scrolltobottom", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_sendmessage", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat", "to": "ai_chat_backend_fusionclockaichat_runtool", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat_onkeydown", "to": "ai_chat_backend_fusionclockaichat_sendmessage", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat_onsuggestionclick", "to": "ai_chat_backend_fusionclockaichat_sendmessage", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_chat_backend_fusionclockaichat_scrolltobottom", "to": "ai_chat_backend_fusionclockaichat_sendmessage", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_ai_api_py", "to": "ai_api_fusionclockaiapi", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_ai_api_py", "to": "ai_api_manager_chat", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_ai_api_py", "to": "ai_api_run_analysis", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_ai_api_py", "to": "ai_api_smart_config", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_ai_api_py", "to": "ai_api_apply_config", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_api_fusionclockaiapi", "to": "ai_api_fusionclockaiapi_get_employee", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_api_fusionclockaiapi", "to": "ai_api_fusionclockaiapi_build_geofence_context", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ai_api_run_analysis", "to": "ai_api_fusionclockaiapi_build_geofence_context", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_portal_ai_py", "to": "portal_ai_fusionclockportalai", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_portal_ai_py", "to": "portal_ai_employee_chat", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_portal_ai_py", "to": "portal_ai_polish_reason", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_clock_ai_controllers_portal_ai_py", "to": "portal_ai_my_coach_tip", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "portal_ai_fusionclockportalai", "to": "portal_ai_fusionclockportalai_get_employee", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "portal_ai_fusionclockportalai_get_employee", "to": "portal_ai_employee_chat", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "portal_ai_fusionclockportalai_get_employee", "to": "portal_ai_my_coach_tip", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}];
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 20}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 20}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 15}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 15}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 5}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 4}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 4}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 3}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 3}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 2}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 2}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 1}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 1}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 1}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 1}];
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
return String(s).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');
}
// Build vis datasets
const nodesDS = new vis.DataSet(RAW_NODES.map(n => ({
id: n.id, label: n.label, color: n.color, size: n.size,
font: n.font, title: n.title,
_community: n.community, _community_name: n.community_name,
_source_file: n.source_file, _file_type: n.file_type, _degree: n.degree,
})));
const edgesDS = new vis.DataSet(RAW_EDGES.map((e, i) => ({
id: i, from: e.from, to: e.to,
label: '',
title: e.title,
dashes: e.dashes,
width: e.width,
color: e.color,
arrows: { to: { enabled: true, scaleFactor: 0.5 } },
})));
const container = document.getElementById('graph');
const network = new vis.Network(container, { nodes: nodesDS, edges: edgesDS }, {
physics: {
enabled: true,
solver: 'forceAtlas2Based',
forceAtlas2Based: {
gravitationalConstant: -60,
centralGravity: 0.005,
springLength: 120,
springConstant: 0.08,
damping: 0.4,
avoidOverlap: 0.8,
},
stabilization: { iterations: 200, fit: true },
},
interaction: {
hover: true,
tooltipDelay: 100,
hideEdgesOnDrag: true,
navigationButtons: false,
keyboard: false,
},
nodes: { shape: 'dot', borderWidth: 1.5 },
edges: { smooth: { type: 'continuous', roundness: 0.2 }, selectionWidth: 3 },
});
network.once('stabilizationIterationsDone', () => {
network.setOptions({ physics: { enabled: false } });
});
function showInfo(nodeId) {
const n = nodesDS.get(nodeId);
if (!n) return;
const neighborIds = network.getConnectedNodes(nodeId);
const neighborItems = neighborIds.map(nid => {
const nb = nodesDS.get(nid);
const color = nb ? nb.color.background : '#555';
return `<span class="neighbor-link" style="border-left-color:${esc(color)}" onclick="focusNode(${JSON.stringify(nid)})">${esc(nb ? nb.label : nid)}</span>`;
}).join('');
document.getElementById('info-content').innerHTML = `
<div class="field"><b>${esc(n.label)}</b></div>
<div class="field">Type: ${esc(n._file_type || 'unknown')}</div>
<div class="field">Community: ${esc(n._community_name)}</div>
<div class="field">Source: ${esc(n._source_file || '-')}</div>
<div class="field">Degree: ${n._degree}</div>
${neighborIds.length ? `<div class="field" style="margin-top:8px;color:#aaa;font-size:11px">Neighbors (${neighborIds.length})</div><div id="neighbors-list">${neighborItems}</div>` : ''}
`;
}
function focusNode(nodeId) {
network.focus(nodeId, { scale: 1.4, animation: true });
network.selectNodes([nodeId]);
showInfo(nodeId);
}
// Track hovered node — hover detection is more reliable than click params
let hoveredNodeId = null;
network.on('hoverNode', params => {
hoveredNodeId = params.node;
container.style.cursor = 'pointer';
});
network.on('blurNode', () => {
hoveredNodeId = null;
container.style.cursor = 'default';
});
container.addEventListener('click', () => {
if (hoveredNodeId !== null) {
showInfo(hoveredNodeId);
network.selectNodes([hoveredNodeId]);
}
});
network.on('click', params => {
if (params.nodes.length > 0) {
showInfo(params.nodes[0]);
} else if (hoveredNodeId === null) {
document.getElementById('info-content').innerHTML = '<span class="empty">Click a node to inspect it</span>';
}
});
const searchInput = document.getElementById('search');
const searchResults = document.getElementById('search-results');
searchInput.addEventListener('input', () => {
const q = searchInput.value.toLowerCase().trim();
searchResults.innerHTML = '';
if (!q) { searchResults.style.display = 'none'; return; }
const matches = RAW_NODES.filter(n => n.label.toLowerCase().includes(q)).slice(0, 20);
if (!matches.length) { searchResults.style.display = 'none'; return; }
searchResults.style.display = 'block';
matches.forEach(n => {
const el = document.createElement('div');
el.className = 'search-item';
el.textContent = n.label;
el.style.borderLeft = `3px solid ${n.color.background}`;
el.style.paddingLeft = '8px';
el.onclick = () => {
network.focus(n.id, { scale: 1.5, animation: true });
network.selectNodes([n.id]);
showInfo(n.id);
searchResults.style.display = 'none';
searchInput.value = '';
};
searchResults.appendChild(el);
});
});
document.addEventListener('click', e => {
if (!searchResults.contains(e.target) && e.target !== searchInput)
searchResults.style.display = 'none';
});
const hiddenCommunities = new Set();
const legendEl = document.getElementById('legend');
LEGEND.forEach(c => {
const item = document.createElement('div');
item.className = 'legend-item';
item.innerHTML = `<div class="legend-dot" style="background:${c.color}"></div>
<span class="legend-label">${c.label}</span>
<span class="legend-count">${c.count}</span>`;
item.onclick = () => {
if (hiddenCommunities.has(c.cid)) {
hiddenCommunities.delete(c.cid);
item.classList.remove('dimmed');
} else {
hiddenCommunities.add(c.cid);
item.classList.add('dimmed');
}
const updates = RAW_NODES
.filter(n => n.community === c.cid)
.map(n => ({ id: n.id, hidden: hiddenCommunities.has(c.cid) }));
nodesDS.update(updates);
};
legendEl.appendChild(item);
});
</script>
<script>
// Render hyperedges as shaded regions
const hyperedges = [];
// afterDrawing passes ctx already transformed to network coordinate space.
// Draw node positions raw — no manual pan/zoom/DPR math needed.
network.on('afterDrawing', function(ctx) {
hyperedges.forEach(h => {
const positions = h.nodes
.map(nid => network.getPositions([nid])[nid])
.filter(p => p !== undefined);
if (positions.length < 2) return;
ctx.save();
ctx.globalAlpha = 0.12;
ctx.fillStyle = '#6366f1';
ctx.strokeStyle = '#6366f1';
ctx.lineWidth = 2;
ctx.beginPath();
// Centroid and expanded hull in network coordinates
const cx = positions.reduce((s, p) => s + p.x, 0) / positions.length;
const cy = positions.reduce((s, p) => s + p.y, 0) / positions.length;
const expanded = positions.map(p => ({
x: cx + (p.x - cx) * 1.15,
y: cy + (p.y - cy) * 1.15
}));
ctx.moveTo(expanded[0].x, expanded[0].y);
expanded.slice(1).forEach(p => ctx.lineTo(p.x, p.y));
ctx.closePath();
ctx.fill();
ctx.globalAlpha = 0.4;
ctx.stroke();
// Label
ctx.globalAlpha = 0.8;
ctx.fillStyle = '#4f46e5';
ctx.font = 'bold 11px sans-serif';
ctx.textAlign = 'center';
ctx.fillText(h.label, cx, cy - 5);
ctx.restore();
});
});
</script>
</body>
</html>