https://avo.cool logo
Join Discord
Powered by
# avo-2
  • c

    creamy-ghost-62907

    12/19/2022, 12:16 AM
    Papertrail adds a
    has_many
    association to the model, but it seems like Avo isn't picking up on it properly?
  • c

    creamy-ghost-62907

    12/19/2022, 12:17 AM
    Ohhhh. I need to make an explicit resource for the Versions table. Goooot it.
    l
    • 2
    • 27
  • l

    lemon-wall-20836

    12/19/2022, 9:35 AM
    Ohhhh I need to make an explicit
  • b

    bright-tomato-27372

    12/20/2022, 7:43 AM
    Confused on the Tailwind installation process and hit some issues and wanted to get some feedback to see if Im doing something wrong I run
    bin/rails generate avo:tailwindcss:install
    and got no issues, then run
    bin/dev
    but I'm getting this error when I try to load a page.
    Copy code
    Sprockets::DoubleLinkError in Avo::Products#index 
     Showing /Users/main/programs/test_avo_app/app/views/avo/partials/_pre_head.html.erb where line # raised:
    
    Multiple files with the same output path cannot be linked ("avo.tailwind.css")
    In "/Users/main/programs/test_avo_app/app/assets/config/manifest.js" these files were linked:
      - /Users/main/programs/test_avo_app/app/assets/stylesheets/avo.tailwind.css
      - /Users/main/programs/test_avo_app/app/assets/builds/avo.tailwind.css
    The generator creates
    /app/assets/stylesheets/avo.tailwind.css
    and running
    bin/dev
    creates both
    /app/assets/builds/tailwind.css
    and
    /app/assets/builds/avo.tailwind.css
    . The error shows because there are two css files with the same name in two different directories. The generator also adds
    //= link_tree ../builds
    to the
    manifest.js
    file so that's where the problem is coming in. After I remove the
    //= link_tree ../builds
    from
    manifest.js
    , things run fine, but why would the Avo generator add it?
    l
    p
    • 3
    • 21
  • b

    bright-tomato-27372

    12/20/2022, 8:42 AM
    I might be wrong but maybe someone else can verify this? According to docs (https://docs.avohq.io/2.0/authorization.html#view-association), using
    view_{association}?
    should hide the "view" / eye icon for the association.
    Copy code
    def view_comments?
        false
    end
    when I do that, it hides the association all together. It's not until I change it to
    show_{association}?
    to be
    false
    that the "view" / eye icon disappears. I think there's a swap in the naming for
    view
    and
    show
    for the association authorization methods but maybe someone else can try it. I am already using Avo 2.21 (I saw the bug report). This only happens with
    view
    /
    show
    .
    edit_{association}?
    and
    detach_{association}?
    work as expected and hide those icons
    l
    • 2
    • 6
  • r

    ripe-article-50191

    12/21/2022, 9:26 AM
    Hi Adrian. A simple question.... we are using AVO cards to build a dashboard, and I have question. We can setup a range for one filter (time, column value, or others), but is it possible to use 2 or more filters at the same time in the AVO card? For this example, be able to filter for project status and period of time at the same time? Thank you in advance..
    l
    • 2
    • 14
  • g

    great-optician-87198

    12/29/2022, 11:57 AM
    Hello one quick question is there a built in way to do a multi select field? I couldn't find any multi option on the select field. Tag looks like the closest maybe. Wondering if I missed something here.
    l
    • 2
    • 3
  • l

    lemon-wall-20836

    12/29/2022, 1:24 PM
    Hello one quick question is there a
  • l

    late-cartoon-17585

    01/02/2023, 10:42 PM
    I have a policy for a specific resource where I need different behaviors depending on what is being done, for example: 1) when listing the Parent resource, on the "index" page, I have a simple scope; 2) when creating a Child resource which references this Parent resource, I need a different scope, so not all Parents will be shown; The logic is that I need to check if the user has authorization to create resources on the Parent resource with a specific role. how can I achieve this?
    l
    • 2
    • 80
  • l

    late-cartoon-17585

    01/02/2023, 10:54 PM
    I have a policy for a specific resource
  • r

    rhythmic-minister-80564

    01/03/2023, 8:48 AM
    Happy new year πŸ‘‹ Quick question about timezone option for date_time(https://docs.avohq.io/2.0/fields/date_time.html#options). Our model has a
    timezone
    column that stores the timezone. Is it possible to render the date_time field based on each record's timezone?
    l
    • 2
    • 10
  • s

    straight-mechanic-78430

    01/03/2023, 3:40 PM
    Happy new Year Avo people πŸ™‚
  • s

    straight-mechanic-78430

    01/03/2023, 3:43 PM
    Any idea guys. how hard or simple will it be to have forms in a popup window instead redirecting to new or edit view ? We would like to do something like this
    l
    o
    • 3
    • 45
  • s

    straight-mechanic-78430

    01/03/2023, 3:44 PM
    and show the new form in an overlay form. This is familiar to our user and we would like to deliver the same GUI.
  • s

    straight-mechanic-78430

    01/03/2023, 3:44 PM
    thanks for any hint
  • l

    lemon-wall-20836

    01/03/2023, 4:08 PM
    Any idea guys how hard or simple will it
  • w

    worried-machine-9922

    01/03/2023, 5:46 PM
    Y'all, I just discovered that https://github.com/rails/propshaft, the Sprockets replacement(?), causes a significant slowdown on every request when your app, including its dependencies, have a lot of assets. I'd say Avo fits into that description. Fortunately this can be completely remedied by following https://github.com/rails/propshaft#improving-performance-in-development. I have no idea why this isn't just recommended by default. @lemon-wall-20836 I believe this is the cause of much of the lingering slowness I was experiencing after we sorted the class loading stuff. You might want to include something about this in the docs.
    l
    • 2
    • 35
  • l

    lemon-wall-20836

    01/03/2023, 6:01 PM
    Sprockets slowness
  • l

    late-cartoon-17585

    01/03/2023, 6:14 PM
    is there
    hide_on
    but to disable fields/make them read only?
  • l

    lemon-wall-20836

    01/03/2023, 6:14 PM
    I’m going to give you a hint. It’s in the docs under field options
    l
    • 2
    • 6
  • l

    late-cartoon-17585

    01/03/2023, 6:33 PM
    I’m going to give you a hint It’s in the
  • s

    strong-restaurant-36788

    01/04/2023, 9:04 PM
    Anyone ever use AssetSync? https://github.com/AssetSync/asset_sync I ran into a snag with Avo, which I got through, but it feels just a bit hacky.
    l
    • 2
    • 31
  • s

    straight-mechanic-78430

    01/09/2023, 12:28 PM
    small question πŸ™‚ how to style the td column width of the index view data tables ?
    l
    • 2
    • 6
  • s

    straight-mechanic-78430

    01/09/2023, 12:28 PM
    any idea ?
  • g

    great-optician-87198

    01/10/2023, 10:29 AM
    Hello I was wondering if there is a way to scope by default my policies. As an example, I would like that Avo pick my in
    policy/admin/resource_policy.rb
    for now I do this by manually specifying the policy in my resource
    l
    • 2
    • 8
  • s

    straight-mechanic-78430

    01/10/2023, 2:16 PM
    Hi @lemon-wall-20836 πŸ™‚ sorry to bother with small question. But I could not find it in the Docs. I know that we can attach a scope to every resource associations. But I am wondering what is the proper way of defining the default colum(s) to order by and direction ?
    l
    • 2
    • 79
  • l

    lemon-wall-20836

    01/10/2023, 2:59 PM
    Hi adrianthedev 4617 πŸ™‚ sorry to bother
  • s

    straight-mechanic-78430

    01/12/2023, 12:31 PM
    I am wondering if anyone already implemented something like a wizard where you have a guided way of creating several avo resources ? Any example, ideas out there ???
    l
    s
    • 3
    • 33
  • r

    rhythmic-minister-80564

    01/13/2023, 8:34 AM
    Hi guys, question about
    action
    . So I generated an action with the generator, and registered it in my resource by adding
    action MyAction
    . But the action button doesn't show up on the index page. I wonder if I missed any configuration steps? Thanks in advance πŸ™
    l
    • 2
    • 7
  • n

    nutritious-ice-31766

    01/13/2023, 9:27 AM
    Is there a way to organize the "tools" ... instead of all_tools ?
    l
    • 2
    • 3
1...515253...64Latest