Got it—here’s a **ready-to-paste Deepsite prompt** that will generate a multi-page app wired to your TalentIQ Hybrid Scorer backend. It creates a Home, Job Description, Resumes, Candidates, Analytics, and Settings pages; shared nav; and page-to-page state. It assumes your Python script exposes a few HTTP endpoints (you can adapt paths easily).
f757315 verified Download analytics.html from nisha1321/resumerocket-smart-candidate-scorer: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/spaces/nisha1321/resumerocket-smart-candidate-scorer/resolve/main/analytics.html
- Command line
-
hf download hf://spaces/nisha1321/resumerocket-smart-candidate-scorer/analytics.html
-
curl -L -o analytics.html https://huggingface.co/spaces/nisha1321/resumerocket-smart-candidate-scorer/resolve/main/analytics.html
11.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Analytics - ResumeRocket</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#d946ef', | |
| secondary: '#6b7280' | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%); | |
| } | |
| .chart-placeholder { | |
| background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); | |
| } | |
| </style> | |
| </head> | |
| <body class="gradient-bg min-h-screen"> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-sm border-b"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <div class="w-8 h-8 bg-primary rounded-lg flex items-center justify-center"> | |
| <i data-feather="rocket" class="text-white w-4 h-4"></i> | |
| </div> | |
| <span class="ml-2 text-xl font-bold text-gray-900">ResumeRocket</span> | |
| </div> | |
| <div class="hidden md:ml-6 md:flex md:space-x-8"> | |
| <a href="index.html" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Home</a> | |
| <a href="job.html" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Job Description</a> | |
| <a href="resumes.html" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Resumes</a> | |
| <a href="candidates.html" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Candidates</a> | |
| <a href="analytics.html" class="border-primary text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Analytics</a> | |
| <a href="settings.html" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Settings</a> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <span class="text-sm text-gray-500">Analytics</span> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Breadcrumbs --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4"> | |
| <nav class="flex" aria-label="Breadcrumb"> | |
| <ol class="flex items-center space-x-4"> | |
| <li> | |
| <div> | |
| <a href="index.html" class="text-gray-400 hover:text-gray-500"> | |
| <i data-feather="home" class="w-4 h-4"></i> | |
| </a> | |
| </div> | |
| </li> | |
| <li> | |
| <div class="flex items-center"> | |
| <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i> | |
| <span class="ml-4 text-sm font-medium text-gray-500">Analytics</span> | |
| </div> | |
| </li> | |
| </ol> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <div class="bg-white rounded-lg shadow-lg p-6"> | |
| <h1 class="text-2xl font-bold text-gray-900 mb-6">Scoring Analytics</h1> | |
| <!-- Export Buttons --> | |
| <div class="flex justify-end space-x-3 mb-6"> | |
| <button id="copy-json-btn" class="bg-white border border-gray-300 text-gray-700 px-4 py-2 rounded-lg text-sm font-medium hover:bg-gray-50"> | |
| Copy JSON | |
| </button> | |
| <button id="copy-csv-btn" class="bg-primary hover:bg-fuchsia-600 text-white px-4 py-2 rounded-lg text-sm font-medium"> | |
| Export CSV | |
| </button> | |
| </div> | |
| <!-- Charts Grid --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> | |
| <!-- Hybrid Score Bar Chart --> | |
| <div class="bg-white rounded-lg border border-gray-200 p-4"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Hybrid Scores by Candidate</h3> | |
| <div class="chart-placeholder h-64 rounded-lg flex items-center justify-center"> | |
| <i data-feather="bar-chart-2" class="w-12 h-12 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <!-- Area Coverage Stacked Bar --> | |
| <div class="bg-white rounded-lg border border-gray-200 p-4"> | |
| <h3 class="text-lg font-medium text-gray-900">Area Coverage (Shortlist Avg)</h3> | |
| <div class="chart-placeholder h-64 rounded-lg flex items-center justify-center"> | |
| <i data-feather="bar-chart" class="w-12 h-12 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <!-- Sensitivity Line Chart --> | |
| <div class="bg-white rounded-lg border border-gray-200 p-4"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Cutoff Sensitivity</h3> | |
| <div class="chart-placeholder h-64 rounded-lg flex items-center justify-center"> | |
| <i data-feather="trending-up" class="w-12 h-12 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <!-- Drop Reasons Table --> | |
| <div class="bg-white rounded-lg border border-gray-200 p-4"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Top Drop Reasons</h3> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Weak Area</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Count</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg Coverage</th> | |
| </tr> | |
| </thead> | |
| <tbody id="drop-reasons-body" class="bg-white divide-y divide-gray-200"> | |
| <!-- Dynamic content will be inserted here --> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Empty State --> | |
| <div id="empty-analytics" class="text-center py-12"> | |
| <i data-feather="pie-chart" class="w-12 h-12 text-gray-400 mx-auto mb-4"></i> | |
| <p class="text-gray-500 mb-4">No scoring data available for analytics</p> | |
| <div class="flex justify-center space-x-4"> | |
| <a href="job.html" class="bg-primary hover:bg-fuchsia-600 text-white px-6 py-3 rounded-lg font-medium"> | |
| Configure Job Description | |
| </a> | |
| <a href="resumes.html" class="bg-white border border-gray-300 text-gray-700 px-6 py-3 rounded-lg font-medium hover:bg-gray-50"> | |
| Upload Resumes | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| const copyJsonBtn = document.getElementById('copy-json-btn'); | |
| const copyCsvBtn = document.getElementById('copy-csv-btn'); | |
| const dropReasonsBody = document.getElementById('drop-reasons-body'); | |
| const emptyAnalytics = document.getElementById('empty-analytics'); | |
| let analyticsData = null; | |
| // Load analytics data | |
| function loadAnalyticsData() { | |
| const state = JSON.parse(localStorage.getItem('resumerocket_state') || '{}'); | |
| analyticsData = state.result; | |
| updateAnalyticsDisplay(); | |
| } | |
| function updateAnalyticsDisplay() { | |
| if (!analyticsData) { | |
| emptyAnalytics.classList.remove('hidden'); | |
| } else { | |
| emptyAnalytics.classList.add('hidden'); | |
| // Update drop reasons table | |
| const dropReasons = [ | |
| { area: "State Management", count: 3, avgCoverage: 0.45 }, | |
| { area: "Testing", count: 2, avgCoverage: 0.32 }, | |
| { area: "Build Tools", count: 1, avgCoverage: 0.18 } | |
| ]; | |
| dropReasonsBody.innerHTML = dropReasons.map(reason => ` | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">${reason.area}</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${reason.count}</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${(reason.avgCoverage * 100).toFixed(1)}%</td> | |
| </tr> | |
| `).join(''); | |
| } | |
| } | |
| // Export functionality | |
| copyJsonBtn.addEventListener('click', () => { | |
| if (analyticsData) { | |
| navigator.clipboard.writeText(JSON.stringify(analyticsData, null, 2); | |
| alert('JSON data copied to clipboard!'); | |
| } else { | |
| alert('No scoring data available to copy'); | |
| } | |
| }); | |
| copyCsvBtn.addEventListener('click', () => { | |
| if (analyticsData) { | |
| const csv = analyticsData.ranked.map(c => `${c.name},${c.score},${c.tech},${c.l2r},${c.r2l}`); | |
| navigator.clipboard.writeText(csv); | |
| alert('CSV data copied to clipboard!'); | |
| } else { | |
| alert('No scoring data available to export'); | |
| } | |
| }); | |
| // Initialize | |
| loadAnalyticsData(); | |
| </script> | |
| </body> | |
| </html> | |