Skip to content

236 expenses modal - #240

Merged
mehanana merged 13 commits into
mainfrom
236-expenses-modal
Jun 30, 2026
Merged

236 expenses modal#240
mehanana merged 13 commits into
mainfrom
236-expenses-modal

Conversation

@mehanana

Copy link
Copy Markdown
Contributor

ℹ️ Issue

Closes #236

📝 Description

Updated the AddExpense modal to match the new figma design & added a file upload section for it. The FileUpload component currently only accepts pdfs.

Briefly list the changes made to the code:

  1. Created FileUpload, UploadProgressBar, and FilePreview components to allow file uploads in this modal
  2. FileUpload component will display UploadProgressBar when the file is being uploaded, and then the FilePreview component once it's uploaded
  3. Updated the existing AddExpense modal to match the new figma design & added the FileUpload component to it
  4. Wrote tests!!

✔️ Verification

Ran my tests & verified everything passed. Also checked on local host to make sure everything matched figma.
Modal with FIleUpload component at default state:
Screenshot 2026-06-27 011639

FileUpload component at upload state (UploadProgressBar):
Screenshot 2026-06-27 011709

FileUpload component at upload completed state (FilePreview):
Screenshot 2026-06-27 011714

FileUpload component when incorrect file type dropped:
Screenshot 2026-06-27 011902

All tests in test folder pass:
Screenshot 2026-06-27 204005

🏕️ (Optional) Future Work / Notes

I wasn't able to match the calendar to the figma design because we'd need to make a custom date picker component rather than using the native HTML one. This seemed like it was enough extra work to be its own ticket in the future!
Also, right now since the file upload isn't connected to the backend, the progress bar has preprogrammed values in it, so when we connect this to the backend, we should update the progress bar to use the real values.

@mehanana
mehanana requested a review from nourshoreibah as a code owner June 28, 2026 01:08
@github-actions
github-actions Bot requested a review from tsudhakar87 June 28, 2026 01:08
github-actions Bot added a commit that referenced this pull request Jun 28, 2026

@nourshoreibah nourshoreibah left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Can we just fix the linter warnings?

@tsudhakar87 tsudhakar87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

github-actions Bot added a commit that referenced this pull request Jun 30, 2026
@mehanana
mehanana added this pull request to the merge queue Jun 30, 2026
Merged via the queue into main with commit 8557bb8 Jun 30, 2026
13 checks passed
@mehanana
mehanana deleted the 236-expenses-modal branch June 30, 2026 23:36
github-actions Bot added a commit that referenced this pull request Jun 30, 2026
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.

Create expense modal

3 participants