Skip to content

feat: six UX improvements (drop zone, cancel, preview, re-export, no blob regen, webhook badge)#67

Merged
davidamunga merged 2 commits into
mainfrom
feat/ux-improvements
Jul 14, 2026
Merged

feat: six UX improvements (drop zone, cancel, preview, re-export, no blob regen, webhook badge)#67
davidamunga merged 2 commits into
mainfrom
feat/ux-improvements

Conversation

@davidamunga

Copy link
Copy Markdown
Owner

Summary

  • Drop zone fully clickable — clicking anywhere on the upload area opens the file picker, not just the "Browse" button.
  • Cancel during processing — a Cancel button appears while PDF extraction runs; clicking it kills the Java process (cancel_pdf_extraction) and returns to the idle state.
  • Transaction preview before export — a collapsible table (first 10 rows) appears once parsing is complete so users can verify data before downloading.
  • Re-export without Start Again — the Export button is always visible after parsing; changing format or options and clicking Export again works immediately without resetting.
  • XLSX blob only on Export click — removed eager createDownloadLink calls from handleFormatChange and handleOptionsChange; the export buffer is now built only when the user actually clicks Export.
  • Webhook result badge — after sending, the panel stays open and a colour-coded ✓/✗ badge appears on the section header so the result is visible even if the user collapses the panel.

Files changed

File Changes
src/components/file-uploader.tsx onClick + keyboard handler on drop zone div
src/App.tsx cancel ref + handleCancel, preview state, stripped eager blob, always-visible Export button
src/components/export-options.tsx webhook badge + auto-open panel after send
.changeset/feat-ux-improvements.md minor changeset

Test plan

  • Click empty drop zone area (not the button) → file picker opens
  • Drop a PDF → Cancel during processing → returns to idle with no error shown
  • Parse a statement → expand Preview panel → verify first 10 rows
  • Parse → Export → change format → Export again without Start Again
  • Toggle sheet options rapidly → observe no lag (no blob being generated)
  • Send to webhook → collapse panel → badge visible on header

…rt flows

- Drop zone is now fully clickable (not just the Browse button)
- Cancel button shown during PDF processing; kills the Java process via cancel_pdf_extraction
- Transaction preview table (collapsible, first 10 rows) visible before export so users are never exporting blind
- Export button always visible after success — change format/options and re-export without Start Again
- XLSX blob no longer regenerates on every option toggle; export buffer is built only on Export click
- Webhook section shows a success/failure badge on the collapsed header; panel auto-opens after send
@cursor

cursor Bot commented Jul 14, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@davidamunga davidamunga self-assigned this Jul 14, 2026
@davidamunga
davidamunga merged commit cfe7808 into main Jul 14, 2026
6 checks passed
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.

1 participant