Spaces:
Running
Running
File size: 69,026 Bytes
5e40726 b7b6dfa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EOS AI Business Suite</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
--primary: #4F46E5;
--secondary: #10B981;
--accent: #F59E0B;
--dark: #1F2937;
--light: #F9FAFB;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #F3F4F6;
color: var(--dark);
}
.gradient-bg {
background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
}
.sidebar-item:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.sidebar-item.active {
background-color: rgba(255, 255, 255, 0.2);
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
.task-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.ai-response {
border-left: 4px solid var(--primary);
}
.tooltip {
position: relative;
}
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
.tooltip-text {
visibility: hidden;
width: 120px;
background-color: var(--dark);
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
.fade-in {
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.slide-in {
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.typing-indicator::after {
content: "...";
animation: typing 1.5s infinite;
}
@keyframes typing {
0% { content: "."; }
33% { content: ".."; }
66% { content: "..."; }
}
.mobile-menu {
transition: all 0.3s ease;
}
.mobile-menu.hidden {
transform: translateX(-100%);
}
</style>
</head>
<body class="min-h-screen">
<div class="flex h-screen overflow-hidden">
<!-- Mobile Sidebar -->
<div id="mobileSidebar" class="mobile-menu md:hidden fixed inset-y-0 left-0 z-50 w-64 gradient-bg text-white transform -translate-x-full">
<div class="flex flex-col h-full">
<div class="flex items-center justify-center h-16 px-4">
<div class="flex items-center">
<i class="fas fa-brain text-2xl mr-2"></i>
<span class="text-xl font-bold">EOS AI Suite</span>
</div>
<button onclick="toggleMobileMenu()" class="ml-auto text-white">
<i class="fas fa-times"></i>
</button>
</div>
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
<!-- API Configuration -->
<div class="mb-6 p-3 bg-white bg-opacity-10 rounded-lg">
<h3 class="text-sm font-semibold mb-2 flex items-center">
<i class="fas fa-key mr-2"></i> API Configuration
</h3>
<div class="mt-2">
<label class="block text-xs text-white text-opacity-80 mb-1">DeepSeek API Key</label>
<div class="flex">
<input type="password" id="mobileApiKey" placeholder="Enter your API key"
class="w-full px-3 py-2 text-xs bg-white bg-opacity-20 rounded-l focus:outline-none focus:ring-1 focus:ring-white">
<button onclick="saveApiKey('mobileApiKey')" class="px-3 py-2 bg-white bg-opacity-30 text-xs rounded-r hover:bg-opacity-40">
<i class="fas fa-save"></i>
</button>
</div>
<div class="mt-2 flex items-center text-xs">
<i class="fas fa-circle text-green-400 mr-1 text-xs"></i>
<span id="mobileApiStatus">Not connected</span>
</div>
</div>
</div>
<!-- Navigation -->
<nav class="flex-1 space-y-1">
<a href="#" class="sidebar-item active flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('dashboard')">
<i class="fas fa-home mr-3"></i> Dashboard
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('vision')">
<i class="fas fa-rocket mr-3"></i> Vision
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('people')">
<i class="fas fa-users mr-3"></i> People
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('data')">
<i class="fas fa-chart-line mr-3"></i> Data
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('issues')">
<i class="fas fa-tasks mr-3"></i> Issues
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('process')">
<i class="fas fa-lightbulb mr-3"></i> Process
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('assistant')">
<i class="fas fa-comments mr-3"></i> AI Assistant
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('settings')">
<i class="fas fa-cog mr-3"></i> Settings
</a>
</nav>
<!-- Quick Actions -->
<div class="mt-auto mb-4">
<button class="w-full flex items-center justify-center px-4 py-2 bg-white text-indigo-600 rounded-md text-sm font-medium hover:bg-opacity-90">
<i class="fas fa-plus mr-2"></i> New Meeting
</button>
<button onclick="showAiPrompt()" class="mt-2 w-full flex items-center justify-center px-4 py-2 bg-yellow-500 text-white rounded-md text-sm font-medium hover:bg-yellow-600">
<i class="fas fa-magic mr-2"></i> AI Quick Action
</button>
</div>
</div>
</div>
</div>
<!-- Desktop Sidebar -->
<div class="hidden md:flex md:flex-shrink-0">
<div class="flex flex-col w-64 gradient-bg text-white">
<div class="flex items-center justify-center h-16 px-4">
<div class="flex items-center">
<i class="fas fa-brain text-2xl mr-2"></i>
<span class="text-xl font-bold">EOS AI Suite</span>
</div>
</div>
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
<!-- API Configuration -->
<div class="mb-6 p-3 bg-white bg-opacity-10 rounded-lg">
<h3 class="text-sm font-semibold mb-2 flex items-center">
<i class="fas fa-key mr-2"></i> API Configuration
</h3>
<div class="mt-2">
<label class="block text-xs text-white text-opacity-80 mb-1">DeepSeek API Key</label>
<div class="flex">
<input type="password" id="apiKey" placeholder="Enter your API key"
class="w-full px-3 py-2 text-xs bg-white bg-opacity-20 rounded-l focus:outline-none focus:ring-1 focus:ring-white">
<button onclick="saveApiKey('apiKey')" class="px-3 py-2 bg-white bg-opacity-30 text-xs rounded-r hover:bg-opacity-40">
<i class="fas fa-save"></i>
</button>
</div>
<div class="mt-2 flex items-center text-xs">
<i class="fas fa-circle text-green-400 mr-1 text-xs"></i>
<span id="apiStatus">Not connected</span>
</div>
</div>
</div>
<!-- Navigation -->
<nav class="flex-1 space-y-1">
<a href="#" class="sidebar-item active flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('dashboard')">
<i class="fas fa-home mr-3"></i> Dashboard
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('vision')">
<i class="fas fa-rocket mr-3"></i> Vision
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('people')">
<i class="fas fa-users mr-3"></i> People
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('data')">
<i class="fas fa-chart-line mr-3"></i> Data
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('issues')">
<i class="fas fa-tasks mr-3"></i> Issues
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('process')">
<i class="fas fa-lightbulb mr-3"></i> Process
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('assistant')">
<i class="fas fa-comments mr-3"></i> AI Assistant
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-md text-sm font-medium" onclick="navigateTo('settings')">
<i class="fas fa-cog mr-3"></i> Settings
</a>
</nav>
<!-- Quick Actions -->
<div class="mt-auto mb-4">
<button class="w-full flex items-center justify-center px-4 py-2 bg-white text-indigo-600 rounded-md text-sm font-medium hover:bg-opacity-90">
<i class="fas fa-plus mr-2"></i> New Meeting
</button>
<button onclick="showAiPrompt()" class="mt-2 w-full flex items-center justify-center px-4 py-2 bg-yellow-500 text-white rounded-md text-sm font-medium hover:bg-yellow-600">
<i class="fas fa-magic mr-2"></i> AI Quick Action
</button>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex flex-col flex-1 overflow-hidden">
<!-- Top Navigation -->
<div class="flex items-center justify-between h-16 px-4 bg-white border-b">
<div class="flex items-center">
<button class="md:hidden mr-2 text-gray-500" onclick="toggleMobileMenu()">
<i class="fas fa-bars"></i>
</button>
<h1 class="text-lg font-semibold" id="pageTitle">EOS Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button onclick="toggleNotifications()" class="p-1 rounded-full text-gray-500 hover:text-gray-700 focus:outline-none">
<i class="fas fa-bell"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
<div id="notificationsDropdown" class="hidden absolute right-0 mt-2 w-72 bg-white rounded-md shadow-lg py-1 z-10">
<div class="px-4 py-2 border-b">
<h3 class="text-sm font-medium">Notifications</h3>
</div>
<div class="max-h-60 overflow-y-auto">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 border-b">
<div class="font-medium">New issue reported</div>
<div class="text-xs text-gray-500">Team communication problem</div>
</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 border-b">
<div class="font-medium">Quarterly rock completed</div>
<div class="text-xs text-gray-500">Website redesign finished</div>
</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
<div class="font-medium">New metric added</div>
<div class="text-xs text-gray-500">Customer satisfaction score</div>
</a>
</div>
<div class="px-4 py-2 bg-gray-50 text-center">
<a href="#" class="text-xs text-indigo-600 hover:text-indigo-800">View all notifications</a>
</div>
</div>
</div>
<div class="relative">
<button onclick="toggleUserDropdown()" class="flex items-center focus:outline-none">
<img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
<span class="ml-2 text-sm font-medium hidden md:inline">John Doe</span>
<i class="fas fa-chevron-down ml-1 text-xs hidden md:inline"></i>
</button>
<div id="userDropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Your Profile</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
</div>
</div>
</div>
</div>
<!-- Main Content Area -->
<div class="flex-1 overflow-auto p-4 bg-gray-50" id="mainContent">
<!-- Welcome Banner -->
<div class="gradient-bg text-white rounded-xl p-6 mb-6 relative overflow-hidden">
<div class="relative z-10">
<h2 class="text-2xl font-bold mb-2">Welcome back, John!</h2>
<p class="mb-4 opacity-90">Your company is operating at <span class="font-bold">78%</span> of its potential according to EOS standards.</p>
<button onclick="getAiRecommendations()" class="px-4 py-2 bg-white text-indigo-600 rounded-md text-sm font-medium hover:bg-opacity-90">
Get AI Recommendations
</button>
</div>
<div class="absolute -right-10 -bottom-10 opacity-20">
<i class="fas fa-brain text-9xl"></i>
</div>
</div>
<!-- EOS Components Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-6">
<!-- Vision -->
<div class="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg flex items-center">
<i class="fas fa-rocket mr-2 text-indigo-500"></i> Vision
</h3>
<span class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">85% Complete</span>
</div>
<p class="text-gray-600 text-sm mb-4">Clarify your company's vision and ensure everyone is aligned.</p>
<div class="space-y-3">
<div class="flex items-center">
<div class="w-6 h-6 rounded-full bg-indigo-100 flex items-center justify-center mr-2">
<i class="fas fa-check text-indigo-500 text-xs"></i>
</div>
<span class="text-sm">Core Values Defined</span>
</div>
<div class="flex items-center">
<div class="w-6 h-6 rounded-full bg-indigo-100 flex items-center justify-center mr-2">
<i class="fas fa-check text-indigo-500 text-xs"></i>
</div>
<span class="text-sm">10-Year Target Set</span>
</div>
<div class="flex items-center opacity-50">
<div class="w-6 h-6 rounded-full bg-gray-100 flex items-center justify-center mr-2">
<i class="fas fa-ellipsis-h text-gray-400 text-xs"></i>
</div>
<span class="text-sm">Marketing Strategy</span>
</div>
</div>
<button onclick="navigateTo('vision')" class="mt-4 w-full py-2 bg-indigo-50 text-indigo-600 rounded-md text-sm font-medium hover:bg-indigo-100">
Refine Vision
</button>
</div>
<!-- People -->
<div class="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg flex items-center">
<i class="fas fa-users mr-2 text-blue-500"></i> People
</h3>
<span class="text-xs px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full">Needs Attention</span>
</div>
<p class="text-gray-600 text-sm mb-4">Get the right people in the right seats.</p>
<div class="mb-4">
<div class="flex justify-between text-xs text-gray-500 mb-1">
<span>Seats Filled</span>
<span>5/7</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-500 h-2 rounded-full" style="width: 71%"></div>
</div>
</div>
<div class="space-y-2">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-2">
<i class="fas fa-user text-blue-500 text-xs"></i>
</div>
<span class="text-sm">Marketing Lead</span>
</div>
<span class="text-xs text-red-500">Vacant</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-6 h-6 rounded-full bg-blue-100 flex items-center justify-center mr-2">
<i class="fas fa-user text-blue-500 text-xs"></i>
</div>
<span class="text-sm">Operations</span>
</div>
<span class="text-xs text-green-500">Strong Fit</span>
</div>
</div>
<button onclick="navigateTo('people')" class="mt-4 w-full py-2 bg-blue-50 text-blue-600 rounded-md text-sm font-medium hover:bg-blue-100">
Manage Team
</button>
</div>
<!-- Data -->
<div class="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg flex items-center">
<i class="fas fa-chart-line mr-2 text-green-500"></i> Data
</h3>
<span class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded-full">3 New Reports</span>
</div>
<p class="text-gray-600 text-sm mb-4">Measure your pulse with the right metrics.</p>
<div class="grid grid-cols-3 gap-2 mb-4">
<div class="bg-gray-50 p-2 rounded text-center">
<div class="text-lg font-bold text-green-600">$124K</div>
<div class="text-xs text-gray-500">Revenue</div>
</div>
<div class="bg-gray-50 p-2 rounded text-center">
<div class="text-lg font-bold text-blue-600">87%</div>
<div class="text-xs text-gray-500">Profit Margin</div>
</div>
<div class="bg-gray-50 p-2 rounded text-center">
<div class="text-lg font-bold text-purple-600">42</div>
<div class="text-xs text-gray-500">New Clients</div>
</div>
</div>
<div class="h-24 mb-2">
<canvas id="revenueChart"></canvas>
</div>
<button onclick="navigateTo('data')" class="mt-2 w-full py-2 bg-green-50 text-green-600 rounded-md text-sm font-medium hover:bg-green-100">
View All Metrics
</button>
</div>
<!-- Issues -->
<div class="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg flex items-center">
<i class="fas fa-exclamation-triangle mr-2 text-red-500"></i> Issues
</h3>
<span class="text-xs px-2 py-1 bg-red-100 text-red-800 rounded-full">5 Active</span>
</div>
<p class="text-gray-600 text-sm mb-4">Identify, discuss and solve your issues.</p>
<div class="space-y-3">
<div class="flex items-start">
<div class="w-6 h-6 rounded-full bg-red-100 flex items-center justify-center mr-2 mt-1">
<i class="fas fa-exclamation text-red-500 text-xs"></i>
</div>
<div>
<div class="text-sm font-medium">Client onboarding delays</div>
<div class="text-xs text-gray-500">Open for 12 days</div>
</div>
</div>
<div class="flex items-start">
<div class="w-6 h-6 rounded-full bg-red-100 flex items-center justify-center mr-2 mt-1">
<i class="fas fa-exclamation text-red-500 text-xs"></i>
</div>
<div>
<div class="text-sm font-medium">Inventory shortages</div>
<div class="text-xs text-gray-500">Open for 5 days</div>
</div>
</div>
<div class="flex items-start">
<div class="w-6 h-6 rounded-full bg-yellow-100 flex items-center justify-center mr-2 mt-1">
<i class="fas fa-exclamation text-yellow-500 text-xs"></i>
</div>
<div>
<div class="text-sm font-medium">Team communication</div>
<div class="text-xs text-gray-500">Open for 3 days</div>
</div>
</div>
</div>
<button onclick="navigateTo('issues')" class="mt-4 w-full py-2 bg-red-50 text-red-600 rounded-md text-sm font-medium hover:bg-red-100">
Solve Issues
</button>
</div>
<!-- Process -->
<div class="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg flex items-center">
<i class="fas fa-lightbulb mr-2 text-purple-500"></i> Process
</h3>
<span class="text-xs px-2 py-1 bg-purple-100 text-purple-800 rounded-full">2 Incomplete</span>
</div>
<p class="text-gray-600 text-sm mb-4">Document your core processes.</p>
<div class="mb-4">
<div class="flex justify-between text-xs text-gray-500 mb-1">
<span>Process Documentation</span>
<span>60%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-purple-500 h-2 rounded-full" style="width: 60%"></div>
</div>
</div>
<div class="space-y-2">
<div class="flex items-center">
<div class="w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center mr-2">
<i class="fas fa-check text-purple-500 text-xs"></i>
</div>
<span class="text-sm">Sales Process</span>
</div>
<div class="flex items-center">
<div class="w-6 h-6 rounded-full bg-purple-100 flex items-center justify-center mr-2">
<i class="fas fa-check text-purple-500 text-xs"></i>
</div>
<span class="text-sm">Onboarding</span>
</div>
<div class="flex items-center opacity-50">
<div class="w-6 h-6 rounded-full bg-gray-100 flex items-center justify-center mr-2">
<i class="fas fa-ellipsis-h text-gray-400 text-xs"></i>
</div>
<span class="text-sm">Customer Support</span>
</div>
</div>
<button onclick="navigateTo('process')" class="mt-4 w-full py-2 bg-purple-50 text-purple-600 rounded-md text-sm font-medium hover:bg-purple-100">
Document Processes
</button>
</div>
<!-- Traction -->
<div class="bg-white rounded-xl shadow-sm p-6 hover:shadow-md transition-shadow">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg flex items-center">
<i class="fas fa-bullseye mr-2 text-orange-500"></i> Traction
</h3>
<span class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">On Track</span>
</div>
<p class="text-gray-600 text-sm mb-4">Execute your vision with discipline.</p>
<div class="flex items-center justify-between mb-3">
<div class="text-sm">Quarterly Rocks</div>
<div class="text-xs px-2 py-1 bg-orange-100 text-orange-800 rounded-full">3/4 Complete</div>
</div>
<div class="space-y-2 mb-4">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-green-100 border-2 border-green-500 flex items-center justify-center mr-2">
<i class="fas fa-check text-green-500 text-xs"></i>
</div>
<span class="text-sm">Launch new product</span>
</div>
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-green-100 border-2 border-green-500 flex items-center justify-center mr-2">
<i class="fas fa-check text-green-500 text-xs"></i>
</div>
<span class="text-sm">Hire 2 team members</span>
</div>
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-green-100 border-2 border-green-500 flex items-center justify-center mr-2">
<i class="fas fa-check text-green-500 text-xs"></i>
</div>
<span class="text-sm">Redesign website</span>
</div>
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-orange-100 border-2 border-orange-500 flex items-center justify-center mr-2">
<i class="fas fa-spinner text-orange-500 text-xs"></i>
</div>
<span class="text-sm">Secure $200K funding</span>
</div>
</div>
<button onclick="navigateTo('traction')" class="mt-2 w-full py-2 bg-orange-50 text-orange-600 rounded-md text-sm font-medium hover:bg-orange-100">
View Traction Tools
</button>
</div>
</div>
<!-- AI Assistant Section -->
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg flex items-center">
<i class="fas fa-robot mr-2 text-indigo-500"></i> AI Business Assistant
</h3>
<div class="flex space-x-2">
<button onclick="showQuickActions()" class="px-3 py-1 bg-indigo-50 text-indigo-600 rounded-md text-xs font-medium hover:bg-indigo-100">
<i class="fas fa-bolt mr-1"></i> Quick Actions
</button>
<button onclick="showChatHistory()" class="px-3 py-1 bg-gray-100 text-gray-600 rounded-md text-xs font-medium hover:bg-gray-200">
<i class="fas fa-history mr-1"></i> History
</button>
</div>
</div>
<div class="bg-gray-50 rounded-lg p-4 mb-4 h-96 overflow-y-auto" id="chatContainer">
<div class="flex mb-3">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i class="fas fa-robot text-indigo-500"></i>
</div>
<div class="ai-response bg-white p-3 rounded-lg flex-1">
<p class="text-sm">Hi John! I'm your AI business assistant. I can help you analyze your EOS implementation, suggest improvements, generate reports, and more. What would you like to work on today?</p>
</div>
</div>
<div class="flex justify-end mb-3">
<div class="ai-response bg-indigo-50 p-3 rounded-lg max-w-xs">
<p class="text-sm">Can you analyze our People component and suggest improvements?</p>
</div>
<div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center ml-3">
<i class="fas fa-user text-white text-sm"></i>
</div>
</div>
<div class="flex">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i class="fas fa-robot text-indigo-500"></i>
</div>
<div class="ai-response bg-white p-3 rounded-lg flex-1">
<p class="text-sm font-medium mb-1">Based on your People component data:</p>
<ul class="text-sm list-disc pl-5 space-y-1">
<li>Your Marketing Lead position has been vacant for 47 days - I recommend prioritizing this hire</li>
<li>Your Operations team member is a strong fit - consider recognizing their contributions</li>
<li>Team communication was flagged as an issue - I can help draft a communication protocol</li>
</ul>
<div class="mt-2 flex space-x-2">
<button onclick="generateProtocol()" class="px-3 py-1 bg-indigo-500 text-white rounded-md text-xs font-medium hover:bg-indigo-600">
Draft Communication Protocol
</button>
<button onclick="showMoreSuggestions()" class="px-3 py-1 bg-white border border-gray-300 rounded-md text-xs font-medium hover:bg-gray-50">
See More Suggestions
</button>
</div>
</div>
</div>
</div>
<div class="flex">
<input type="text" id="aiInput" placeholder="Ask your AI assistant anything..."
class="flex-1 px-4 py-3 rounded-l-lg border border-gray-300 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500">
<button onclick="sendMessage()" class="px-4 py-3 bg-indigo-500 text-white rounded-r-lg hover:bg-indigo-600">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Recent Activity</h3>
<button onclick="navigateTo('activity')" class="text-sm text-indigo-600 hover:text-indigo-800">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3 mt-1">
<i class="fas fa-check text-green-500"></i>
</div>
<div class="flex-1">
<div class="flex items-center justify-between">
<span class="font-medium">Quarterly Rock Completed</span>
<span class="text-xs text-gray-500">2 hours ago</span>
</div>
<p class="text-sm text-gray-600">"Redesign website" was marked as complete by Sarah from Marketing</p>
</div>
</div>
<div class="flex items-start">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3 mt-1">
<i class="fas fa-users text-blue-500"></i>
</div>
<div class="flex-1">
<div class="flex items-center justify-between">
<span class="font-medium">Team Meeting</span>
<span class="text-xs text-gray-500">Yesterday</span>
</div>
<p class="text-sm text-gray-600">Weekly Level 10 Meeting completed with 3 issues solved</p>
<div class="mt-1 flex space-x-2">
<span class="px-2 py-1 bg-gray-100 text-gray-800 rounded-full text-xs">Notes</span>
<span class="px-2 py-1 bg-gray-100 text-gray-800 rounded-full text-xs">Action Items</span>
</div>
</div>
</div>
<div class="flex items-start">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3 mt-1">
<i class="fas fa-chart-line text-purple-500"></i>
</div>
<div class="flex-1">
<div class="flex items-center justify-between">
<span class="font-medium">New Metric Added</span>
<span class="text-xs text-gray-500">2 days ago</span>
</div>
<p class="text-sm text-gray-600">"Customer Satisfaction Score" was added to your Scorecard by Michael</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- AI Prompt Modal -->
<div id="aiPromptModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
<div class="bg-white rounded-xl w-full max-w-md animate-fade-in">
<div class="p-5">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">AI Quick Action</h3>
<button onclick="hideAiPrompt()" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-2">What would you like to accomplish?</label>
<select id="aiActionSelect" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-indigo-500">
<option value="">Select an action...</option>
<option value="agenda">Generate a meeting agenda</option>
<option value="analyze">Analyze a business component</option>
<option value="process">Create a process document</option>
<option value="communication">Draft a communication</option>
<option value="solve">Solve a specific issue</option>
<option value="report">Generate a report</option>
</select>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-2">Provide details (optional)</label>
<textarea id="aiPromptDetails" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-indigo-500" rows="3" placeholder="E.g. 'Create an agenda for our quarterly planning meeting with the leadership team...'"></textarea>
</div>
<div class="flex justify-end space-x-3">
<button onclick="hideAiPrompt()" class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">
Cancel
</button>
<button onclick="generateAiAction()" class="px-4 py-2 bg-indigo-600 text-white rounded-md text-sm font-medium hover:bg-indigo-700">
Generate
</button>
</div>
</div>
</div>
</div>
<!-- Quick Actions Modal -->
<div id="quickActionsModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
<div class="bg-white rounded-xl w-full max-w-md animate-fade-in">
<div class="p-5">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Quick Actions</h3>
<button onclick="hideQuickActions()" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="grid grid-cols-2 gap-3">
<button onclick="quickAction('analyze')" class="px-4 py-3 bg-indigo-50 text-indigo-600 rounded-md text-sm font-medium hover:bg-indigo-100 flex flex-col items-center">
<i class="fas fa-chart-pie text-xl mb-1"></i>
Analyze Data
</button>
<button onclick="quickAction('meeting')" class="px-4 py-3 bg-blue-50 text-blue-600 rounded-md text-sm font-medium hover:bg-blue-100 flex flex-col items-center">
<i class="fas fa-calendar-alt text-xl mb-1"></i>
Schedule Meeting
</button>
<button onclick="quickAction('report')" class="px-4 py-3 bg-green-50 text-green-600 rounded-md text-sm font-medium hover:bg-green-100 flex flex-col items-center">
<i class="fas fa-file-alt text-xl mb-1"></i>
Generate Report
</button>
<button onclick="quickAction('task')" class="px-4 py-3 bg-purple-50 text-purple-600 rounded-md text-sm font-medium hover:bg-purple-100 flex flex-col items-center">
<i class="fas fa-tasks text-xl mb-1"></i>
Create Task
</button>
</div>
</div>
</div>
</div>
<script>
// Initialize Chart
document.addEventListener('DOMContentLoaded', function() {
// Revenue Chart
const ctx = document.getElementById('revenueChart').getContext('2d');
const revenueChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Revenue',
data: [85000, 92000, 102000, 115000, 124000, 135000],
backgroundColor: 'rgba(79, 70, 229, 0.1)',
borderColor: 'rgba(79, 70, 229, 1)',
borderWidth: 2,
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
grid: {
display: false
},
ticks: {
callback: function(value) {
return '$' + (value / 1000) + 'K';
}
}
},
x: {
grid: {
display: false
}
}
}
}
});
// Simulate API connection
const savedApiKey = localStorage.getItem('eosApiKey');
if (savedApiKey) {
document.getElementById('apiKey').value = savedApiKey;
document.getElementById('mobileApiKey').value = savedApiKey;
updateApiStatus(true);
}
});
// Save API Key
function saveApiKey(inputId) {
const apiKey = document.getElementById(inputId).value;
if (apiKey) {
// In a real app, you would securely store this and verify it
localStorage.setItem('eosApiKey', apiKey);
updateApiStatus(true);
// Show success message
showToast('API key saved successfully! DeepSeek AI integration is now active.', 'success');
} else {
showToast('Please enter your DeepSeek API key', 'error');
}
}
function updateApiStatus(connected) {
if (connected) {
document.getElementById('apiStatus').textContent = 'Connected';
document.getElementById('apiStatus').previousElementSibling.className = 'fas fa-circle text-green-400 mr-1 text-xs';
document.getElementById('mobileApiStatus').textContent = 'Connected';
document.getElementById('mobileApiStatus').previousElementSibling.className = 'fas fa-circle text-green-400 mr-1 text-xs';
} else {
document.getElementById('apiStatus').textContent = 'Not connected';
document.getElementById('apiStatus').previousElementSibling.className = 'fas fa-circle text-gray-400 mr-1 text-xs';
document.getElementById('mobileApiStatus').textContent = 'Not connected';
document.getElementById('mobileApiStatus').previousElementSibling.className = 'fas fa-circle text-gray-400 mr-1 text-xs';
}
}
// Toggle user dropdown
function toggleUserDropdown() {
document.getElementById('userDropdown').classList.toggle('hidden');
}
// Toggle notifications dropdown
function toggleNotifications() {
document.getElementById('notificationsDropdown').classList.toggle('hidden');
}
// Toggle mobile menu
function toggleMobileMenu() {
const mobileMenu = document.getElementById('mobileSidebar');
mobileMenu.classList.toggle('transform');
mobileMenu.classList.toggle('-translate-x-full');
}
// Show AI prompt modal
function showAiPrompt() {
document.getElementById('aiPromptModal').classList.remove('hidden');
}
// Hide AI prompt modal
function hideAiPrompt() {
document.getElementById('aiPromptModal').classList.add('hidden');
}
// Show Quick Actions modal
function showQuickActions() {
document.getElementById('quickActionsModal').classList.remove('hidden');
}
// Hide Quick Actions modal
function hideQuickActions() {
document.getElementById('quickActionsModal').classList.add('hidden');
}
// Show Chat History
function showChatHistory() {
// In a real app, you would load actual chat history
showToast('Chat history loaded', 'info');
}
// Generate AI Action
function generateAiAction() {
const action = document.getElementById('aiActionSelect').value;
const details = document.getElementById('aiPromptDetails').value;
if (!action) {
showToast('Please select an action', 'error');
return;
}
hideAiPrompt();
// Simulate AI processing
showToast('Generating your request...', 'info');
setTimeout(() => {
let response = '';
switch(action) {
case 'agenda':
response = `I've generated a meeting agenda based on your request: "${details || 'quarterly planning meeting'}". The agenda includes: 1) Review of quarterly goals, 2) Discussion of key metrics, 3) Identification of roadblocks, 4) Action planning for next quarter. Would you like me to send this to your team or make any adjustments?`;
break;
case 'analyze':
response = `Analysis complete. Based on ${details || 'current business data'}, I've identified 3 key opportunities for improvement: 1) Streamlining client onboarding (could reduce time by 30%), 2) Optimizing team communication (potential 25% efficiency gain), 3) Enhancing your marketing strategy (projected 15% lead increase).`;
break;
case 'process':
response = `I've created a draft process document for ${details || 'your sales process'}. It includes: 1) Step-by-step workflow, 2) Key responsibilities, 3) Success metrics, 4) Common pitfalls to avoid. Would you like to review it now or share it with your team?`;
break;
case 'communication':
response = `Here's a draft communication based on your request: "${details || 'announcing the new company policy'}". The message is clear, concise, and includes all necessary details while maintaining a positive tone. Would you like to preview it before sending?`;
break;
case 'solve':
response = `For the issue "${details || 'team communication problems'}", I recommend: 1) Implementing weekly check-ins, 2) Creating clear communication protocols, 3) Using a collaboration tool like Slack or Teams, 4) Scheduling monthly team-building activities. I can help implement any of these solutions.`;
break;
case 'report':
response = `Your ${details || 'quarterly performance'} report is ready. Key highlights: 1) Revenue growth of 15% quarter-over-quarter, 2) Customer satisfaction score of 4.7/5, 3) 42 new clients onboarded, 4) 3 key challenges identified. Would you like to customize this report further?`;
break;
}
addAiMessage(response);
showToast('Action completed successfully!', 'success');
}, 2000);
}
// Quick Action
function quickAction(type) {
hideQuickActions();
let response = '';
switch(type) {
case 'analyze':
response = "Quick analysis complete: Your team's productivity is at 78% of potential. Top areas for improvement: 1) Reduce meeting time by 20%, 2) Automate 3 repetitive tasks, 3) Clarify role responsibilities for 2 positions.";
break;
case 'meeting':
response = "I've scheduled a leadership meeting for tomorrow at 10 AM. Agenda includes: 1) Quarterly review, 2) Priority setting, 3) Issue resolution. Would you like to invite additional team members?";
break;
case 'report':
response = "Quick report generated: This week's metrics show 12% growth in leads, 8% increase in conversions, but a 5% drop in customer satisfaction. I can dive deeper into any of these areas.";
break;
case 'task':
response = "Task created: 'Implement new communication protocol' assigned to Sarah with a deadline of Friday. Would you like to set up reminders or add more details?";
break;
}
addAiMessage(response);
showToast('Quick action completed!', 'success');
}
// Send message to AI
function sendMessage() {
const input = document.getElementById('aiInput');
const message = input.value.trim();
if (!message) {
showToast('Please enter a message', 'error');
return;
}
// Add user message to chat
addUserMessage(message);
input.value = '';
// Show typing indicator
const chatContainer = document.getElementById('chatContainer');
const typingDiv = document.createElement('div');
typingDiv.className = 'flex mb-3';
typingDiv.innerHTML = `
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i class="fas fa-robot text-indigo-500"></i>
</div>
<div class="ai-response bg-white p-3 rounded-lg flex-1">
<p class="text-sm typing-indicator">Thinking</p>
</div>
`;
chatContainer.appendChild(typingDiv);
chatContainer.scrollTop = chatContainer.scrollHeight;
// Simulate AI response after delay
setTimeout(() => {
// Remove typing indicator
chatContainer.removeChild(typingDiv);
// Add AI response
let response = '';
if (message.toLowerCase().includes('vision')) {
response = "Regarding your Vision component: Your core values and 10-year target are well-defined, but your marketing strategy needs refinement. I recommend: 1) Conducting a market analysis, 2) Defining clear brand positioning, 3) Setting measurable marketing goals.";
} else if (message.toLowerCase().includes('people')) {
response = "For your People component: The Marketing Lead position has been vacant for 47 days. I suggest: 1) Prioritizing this hire, 2) Reviewing your hiring process, 3) Considering interim solutions. Your Operations team member is a strong fit - recognition could boost morale.";
} else if (message.toLowerCase().includes('data')) {
response = "Your data shows: Revenue growth of 15% this quarter, profit margin at 87%, and 42 new clients. Key insights: 1) Client acquisition cost is rising, 2) Retention rate could improve, 3) Operational efficiency is strong. Would you like detailed analysis on any area?";
} else if (message.toLowerCase().includes('issue') || message.toLowerCase().includes('problem')) {
response = "For the issues you mentioned: The root causes appear to be 1) Communication gaps, 2) Process inconsistencies, 3) Resource constraints. Solutions: 1) Implement daily standups, 2) Document key processes, 3) Reallocate resources strategically.";
} else {
response = "Thanks for your message! I can help with: 1) Analyzing EOS components, 2) Generating reports, 3) Solving business issues, 4) Creating documents. What would you like to focus on?";
}
addAiMessage(response);
}, 1500);
}
// Add user message to chat
function addUserMessage(message) {
const chatContainer = document.getElementById('chatContainer');
const messageDiv = document.createElement('div');
messageDiv.className = 'flex justify-end mb-3 slide-in';
messageDiv.innerHTML = `
<div class="ai-response bg-indigo-50 p-3 rounded-lg max-w-xs">
<p class="text-sm">${message}</p>
</div>
<div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center ml-3">
<i class="fas fa-user text-white text-sm"></i>
</div>
`;
chatContainer.appendChild(messageDiv);
chatContainer.scrollTop = chatContainer.scrollHeight;
}
// Add AI message to chat
function addAiMessage(message) {
const chatContainer = document.getElementById('chatContainer');
const messageDiv = document.createElement('div');
messageDiv.className = 'flex mb-3 slide-in';
messageDiv.innerHTML = `
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i class="fas fa-robot text-indigo-500"></i>
</div>
<div class="ai-response bg-white p-3 rounded-lg flex-1">
<p class="text-sm">${message}</p>
</div>
`;
chatContainer.appendChild(messageDiv);
chatContainer.scrollTop = chatContainer.scrollHeight;
}
// Generate protocol
function generateProtocol() {
showToast('Generating communication protocol...', 'info');
setTimeout(() => {
addAiMessage(`Communication Protocol Draft:
1. <strong>Daily Standups</strong>: 15-minute meetings at 9 AM to align priorities
2. <strong>Communication Channels</strong>:
- Slack for urgent matters
- Email for formal communications
- Meetings for complex discussions
3. <strong>Response Times</strong>:
- Urgent: Within 1 hour
- Normal: Within 24 hours
4. <strong>Meeting Guidelines</strong>: Agenda required 24h in advance
Would you like to customize any of these or implement them?`);
}, 2000);
}
// Show more suggestions
function showMoreSuggestions() {
addAiMessage(`Additional recommendations for your People component:
1. <strong>Hiring Process</strong>: Implement structured interviews with scorecards
2. <strong>Onboarding</strong>: Create a 30-60-90 day plan for new hires
3. <strong>Performance Reviews</strong>: Quarterly reviews with clear metrics
4. <strong>Team Building</strong>: Monthly activities to strengthen relationships
I can help create templates or processes for any of these areas.`);
}
// Get AI recommendations
function getAiRecommendations() {
showToast('Analyzing your business for recommendations...', 'info');
setTimeout(() => {
addAiMessage(`Top Recommendations for Your Business:
1. <strong>Vision Alignment</strong>: Schedule a vision session to ensure 100% team alignment (85% complete)
2. <strong>Hiring Priority</strong>: Fill the Marketing Lead position within 30 days
3. <strong>Process Documentation</strong>: Complete the Customer Support process documentation
4. <strong>Issue Resolution</strong>: Address the client onboarding delays (open 12 days)
5. <strong>Metric Tracking</strong>: Add customer satisfaction to your scorecard
Would you like me to create an action plan for any of these?`);
}, 2500);
}
// Navigate to different sections
function navigateTo(section) {
// In a real app, this would load different content
const titles = {
'dashboard': 'EOS Dashboard',
'vision': 'Vision Component',
'people': 'People Component',
'data': 'Data & Metrics',
'issues': 'Issues Tracker',
'process': 'Process Documentation',
'assistant': 'AI Assistant',
'settings': 'Settings',
'traction': 'Traction Tools',
'activity': 'Activity Log'
};
document.getElementById('pageTitle').textContent = titles[section] || 'EOS Dashboard';
// Update active sidebar item
document.querySelectorAll('.sidebar-item').forEach(item => {
item.classList.remove('active');
});
// Find and activate the corresponding sidebar item
const sidebarItems = document.querySelectorAll('.sidebar-item');
for (let item of sidebarItems) {
if (item.textContent.toLowerCase().includes(section)) {
item.classList.add('active');
break;
}
}
// Close mobile menu if open
const mobileMenu = document.getElementById('mobileSidebar');
if (!mobileMenu.classList.contains('-translate-x-full')) {
toggleMobileMenu();
}
showToast(`Navigated to ${titles[section] || 'the selected section'}`, 'info');
}
// Show toast notification
function showToast(message, type) {
const toast = document.createElement('div');
let bgColor = 'bg-indigo-500';
if (type === 'error') bgColor = 'bg-red-500';
if (type === 'success') bgColor = 'bg-green-500';
if (type === 'info') bgColor = 'bg-blue-500';
toast.className = `fixed bottom-4 right-4 ${bgColor} text-white px-4 py-2 rounded-md shadow-lg flex items-center slide-in`;
toast.innerHTML = `
<span>${message}</span>
<button onclick="this.parentElement.remove()" class="ml-2">
<i class="fas fa-times"></i>
</button>
`;
document.body.appendChild(toast);
setTimeout(() => {
toast.remove();
}, 5000);
}
// Close dropdowns when clicking outside
document.addEventListener('click', function(event) {
if (!event.target.closest('.relative')) {
document.getElementById('userDropdown').classList.add('hidden');
document.getElementById('notificationsDropdown').classList.add('hidden');
}
// Close mobile menu when clicking outside
const mobileMenu = document.getElementById('mobileSidebar');
if (!event.target.closest('#mobileSidebar') && !event.target.closest('.md\\:hidden.mr-2')) {
if (!mobileMenu.classList.contains('-translate-x-full')) {
toggleMobileMenu();
}
}
});
// Handle Enter key in AI input
document.getElementById('aiInput').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
sendMessage();
}
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=JayStormX8/eosv2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>
|