Overview
src/components/ExportButton.tsx (lines 70-76) surfaces failures only by reusing the 'completed' progress stage at 100%, mislabeling a failed export as complete, and the component has no distinct error styling or disabled/empty guard for missing template data. Add an explicit error state and guard against empty template data.
Overview
src/components/ExportButton.tsx (lines 70-76) surfaces failures only by reusing the 'completed' progress stage at 100%, mislabeling a failed export as complete, and the component has no distinct error styling or disabled/empty guard for missing template data. Add an explicit error state and guard against empty template data.