CoolFace
Apppublic

Kaliman-1981/turnaround-optimizer-pro

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
analysis.html316 linesDownload Raw Back to root
1<!DOCTYPE html>2<html lang="en">3<head>4    <meta charset="UTF-8">5    <meta name="viewport" content="width=device-width, initial-scale=1.0">6    <title>Schedule Analysis | Turnaround Optimizer Pro</title>7    <script src="https://cdn.tailwindcss.com"></script>8    <script src="https://unpkg.com/feather-icons"></script>9    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>10    <style>11        .gantt-bar {12            height: 24px;13            border-radius: 4px;14            position: relative;15        }16        .critical-path {17            background-color: rgba(239, 68, 68, 0.7);18        }19        .optimized-path {20            background-color: rgba(16, 185, 129, 0.7);21        }22        .dependency-line {23            position: absolute;24            height: 2px;25            background-color: #6b7280;26            transform-origin: left center;27        }28    </style>29</head>30<body class="bg-gray-50 min-h-screen">31    <div class="container mx-auto px-4 py-8">32        <div class="flex justify-between items-center mb-8">33            <div>34                <h1 class="text-2xl font-bold text-gray-800">Schedule Analysis</h1>35                <p class="text-gray-600">Visual optimization opportunities for <span class="font-medium">PIP-2034</span></p>36            </div>37            <a href="index.html" class="flex items-center text-blue-600 hover:text-blue-800">38                <i data-feather="arrow-left" class="w-4 h-4 mr-1"></i> Back to Upload39            </a>40        </div>41 42        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mb-8">43            <!-- Overview Card -->44            <div class="bg-white rounded-xl shadow-md p-6 lg:col-span-1">45                <div class="flex items-center mb-4">46                    <div class="bg-blue-100 p-2 rounded-full mr-3">47                        <i data-feather="activity" class="text-blue-500"></i>48                    </div>49                    <h2 class="text-xl font-semibold text-gray-800">Optimization Summary</h2>50                </div>51                <div class="space-y-4">52                    <div>53                        <p class="text-sm text-gray-600 mb-1">Original Duration</p>54                        <p class="text-lg font-medium">7 days</p>55                    </div>56                    <div>57                        <p class="text-sm text-gray-600 mb-1">Optimized Duration</p>58                        <p class="text-lg font-medium text-green-600">4.5 days</p>59                    </div>60                    <div>61                        <p class="text-sm text-gray-600 mb-1">Savings</p>62                        <p class="text-lg font-medium">2.5 days (36%)</p>63                    </div>64                    <div class="pt-4 border-t border-gray-200">65                        <p class="text-sm text-gray-600 mb-1">Impact on Critical Path</p>66                        <div class="w-full bg-gray-200 rounded-full h-2.5 mt-2">67                            <div class="bg-purple-600 h-2.5 rounded-full" style="width: 78%"></div>68                        </div>69                    </div>70                </div>71            </div>72 73            <!-- Gantt Chart -->74            <div class="bg-white rounded-xl shadow-md p-6 lg:col-span-2">75                <div class="flex items-center mb-6">76                    <div class="bg-green-100 p-2 rounded-full mr-3">77                        <i data-feather="bar-chart-2" class="text-green-500"></i>78                    </div>79                    <h2 class="text-xl font-semibold text-gray-800">Gantt Comparison</h2>80                </div>81                <div class="relative" style="height: 300px;">82                    <div class="absolute inset-0 overflow-x-auto">83                        <div class="flex flex-col space-y-8 min-w-max">84                            <!-- Original Schedule -->85                            <div>86                                <div class="flex items-center mb-2">87                                    <span class="text-sm font-medium text-gray-700 mr-4">Original</span>88                                    <span class="text-xs text-gray-500">Day 1 → Day 7</span>89                                </div>90                                <div class="gantt-bar critical-path" style="width: 400px;">91                                    <div class="absolute -left-2 -top-2 bg-red-500 text-white text-xs px-1 rounded">PIP-2034</div>92                                </div>93                            </div>94                            95                            <!-- Optimized Schedule -->96                            <div>97                                <div class="flex items-center mb-2">98                                    <span class="text-sm font-medium text-gray-700 mr-4">Optimized</span>99                                    <span class="text-xs text-gray-500">Day 1 → Day 4.5</span>100                                </div>101                                <div class="flex space-x-8">102                                    <div class="gantt-bar optimized-path" style="width: 200px;">103                                        <div class="absolute -left-2 -top-2 bg-green-500 text-white text-xs px-1 rounded">PIP-2034-A</div>104                                    </div>105                                    <div class="gantt-bar optimized-path" style="width: 150px; margin-left: 50px;">106                                        <div class="absolute -left-2 -top-2 bg-green-500 text-white text-xs px-1 rounded">PIP-2034-B</div>107                                    </div>108                                </div>109                            </div>110                            111                            <!-- Dependency Lines -->112                            <div class="relative" style="height: 60px;">113                                <div class="dependency-line" style="width: 50px; top: 30px; left: 200px; transform: rotate(90deg);"></div>114                                <div class="absolute text-xs text-gray-500" style="left: 210px; top: 15px;">SS+2</div>115                            </div>116                        </div>117                    </div>118                </div>119                <div class="mt-6">120                    <div class="flex items-center">121                        <div class="w-3 h-3 bg-red-500 rounded-full mr-2"></div>122                        <span class="text-sm text-gray-700">Critical Path</span>123                        <div class="w-3 h-3 bg-green-500 rounded-full mr-2 ml-4"></div>124                        <span class="text-sm text-gray-700">Optimized Path</span>125                    </div>126                </div>127            </div>128        </div>129 130        <!-- Charts Section -->131        <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">132            <!-- Productivity Impact -->133            <div class="bg-white rounded-xl shadow-md p-6">134                <div class="flex items-center mb-4">135                    <div class="bg-yellow-100 p-2 rounded-full mr-3">136                        <i data-feather="trending-up" class="text-yellow-500"></i>137                    </div>138                    <h2 class="text-xl font-semibold text-gray-800">Productivity Impact</h2>139                </div>140                <div class="h-64">141                    <canvas id="productivityChart"></canvas>142                </div>143            </div>144 145            <!-- Cost Analysis -->146            <div class="bg-white rounded-xl shadow-md p-6">147                <div class="flex items-center mb-4">148                    <div class="bg-purple-100 p-2 rounded-full mr-3">149                        <i data-feather="dollar-sign" class="text-purple-500"></i>150                    </div>151                    <h2 class="text-xl font-semibold text-gray-800">Cost Analysis</h2>152                </div>153                <div class="h-64">154                    <canvas id="costChart"></canvas>155                </div>156            </div>157        </div>158 159        <!-- Detailed Recommendation -->160        <div class="bg-white rounded-xl shadow-md p-6 mb-8">161            <div class="flex items-center mb-4">162                <div class="bg-blue-100 p-2 rounded-full mr-3">163                    <i data-feather="clipboard" class="text-blue-500"></i>164                </div>165                <h2 class="text-xl font-semibold text-gray-800">Implementation Details</h2>166            </div>167            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">168                <div>169                    <h3 class="font-medium text-gray-800 mb-2">Current Logic</h3>170                    <ul class="list-disc pl-5 space-y-2 text-gray-700">171                        <li>Finish-to-Start relationship with scaffolding (PIP-2034 → SCA-1234)</li>172                        <li>Single crew allocation (5 workers)</li>173                        <li>Standard 5x8 work week</li>174                    </ul>175                </div>176                <div>177                    <h3 class="font-medium text-gray-800 mb-2">Optimized Approach</h3>178                    <ul class="list-disc pl-5 space-y-2 text-gray-700">179                        <li>Split into parallel activities (PIP-2034-A/B) with SS+2 relationship</li>180                        <li>Added swing shift (3 workers) with 1.15x OT multiplier</li>181                        <li>Prefabricated piping (30% reduction in field work)</li>182                    </ul>183                </div>184            </div>185            <div class="mt-6 pt-6 border-t border-gray-200">186                <h3 class="font-medium text-gray-800 mb-3">Risk Assessment</h3>187                <div class="flex items-center space-x-4">188                    <div class="flex-1">189                        <div class="flex justify-between text-sm text-gray-600 mb-1">190                            <span>Safety</span>191                            <span>Low</span>192                        </div>193                        <div class="w-full bg-gray-200 rounded-full h-2">194                            <div class="bg-green-500 h-2 rounded-full" style="width: 20%"></div>195                        </div>196                    </div>197                    <div class="flex-1">198                        <div class="flex justify-between text-sm text-gray-600 mb-1">199                            <span>Cost</span>200                            <span>Medium</span>201                        </div>202                        <div class="w-full bg-gray-200 rounded-full h-2">203                            <div class="bg-yellow-500 h-2 rounded-full" style="width: 50%"></div>204                        </div>205                    </div>206                    <div class="flex-1">207                        <div class="flex justify-between text-sm text-gray-600 mb-1">208                            <span>Schedule</span>209                            <span>High</span>210                        </div>211                        <div class="w-full bg-gray-200 rounded-full h-2">212                            <div class="bg-red-500 h-2 rounded-full" style="width: 80%"></div>213                        </div>214                    </div>215                </div>216            </div>217        </div>218 219        <!-- Export Options -->220        <div class="bg-white rounded-xl shadow-md p-6">221            <div class="flex flex-col md:flex-row md:items-center md:justify-between">222                <div class="mb-4 md:mb-0">223                    <h2 class="text-lg font-semibold text-gray-800">Export Analysis</h2>224                    <p class="text-sm text-gray-600">Generate reports for your team</p>225                </div>226                <div class="flex space-x-3">227                    <button class="flex items-center px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">228                        <i data-feather="download" class="w-4 h-4 mr-2"></i> PDF229                    </button>230                    <button class="flex items-center px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">231                        <i data-feather="download" class="w-4 h-4 mr-2"></i> Excel232                    </button>233                    <button class="flex items-center px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">234                        <i data-feather="share-2" class="w-4 h-4 mr-2"></i> Share235                    </button>236                </div>237            </div>238        </div>239    </div>240 241    <script>242        // Initialize charts243        document.addEventListener('DOMContentLoaded', function() {244            // Productivity Chart245            const productivityCtx = document.getElementById('productivityChart').getContext('2d');246            new Chart(productivityCtx, {247                type: 'bar',248                data: {249                    labels: ['Original', 'Optimized'],250                    datasets: [{251                        label: 'Productivity Factor',252                        data: [0.75, 0.87],253                        backgroundColor: [254                            'rgba(239, 68, 68, 0.6)',255                            'rgba(16, 185, 129, 0.6)'256                        ],257                        borderColor: [258                            'rgba(239, 68, 68, 1)',259                            'rgba(16, 185, 129, 1)'260                        ],261                        borderWidth: 1262                    }]263                },264                options: {265                    scales: {266                        y: {267                            beginAtZero: true,268                            max: 1.0269                        }270                    },271                    plugins: {272                        legend: {273                            display: false274                        }275                    }276                }277            });278 279            // Cost Chart280            const costCtx = document.getElementById('costChart').getContext('2d');281            new Chart(costCtx, {282                type: 'doughnut',283                data: {284                    labels: ['Labor Savings', 'Overtime Cost', 'Material Cost', 'Equipment'],285                    datasets: [{286                        data: [12500, -4800, 2000, 1000],287                        backgroundColor: [288                            'rgba(16, 185, 129, 0.6)',289                            'rgba(239, 68, 68, 0.6)',290                            'rgba(59, 130, 246, 0.6)',291                            'rgba(249, 115, 22, 0.6)'292                        ],293                        borderColor: [294                            'rgba(16, 185, 129, 1)',295                            'rgba(239, 68, 68, 1)',296                            'rgba(59, 130, 246, 1)',297                            'rgba(249, 115, 22, 1)'298                        ],299                        borderWidth: 1300                    }]301                },302                options: {303                    plugins: {304                        legend: {305                            position: 'right'306                        }307                    }308                }309            });310 311            // Initialize feather icons312            feather.replace();313        });314    </script>315</body>316</html>