Consolidate and simplify account pages #2462
Reference in New Issue
Block a user
Delete Branch "zachgoll/maybe-914-simplify-account-page-routes-and-template"
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?
A quick refactor in preparation for updating the account activity views and other forms.
We previously had a "show" page per-accountable type, which led to a confusing view hierarchy of:
show.html.erb->_template.html.erb->_chart.html.erb->chart.html.erb(turbo frame)This is all now simplified into the shared
accounts_controlleras:show.html.erb->UI::AccountPage(VC)Also adds a basic pattern for using ViewComponent for more complex views that either have a lot of view logic or need to be broadcast from background jobs. All "application components" live under the
UI::namespace, a useful pattern for avoiding the need to suffix every component with_component.rb