Skip to content

Conversation

@yuvarajsai
Copy link
Contributor

@yuvarajsai yuvarajsai commented Dec 2, 2024

We can have attachments for expenses, but in expenses list we do not show if a particular expense has an attachment or not. Relates to #238

Before:
image

After:

Expense has attachments:

image
image

Mobile:

image

No attachments:

image

@scastiel
Copy link
Member

scastiel commented Dec 7, 2024

This is great @yuvarajsai, thanks a lot!

I updated two things on your PR:

  1. I removed the label "attachment" as we don't have translations for all languages, and I think the icon makes it pretty explicit,
  2. I optimized the query to return only the document count instead of the whole document list.

@scastiel scastiel merged commit 72ad0a4 into spliit-app:main Dec 7, 2024
1 check passed
@yuvarajsai
Copy link
Contributor Author

This is my first open source PR and glad that you appreciate it @scastiel 🙌
The both changes you made make perfect sense.

Please feel free to assign any issues in this or spliit-mobile repo. I really appreciate the idea of "spliit" being an open-source project. Thank you for this initiative and your efforts.

Lipkin10 pushed a commit to Lipkin10/Split-AI-first-version that referenced this pull request Jul 30, 2025
…e includes attachments (spliit-app#267)

* feat(expense-list): Display the attachment count only when the expense includes attachments

* handle attachments - singular & plural

* move documents count between amount and date

* Remove label

* Use document count only instead of whole document list

---------

Co-authored-by: Sebastien Castiel <[email protected]>
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.

2 participants