Add modal for new transactions #631
Reference in New Issue
Block a user
Delete Branch "feature/transaction-modal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This change adds the new transaction modal.
https://github.com/maybe-finance/maybe/assets/1793797/8643056f-b81d-4ccf-baa4-f3d21610ce8e
All fields are required:

As part of this I've added a new
TurboStreamsRedirectconcern to the ApplicationController. This concern adds the ability to specify a turbo_frame on redirect_to, which allows us to decide from the server when to escape out of the modal by setting the turbo_frame of the redirect to_top./claim #629
Resolves #629
@JoshAntBrown nice work on this, functionality looks good here. I'm thinking we go with #633 on this one though.
I'm a little hesitant to merge in the
TurboStreamsRedirectconcern andredirect.turbo_stream.erbat this stage mainly to keep OSS onboarding as easy as possible for new contributors. I know we lose a little bit of flexibility without it, but I'm generally leaning towards keeping things as native as possible here early on and abstracting away things like this when the feature-set has matured a little bit.No worries, I thought that might be the case.
The concern is pretty light weight though and at some point I imagine you'll need a solution for forms where validation may need to be raised. It'll be here to reference if that comes up though.
@JoshAntBrown yeah this issue definitely has me thinking a bit more about forms / UI patterns with the modals. I'm almost thinking we try and keep forms in modals lightweight on the validation and then for forms where we do heavy server-side validation we build out full-page flows that have a little more forgiveness on the streams interactions. I think the CSV Transaction import flow we'll be introducing soon might be a good example of this, but tbd...
I do agree though, this is inevitable as some point 😅
Pull request closed