Add assign merchant rule for transactions #2174
Reference in New Issue
Block a user
Delete Branch "assign-merchat-rule"
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 allows someone to set a merchant as part of a transaction rule. This fixes #2143.
One weird piece of UX in here is that you can't create a new merchant from this menu - this is true of other places that reference merchants as well (like the transaction drawer). It would be great to do this in all of the places that mention merchants becuase navigating out of a rule/transaction to make a merchant is kind of annoying, but that isn't part of this PR.
Looks good!
RE inline merchants: I agree that adding merchants inline would be nice. This is mainly a limitation with browser-native select inputs (vs. your typical React app with interactive dropdowns). We kept everything native during the initial app build to optimize for speed.
The future solution to this is to start building out some ViewComponent form elements such as
SelectComponentto add to the design system.But while Rails is very strong in the area of form building + simplicity, it doesn't have a great/standard answer for things like this like the React/Vue world does. This will be a fairly heavy lift with lots of edge cases, so had to kick this one down the road a bit until we got the core feature set launched.