feat: multi-provider AI support with auto-detection
- Added support for Google Gemini, OpenAI, Anthropic, and Azure OpenAI - Implemented API key validation with auto model detection - Added Error Boundary for better error handling - Migrated PDF generation to native jsPDF (better quality) - Added PWA support with offline capabilities - Implemented tests with Vitest - Fixed language consistency (PT-BR) - Improved accessibility (ARIA)
This commit is contained in:
@@ -28,9 +28,15 @@ const TableRow: React.FC<{item: ComplianceItem}> = ({item}) => (
|
||||
|
||||
export const PrintableReport: React.FC<PrintableReportProps> = ({ report }) => {
|
||||
const { identification, compliance, overPerformance, equivalents, confidence } = report;
|
||||
const jsonData = JSON.stringify(report);
|
||||
|
||||
return (
|
||||
<div id="printable-report-container" style={{ width: '210mm', height: '297mm' }} className="bg-white text-gray-900 p-8 font-sans flex flex-col">
|
||||
<div
|
||||
id="printable-report-container"
|
||||
data-report={jsonData}
|
||||
style={{ width: '210mm', minHeight: '297mm' }}
|
||||
className="bg-white text-gray-900 p-8 font-sans flex flex-col"
|
||||
>
|
||||
<header className="flex justify-between items-start pb-2 border-b-2 border-gray-400">
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold text-blue-800">SteelBase</h1>
|
||||
|
||||
Reference in New Issue
Block a user