1 import { db } from "./db";
2 import { repairGuides, troubleshootingFlows, deviceComponents } from "@shared/schema";
3
4 const comprehensiveRepairGuides = [
5 // LAPTOP HARDWARE GUIDES
6 {
7 title: "Replace Laptop RAM Memory",
8 description: "Complete guide to upgrading or replacing laptop RAM memory modules for improved performance.",
9 deviceType: "laptop",
10 category: "hardware",
11 difficulty: "easy",
12 estimatedTime: "15-20 min",
13 toolsRequired: ["Phillips head screwdriver", "Anti-static wrist strap", "Clean cloth"],
14 safetyWarnings: [
15 "Power off laptop and remove battery before starting",
16 "Use anti-static protection to prevent component damage",
17 "Handle RAM modules by edges only"
18 ],
19 steps: [
20 {
21 stepNumber: 1,
22 title: "Prepare the laptop",
23 description: "Shut down completely, unplug power, and remove battery if removable",
24 imageUrl: "/images/steps/laptop-preparation.svg",
25 tips: ["Wait 5 minutes after shutdown to ensure complete power discharge"]
26 },
27 {
28 stepNumber: 2,
29 title: "Access RAM compartment",
30 description: "Remove the bottom panel screws and locate RAM slots",
31 imageUrl: "/images/steps/ram-access.svg",
32 tips: ["Keep screws organized to avoid losing them"]
33 },
34 {
35 stepNumber: 3,
36 title: "Remove old RAM",
37 description: "Gently push side clips and pull module at 45-degree angle",
38 imageUrl: "/images/steps/ram-removal.svg",
39 tips: ["If resistance is felt, double-check clip positions"]
40 },
41 {
42 stepNumber: 4,
43 title: "Install new RAM",
44 description: "Insert new module at 45-degree angle and press down until clips engage",
45 imageUrl: "/images/steps/ram-installation.svg",
46 tips: ["Ensure module is fully seated and both clips are engaged"]
47 }
48 ],
49 alternativeSolutions: "Consider upgrading to higher capacity modules if motherboard supports them",
50 imageUrl: "/images/guides/laptop-ram-upgrade.svg"
51 },
52 {
53 title: "Replace Laptop Hard Drive with SSD",
54 description: "Step-by-step guide to replace traditional hard drive with faster SSD storage.",
55 deviceType: "laptop",
56 category: "hardware",
57 difficulty: "medium",
58 estimatedTime: "45-60 min",
59 toolsRequired: ["Phillips head screwdriver", "SATA to USB adapter", "Cloning software", "Anti-static wrist strap"],
60 safetyWarnings: [
61 "Create data backup before starting procedure",
62 "Ensure laptop is completely powered off",
63 "Handle storage devices with care to prevent damage"
64 ],
65 steps: [
66 {
67 stepNumber: 1,
68 title: "Backup existing data",
69 description: "Create complete backup of current hard drive using cloning software",
70 imageUrl: "/images/steps/data-backup.svg",
71 tips: ["Use reliable cloning software like Clonezilla or manufacturer tools"]
72 },
73 {
74 stepNumber: 2,
75 title: "Access hard drive bay",
76 description: "Remove laptop bottom panel and locate hard drive compartment",
77 imageUrl: "/images/steps/hdd-access.svg",
78 tips: ["Some laptops have dedicated HDD access panels"]
79 },
80 {
81 stepNumber: 3,
82 title: "Remove old hard drive",
83 description: "Disconnect SATA connector and remove mounting screws",
84 imageUrl: "/images/steps/hdd-removal.svg",
85 tips: ["Note orientation of drive for proper SSD installation"]
86 },
87 {
88 stepNumber: 4,
89 title: "Install SSD",
90 description: "Mount SSD in same position and reconnect SATA connector",
91 imageUrl: "/images/steps/ssd-installation.svg",
92 tips: ["Ensure secure connection and proper mounting"]
93 },
94 {
95 stepNumber: 5,
96 title: "Restore data",
97 description: "Boot from cloned drive or restore backup to new SSD",
98 imageUrl: "/images/steps/data-restore.svg",
99 tips: ["Verify all data transferred correctly before disposing old drive"]
100 }
101 ],
102 alternativeSolutions: "Consider using external drive enclosure for old HDD as additional storage",
103 imageUrl: "/images/guides/laptop-ssd-upgrade.svg"
104 },
105 {
106 title: "Fix Laptop Screen Flickering",
107 description: "Diagnose and repair common laptop screen flickering issues including cable connections.",
108 deviceType: "laptop",
109 category: "hardware",
110 difficulty: "hard",
111 estimatedTime: "60-90 min",
112 toolsRequired: ["Phillips head screwdriver", "Plastic prying tools", "Multimeter", "Replacement LVDS cable"],
113 safetyWarnings: [
114 "LCD panels are fragile - handle with extreme care",
115 "Ensure laptop is powered off and battery removed",
116 "Be gentle with ribbon cables to prevent tearing"
117 ],
118 steps: [
119 {
120 stepNumber: 1,
121 title: "Initial diagnosis",
122 description: "Test with external monitor to isolate display vs graphics issue",
123 imageUrl: "/images/steps/external-monitor-test.svg",
124 tips: ["If external display works fine, problem is likely in LCD assembly"]
125 },
126 {
127 stepNumber: 2,
128 title: "Access LCD assembly",
129 description: "Remove screen bezel and access LCD panel connections",
130 imageUrl: "/images/steps/lcd-bezel-removal.svg",
131 tips: ["Use plastic tools to avoid scratching bezel"]
132 },
133 {
134 stepNumber: 3,
135 title: "Check LVDS cable",
136 description: "Inspect and reseat the LVDS cable connection",
137 imageUrl: "/images/steps/lvds-cable-check.svg",
138 tips: ["Look for pinched, bent, or damaged cable sections"]
139 },
140 {
141 stepNumber: 4,
142 title: "Test connections",
143 description: "Use multimeter to verify cable continuity if problem persists",
144 imageUrl: "/images/steps/cable-continuity-test.svg",
145 tips: ["Compare readings with known good cable if available"]
146 },
147 {
148 stepNumber: 5,
149 title: "Replace if necessary",
150 description: "Install new LVDS cable if old one is damaged",
151 imageUrl: "/images/steps/lvds-cable-replacement.svg",
152 tips: ["Route new cable exactly as original to prevent future issues"]
153 }
154 ],
155 alternativeSolutions: "If flickering persists, issue may be with LCD panel itself requiring replacement",
156 imageUrl: "/images/guides/laptop-screen-repair.svg"
157 },
158 {
159 title: "Replace Laptop Keyboard",
160 description: "Complete guide to replacing damaged or non-functioning laptop keyboard.",
161 deviceType: "laptop",
162 category: "hardware",
163 difficulty: "medium",
164 estimatedTime: "30-45 min",
165 toolsRequired: ["Phillips head screwdriver", "Plastic prying tools", "Replacement keyboard"],
166 safetyWarnings: [
167 "Power off laptop completely before starting",
168 "Be gentle with ribbon cable connectors",
169 "Keep track of small screws and clips"
170 ],
171 steps: [
172 {
173 stepNumber: 1,
174 title: "Remove keyboard screws",
175 description: "Locate and remove screws securing keyboard (usually on bottom panel)",
176 imageUrl: "/images/steps/keyboard-screws.svg",
177 tips: ["Some keyboards have screws under battery compartment"]
178 },
179 {
180 stepNumber: 2,
181 title: "Lift keyboard",
182 description: "Carefully lift keyboard from top edge and tilt forward",
183 imageUrl: "/images/steps/keyboard-lift.svg",
184 tips: ["Don't force - some models have additional clips"]
185 },
186 {
187 stepNumber: 3,
188 title: "Disconnect ribbon cable",
189 description: "Carefully disconnect keyboard ribbon cable connector",
190 imageUrl: "/images/steps/keyboard-disconnect.svg",
191 tips: ["Note cable orientation for proper reconnection"]
192 },
193 {
194 stepNumber: 4,
195 title: "Install new keyboard",
196 description: "Connect new keyboard cable and secure in proper position",
197 imageUrl: "/images/steps/keyboard-install.svg",
198 tips: ["Ensure cable is fully seated before closing connector"]
199 }
200 ],
201 alternativeSolutions: "If only specific keys are problematic, consider individual key cap replacement",
202 imageUrl: "/images/guides/laptop-keyboard-replacement.svg"
203 },
204
205 // LAPTOP SOFTWARE GUIDES
206 {
207 title: "Remove Malware and Viruses",
208 description: "Comprehensive guide to detecting, removing, and preventing malware infections.",
209 deviceType: "laptop",
210 category: "software",
211 difficulty: "medium",
212 estimatedTime: "60-120 min",
213 toolsRequired: ["Antivirus software", "Anti-malware scanner", "Recovery media", "Internet connection"],
214 safetyWarnings: [
215 "Disconnect from internet if actively infected",
216 "Backup important data before cleaning",
217 "Use reputable security software only"
218 ],
219 steps: [
220 {
221 stepNumber: 1,
222 title: "Boot into Safe Mode",
223 description: "Restart computer and boot into Safe Mode to prevent malware from running",
224 imageUrl: "/images/steps/safe-mode-boot.svg",
225 tips: ["Press F8 during startup or use advanced startup options"]
226 },
227 {
228 stepNumber: 2,
229 title: "Run full system scan",
230 description: "Use updated antivirus software to perform complete system scan",
231 imageUrl: "/images/steps/antivirus-scan.svg",
232 tips: ["Update virus definitions before scanning"]
233 },
234 {
235 stepNumber: 3,
236 title: "Use specialized tools",
237 description: "Run additional anti-malware tools like Malwarebytes for thorough cleaning",
238 imageUrl: "/images/steps/malware-removal.svg",
239 tips: ["Use multiple tools as different software detects different threats"]
240 },
241 {
242 stepNumber: 4,
243 title: "Clean browser settings",
244 description: "Reset browser settings and remove malicious extensions",
245 imageUrl: "/images/steps/browser-cleanup.svg",
246 tips: ["Check all installed browsers, not just the primary one"]
247 },
248 {
249 stepNumber: 5,
250 title: "Update and secure",
251 description: "Install all system updates and configure security settings",
252 imageUrl: "/images/steps/system-security.svg",
253 tips: ["Enable automatic updates and configure firewall"]
254 }
255 ],
256 alternativeSolutions: "For severe infections, consider complete OS reinstallation",
257 imageUrl: "/images/guides/malware-removal.svg"
258 },
259 {
260 title: "Fix Blue Screen of Death (BSOD)",
261 description: "Troubleshoot and resolve Windows Blue Screen errors with systematic approach.",
262 deviceType: "laptop",
263 category: "software",
264 difficulty: "hard",
265 estimatedTime: "45-90 min",
266 toolsRequired: ["Windows installation media", "Driver software", "System information tools"],
267 safetyWarnings: [
268 "Note exact error code before restarting",
269 "Backup important data when possible",
270 "Avoid repeated forced shutdowns"
271 ],
272 steps: [
273 {
274 stepNumber: 1,
275 title: "Record error information",
276 description: "Note the stop code and any file names mentioned in BSOD",
277 imageUrl: "/images/steps/bsod-error-code.svg",
278 tips: ["Take photo of screen if error appears quickly"]
279 },
280 {
281 stepNumber: 2,
282 title: "Boot into Safe Mode",
283 description: "Start computer in Safe Mode to access system for troubleshooting",
284 imageUrl: "/images/steps/safe-mode-access.svg",
285 tips: ["Use startup repair if Safe Mode won't load"]
286 },
287 {
288 stepNumber: 3,
289 title: "Check recent changes",
290 description: "Review recently installed software, drivers, or hardware changes",
291 imageUrl: "/images/steps/recent-changes-check.svg",
292 tips: ["Use System Restore to undo recent changes"]
293 },
294 {
295 stepNumber: 4,
296 title: "Update or rollback drivers",
297 description: "Update problematic drivers or rollback to previous versions",
298 imageUrl: "/images/steps/driver-management.svg",
299 tips: ["Focus on display, storage, and network drivers first"]
300 },
301 {
302 stepNumber: 5,
303 title: "Check hardware",
304 description: "Run memory test and check hard drive for errors",
305 imageUrl: "/images/steps/hardware-diagnostics.svg",
306 tips: ["Use Windows Memory Diagnostic and chkdsk utility"]
307 }
308 ],
309 alternativeSolutions: "Consider reinstalling Windows if BSOD persists after troubleshooting",
310 imageUrl: "/images/guides/bsod-troubleshooting.svg"
311 },
312 {
313 title: "Fix Laptop Won't Boot",
314 description: "Systematic troubleshooting for laptops that fail to start or boot properly.",
315 deviceType: "laptop",
316 category: "software",
317 difficulty: "medium",
318 estimatedTime: "45-75 min",
319 toolsRequired: ["Bootable USB drive", "Windows installation media", "External keyboard"],
320 safetyWarnings: [
321 "Try simple solutions first before advanced troubleshooting",
322 "Have important data backed up before making changes",
323 "Note any error messages or beep codes"
324 ],
325 steps: [
326 {
327 stepNumber: 1,
328 title: "Check power and hardware",
329 description: "Verify power adapter, battery, and basic hardware connections",
330 imageUrl: "/images/steps/power-check.svg",
331 tips: ["Try with just AC adapter, no battery"]
332 },
333 {
334 stepNumber: 2,
335 title: "Access BIOS/UEFI",
336 description: "Enter system setup to check hardware detection and boot order",
337 imageUrl: "/images/steps/bios-access.svg",
338 tips: ["Common keys: F2, F12, Del, Esc during startup"]
339 },
340 {
341 stepNumber: 3,
342 title: "Try safe boot options",
343 description: "Attempt to boot using safe mode or last known good configuration",
344 imageUrl: "/images/steps/safe-boot.svg",
345 tips: ["Use F8 key during boot for advanced options"]
346 },
347 {
348 stepNumber: 4,
349 title: "Run startup repair",
350 description: "Use Windows recovery tools to fix boot-related issues",
351 imageUrl: "/images/steps/startup-repair.svg",
352 tips: ["Boot from Windows installation media if needed"]
353 },
354 {
355 stepNumber: 5,
356 title: "Check hard drive",
357 description: "Verify hard drive health and file system integrity",
358 imageUrl: "/images/steps/hdd-check.svg",
359 tips: ["Use command prompt to run chkdsk /f"]
360 }
361 ],
362 alternativeSolutions: "If hardware failure suspected, professional diagnosis recommended",
363 imageUrl: "/images/guides/boot-repair.svg"
364 },
365 {
366 title: "Restore Corrupted System Files",
367 description: "Use Windows built-in tools to repair corrupted or missing system files.",
368 deviceType: "laptop",
369 category: "software",
370 difficulty: "medium",
371 estimatedTime: "60-90 min",
372 toolsRequired: ["Administrative access", "Windows installation media", "Internet connection"],
373 safetyWarnings: [
374 "Create system restore point before starting",
375 "Ensure stable power during repair process",
376 "Have Windows installation media available"
377 ],
378 steps: [
379 {
380 stepNumber: 1,
381 title: "Run System File Checker",
382 description: "Use SFC command to scan and repair system files",
383 imageUrl: "/images/steps/sfc-scan.svg",
384 tips: ["Run 'sfc /scannow' in elevated command prompt"]
385 },
386 {
387 stepNumber: 2,
388 title: "Use DISM tool",
389 description: "Run Deployment Image Servicing tool to repair Windows image",
390 imageUrl: "/images/steps/dism-repair.svg",
391 tips: ["Use 'DISM /Online /Cleanup-Image /RestoreHealth'"]
392 },
393 {
394 stepNumber: 3,
395 title: "Check Windows Update",
396 description: "Install latest updates to replace corrupted files",
397 imageUrl: "/images/steps/windows-update-repair.svg",
398 tips: ["Some corrupted files are fixed by updates"]
399 },
400 {
401 stepNumber: 4,
402 title: "Reset Windows components",
403 description: "Reset specific Windows components if issues persist",
404 imageUrl: "/images/steps/component-reset.svg",
405 tips: ["Focus on problematic components like Windows Store"]
406 }
407 ],
408 alternativeSolutions: "Consider in-place Windows upgrade if corruption is extensive",
409 imageUrl: "/images/guides/system-file-repair.svg"
410 },
411 {
412 title: "Speed Up Slow Laptop Performance",
413 description: "Comprehensive optimization to improve laptop speed and responsiveness.",
414 deviceType: "laptop",
415 category: "software",
416 difficulty: "easy",
417 estimatedTime: "45-60 min",
418 toolsRequired: ["Disk cleanup tools", "Task Manager access", "Administrative privileges"],
419 safetyWarnings: [
420 "Create backup before making major changes",
421 "Don't disable unknown services",
422 "Monitor system stability after changes"
423 ],
424 steps: [
425 {
426 stepNumber: 1,
427 title: "Check storage space",
428 description: "Free up disk space using built-in cleanup tools",
429 imageUrl: "/images/steps/storage-cleanup.svg",
430 tips: ["Aim for at least 15% free space on system drive"]
431 },
432 {
433 stepNumber: 2,
434 title: "Manage startup programs",
435 description: "Disable unnecessary programs from starting with Windows",
436 imageUrl: "/images/steps/startup-management.svg",
437 tips: ["Keep only essential programs in startup"]
438 },
439 {
440 stepNumber: 3,
441 title: "Update drivers",
442 description: "Install latest drivers for better hardware performance",
443 imageUrl: "/images/steps/driver-updates.svg",
444 tips: ["Focus on graphics, storage, and network drivers"]
445 },
446 {
447 stepNumber: 4,
448 title: "Adjust visual effects",
449 description: "Optimize Windows visual effects for performance",
450 imageUrl: "/images/steps/visual-optimization.svg",
451 tips: ["Choose 'Adjust for best performance' in System Properties"]
452 },
453 {
454 stepNumber: 5,
455 title: "Scan for malware",
456 description: "Run thorough malware scan to remove performance-affecting threats",
457 imageUrl: "/images/steps/performance-scan.svg",
458 tips: ["Use multiple scanning tools for best results"]
459 }
460 ],
461 alternativeSolutions: "Consider hardware upgrades if software optimization isn't sufficient",
462 imageUrl: "/images/guides/performance-optimization.svg"
463 },
464
465 // LAPTOP CLEANING GUIDES
466 {
467 title: "Deep Clean Laptop Internals",
468 description: "Thorough cleaning of laptop internal components to improve cooling and performance.",
469 deviceType: "laptop",
470 category: "cleaning",
471 difficulty: "medium",
472 estimatedTime: "60-90 min",
473 toolsRequired: ["Compressed air", "Soft brushes", "Isopropyl alcohol", "Cotton swabs", "Thermal paste"],
474 safetyWarnings: [
475 "Ensure laptop is completely powered off and unplugged",
476 "Use only electronics-safe cleaning materials",
477 "Allow complete drying before reassembly"
478 ],
479 steps: [
480 {
481 stepNumber: 1,
482 title: "Disassemble laptop",
483 description: "Remove bottom panel and disconnect battery for safety",
484 imageUrl: "/images/steps/laptop-disassembly.svg",
485 tips: ["Take photos during disassembly for reference during reassembly"]
486 },
487 {
488 stepNumber: 2,
489 title: "Clean fans and vents",
490 description: "Use compressed air to blow out dust from fans and air vents",
491 imageUrl: "/images/steps/fan-cleaning.svg",
492 tips: ["Hold fans stationary while blowing air to prevent overspeeding"]
493 },
494 {
495 stepNumber: 3,
496 title: "Clean heat sinks",
497 description: "Remove accumulated dust from CPU and GPU heat sinks",
498 imageUrl: "/images/steps/heatsink-cleaning.svg",
499 tips: ["Use soft brush for stubborn dust buildup"]
500 },
501 {
502 stepNumber: 4,
503 title: "Replace thermal paste",
504 description: "Clean old thermal paste and apply fresh paste to CPU",
505 imageUrl: "/images/steps/thermal-paste-replacement.svg",
506 tips: ["Use high-quality thermal paste and apply thin, even layer"]
507 },
508 {
509 stepNumber: 5,
510 title: "Clean other components",
511 description: "Gently clean RAM, storage, and other accessible components",
512 imageUrl: "/images/steps/component-cleaning.svg",
513 tips: ["Use dry methods only for electronic components"]
514 }
515 ],
516 alternativeSolutions: "For severe overheating, consider professional cleaning service",
517 imageUrl: "/images/guides/laptop-deep-cleaning.svg"
518 },
519 {
520 title: "Clean Laptop Screen and Exterior",
521 description: "Safely clean laptop screen, keyboard, and exterior surfaces without damage.",
522 deviceType: "laptop",
523 category: "cleaning",
524 difficulty: "easy",
525 estimatedTime: "15-30 min",
526 toolsRequired: ["Microfiber cloths", "Screen cleaner", "Isopropyl alcohol", "Cotton swabs", "Compressed air"],
527 safetyWarnings: [
528 "Power off laptop before cleaning",
529 "Never spray liquids directly on screen",
530 "Use only LCD-safe cleaning solutions"
531 ],
532 steps: [
533 {
534 stepNumber: 1,
535 title: "Prepare cleaning area",
536 description: "Power off laptop and gather appropriate cleaning materials",
537 imageUrl: "/images/steps/cleaning-prep.svg",
538 tips: ["Let laptop cool down if it was recently used"]
539 },
540 {
541 stepNumber: 2,
542 title: "Clean keyboard",
543 description: "Use compressed air and damp cloth to clean keys and spaces",
544 imageUrl: "/images/steps/keyboard-cleaning.svg",
545 tips: ["Turn laptop upside down and shake gently to remove debris"]
546 },
547 {
548 stepNumber: 3,
549 title: "Clean screen",
550 description: "Use microfiber cloth with screen cleaner in circular motions",
551 imageUrl: "/images/steps/screen-cleaning.svg",
552 tips: ["Start from center and work outward, avoid excessive pressure"]
553 },
554 {
555 stepNumber: 4,
556 title: "Clean exterior",
557 description: "Wipe down laptop exterior, ports, and ventilation areas",
558 imageUrl: "/images/steps/exterior-cleaning.svg",
559 tips: ["Use cotton swabs for hard-to-reach port areas"]
560 }
561 ],
562 alternativeSolutions: "For stubborn stains, consider professional cleaning services",
563 imageUrl: "/images/guides/laptop-screen-cleaning.svg"
564 },
565 {
566 title: "Remove Liquid Spill Damage",
567 description: "Emergency cleaning procedures for laptops with liquid spill damage.",
568 deviceType: "laptop",
569 category: "cleaning",
570 difficulty: "hard",
571 estimatedTime: "120-180 min",
572 toolsRequired: ["Isopropyl alcohol", "Soft brushes", "Cotton swabs", "Distilled water", "Hair dryer"],
573 safetyWarnings: [
574 "Immediately power off and unplug laptop",
575 "Remove battery if possible",
576 "Work in well-ventilated area when using alcohol"
577 ],
578 steps: [
579 {
580 stepNumber: 1,
581 title: "Emergency shutdown",
582 description: "Immediately turn off laptop and remove all power sources",
583 imageUrl: "/images/steps/emergency-shutdown.svg",
584 tips: ["Speed is critical - don't wait for proper shutdown"]
585 },
586 {
587 stepNumber: 2,
588 title: "Disassemble laptop",
589 description: "Remove back panel, battery, and affected components",
590 imageUrl: "/images/steps/spill-disassembly.svg",
591 tips: ["Take photos to remember component placement"]
592 },
593 {
594 stepNumber: 3,
595 title: "Clean affected areas",
596 description: "Use isopropyl alcohol to clean corrosion and residue",
597 imageUrl: "/images/steps/corrosion-cleaning.svg",
598 tips: ["Use 99% isopropyl alcohol for best results"]
599 },
600 {
601 stepNumber: 4,
602 title: "Dry thoroughly",
603 description: "Ensure all components are completely dry before reassembly",
604 imageUrl: "/images/steps/component-drying.svg",
605 tips: ["Allow 24-48 hours drying time in dry environment"]
606 },
607 {
608 stepNumber: 5,
609 title: "Test components",
610 description: "Reassemble and test each component before full assembly",
611 imageUrl: "/images/steps/component-testing.svg",
612 tips: ["Test with minimal components first"]
613 }
614 ],
615 alternativeSolutions: "Severe damage may require professional data recovery services",
616 imageUrl: "/images/guides/liquid-damage-repair.svg"
617 },
618
619 // DESKTOP HARDWARE GUIDES
620 {
621 title: "Build Custom Desktop PC",
622 description: "Complete guide to building a desktop computer from individual components.",
623 deviceType: "desktop",
624 category: "hardware",
625 difficulty: "hard",
626 estimatedTime: "120-180 min",
627 toolsRequired: ["Phillips head screwdriver", "Anti-static wrist strap", "Zip ties", "Thermal paste"],
628 safetyWarnings: [
629 "Use anti-static protection throughout build process",
630 "Ensure PSU is switched off and unplugged",
631 "Handle components by edges and avoid touching circuits"
632 ],
633 steps: [
634 {
635 stepNumber: 1,
636 title: "Prepare motherboard",
637 description: "Install CPU, RAM, and M.2 storage on motherboard outside of case",
638 imageUrl: "/images/steps/motherboard-preparation.svg",
639 tips: ["Install components on flat, anti-static surface"]
640 },
641 {
642 stepNumber: 2,
643 title: "Install PSU and I/O shield",
644 description: "Mount power supply and install motherboard I/O shield in case",
645 imageUrl: "/images/steps/psu-io-installation.svg",
646 tips: ["Orient PSU fan correctly based on case ventilation"]
647 },
648 {
649 stepNumber: 3,
650 title: "Mount motherboard",
651 description: "Secure motherboard in case using proper standoffs",
652 imageUrl: "/images/steps/motherboard-mounting.svg",
653 tips: ["Don't overtighten screws - snug fit is sufficient"]
654 },
655 {
656 stepNumber: 4,
657 title: "Install graphics card",
658 description: "Secure GPU in PCIe slot and connect power connectors",
659 imageUrl: "/images/steps/gpu-installation.svg",
660 tips: ["Ensure card is fully seated and rear bracket is secured"]
661 },
662 {
663 stepNumber: 5,
664 title: "Connect all cables",
665 description: "Connect power, data, and front panel connectors",
666 imageUrl: "/images/steps/cable-connections.svg",
667 tips: ["Refer to motherboard manual for front panel connector layout"]
668 },
669 {
670 stepNumber: 6,
671 title: "First boot test",
672 description: "Power on system and verify all components are detected",
673 imageUrl: "/images/steps/first-boot-test.svg",
674 tips: ["Enter BIOS to verify CPU, RAM, and storage are detected"]
675 }
676 ],
677 alternativeSolutions: "Consider pre-built systems if building seems too complex",
678 imageUrl: "/images/guides/desktop-pc-build.svg"
679 },
680 {
681 title: "Upgrade Desktop Graphics Card",
682 description: "Step-by-step guide to replacing or upgrading desktop GPU for better performance.",
683 deviceType: "desktop",
684 category: "hardware",
685 difficulty: "medium",
686 estimatedTime: "30-45 min",
687 toolsRequired: ["Phillips head screwdriver", "Anti-static wrist strap"],
688 safetyWarnings: [
689 "Power off PC and unplug from wall before starting",
690 "Ensure new GPU is compatible with PSU wattage",
691 "Check physical clearance in case"
692 ],
693 steps: [
694 {
695 stepNumber: 1,
696 title: "Uninstall old drivers",
697 description: "Use DDU (Display Driver Uninstaller) to remove existing graphics drivers",
698 imageUrl: "/images/steps/driver-uninstall.svg",
699 tips: ["Boot into safe mode for thorough driver removal"]
700 },
701 {
702 stepNumber: 2,
703 title: "Remove old GPU",
704 description: "Disconnect power cables and unscrew rear bracket, then remove from PCIe slot",
705 imageUrl: "/images/steps/gpu-removal.svg",
706 tips: ["Press PCIe release tab while gently pulling card"]
707 },
708 {
709 stepNumber: 3,
710 title: "Install new GPU",
711 description: "Insert new graphics card into PCIe slot and secure with screws",
712 imageUrl: "/images/steps/new-gpu-install.svg",
713 tips: ["Ensure card clicks securely into slot"]
714 },
715 {
716 stepNumber: 4,
717 title: "Connect power",
718 description: "Attach required PCIe power connectors from PSU to graphics card",
719 imageUrl: "/images/steps/gpu-power-connection.svg",
720 tips: ["Use separate cables for each connector if possible"]
721 },
722 {
723 stepNumber: 5,
724 title: "Install new drivers",
725 description: "Download and install latest drivers from manufacturer",
726 imageUrl: "/images/steps/new-driver-install.svg",
727 tips: ["Use manufacturer's official website for drivers"]
728 }
729 ],
730 alternativeSolutions: "If performance issues persist, consider CPU or PSU bottlenecks",
731 imageUrl: "/images/guides/desktop-gpu-upgrade.svg"
732 },
733
734 // DESKTOP SOFTWARE GUIDES
735 {
736 title: "Optimize Windows 11 Performance",
737 description: "Comprehensive guide to optimize Windows 11 for better speed and responsiveness.",
738 deviceType: "desktop",
739 category: "software",
740 difficulty: "easy",
741 estimatedTime: "45-60 min",
742 toolsRequired: ["Administrative access", "Disk cleanup tools"],
743 safetyWarnings: [
744 "Create system restore point before making changes",
745 "Only disable services you understand",
746 "Backup important data before major changes"
747 ],
748 steps: [
749 {
750 stepNumber: 1,
751 title: "Update Windows",
752 description: "Install all available Windows updates and driver updates",
753 imageUrl: "/images/steps/windows-update.svg",
754 tips: ["Restart between major updates for best results"]
755 },
756 {
757 stepNumber: 2,
758 title: "Clean disk space",
759 description: "Use Disk Cleanup and Storage Sense to remove unnecessary files",
760 imageUrl: "/images/steps/disk-cleanup.svg",
761 tips: ["Clean system files and temporary folders"]
762 },
763 {
764 stepNumber: 3,
765 title: "Disable startup programs",
766 description: "Turn off unnecessary programs that start with Windows",
767 imageUrl: "/images/steps/startup-programs.svg",
768 tips: ["Keep only essential programs for faster boot times"]
769 },
770 {
771 stepNumber: 4,
772 title: "Adjust visual effects",
773 description: "Optimize visual effects for performance over appearance",
774 imageUrl: "/images/steps/visual-effects.svg",
775 tips: ["Custom settings allow fine-tuning of specific effects"]
776 },
777 {
778 stepNumber: 5,
779 title: "Configure power settings",
780 description: "Set power plan to High Performance for desktop PCs",
781 imageUrl: "/images/steps/power-settings.svg",
782 tips: ["Balanced mode is fine for most users"]
783 }
784 ],
785 alternativeSolutions: "Consider SSD upgrade if system is still slow after optimization",
786 imageUrl: "/images/guides/windows-optimization.svg"
787 },
788
789 // DESKTOP CLEANING GUIDES
790 {
791 title: "Clean Desktop PC Case and Components",
792 description: "Thorough cleaning guide for desktop PC case, fans, and internal components.",
793 deviceType: "desktop",
794 category: "cleaning",
795 difficulty: "easy",
796 estimatedTime: "45-60 min",
797 toolsRequired: ["Compressed air", "Soft brushes", "Microfiber cloths", "Isopropyl alcohol"],
798 safetyWarnings: [
799 "Power off and unplug PC before cleaning",
800 "Ground yourself to prevent static discharge",
801 "Allow complete drying before powering on"
802 ],
803 steps: [
804 {
805 stepNumber: 1,
806 title: "Remove side panels",
807 description: "Open PC case by removing side panels for access to components",
808 imageUrl: "/images/steps/case-opening.svg",
809 tips: ["Some cases have thumbscrews, others require tools"]
810 },
811 {
812 stepNumber: 2,
813 title: "Clean case fans",
814 description: "Use compressed air to blow dust from all case fans",
815 imageUrl: "/images/steps/fan-dust-removal.svg",
816 tips: ["Hold fan blades stationary while blowing air"]
817 },
818 {
819 stepNumber: 3,
820 title: "Clean dust filters",
821 description: "Remove and wash dust filters in warm, soapy water",
822 imageUrl: "/images/steps/filter-cleaning.svg",
823 tips: ["Let filters dry completely before reinstalling"]
824 },
825 {
826 stepNumber: 4,
827 title: "Clean components",
828 description: "Gently clean GPU, RAM, and other visible components",
829 imageUrl: "/images/steps/component-dusting.svg",
830 tips: ["Use soft brush for delicate components"]
831 },
832 {
833 stepNumber: 5,
834 title: "Clean case exterior",
835 description: "Wipe down case exterior and ports with damp cloth",
836 imageUrl: "/images/steps/case-exterior-clean.svg",
837 tips: ["Use isopropyl alcohol for stubborn stains"]
838 }
839 ],
840 alternativeSolutions: "Consider positive pressure case setup to reduce dust accumulation",
841 imageUrl: "/images/guides/desktop-cleaning.svg"
842 },
843 {
844 title: "Deep Clean Gaming PC Setup",
845 description: "Comprehensive cleaning for gaming PCs including peripherals and cable management.",
846 deviceType: "desktop",
847 category: "cleaning",
848 difficulty: "medium",
849 estimatedTime: "90-120 min",
850 toolsRequired: ["Compressed air", "Cable management tools", "Cleaning solutions", "Soft brushes"],
851 safetyWarnings: [
852 "Disconnect all power before starting",
853 "Take photos of cable arrangements before disconnecting",
854 "Use appropriate cleaning solutions for different materials"
855 ],
856 steps: [
857 {
858 stepNumber: 1,
859 title: "Document current setup",
860 description: "Take photos of cable arrangements and component placement",
861 imageUrl: "/images/steps/setup-documentation.svg",
862 tips: ["This helps with reassembly and troubleshooting"]
863 },
864 {
865 stepNumber: 2,
866 title: "Remove components",
867 description: "Carefully remove GPU, RAM, and other accessible components",
868 imageUrl: "/images/steps/component-removal.svg",
869 tips: ["Only remove components you're comfortable reinstalling"]
870 },
871 {
872 stepNumber: 3,
873 title: "Deep clean case",
874 description: "Thoroughly clean case interior, fans, and all surfaces",
875 imageUrl: "/images/steps/deep-case-cleaning.svg",
876 tips: ["Pay attention to hard-to-reach areas behind motherboard"]
877 },
878 {
879 stepNumber: 4,
880 title: "Clean and reorganize cables",
881 description: "Clean cables and improve cable management layout",
882 imageUrl: "/images/steps/cable-management.svg",
883 tips: ["Use velcro ties and routing holes for clean appearance"]
884 },
885 {
886 stepNumber: 5,
887 title: "Clean peripherals",
888 description: "Clean keyboard, mouse, monitor, and other accessories",
889 imageUrl: "/images/steps/peripheral-cleaning.svg",
890 tips: ["Remove keycaps for thorough keyboard cleaning"]
891 },
892 {
893 stepNumber: 6,
894 title: "Reassemble and test",
895 description: "Reinstall components and verify system functionality",
896 imageUrl: "/images/steps/system-reassembly.svg",
897 tips: ["Test each component as you reinstall it"]
898 }
899 ],
900 alternativeSolutions: "Professional cleaning services available for complex builds",
901 imageUrl: "/images/guides/gaming-pc-deep-clean.svg"
902 },
903 {
904 title: "Clean and Maintain Water Cooling Loop",
905 description: "Maintenance guide for custom water cooling systems including cleaning and fluid replacement.",
906 deviceType: "desktop",
907 category: "cleaning",
908 difficulty: "hard",
909 estimatedTime: "180-240 min",
910 toolsRequired: ["Distilled water", "Coolant", "Soft tubing brush", "Fittings", "Towels"],
911 safetyWarnings: [
912 "Completely drain system before disassembly",
913 "Use only appropriate coolants and cleaning solutions",
914 "Check for leaks thoroughly before powering on"
915 ],
916 steps: [
917 {
918 stepNumber: 1,
919 title: "Drain cooling system",
920 description: "Safely drain all coolant from the water cooling loop",
921 imageUrl: "/images/steps/loop-draining.svg",
922 tips: ["Use drain valve or remove lowest fitting to empty system"]
923 },
924 {
925 stepNumber: 2,
926 title: "Disassemble loop",
927 description: "Carefully disconnect fittings and remove components",
928 imageUrl: "/images/steps/loop-disassembly.svg",
929 tips: ["Label connections and take photos for reference"]
930 },
931 {
932 stepNumber: 3,
933 title: "Clean radiators",
934 description: "Flush radiators with distilled water and cleaning solution",
935 imageUrl: "/images/steps/radiator-cleaning.svg",
936 tips: ["Reverse flush direction multiple times for best results"]
937 },
938 {
939 stepNumber: 4,
940 title: "Clean water blocks",
941 description: "Disassemble and clean CPU and GPU water blocks",
942 imageUrl: "/images/steps/waterblock-cleaning.svg",
943 tips: ["Use soft brush to remove buildup from micro-fins"]
944 },
945 {
946 stepNumber: 5,
947 title: "Replace tubing and fittings",
948 description: "Install new soft tubing and check all fittings",
949 imageUrl: "/images/steps/tubing-replacement.svg",
950 tips: ["Replace tubing annually for best performance"]
951 },
952 {
953 stepNumber: 6,
954 title: "Refill and test",
955 description: "Refill system with fresh coolant and test for leaks",
956 imageUrl: "/images/steps/loop-refilling.svg",
957 tips: ["Run pump without power to components during initial fill"]
958 }
959 ],
960 alternativeSolutions: "Consider AIO coolers if custom loop maintenance is too complex",
961 imageUrl: "/images/guides/watercooling-maintenance.svg"
962 },
963
964 // UPGRADE GUIDES FOR BOTH TYPES
965 {
966 title: "Upgrade to Windows 11",
967 description: "Complete guide to upgrading from Windows 10 to Windows 11 safely.",
968 deviceType: "laptop",
969 category: "upgrades",
970 difficulty: "medium",
971 estimatedTime: "90-120 min",
972 toolsRequired: ["Reliable internet connection", "8GB+ USB drive", "Windows 11 installation media"],
973 safetyWarnings: [
974 "Backup all important data before upgrading",
975 "Ensure hardware meets Windows 11 requirements",
976 "Have recovery media ready in case of issues"
977 ],
978 steps: [
979 {
980 stepNumber: 1,
981 title: "Check compatibility",
982 description: "Run PC Health Check tool to verify Windows 11 compatibility",
983 imageUrl: "/images/steps/compatibility-check.svg",
984 tips: ["Enable TPM 2.0 and Secure Boot if required"]
985 },
986 {
987 stepNumber: 2,
988 title: "Backup data",
989 description: "Create complete backup of important files and system",
990 imageUrl: "/images/steps/data-backup-upgrade.svg",
991 tips: ["Use Windows backup tool or third-party solution"]
992 },
993 {
994 stepNumber: 3,
995 title: "Update drivers",
996 description: "Install latest drivers and Windows updates before upgrading",
997 imageUrl: "/images/steps/pre-upgrade-updates.svg",
998 tips: ["Focus on critical drivers like graphics and storage"]
999 },
1000 {
1001 stepNumber: 4,
1002 title: "Start upgrade",
1003 description: "Run Windows 11 installation or use Windows Update",
1004 imageUrl: "/images/steps/windows11-upgrade.svg",
1005 tips: ["Choose to keep files and apps during upgrade"]
1006 },
1007 {
1008 stepNumber: 5,
1009 title: "Post-upgrade setup",
1010 description: "Configure Windows 11 settings and verify all programs work",
1011 imageUrl: "/images/steps/post-upgrade-setup.svg",
1012 tips: ["Check Device Manager for any driver issues"]
1013 }
1014 ],
1015 alternativeSolutions: "Consider clean installation if upgrade causes issues",
1016 imageUrl: "/images/guides/windows11-upgrade.svg"
1017 },
1018 {
1019 title: "Upgrade Laptop to SSD Storage",
1020 description: "Complete guide to upgrading from HDD to SSD for dramatic performance improvement.",
1021 deviceType: "laptop",
1022 category: "upgrades",
1023 difficulty: "medium",
1024 estimatedTime: "90-120 min",
1025 toolsRequired: ["SSD drive", "SATA to USB adapter", "Cloning software", "Phillips screwdriver"],
1026 safetyWarnings: [
1027 "Backup all data before starting upgrade",
1028 "Ensure SSD is compatible with laptop interface",
1029 "Handle storage devices carefully to prevent damage"
1030 ],
1031 steps: [
1032 {
1033 stepNumber: 1,
1034 title: "Choose right SSD",
1035 description: "Select appropriate SSD size and interface for your laptop",
1036 imageUrl: "/images/steps/ssd-selection.svg",
1037 tips: ["Check current drive interface - SATA, M.2, or NVMe"]
1038 },
1039 {
1040 stepNumber: 2,
1041 title: "Clone existing drive",
1042 description: "Use cloning software to copy all data to new SSD",
1043 imageUrl: "/images/steps/drive-cloning.svg",
1044 tips: ["Use manufacturer cloning tools when available"]
1045 },
1046 {
1047 stepNumber: 3,
1048 title: "Install SSD",
1049 description: "Replace old drive with new SSD in laptop",
1050 imageUrl: "/images/steps/ssd-physical-install.svg",
1051 tips: ["Note cable orientation and mounting screw locations"]
1052 },
1053 {
1054 stepNumber: 4,
1055 title: "First boot test",
1056 description: "Boot from new SSD and verify system functionality",
1057 imageUrl: "/images/steps/ssd-first-boot.svg",
1058 tips: ["Check that all programs and files are accessible"]
1059 },
1060 {
1061 stepNumber: 5,
1062 title: "Optimize SSD settings",
1063 description: "Configure Windows settings for optimal SSD performance",
1064 imageUrl: "/images/steps/ssd-optimization.svg",
1065 tips: ["Enable TRIM, disable defragmentation for SSD"]
1066 }
1067 ],
1068 alternativeSolutions: "Keep old HDD as external storage using USB enclosure",
1069 imageUrl: "/images/guides/ssd-upgrade.svg"
1070 },
1071 {
1072 title: "Upgrade Laptop RAM Memory",
1073 description: "Step-by-step guide to increasing laptop memory for better multitasking performance.",
1074 deviceType: "laptop",
1075 category: "upgrades",
1076 difficulty: "easy",
1077 estimatedTime: "30-45 min",
1078 toolsRequired: ["Compatible RAM modules", "Phillips screwdriver", "Anti-static wrist strap"],
1079 safetyWarnings: [
1080 "Check maximum RAM capacity and speed supported",
1081 "Use anti-static protection when handling memory",
1082 "Power off laptop completely before installation"
1083 ],
1084 steps: [
1085 {
1086 stepNumber: 1,
1087 title: "Check current RAM",
1088 description: "Identify current memory configuration and available slots",
1089 imageUrl: "/images/steps/ram-identification.svg",
1090 tips: ["Use System Information or CPU-Z to check current setup"]
1091 },
1092 {
1093 stepNumber: 2,
1094 title: "Purchase compatible RAM",
1095 description: "Buy memory modules matching laptop specifications",
1096 imageUrl: "/images/steps/ram-purchasing.svg",
1097 tips: ["Match speed, voltage, and form factor of existing RAM"]
1098 },
1099 {
1100 stepNumber: 3,
1101 title: "Install new memory",
1102 description: "Add or replace memory modules in laptop",
1103 imageUrl: "/images/steps/ram-physical-install.svg",
1104 tips: ["Insert at 45-degree angle and press down until clips engage"]
1105 },
1106 {
1107 stepNumber: 4,
1108 title: "Verify installation",
1109 description: "Boot laptop and confirm new memory is recognized",
1110 imageUrl: "/images/steps/ram-verification.svg",
1111 tips: ["Check System Properties to confirm total memory"]
1112 }
1113 ],
1114 alternativeSolutions: "Consider external storage if internal upgrades aren't possible",
1115 imageUrl: "/images/guides/ram-upgrade.svg"
1116 },
1117 {
1118 title: "Upgrade to Dual Monitor Setup",
1119 description: "Set up external monitor with laptop for improved productivity.",
1120 deviceType: "laptop",
1121 category: "upgrades",
1122 difficulty: "easy",
1123 estimatedTime: "20-30 min",
1124 toolsRequired: ["External monitor", "Video cable", "Docking station (optional)"],
1125 safetyWarnings: [
1126 "Check laptop video output compatibility",
1127 "Ensure monitor resolution is supported",
1128 "Use appropriate cables for best quality"
1129 ],
1130 steps: [
1131 {
1132 stepNumber: 1,
1133 title: "Choose monitor and cable",
1134 description: "Select compatible monitor and connection type",
1135 imageUrl: "/images/steps/monitor-selection.svg",
1136 tips: ["HDMI, USB-C, or DisplayPort are common options"]
1137 },
1138 {
1139 stepNumber: 2,
1140 title: "Connect physical cables",
1141 description: "Connect monitor to laptop using appropriate cable",
1142 imageUrl: "/images/steps/monitor-connection.svg",
1143 tips: ["Ensure secure connections on both ends"]
1144 },
1145 {
1146 stepNumber: 3,
1147 title: "Configure display settings",
1148 description: "Set up display arrangement and resolution in Windows",
1149 imageUrl: "/images/steps/display-configuration.svg",
1150 tips: ["Use Windows + P for quick display mode selection"]
1151 },
1152 {
1153 stepNumber: 4,
1154 title: "Optimize workspace",
1155 description: "Arrange windows and set up taskbar for dual monitor use",
1156 imageUrl: "/images/steps/workspace-optimization.svg",
1157 tips: ["Consider using virtual desktops for better organization"]
1158 }
1159 ],
1160 alternativeSolutions: "Wireless display adapters available for cable-free setups",
1161 imageUrl: "/images/guides/dual-monitor-setup.svg"
1162 },
1163 {
1164 title: "Upgrade Desktop Graphics Card",
1165 description: "Complete guide to installing a new graphics card for gaming and professional work.",
1166 deviceType: "desktop",
1167 category: "upgrades",
1168 difficulty: "medium",
1169 estimatedTime: "45-60 min",
1170 toolsRequired: ["New graphics card", "Phillips screwdriver", "PCIe power cables"],
1171 safetyWarnings: [
1172 "Check PSU wattage requirements for new card",
1173 "Verify physical clearance in case",
1174 "Uninstall old drivers before hardware change"
1175 ],
1176 steps: [
1177 {
1178 stepNumber: 1,
1179 title: "Choose compatible GPU",
1180 description: "Select graphics card compatible with motherboard and PSU",
1181 imageUrl: "/images/steps/gpu-selection.svg",
1182 tips: ["Check PCIe slot version and power requirements"]
1183 },
1184 {
1185 stepNumber: 2,
1186 title: "Prepare system",
1187 description: "Uninstall old graphics drivers and power down system",
1188 imageUrl: "/images/steps/gpu-preparation.svg",
1189 tips: ["Use DDU (Display Driver Uninstaller) for clean removal"]
1190 },
1191 {
1192 stepNumber: 3,
1193 title: "Install new card",
1194 description: "Mount graphics card in PCIe slot and connect power",
1195 imageUrl: "/images/steps/gpu-installation-desktop.svg",
1196 tips: ["Press firmly until card clicks into place"]
1197 },
1198 {
1199 stepNumber: 4,
1200 title: "Install new drivers",
1201 description: "Download and install latest drivers from manufacturer",
1202 imageUrl: "/images/steps/gpu-driver-install.svg",
1203 tips: ["Get drivers from NVIDIA, AMD, or Intel websites"]
1204 },
1205 {
1206 stepNumber: 5,
1207 title: "Test performance",
1208 description: "Run benchmarks and games to verify proper installation",
1209 imageUrl: "/images/steps/gpu-testing.svg",
1210 tips: ["Monitor temperatures during stress testing"]
1211 }
1212 ],
1213 alternativeSolutions: "Consider external GPU enclosures for laptops",
1214 imageUrl: "/images/guides/gpu-upgrade-desktop.svg"
1215 },
1216 {
1217 title: "Upgrade to NVMe M.2 SSD",
1218 description: "Install ultra-fast NVMe M.2 SSD for maximum storage performance.",
1219 deviceType: "desktop",
1220 category: "upgrades",
1221 difficulty: "easy",
1222 estimatedTime: "20-30 min",
1223 toolsRequired: ["NVMe M.2 SSD", "Small screwdriver", "Thermal pad (optional)"],
1224 safetyWarnings: [
1225 "Check motherboard M.2 slot compatibility",
1226 "Handle SSD carefully - avoid touching contacts",
1227 "Some slots may disable SATA ports when used"
1228 ],
1229 steps: [
1230 {
1231 stepNumber: 1,
1232 title: "Locate M.2 slot",
1233 description: "Find available M.2 slot on motherboard",
1234 imageUrl: "/images/steps/m2-slot-location.svg",
1235 tips: ["Check motherboard manual for slot specifications"]
1236 },
1237 {
1238 stepNumber: 2,
1239 title: "Install SSD",
1240 description: "Insert M.2 SSD at 30-degree angle and secure with screw",
1241 imageUrl: "/images/steps/m2-installation.svg",
1242 tips: ["Don't force insertion - SSD should slide in easily"]
1243 },
1244 {
1245 stepNumber: 3,
1246 title: "Configure in BIOS",
1247 description: "Enable M.2 slot and set boot priority if needed",
1248 imageUrl: "/images/steps/m2-bios-config.svg",
1249 tips: ["Some motherboards require enabling M.2 in BIOS"]
1250 },
1251 {
1252 stepNumber: 4,
1253 title: "Initialize drive",
1254 description: "Format and partition new SSD in Windows Disk Management",
1255 imageUrl: "/images/steps/m2-initialization.svg",
1256 tips: ["Choose GPT partition style for drives over 2TB"]
1257 }
1258 ],
1259 alternativeSolutions: "PCIe to M.2 adapters available for older motherboards",
1260 imageUrl: "/images/guides/nvme-upgrade.svg"
1261 }
1262 ];
1263
1264 const comprehensiveTroubleshootingFlows = [
1265 {
1266 title: "Computer Won't Turn On",
1267 description: "Systematic troubleshooting for computers that won't power on",
1268 deviceType: "both",
1269 category: "hardware",
1270 difficulty: "medium",
1271 symptoms: ["No power", "No lights", "No fan noise", "Dead system"],
1272 steps: [
1273 {
1274 stepNumber: 1,
1275 title: "Check power source",
1276 description: "Verify power outlet and cable connections",
1277 possibleCauses: ["Faulty outlet", "Loose power cable", "Bad power adapter"],
1278 solutions: ["Test outlet with another device", "Reseat all power connections", "Try different power adapter"]
1279 },
1280 {
1281 stepNumber: 2,
1282 title: "Check battery (laptops)",
1283 description: "Test if battery is completely drained or faulty",
1284 possibleCauses: ["Dead battery", "Faulty battery", "Charging port issues"],
1285 solutions: ["Charge for 30+ minutes", "Try with adapter only", "Check charging port for damage"]
1286 },
1287 {
1288 stepNumber: 3,
1289 title: "Hardware reset",
1290 description: "Perform hard reset to clear any power issues",
1291 possibleCauses: ["Power state corruption", "Static buildup"],
1292 solutions: ["Hold power button 30+ seconds", "Remove battery and hold power", "Reseat RAM modules"]
1293 }
1294 ]
1295 },
1296 {
1297 title: "Slow Computer Performance",
1298 description: "Diagnose and fix slow computer performance issues",
1299 deviceType: "both",
1300 category: "software",
1301 difficulty: "easy",
1302 symptoms: ["Slow startup", "Programs lag", "General slowness", "Long loading times"],
1303 steps: [
1304 {
1305 stepNumber: 1,
1306 title: "Check available storage",
1307 description: "Verify sufficient free disk space",
1308 possibleCauses: ["Full hard drive", "Fragmented disk", "Too many files"],
1309 solutions: ["Delete unnecessary files", "Use Disk Cleanup", "Move files to external storage"]
1310 },
1311 {
1312 stepNumber: 2,
1313 title: "Review startup programs",
1314 description: "Check for too many programs starting with system",
1315 possibleCauses: ["Too many startup programs", "Resource-heavy software"],
1316 solutions: ["Disable unnecessary startup programs", "Uninstall unused software", "Use Task Manager"]
1317 },
1318 {
1319 stepNumber: 3,
1320 title: "Scan for malware",
1321 description: "Check for viruses and malware affecting performance",
1322 possibleCauses: ["Virus infection", "Malware", "Adware"],
1323 solutions: ["Run full antivirus scan", "Use anti-malware tools", "Update security software"]
1324 }
1325 ]
1326 },
1327 {
1328 title: "Internet Connection Problems",
1329 description: "Troubleshoot network and internet connectivity issues",
1330 deviceType: "both",
1331 category: "software",
1332 difficulty: "easy",
1333 symptoms: ["No internet", "Slow internet", "Intermittent connection", "Can't connect to Wi-Fi"],
1334 steps: [
1335 {
1336 stepNumber: 1,
1337 title: "Check physical connections",
1338 description: "Verify all cables and wireless connections",
1339 possibleCauses: ["Loose cables", "Disabled Wi-Fi", "Router issues"],
1340 solutions: ["Check Ethernet cables", "Ensure Wi-Fi is enabled", "Restart router/modem"]
1341 },
1342 {
1343 stepNumber: 2,
1344 title: "Reset network settings",
1345 description: "Reset network adapters and configurations",
1346 possibleCauses: ["Corrupted network settings", "Wrong IP configuration"],
1347 solutions: ["Run network troubleshooter", "Reset TCP/IP stack", "Flush DNS cache"]
1348 },
1349 {
1350 stepNumber: 3,
1351 title: "Update network drivers",
1352 description: "Ensure network drivers are current",
1353 possibleCauses: ["Outdated drivers", "Corrupted drivers"],
1354 solutions: ["Update network adapter drivers", "Reinstall network drivers", "Use manufacturer drivers"]
1355 }
1356 ]
1357 }
1358 ];
1359
1360 const comprehensiveDeviceComponents = [
1361 // Laptop Components
1362 {
1363 name: "Laptop CPU",
1364 description: "Central Processing Unit - the main processor of the laptop",
1365 deviceType: "laptop",
1366 componentType: "processor",
1367 commonIssues: ["Overheating", "Performance degradation", "Complete failure"],
1368 replacementDifficulty: "hard",
1369 averageCost: "$200-800",
1370 toolsRequired: ["Advanced tools", "Thermal paste", "Heat gun"],
1371 imageUrl: "/images/components/laptop-cpu.svg"
1372 },
1373 {
1374 name: "Laptop RAM",
1375 description: "Random Access Memory modules for temporary data storage",
1376 deviceType: "laptop",
1377 componentType: "memory",
1378 commonIssues: ["System crashes", "Memory errors", "Slow performance"],
1379 replacementDifficulty: "easy",
1380 averageCost: "$50-200",
1381 toolsRequired: ["Phillips screwdriver", "Anti-static wrist strap"],
1382 imageUrl: "/images/components/laptop-ram.svg"
1383 },
1384 {
1385 name: "Laptop Battery",
1386 description: "Rechargeable battery providing portable power",
1387 deviceType: "laptop",
1388 componentType: "power",
1389 commonIssues: ["Won't hold charge", "Swollen battery", "Not charging"],
1390 replacementDifficulty: "easy",
1391 averageCost: "$50-150",
1392 toolsRequired: ["Phillips screwdriver"],
1393 imageUrl: "/images/components/laptop-battery.svg"
1394 },
1395 {
1396 name: "Laptop Hard Drive",
1397 description: "Storage device for operating system and user data",
1398 deviceType: "laptop",
1399 componentType: "storage",
1400 commonIssues: ["Clicking sounds", "Slow performance", "Boot failures"],
1401 replacementDifficulty: "medium",
1402 averageCost: "$50-300",
1403 toolsRequired: ["Phillips screwdriver", "SATA cable"],
1404 imageUrl: "/images/components/laptop-hdd.svg"
1405 },
1406 {
1407 name: "Laptop Screen",
1408 description: "LCD or LED display panel",
1409 deviceType: "laptop",
1410 componentType: "display",
1411 commonIssues: ["Cracked screen", "Dead pixels", "Flickering", "No display"],
1412 replacementDifficulty: "hard",
1413 averageCost: "$100-400",
1414 toolsRequired: ["Phillips screwdriver", "Plastic prying tools"],
1415 imageUrl: "/images/components/laptop-screen.svg"
1416 },
1417 {
1418 name: "Laptop Keyboard",
1419 description: "Input device for typing and system control",
1420 deviceType: "laptop",
1421 componentType: "input",
1422 commonIssues: ["Stuck keys", "Non-responsive keys", "Liquid damage"],
1423 replacementDifficulty: "medium",
1424 averageCost: "$30-100",
1425 toolsRequired: ["Phillips screwdriver", "Plastic tools"],
1426 imageUrl: "/images/components/laptop-keyboard.svg"
1427 },
1428 {
1429 name: "Laptop Trackpad",
1430 description: "Touch-sensitive pointing device",
1431 deviceType: "laptop",
1432 componentType: "input",
1433 commonIssues: ["Erratic cursor movement", "Non-responsive", "Clicking issues"],
1434 replacementDifficulty: "medium",
1435 averageCost: "$25-75",
1436 toolsRequired: ["Phillips screwdriver", "Ribbon cable tools"],
1437 imageUrl: "/images/components/laptop-trackpad.svg"
1438 },
1439 {
1440 name: "Laptop Wi-Fi Card",
1441 description: "Wireless network adapter for internet connectivity",
1442 deviceType: "laptop",
1443 componentType: "networking",
1444 commonIssues: ["No Wi-Fi detected", "Slow speeds", "Frequent disconnections"],
1445 replacementDifficulty: "easy",
1446 averageCost: "$20-60",
1447 toolsRequired: ["Phillips screwdriver"],
1448 imageUrl: "/images/components/laptop-wifi.svg"
1449 },
1450
1451 // Desktop Components
1452 {
1453 name: "Desktop CPU",
1454 description: "Central Processing Unit for desktop computers",
1455 deviceType: "desktop",
1456 componentType: "processor",
1457 commonIssues: ["Overheating", "Performance bottlenecks", "Socket damage"],
1458 replacementDifficulty: "medium",
1459 averageCost: "$100-1000",
1460 toolsRequired: ["Thermal paste", "CPU cooler"],
1461 imageUrl: "/images/components/desktop-cpu.svg"
1462 },
1463 {
1464 name: "Desktop RAM",
1465 description: "Desktop memory modules (DIMM)",
1466 deviceType: "desktop",
1467 componentType: "memory",
1468 commonIssues: ["Blue screens", "Memory errors", "System instability"],
1469 replacementDifficulty: "easy",
1470 averageCost: "$30-300",
1471 toolsRequired: ["None - tool-free installation"],
1472 imageUrl: "/images/components/desktop-ram.svg"
1473 },
1474 {
1475 name: "Graphics Card",
1476 description: "Dedicated GPU for gaming and graphics processing",
1477 deviceType: "desktop",
1478 componentType: "graphics",
1479 commonIssues: ["Artifacts on screen", "Overheating", "Driver crashes"],
1480 replacementDifficulty: "easy",
1481 averageCost: "$150-2000",
1482 toolsRequired: ["Phillips screwdriver", "PCIe power cables"],
1483 imageUrl: "/images/components/desktop-gpu.svg"
1484 },
1485 {
1486 name: "Power Supply",
1487 description: "Converts AC power to DC power for computer components",
1488 deviceType: "desktop",
1489 componentType: "power",
1490 commonIssues: ["No power", "Shutdowns under load", "Loud fan noise"],
1491 replacementDifficulty: "medium",
1492 averageCost: "$50-300",
1493 toolsRequired: ["Phillips screwdriver", "Cable management"],
1494 imageUrl: "/images/components/desktop-psu.svg"
1495 },
1496 {
1497 name: "Motherboard",
1498 description: "Main circuit board connecting all components",
1499 deviceType: "desktop",
1500 componentType: "mainboard",
1501 commonIssues: ["Won't boot", "Component not detected", "Port failures"],
1502 replacementDifficulty: "hard",
1503 averageCost: "$100-500",
1504 toolsRequired: ["Full tool kit", "Thermal paste", "Cable management"],
1505 imageUrl: "/images/components/desktop-motherboard.svg"
1506 },
1507 {
1508 name: "Desktop Hard Drive",
1509 description: "Traditional spinning disk storage",
1510 deviceType: "desktop",
1511 componentType: "storage",
1512 commonIssues: ["Clicking noises", "Slow performance", "Bad sectors"],
1513 replacementDifficulty: "easy",
1514 averageCost: "$50-200",
1515 toolsRequired: ["SATA cables", "Phillips screwdriver"],
1516 imageUrl: "/images/components/desktop-hdd.svg"
1517 },
1518 {
1519 name: "SSD (Solid State Drive)",
1520 description: "Fast flash-based storage device",
1521 deviceType: "desktop",
1522 componentType: "storage",
1523 commonIssues: ["Sudden failure", "Performance degradation", "Not detected"],
1524 replacementDifficulty: "easy",
1525 averageCost: "$50-400",
1526 toolsRequired: ["SATA cables", "Phillips screwdriver"],
1527 imageUrl: "/images/components/desktop-ssd.svg"
1528 }
1529 ];
1530
1531 export async function seedDatabase() {
1532 try {
1533 console.log("Seeding repair guides...");
1534 for (const guide of comprehensiveRepairGuides) {
1535 await db.insert(repairGuides).values({
1536 ...guide,
1537 viewCount: Math.floor(Math.random() * 1000),
1538 isBookmarked: Math.random() > 0.8
1539 }).onConflictDoNothing();
1540 }
1541
1542 console.log("Seeding troubleshooting flows...");
1543 for (const flow of comprehensiveTroubleshootingFlows) {
1544 const { category, ...flowData } = flow;
1545 await db.insert(troubleshootingFlows).values({
1546 ...flowData,
1547 type: category, // Map category to type field
1548 steps: flowData.steps.map(step => ({
1549 id: `step-${step.stepNumber}`,
1550 question: step.description,
1551 answers: [{
1552 text: step.solutions?.join(', ') || "Check solutions",
1553 nextStepId: step.stepNumber < flowData.steps.length ? `step-${step.stepNumber + 1}` : undefined
1554 }]
1555 }))
1556 }).onConflictDoNothing();
1557 }
1558
1559 console.log("Seeding device components...");
1560 for (const component of comprehensiveDeviceComponents) {
1561 const { componentType, commonIssues, ...componentData } = component;
1562 await db.insert(deviceComponents).values({
1563 ...componentData,
1564 category: componentType, // Map componentType to category
1565 safetyNotes: commonIssues // Map commonIssues to safetyNotes
1566 }).onConflictDoNothing();
1567 }
1568
1569 console.log("Database seeding completed successfully!");
1570 } catch (error) {
1571 console.error("Error seeding database:", error);
1572 throw error;
1573 }
1574 }