Skip to content

Feat: Add a distinct error state to ExportButton instead of mislabeling failures as complete - #1086

Open
Olamidepy wants to merge 6 commits into
rinafcode:mainfrom
Olamidepy:fix/export-button-error-state-990
Open

Feat: Add a distinct error state to ExportButton instead of mislabeling failures as complete#1086
Olamidepy wants to merge 6 commits into
rinafcode:mainfrom
Olamidepy:fix/export-button-error-state-990

Conversation

@Olamidepy

@Olamidepy Olamidepy commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Closes #990


Previously, ExportButton surfaced export failures by reusing the completed progress stage at 100%, mislabeling failed exports as complete. Additionally, there was no distinct red error styling or guard against missing/empty templateId.

Key Changes
Explicit Error State: Added 'failed' to ExportProgressState.stage so failures are no longer mislabeled as completed.
Distinct Red Styling: Applied text-red-600 and bg-red-600 for failed progress bars and error messages.
Empty Template Guard: Automatically disabled the button when templateId is empty or whitespace.
Unit Tests: Added tests covering empty templateId guards, failed export error rendering, and successful export flows.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Olamidepy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Olamidepy

Copy link
Copy Markdown
Contributor Author

@RUKAYAT-CODER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a distinct error state to ExportButton instead of mislabeling failures as complete

1 participant