-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOT INFO - Dynamic widget works in typesense 0.25.0.rc12 #150
Comments
Thanks for testing this out! I tried to take a quick stab at this, but I'm not able to get the DynamicWidgets widget to display, even with an Algolia index... I haven't used this widget before, so may be I'm missing something obvious in the configuration. Could you help me with this? Could you follow the instructions here setup DynamicWidgets using Algolia's demo data and share the working project in a github repo once you get it to work? I can then update the adapter as needed to make it work in Typesense. |
Example from next.js You must have server 0.25.0.rc12 from docker hub installed of course. https://hub.docker.com/r/typesense/typesense/tags And I'm working on data from: https://github.com/typesense/showcase-nextjs-typesense-ecommerce-store |
When you click on the toggle after loading, you will see that it sends the appropriate data to typesense and shows no errors. Instead it's just an empty array of arguments all the time in dynamicWidget. But that's a good sign because it's downloading everything - but apparently the adapter isn't getting data from a good place, hence there are 0 items. |
Because of the error, it's a minor thing. As the whole thing works, it does not show these attributes, without showing errors of some kind. please take a look :) |
I meant to say, could you get the DynamicWidgets working with Algolia, instead of Typesense, in a demo project? I tried the instructions in their official guide and even there the Dynamic Widgets are being rendered as blank... So if you can give me a project where their instructions render the DynamicWidgets widget in the UI when talking to Algolia (not Typesense), I can then use that as reference to get it to work with Typesense. |
Everything is in the examples.. Just type algolia react dynamicwidget in google. |
@jasonbosco here's a working CodeSandbox example of I'm not too familiar with the component myself, but I think the idea is that you define different widgets as children of the |
There is no philosophy here. Instantsearch makes a query and I get an array of items which is passed to the dynamicwidget. Will you be updating it? Because it's really a little thing. |
I am asking because I am creating a project that will be in many countries and the number of all guys will be even 150+. And at one time, for example, 10. Hence, it needs a dynamicwidget. And it seems to me that it is nice to be able to boast of such a service. |
@grinkus-adapt Thank you for sharing that working CodeSandbox. I was able to identify what config changes needed to be done for those widgets to show up. I've pushed out Here are instructions on how to configure the adapter to make this work: See update here: #150 (comment) |
Thank you on behalf of myself and others. Very quick response. 5+ :) @jasonbosco |
It doesn't make sense ... I might as well create a variable. const guy = ["hello", "world"] ... |
Gives an example: |
@pixelkoduje I appreciate the good feedback (but not the tone of the feedback). |
I've pushed out an update in |
@jasonbosco You are doing a good job, I tested and it works as expected. (I tested the main functionality - if I find any problems with sorting, etc. I will let you know) - But what interested me the most works. Thank you! |
Great, thank you confirming and thank you again for the great feedback! |
Hello, with the release of typesense 0.25.0.rc12, facet_by: ["*"] works, so the dynamic widget also works! Well, almost, because you probably need to make a slight correction. It executes the query correctly by adding dynamicWidget, but the typesense adapter apparently misinterprets - because it doesn't show 0 number of attributes - and it fetches all of them nicely. Can action be expected on this? Beautiful thanks!
QUERY:

RESPONSE:

It works ! However, apparently the typesense adapter misinterprets and shows 0.

However, I think, looking at the lack of bugs, that it's a small step for you, and a big one for the environment! heh
The text was updated successfully, but these errors were encountered: