webstudio-is / webstudio

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
https://webstudio.is
GNU Affero General Public License v3.0
5.4k stars 664 forks source link

Better UI for complex queries for Resources #3691

Open kof opened 4 months ago

kof commented 4 months ago

As a builder, when creating a complex query for a Resource, I have the need to define a number of query params and doing it all conditionally in one url string template is too hard and unreadable

MilanBgd commented 4 months ago

Make.com has a following UX on the HTTP module. You can add different parameters on query strings. Maybe this UX can help you to be inspired for the feature.

SCR-20240729-mybp
kof commented 4 months ago

@MilanBgd that's the same thing we already have for headers, but yes, we need this

johnsicili commented 2 months ago

I know this issue is about query params, but I'll throw in this somewhat adjacent use case: Many query param values can get complex too.

Here is a Baserow query param:

baserow

Luckily line breaks appear to work making organization easier. Some APIs don't like the line breaks. So maybe at minimum just add something to remove line breaks or something to manage and stringify an object 🤷

kof commented 2 months ago

Would love to see any UI that allows to nicely define that query

On Sun, Sep 8, 2024, 4:15 AM johnsicili @.***> wrote:

I know this issue is about query params, but I'll throw in this somewhat adjacent use case: Many query param values can get complex too.

Here is a Baserow query param: baserow.png (view on web) https://github.com/user-attachments/assets/e6623b0f-6417-4259-a49e-59a8bf42f115

Luckily line breaks appear to work making organization easier. Some APIs don't like the line breaks. So maybe at minimum just add something to remove line breaks or something to manage and stringify an object 🤷

— Reply to this email directly, view it on GitHub https://github.com/webstudio-is/webstudio/issues/3691#issuecomment-2336528117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAM4WF3KXQ323MUJHEUIADZVO6LTAVCNFSM6AAAAABKOO5LXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWGUZDQMJRG4 . You are receiving this because you authored the thread.Message ID: @.***>