Improve account transaction, trade, and valuation editing and sync experience #1506
Reference in New Issue
Block a user
Delete Branch "zachgoll/entry-stream-updates"
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 PR aims to drastically improve the account entry editing experience.
The current state of the app works as-is, but is very cumbersome in some areas. Current issues include:
Furthermore, there was a ton of code duplication across the entry controllers (valuation, transaction, trade) that has been consolidated to the
EntryableResourceconcern, which follows a similar pattern to theAccountableResourceconcern introduced in #1406. This provides default implementations for all CRUD actions for each "Entryable" while allowing customization as needed.@@ -4,0 +4,4 @@Turbo.StreamActions.redirect = function () {Turbo.visit(this.target);};Custom stream action that can be used to trigger a "refresh" to the page after a successful form submission. This is helpful because many of our forms are rendered in modals, which means for validations/errors, we need to leverage Turbo frames, but for successful submissions, we generally want a full refresh. Since Turbo doesn't provide an easy native way to handle this behavior, this provides a low-overhead, simple workaround:
setConfirmMethodwill soon be deprecated