import React,{useState} from 'react'; import {Copy,Check} from 'lucide-react'; import {build,diagnosticReport,recentIssues} from './diagnostics.mjs'; // Support details are copied only when the person presses the button. They hold // the app version, page and recent error messages: never passwords, emails or photos. function SupportBox({context}){ const [state,setState]=useState('idle'); async function copy(){ try{await navigator.clipboard.writeText(diagnosticReport(context||{}));setState('copied')}catch{setState('failed')} } const count=recentIssues().length; return
Read the message beside the button first. It says what to do next. “Mark as seen” only records that an alert was noticed; it does not approve the product.
{state==='failed'&&Copying is blocked in this browser. Take a screenshot of this page instead.
}Version {build.version} · build {build.commit}{build.built?' · '+build.built:''} · {count} recent problem{count===1?'':'s'} recorded in this tab. No passwords, emails or photos are included.
The app helps you screen photos. Your workplace rules still decide what is accepted.
Pick Image inspection for one photo, or Batch inspection for up to 20. Choose the product, add clear photos, then press Run.
Looks normal means nothing was flagged. Unusual appearance or Needs a closer look means a person should check. Compare the photo with the highlighted areas. The score is not a chance of defect.
Personal workspace is private to you. Press Share with team to give your team a copy.
Go to Inspection history, pick Team workspace, then press Review. Save your decision. If a real defect needs fixing, choose Reviewed and Reject.
Open Corrective Actions. Pick an inspection marked Ready. Choose who fixes it, a supervisor and a deadline. Tick the box and press Create. Press Details on a case to see its progress.
New Staff: create an account, confirm your email, sign in and request access. A Developer approves it. Then enter the six-digit security code from your authenticator app. Password reset does not remove this check. Lost your authenticator? Ask the administrator.
{showcase?'This version shows saved examples only. It does not check new photos or provide a live assistant.':online?'The online app saves approved account work privately online. Without sign-in, demo results belong to this browser session and may disappear when the app restarts.':'Without sign-in, work stays on this computer. With approved sign-in and a security code, Personal work can also be saved online. Check saved changes to see whether anything is still waiting.'}
To use private work on another device, sign in with the same account and complete its security check there. Sharing with the team is always separate. Personal notes and later conversations are not added to a Team copy automatically.
The app keeps both copies for review. Compare saved changes before choosing which copy to use. Do not assume that a change waiting on this computer has already reached the online account.
Ask about the saved result, highlighted areas or supporting information. The assistant reads saved measurements and references; it does not examine the photo itself. Open supporting references and check important answers. The app does not provide factory repair instructions or replace workplace procedures.
Visual screening compares DINOv2 image features with normal reference features. The encoder used online was lightly fine-tuned on synthetic defects made from normal images. Category calibration sets the operating threshold. The system does not classify named defects.
The Evidence Assistant uses retrieval-augmented generation (RAG). BGE text embeddings retrieve reference passages; LangChain and LangGraph support retrieval, routing and evidence checks. Qwen generates supported explanations. This is vision-assisted text RAG, not image retrieval or a vision-language assistant.
Application: React + Vite, FastAPI, SQLite for local storage, and Supabase for account security and private/shared online records. {online?'Online generation uses Qwen 2.5 3B fine-tuned for this project (improved using Qwen) on ZeroGPU.':'Local generation uses the configured Ollama model, commonly Qwen 2.5 3B.'} Corrective Action delivery can use n8n; a saved case is separate from an email being sent.
References describe the components, not proof that every component or cited research method is implemented in full.
{[ ['DINOv2 visual features','https://github.com/facebookresearch/dinov2'], ['Qwen 2.5 3B text generation (base model, fine-tuned here)','https://huggingface.co/Qwen/Qwen2.5-3B-Instruct'], ['VisA example image dataset','https://github.com/amazon-science/spot-diff'], ['BGE text embeddings','https://huggingface.co/BAAI/bge-small-en-v1.5'], ['Dinomaly reference documentation','https://anomalib.readthedocs.io/en/lib-v2.6.2/markdown/guides/reference/models/image/dinomaly.html'] ].map(([label,href])=>{label})}VisA sample images: Zou et al., ECCV 2022, CC BY 4.0. Model and library licenses remain listed in the project documentation.