Spaces:
Running
Running
| import{j as e,L as j,m as s,A as N}from"./vendor-Dy_Aqit6.js";import{a as k}from"./plotly-BRtgkqNO.js";import{u as C,F as o,D as p,Z as q,B as h,S,M as x,d as g,f as A}from"./index-DkRDPfDI.js";import{A as D}from"./arrow-left-0mNf09iW.js";import{U as y}from"./upload-Y3R7mR9V.js";import{B as n}from"./bar-chart-3-BdwagJ5Y.js";import{B as I}from"./bell-CB6dYeLZ.js";import{M as i}from"./mail-C0vcq1DW.js";import{S as F}from"./shield-D8iK2QH3.js";import{H}from"./help-circle-B3XdABxR.js";const Y=()=>{const{isDark:L}=C(),[f,b]=k.useState(null),l=[{title:"Getting Started",icon:y,color:"teal",faqs:[{question:"How do I upload my data?",answer:"Go to DataHub from the navigation menu. You can drag & drop CSV or Excel files, or click to browse. Files are automatically processed and indexed for analysis.",icon:y},{question:"What file formats are supported?",answer:"DataVision supports CSV (.csv) and Excel (.xlsx, .xls) files. Files should have headers in the first row for best results.",icon:o},{question:"Is there a file size limit?",answer:"For optimal performance, we recommend files under 50MB. Larger files will work but may take longer to process and analyze.",icon:p}]},{title:"ML Training",icon:h,color:"amber",faqs:[{question:"What's the difference between Fast and Ultra mode?",answer:`**Fast Mode** (1-3 minutes): Trains 10 core algorithms quickly for rapid insights. Great for initial exploration and quick prototyping. | |
| **Ultra Mode** (3-8 minutes): Trains 15+ models including ensembles, with advanced hyperparameter auto-tuning. Best for production-ready predictions.`,icon:q},{question:"How do I train a ML model?",answer:`1. Upload your data in DataHub | |
| 2. Choose Fast or Ultra mode | |
| 3. Click the 'Train ML' button | |
| 4. Select your target column when prompted | |
| 5. Wait for training to complete | |
| 6. View results in ML Predictions page`,icon:h},{question:"What types of predictions can it make?",answer:`DataVision automatically detects your task type: | |
| • **Classification**: For categorical targets (Yes/No, Categories) | |
| • **Regression**: For numerical targets (Prices, Scores, Quantities)`,icon:S}]},{title:"AI Chat & Analysis",icon:x,color:"purple",faqs:[{question:"What can I ask the AI analyst?",answer:`You can ask questions like: | |
| • 'Show me sales trends' | |
| • 'What are the top 5 products?' | |
| • 'Predict next month's revenue' | |
| • 'Summarize key insights' | |
| • 'Create a chart of monthly growth' | |
| The AI understands your data context and generates relevant responses with charts.`,icon:x},{question:"Why is my chart not showing?",answer:"Charts require numerical data to visualize. Make sure your question relates to quantifiable metrics. Try asking for specific metrics like 'Show sales by category' or 'Plot revenue over time'.",icon:n}]},{title:"Dashboard & Reports",icon:n,color:"blue",faqs:[{question:"How are dashboards generated?",answer:"Dashboards are auto-generated by AI based on your uploaded data. The system identifies key metrics, trends, and patterns to create meaningful KPIs and visualizations.",icon:n},{question:"Can I export reports?",answer:"Yes! In the Reports page, you can generate detailed reports and export them as PDF. Reports include data summaries, charts, and AI-powered insights.",icon:o}]},{title:"Email Reports",icon:i,color:"emerald",faqs:[{question:"How do I set up scheduled email reports?",answer:"Go to Settings → Email Reports. Enable daily or weekly reports, set your preferred time, and make sure your email is configured. Reports are sent automatically with AI-generated insights.",icon:I},{question:"What's included in email reports?",answer:`Email reports include: | |
| • Summary of your data insights | |
| • Key performance indicators | |
| • ML model performance (if trained) | |
| • Trend analysis | |
| • Actionable recommendations`,icon:i}]},{title:"Account & Settings",icon:g,color:"gray",faqs:[{question:"How do I delete my data?",answer:"Go to DataHub and click the delete button next to any file. To delete all files, use the 'Delete All' button. This also clears associated ML models.",icon:p},{question:"Is my data secure?",answer:"Yes! Your data is encrypted in transit and at rest. Files are stored securely on our PostgreSQL database and Hugging Face infrastructure. Each user's data is isolated and private.",icon:F},{question:"How do I change themes?",answer:"Go to Settings and toggle between Light and Dark mode. Your preference is saved automatically.",icon:g}]}],c=a=>{const t={teal:"text-green-500 bg-green-500/10",amber:"text-amber-500 bg-amber-500/10",purple:"text-purple-500 bg-purple-500/10",blue:"text-blue-500 bg-blue-500/10",emerald:"text-emerald-500 bg-emerald-500/10",gray:"text-gray-400 bg-gray-500/10"};return t[a]||t.teal};return e.jsxs("div",{className:"min-h-screen",style:{backgroundColor:"var(--bg-primary)"},children:[e.jsx("header",{className:"border-b",style:{borderColor:"var(--border-color)",backgroundColor:"var(--bg-secondary)"},children:e.jsx("div",{className:"max-w-4xl mx-auto px-6 py-4",children:e.jsxs(j,{to:"/",className:"inline-flex items-center gap-2 text-sm hover:opacity-80 transition-opacity",style:{color:"var(--text-muted)"},children:[e.jsx(D,{className:"w-4 h-4"}),"Back to Home"]})})}),e.jsx("main",{className:"max-w-4xl mx-auto px-6 py-12",children:e.jsxs(s.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-8",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-r from-green-500 to-emerald-500 mb-4",children:e.jsx(H,{className:"w-8 h-8 text-white"})}),e.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Help Center & Documentation"}),e.jsx("p",{style:{color:"var(--text-muted)"},children:"Everything you need to know about DataVision AI platform"}),e.jsx("div",{className:"mt-6 flex justify-center",children:e.jsxs("a",{href:"/DataVision_AI_Product_User_Guide.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-[#16A34A] hover:bg-[#15803D] text-white font-bold text-sm rounded-xl shadow-md transition-all transform hover:scale-105",children:[e.jsx(o,{className:"w-4 h-4"}),"Download Official Product User Guide (PDF)"]})})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:l.map((a,t)=>e.jsxs("a",{href:`#${a.title.toLowerCase().replace(/\s/g,"-")}`,className:"p-4 rounded-xl border text-center hover:border-green-500/50 transition-colors",style:{backgroundColor:"var(--bg-card)",borderColor:"var(--border-color)"},children:[e.jsx("div",{className:`inline-flex p-2 rounded-lg mb-2 ${c(a.color)}`,children:e.jsx(a.icon,{className:"w-5 h-5"})}),e.jsx("p",{className:"text-sm font-medium",style:{color:"var(--text-primary)"},children:a.title})]},t))}),l.map((a,t)=>e.jsxs("div",{id:a.title.toLowerCase().replace(/\s/g,"-"),className:"scroll-mt-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:`p-2 rounded-lg ${c(a.color)}`,children:e.jsx(a.icon,{className:"w-5 h-5"})}),e.jsx("h2",{className:"text-xl font-semibold",style:{color:"var(--text-primary)"},children:a.title})]}),e.jsx("div",{className:"space-y-3",children:a.faqs.map((d,m)=>{const u=t*100+m,r=f===u;return e.jsxs(s.div,{className:"rounded-xl border overflow-hidden",style:{backgroundColor:"var(--bg-card)",borderColor:"var(--border-color)"},children:[e.jsxs("button",{onClick:()=>b(r?null:u),className:"w-full p-4 flex items-center justify-between text-left",children:[e.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:d.question}),e.jsx(A,{className:`w-5 h-5 transition-transform ${r?"rotate-180":""}`,style:{color:"var(--text-muted)"}})]}),e.jsx(N,{children:r&&e.jsx(s.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},children:e.jsx("div",{className:"px-4 pb-4",style:{color:"var(--text-secondary)"},children:e.jsx("div",{className:"pt-2 border-t",style:{borderColor:"var(--border-color)"},children:d.answer.split(` | |
| `).map((w,v)=>e.jsx("p",{className:"mt-2",dangerouslySetInnerHTML:{__html:w.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")}},v))})})})})]},m)})})]},t)),e.jsxs("div",{className:"p-6 rounded-2xl border bg-gradient-to-r from-green-500/10 to-emerald-500/10",style:{borderColor:"var(--border-color)"},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(i,{className:"w-5 h-5 text-green-500"}),e.jsx("h2",{className:"text-xl font-semibold",style:{color:"var(--text-primary)"},children:"Still need help?"})]}),e.jsxs("p",{style:{color:"var(--text-secondary)"},children:["Contact our support team at:"," ",e.jsx("a",{href:"mailto:naveenkumarchapala686@gmail.com",className:"text-green-500 hover:underline",children:"naveenkumarchapala686@gmail.com"})]}),e.jsx("p",{className:"mt-2 text-sm",style:{color:"var(--text-muted)"},children:"We typically respond within 24-48 hours."})]})]})})]})};export{Y as default}; | |