avo-hq/avo

Add sidebar to has many fields panels

Open

#2,349 opened on Jan 9, 2024

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Ruby (308 forks)user submission
Help wantedTask

Repository metrics

Stars
 (1,778 stars)
PR merge metrics
 (Avg merge 1d 6h) (67 merged PRs in 30d)

Description

Feature

Add the possibility to add a sidebar to a has_many field panel.

Current workarounds

    panel do
      field :posts, as: :has_many
      sidebar panel_wrapper: false do
        tool Avo::ResourceTools::SidebarTool, render_panel: true
      end
    end

This is creating a panel around the has_many and the sidebar, leading to white_panel_classes on the has_many panel background and also the buttons are not above the sidebar. Ideally we should be able to insert the sidebar inside the has_many field

Screenshots or screen recordings

image

Contributor guide