Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bulk selection UI controls #840

Merged
merged 5 commits into from
Jun 7, 2024

Conversation

zachgoll
Copy link
Collaborator

@zachgoll zachgoll commented Jun 6, 2024

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

CleanShot.2024-06-07.at.12.41.03.mp4

Future PRs will handle the bulk edit and delete operations.

@zachgoll zachgoll linked an issue Jun 6, 2024 that may be closed by this pull request
5 tasks
@zachgoll zachgoll marked this pull request as draft June 6, 2024 17:33
<div class="col-span-2 ml-auto">
<%= render "transactions/amount", transaction: transaction %>
</div>
<% end %>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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.

@@ -43,7 +43,9 @@

resources :transactions do
collection do
match "search" => "transactions#search", via: %i[ get post ]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

stale route that I missed earlier in the transactions cleanup

@zachgoll zachgoll marked this pull request as ready for review June 7, 2024 15:35
@zachgoll zachgoll merged commit 115f792 into main Jun 7, 2024
4 checks passed
@zachgoll zachgoll deleted the 798-build-bulk-selection-ui-for-transactions branch June 7, 2024 16:44
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.

Build bulk selection UI for transactions
1 participant