samply / lens

A reusable toolkit for rich federated data exploration.
3 stars 0 forks source link

Query Creator GUI as extra component #25

Open djuarezgf opened 10 months ago

djuarezgf commented 10 months ago

Would it be possible to isolate the part of the GUI for creating a query in an extra component, so that it could be used in Lens, but also in other Frontends?

torbrenner commented 10 months ago

I'm not entirely sure if I understand this issue. On a concept base, lens is intended completely as a library, which will be available for other frontends via the npm registry (https://npmjs.org). The code for the library lives in this repositories packages/lib directory. All components in the lib directory should be useable and should interact with each other even when they are used in another application. As of right now, the package is not published on npm and we are working on it. I think we still need to add some interfaces for better interaction possibilities between the frontend using the library and the library itself.

djuarezgf commented 10 months ago

Is it then compatible with any other frontend framework? For example, with Vue.js (Negotiator)?

torbrenner commented 10 months ago

As the Svelte Version of Lens is based on Web Components, it should be importable to all other Frameworks (e.g. Vue.js, Angular or React). @MatsJohansen87 in the starting of the svelte version already created a proof of concept that integrated a svelte web components library in Angular, so I think it should be possible.

djuarezgf commented 10 months ago

Maybe, you could help us to integrate it in the Project Manager (Negotiator) or even in the Teiler. It was not planned, because it was not clear how to implement it. However, if it is not complicated, it would be interesting to have some tool in those components to modify the query, if it is necessary. @MLambarki , @thkoehler11: What do you think? @MatsJohansen87 , @torbrenner : Could you please help us calculate the required time to integrate it? @MLambarki : Of course, this would be nice to have, there are other features with more priority.