https://avo.cool logo
Join Discord
Powered by
# avo-2
  • No worries Hope the con was good
    a

    acceptable-cartoon-88076

    07/02/2023, 1:08 AM
    No worries! Hope the con was good!
    l
    • 2
    • 2
  • c

    calm-gold-48525

    07/02/2023, 2:04 AM
    Nice. You're a hard working guy. Go home and have a rest with the family!
  • m

    microscopic-dream-82397

    07/02/2023, 11:58 AM
    Good morning, guys. I am studying AVOHQ and I am very pleased with the features and quality, especially with the new features that should come out with version 3. I am preparing a document and presentation for my work, and I would like you to help me explain the main reasons that make AVOHQ a better option than some free low-code solutions like www.tooljet.com. Thank you and good Sunday.
  • b

    bland-terabyte-47512

    07/02/2023, 12:15 PM
    I would say they are different. Avo HQ is to build a backoffice and integrates well with ruby on rails
  • b

    bland-terabyte-47512

    07/02/2023, 12:16 PM
    Even tho you can do much more with it due to it's flexibility
  • b

    bland-terabyte-47512

    07/02/2023, 12:18 PM
    The low code tool you mentioned seems like it's for building a full app, and it abstracts you from a language, but you lose control over some things
  • b

    bland-terabyte-47512

    07/02/2023, 12:18 PM
    I would say the only common things I can see between those tools are that they are meant to speed up your development process, but I can't see much more
  • Stimulus JS & HTML attributes | Avo docs
    n

    narrow-magazine-18722

    07/02/2023, 10:24 PM
    Question about toggling hidden fields: https://docs.avohq.io/2.0/stimulus-integration.html#pre-made-stimulus-methods It is showing the toggle working when
    has_country
    is false (like a new record) It seems like this pre-made toggle method would not work & do the opposite of the intended effect for an existing record where
    has_country
    is already true? Since there is no conditional initial hidden value on
    country
    ? I can't figure out how to conditionally apply the
    hidden
    css based on the
    has_country
    value on rendering the form
    l
    • 2
    • 9
  • n

    narrow-magazine-18722

    07/02/2023, 10:26 PM
    The
    visible
    field option I think omits the field entirely if evaluated to false
  • Above that doc link, there is an example
    n

    narrow-magazine-18722

    07/02/2023, 10:27 PM
    Above that doc link, there is an example of initially hiding the field always but not conditional on some value.
    Copy code
    ruby
    field :has_skills,
      as: :boolean,
      html: {
        edit: {
          wrapper: {
            classes: "hidden"
          }
        }
      }
  • Ooh I think I figured it out, it was
    n

    narrow-magazine-18722

    07/02/2023, 10:31 PM
    Ooh I think I figured it out, it was right below that:
    Copy code
    ruby
    html: -> do
          edit do
            wrapper do
              classes do
                record.my_conditional? ? "" : "hidden"
              end
            end
          end
        end
    m
    • 2
    • 1
  • I m having an issue now with a custom
    n

    narrow-magazine-18722

    07/04/2023, 9:00 AM
    I'm having an issue now with a custom stimulus controller.. works locally and not in production, I get a 404 on loading the asset. 🧵
    l
    l
    • 3
    • 57
  • Avo::PanelComponent | Avo docs
    n

    nice-scooter-13593

    07/06/2023, 1:27 AM
    👋 Are there any good examples to put a table in a panel component without writing custom html? https://docs.avohq.io/2.0/native-components/avo-panel-component.html#bare_content
    l
    • 2
    • 42
  • Select options text
    q

    quaint-megabyte-28702

    07/06/2023, 4:33 AM
    Hey all,
    Copy code
    field :user, as: :belongs_to
    this generates the select dropdown correctly, but how can i change the info displayed? perhaps i want to show first_name and last_name instead of email?
    l
    l
    • 3
    • 2
  • Default as block
    c

    calm-gold-48525

    07/06/2023, 6:50 PM
    This will break any CI that creates a test database.
    field :role_id, as: :hidden, default: Role.author.id
    Role.author.id gets evaluated when the app loads but before the db gets created. Anybody know a good workaround? Here's a more complete gist: https://gist.github.com/davekruse/a7eb9e8719d5f8419bc2e04c43b3eebe
    l
    • 2
    • 5
  • Hi everyone How are you doing
    b

    bland-terabyte-47512

    07/10/2023, 10:07 AM
    Hi everyone! How are you doing? I have a question about using inheritance in resources. In my current use case, I have 3 resources that have many common fields. Would be appopriate to use inheritance in those cases? For example I would have:
    Copy code
    class CommonResource < Avo::BaseResource
      field :common_field, as: :text do
          logic
      end
    end
    and then 3 other resources that inherit from that one. So returning to the question, I am supposed to use avo in this way? Is there other alternatives for this?
    l
    • 2
    • 17
  • Sort all models
    b

    bland-terabyte-47512

    07/10/2023, 4:22 PM
    Hi again, is there a way to apply the same sorting to all models? For example enforce that they are sorted by the created_at attribute or other one?
    l
    • 2
    • 4
  • Add Scopes to the Index view · Issue #13...
    v

    victorious-match-39615

    07/11/2023, 10:11 AM
    Hi @lemon-wall-20836 I am currently examining the Tabs View on the Index page as you can see in an attachment. I noticed that an issue has already been raised and closed by someone. However, I couldn't find any documentation pertaining to this specific matter. Could you please confirm whether this is documented, or should I proceed with customizing the index pages for the time being? https://github.com/avo-hq/avo/issues/1318

    https://cdn.discordapp.com/attachments/740893011994738751/1128267401025290250/Screenshot_2023-07-11_at_3.06.38_PM.png▾

    l
    • 2
    • 7
  • Can I customize the functionality of the
    f

    future-author-97799

    07/11/2023, 1:46 PM
    Can I customize the functionality of the search feature (command + K)? When I try to find certain references, which are attributes of my resource, the instance that exactly matches my search term isn't appearing at the top.

    https://cdn.discordapp.com/attachments/740893011994738751/1128321425380479006/Screenshot_2023-07-11_at_15.43.45.png▾

    l
    • 2
    • 1
  • b

    bland-terabyte-47512

    07/11/2023, 8:34 PM
    how is your avo so pretty?
  • v

    victorious-match-39615

    07/12/2023, 10:09 AM
    Hey @bland-terabyte-47512 Actually I have been using the AVO gem for early stages, and even @lemon-wall-20836 gave us a detailed demo in one of the meeting.
  • b

    bland-terabyte-47512

    07/12/2023, 10:10 AM
    ahhhh ok ok, it looks really nice!!!
  • l

    lemon-wall-20836

    07/12/2023, 10:20 AM
    Yeah. Ali and his team customized Avo into something so powerful! I can’t wait for their project to launch
  • Hey channel Adrian M I m Using AVO 2 0
    c

    curved-father-82134

    07/12/2023, 4:28 PM
    Hey!, @channel @lemon-wall-20836 I'm Using AVO 2.0 Basically, I want to customize the edit button located on the Index page. Instead of displaying the default edit icon, I would like to display the text "Please edit."

    https://cdn.discordapp.com/attachments/740893011994738751/1128724663913173122/Screenshot_2023-07-12_at_9.20.54_PM.png▾

    l
    • 2
    • 2
  • Good morning guys The Ruby on Rails
    m

    microscopic-dream-82397

    07/13/2023, 1:25 PM
    Good morning guys. The Ruby on Rails community in Japan is very large and passionate, perhaps the largest on the planet. I believe that AVO would be very well received by them in terms of the market, in addition to having the opportunity to receive contributions from other developers. Getting in touch with the developers of Redmine, Redmica and Rails Admin can be a bridge, have you tried any kind of approach with the Japanese market?
    l
    • 2
    • 12
  • I m trying to change up logos in the
    a

    acceptable-cartoon-88076

    07/14/2023, 3:08 PM
    I'm trying to change up logos in the branding ... how can I access an image that's in the base app?
  • a

    acceptable-cartoon-88076

    07/14/2023, 3:13 PM
    (I'm using a hardcoded path right now, but prefer something in the asset pipeline)
  • Render tabs on has_one field
    c

    cool-dog-91630

    07/14/2023, 10:01 PM
    Hi I'm trying to get panels or tabs to show in an associated record inside a tab panel. Is this possible? I have a Client with multiple tabs. One tab is Company Profile. Company Profile has 5-6 sections. When you look at a Company Profile by itself, it would ideally show up as 5-6 tabs, one for each section. However, when I put Company Profile inside a tab on the Client resource, it only shows one or two fields that are not contained inside panels/tabs in the Company Profile resource. To me this is kind of pointless - I'd like to view all that content on the Client page if possible. Is this something we can do with Avo?
    l
    l
    • 3
    • 2
  • I m trying to follow the directions in
    a

    acceptable-cartoon-88076

    07/15/2023, 7:58 PM
    I'm trying to follow the directions in the docs to limit Resource Fields to admins. Getting a context error. 🧵
    l
    l
    • 3
    • 27
  • a

    alert-toothbrush-24716

    07/16/2023, 7:16 PM
    Is there any way to show an action button for a related record in a custom tool? The use case: we have a Product resource and Variant resource (product has_many variants). The Product resource has a custom tool that shows the children Variants in a special table, and we'd like to include an action button for each variant. We need a custom tool for this due to special formatting considerations. I am not sure if the API to display action buttons is exposed or not
1...6061626364Latest