avo-hq / avo

Build Ruby on Rails apps 10x faster
https://avohq.io
Other
1.52k stars 255 forks source link

Set the display position of the Card of Resource[Avo3] #2018

Closed yuki-yogi closed 11 months ago

yuki-yogi commented 1 year ago

Feature

Current workarounds

Screenshots or screen recordings

Additional context

In social blade, the graphs are below the listings. We would like to realize such an easy-to-view screen and graphs with Resource's card function. https://socialblade.com/youtube/user/pewdiepie

スクリーンショット 2023-11-08 2 01 59
github-actions[bot] commented 11 months ago

This issue has been marked as stale because there was no activity for the past 15 days.

adrianthedev commented 11 months ago

@yuki-yogi I don't quite get the request here. You'd like to add a graph card on a resource show page? You can already do that.

yuki-yogi commented 11 months ago

@adrianthedev Thank you for your confirmation.

In my service, the data I wanted to display in the show graph was often has_many of the data displayed on that show page, so there were cases where I wanted to display the has_many field either at the bottom or at the top of the has_many field.

I think it would be more useful if the vertical position of the graph card on the show page could be specified like the field.

adrianthedev commented 11 months ago

Hey @yuki-yogi. I had a call with Paul today and from that conversation and this new comment I got it. You want to ability to add cards in more places than just above the main panel of a resource.

We make this a first-party feature in later iterations of the product.

You could achieve that using a custom view component and override Avo's if you really need it. Another way of doing it is with resource tools AFAIK.

Thanks for the feedback!