implement new-transaction modal #632

Closed
b4s36t4 wants to merge 3 commits from feat/new-transaction into main
b4s36t4 commented 2024-04-16 07:08:28 +08:00 (Migrated from github.com)

/claim #629

/closes #629

This PR replaces the current /new route for transaction and adds a modal for the new-transaction flow.

This is purely inspired from the existing account creation flow.

Implementation Details.

  • Update the route with modal
  • Implement the form fields along with the category
  • Handle redirection after save with all the turbo-streams
  • Auto-close the modal after the event is success.

Video

https://github.com/maybe-finance/maybe/assets/59088937/2434d75d-c0c9-496b-b3b5-6518d941e3ba

/claim #629 /closes #629 This PR replaces the current `/new` route for transaction and adds a modal for the new-transaction flow. This is purely inspired from the existing `account` creation flow. ## Implementation Details. * Update the route with modal * Implement the form fields along with the category * Handle redirection after save with all the turbo-streams * Auto-close the modal after the event is success. ## Video https://github.com/maybe-finance/maybe/assets/59088937/2434d75d-c0c9-496b-b3b5-6518d941e3ba
therealtimex commented 2024-04-16 13:02:24 +08:00 (Migrated from github.com)

Is it possible to upload files (receipt, etc)?

Is it possible to upload files (receipt, etc)?
zachgoll (Migrated from github.com) reviewed 2024-04-17 02:44:08 +08:00
zachgoll (Migrated from github.com) left a comment

@b4s36t4 thanks for the submission here! We have decided to go with #633 though.

This solution works well but has some inconsistencies with the design spec that was posted in the issue.

Really like the turbo:submit-end hook that you added in here though, I think that's a great way to trigger modal closing for forms as we continue building out features like this.

@b4s36t4 thanks for the submission here! We have decided to go with #633 though. This solution works well but has some inconsistencies with the [design spec](https://www.figma.com/file/lonJmVk3HYkwZoIO7xYP2w/Maybe-App-(Community)?type=design&node-id=2664-225&mode=design&t=p9lOop61MfLabHUV-0) that was posted in the issue. Really like the `turbo:submit-end` hook that you added in here though, I think that's a great way to trigger modal closing for forms as we continue building out features like this.

Pull request closed

Sign in to join this conversation.