Update ButtonComponent usage to use url/method abstraction#10468
Conversation
There was a problem hiding this comment.
One tricky thing is that button_to has an implicit method: :post, which needs to be made explicit with these updates, otherwise ButtonComponent defaults to :get. I've double-checked all of the button_to updates across this branch and #10464.
zachmargolis
left a comment
There was a problem hiding this comment.
LGTM, now I'd expect we can remove the action: keyword entirely from ButtonComponent#initialize in this PR right?
Probably could, yeah. I don't think there's any other usage of it. It could be useful for more advanced customization, but also fair to rip it out for YAGNI. |
+1 YAGNI I think while the flexibility of it was well-intentioned, it's a really complicated API, if a new case comes along where we need additional behavior, we can cross that bridge when we get there |
👍 Removed support in b33a4e667e. |
changelog: Bug Fixes, Regenerate Backup Codes, Fix issues linking to confirm regenerating backup codes
Through subclassing and external component slot abstractions
57f3ca2 to
98a3c24
Compare
🎫 Ticket
Refactoring after #10464, which supports LG-12716
🛠 Summary of changes
Updates instances of
ButtonComponentactionto use the newurl&methodshorthand introduced in #10464.Related comment: #10464 (comment)
📜 Testing Plan
Verify no regressions in the impacted buttons.