Add bulk selection UI controls #840

Merged
zachgoll merged 5 commits from 798-build-bulk-selection-ui-for-transactions into main 2024-06-08 00:44:06 +08:00
zachgoll commented 2024-06-07 01:33:42 +08:00 (Migrated from github.com)

This PR introduces a Stimulus controller to handle bulk selection of transactions (although the controller is generic to any collection of records).

https://github.com/maybe-finance/maybe/assets/16676157/b0e7d89f-a534-4245-b60c-4ca44cadb65b

Future PRs will handle the bulk edit and delete operations.

This PR introduces a Stimulus controller to handle bulk selection of transactions (although the controller is generic to any collection of records). https://github.com/maybe-finance/maybe/assets/16676157/b0e7d89f-a534-4245-b60c-4ca44cadb65b Future PRs will handle the bulk edit and delete operations.
zachgoll (Migrated from github.com) reviewed 2024-06-07 01:35:33 +08:00
@@ -0,0 +14,4 @@
<div class="col-span-2 ml-auto">
<%= render "transactions/amount", transaction: transaction %>
</div>
<% end %>
zachgoll (Migrated from github.com) commented 2024-06-07 01:35:32 +08:00

As the global transactions UI is getting a lot more complex with bulk selection and inline editing, I decided to make the transaction rows in the account view read-only for the time being.

Eventually we'll probably want to mirror some of the functionality implemented in the global view here, but trying to manage this in two spots adds unnecessary complexity right now.

As the global transactions UI is getting a lot more complex with bulk selection and inline editing, I decided to make the transaction rows in the account view read-only for the time being. Eventually we'll probably want to mirror some of the functionality implemented in the global view here, but trying to manage this in two spots adds unnecessary complexity right now.
zachgoll (Migrated from github.com) reviewed 2024-06-07 01:36:20 +08:00
@@ -45,4 +45,2 @@
collection do
match "search" => "transactions#search", via: %i[ get post ]
scope module: :transactions, as: :transaction do
zachgoll (Migrated from github.com) commented 2024-06-07 01:36:20 +08:00

stale route that I missed earlier in the transactions cleanup

stale route that I missed earlier in the transactions cleanup
Sign in to join this conversation.