Orasund / elm-ui-widgets

Collection of reusable views for elm-ui.
https://orasund.github.io/elm-ui-widgets/
BSD 3-Clause "New" or "Revised" License
85 stars 11 forks source link

Added a UIExplorer POC #59

Closed cdevienne closed 3 years ago

cdevienne commented 3 years ago

Description

Created a UI Explorer based on insurello/elm-ui-explorer, with extra tooling inspired from miyamoen/bibliopola for building "books"

To run it:

cd explorer && elm-live src/Main.elm

This is an early prototype but it already gives a good idea of where it is headed, and we can discuss the design.

It needs, among other things:

Pull request solving issue #57 .

Orasund commented 3 years ago

I love it. Not sure how you are able to pass the Msg along, but what ever you do, it seems to work and do its job.

All my previous doubts are gone.

cdevienne commented 3 years ago

thanks :-) I thought of a way to improve the story builder that avoids keeping a dictionary of partially applied views, which would allow to add stories with arbitrary values and the widgets that goes with it (like a slider, or a text input).

cdevienne commented 3 years ago

@Orasund I reached a point where some code-review and feedback would make sense, after what we can start integrating pages for each widget. The main thing that I am not satisfied with is the theme handling, but I fear doing better requires a heavy rewrite of the UiExplorer views. Let me know what would be needed to make this new explorer as the new elm-ui-widgets demonstration/documentation (aside from embedding all the widget pages of course). Cheers

Orasund commented 3 years ago

I must say, you really put in a lot of work🤩

Personally, I also do not like the way the theming is handled, but let's not focus on that for now. It's good enough.

One thing I did expect, was that the sidebar gets replaced with a sheet widget. This should not be a big deal, but if you want I can add this.

In regard to the individual pages, is that something you want to do on your own, or should we split up the work?

cdevienne commented 3 years ago

Well, I figured doing this will make adding new widgets a nicer experience, and would make the library even more attractive. I also wanted to be able to extend it in my own project to demonstrate custom widgets, the same way I did with bibliopola. Since I intend to use it on several projects it all makes sense.

Feel free to look into adding the sheet widget.

Also splitting up the work for the pages would be great, just let me know the pages you want to work on.