Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.57k stars 2.91k forks source link

Feat: Add placeholder thumbnail to expenses with no receipt #52848

Open gijoe0295 opened 1 day ago

gijoe0295 commented 1 day ago

Explanation of Change

image

image

Fixed Issues

$ https://github.com/Expensify/App/issues/52638 PROPOSAL: https://github.com/Expensify/App/issues/52638#issuecomment-2479757234

Tests

  1. Create several expenses with and without receipts to a workspace
  2. Verify the report preview shows empty receipt placeholders and receipt thumbnails in the order of the created expenses
  3. Verify the figure in the corner shows the number of remaining expenses in the expense report (total expenses - 3 thumbnails)
  4. Tap the report preview to open expense report
  5. Verify expenses without receipt shows empty receipt placeholders
  6. Tap the expense preview without receipt to open transaction details report
  7. Verify Add receipt placeholder shows with a green plus icon
  8. Tap the receipt placeholder
  9. Verify app opens Upload receipt page
  10. Tap FAB > Submit expense > Manual
  11. Create an expense
  12. In confirmation step, verify the Add receipt placeholder shows with a green plus icon

Offline tests

QA Steps

  1. Submit 2 manual expenses (without receipts) and 2 scan expenses (with receipt) to a workspace respectively
  2. Verify the report preview shows 2 empty receipt placeholders and 2 receipt thumbnails respectively
  3. Verify the figure in the corner shows the number of remaining expenses in the expense report (+1 in this case)
  4. Tap the report preview to open expense report
  5. Verify expenses without receipt shows empty receipt placeholders
  6. Tap the expense preview without receipt to open transaction details report
  7. Verify Add receipt placeholder shows with a green plus icon
  8. Tap the receipt placeholder
  9. Verify app opens Upload receipt page
  10. Tap FAB > Submit expense > Manual
  11. Create an expense
  12. In confirmation step, verify the Add receipt placeholder shows with a green plus icon

PR Author Checklist

Screenshots/Videos

Android: Native ![Screenshot_1732209009](https://github.com/user-attachments/assets/4ee380c8-ba90-48a0-b0f4-eb5998df40a4) ![Screenshot_1732209132](https://github.com/user-attachments/assets/6c25acac-273d-494a-8c4c-5d2ac4f707f5) ![Screenshot_1732209175](https://github.com/user-attachments/assets/fff764b8-a65c-41fd-8b9c-fda830bd7252)
Android: mWeb Chrome ![Screenshot_1732209215](https://github.com/user-attachments/assets/d1b8fb7c-a6eb-47b8-a310-92f2f0602f7d) ![Screenshot_1732209320](https://github.com/user-attachments/assets/3b1b7a5e-b437-4a21-9b67-13028ed53ad3)
iOS: Native ![Simulator Screenshot - iPhone 16 - 2024-11-21 at 23 47 32](https://github.com/user-attachments/assets/dda86ec1-eed0-473e-ba6b-c57db08ed1bc) ![Simulator Screenshot - iPhone 16 - 2024-11-21 at 23 47 37](https://github.com/user-attachments/assets/d181d5c3-4123-4adf-8596-3f29261da52c) ![Simulator Screenshot - iPhone 16 - 2024-11-21 at 23 47 45](https://github.com/user-attachments/assets/103e522c-556d-411d-b295-1c1e06197b8d) ![Simulator Screenshot - iPhone 16 - 2024-11-21 at 23 47 57](https://github.com/user-attachments/assets/bd6897e9-c9ee-4fad-a263-4e4dd84a3209)
iOS: mWeb Safari ![Simulator Screenshot - iPhone 16 - 2024-11-22 at 00 02 23](https://github.com/user-attachments/assets/24399d7b-1fec-477d-9bc5-f0f263b2999f) ![Simulator Screenshot - iPhone 16 - 2024-11-22 at 00 02 36](https://github.com/user-attachments/assets/857d4a90-51c6-40e6-8c25-2b3e2d2147cb)
MacOS: Chrome / Safari ![Screenshot 2024-11-21 at 23 39 13](https://github.com/user-attachments/assets/bd22355e-c726-4159-99f5-3088bbcb1f0e) ![Screenshot 2024-11-21 at 23 39 28](https://github.com/user-attachments/assets/528fda47-2793-4df6-a4c2-9179d9c018ba) ![Screenshot 2024-11-21 at 23 39 38](https://github.com/user-attachments/assets/2a1776a1-3291-4776-9b34-dc4577ccaa7c) ![Screenshot 2024-11-21 at 23 42 17](https://github.com/user-attachments/assets/dfc9d8d3-4e60-4f32-8c77-f082b9fd9509)
MacOS: Desktop ![Screenshot 2024-11-22 at 00 07 15](https://github.com/user-attachments/assets/67c14593-c902-4e3c-a772-f3fa792a1b03) ![Screenshot 2024-11-22 at 00 07 13](https://github.com/user-attachments/assets/1982cdc0-dfa4-4a39-a055-69e79cc42de9) ![Screenshot 2024-11-22 at 00 07 08](https://github.com/user-attachments/assets/f6e0d874-e331-4d73-8138-3ce6ee62badd)
melvin-bot[bot] commented 17 hours ago

@brunovjk Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

shawnborton commented 14 hours ago

It looks like we don't have perfectly even borders and a clean border radius here, any ideas what's happening? CleanShot 2024-11-21 at 15 20 43@2x