Skip to content

Comments

fix: show receipt thumbnail in expense detail view#246

Merged
daveharmswebdev merged 1 commit intomainfrom
fix/expense-receipt-thumbnail
Feb 21, 2026
Merged

fix: show receipt thumbnail in expense detail view#246
daveharmswebdev merged 1 commit intomainfrom
fix/expense-receipt-thumbnail

Conversation

@daveharmswebdev
Copy link
Owner

Summary

  • Replace "Receipt attached" text with actual receipt thumbnail image in expense detail view
  • Shows thumbnail in both view mode and edit mode receipt cards
  • Fetches receipt viewUrl reactively via Angular effect() when expense has a receiptId
  • PDF receipts show a document icon; image receipts show the actual thumbnail
  • Clicking the thumbnail opens the existing lightbox dialog

Test plan

  • Navigate to expense with linked receipt — thumbnail displays instead of "Receipt attached" text
  • Click thumbnail — lightbox opens
  • Expense with PDF receipt — shows document icon instead of image
  • Expense without receipt — shows "No receipt linked" (unchanged)
  • Edit mode with receipt — thumbnail shown alongside View/Unlink buttons
  • All 2420 frontend tests pass

🤖 Generated with Claude Code

Replace "Receipt attached" text with an actual receipt thumbnail image
in both view and edit modes. Fetches the receipt viewUrl via an effect
that watches the expense signal. Handles PDF receipts with a document
icon and shows a placeholder while loading.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@daveharmswebdev daveharmswebdev merged commit cd7c022 into main Feb 21, 2026
7 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