-
Notifications
You must be signed in to change notification settings - Fork 147
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
API-6: Foodsoft-shop plugin #581
Conversation
Includes Bootstrap 3 because it needs to co-existing with Foodsoft's Bootstrap 2, and famfamfam-flags because the Rails existing gems don't use the saming class naming as the npm module (and are quite old). Glyphicons Halflings do come from a gem. |
i have a strong option on not adding any "compiled" file to a SOURCE repository. we could add the source files of the shop here, but adding bundle.js makes no sense to me, since it's not maintainable |
I agree it's not really desirable. But compiling requires configuration, like substituting environment variables, selecting locales, configuring babel loaders, setting up pre-compilation of certain files (val-loader). So some sort of compilation is really necessary (or this would just contain a full copy of foodsoft-shop). What would be other options than including:
|
I see this plugin as a shallow layer to make the use of foodsoft-shop seamless. |
After writing up #572 (comment), I realised that perhaps the more beautiful approach would be to write components that work both as a component embedded in an existing page, as well as a standalone app. The latter would use a default layout (that would be good to publish on npm). Then the plugin would just include both JS components in its As a transition I would like to include the compiled bundle, until that has been shaped up as separate modules and published. |
3d2ee2b
to
ccde69e
Compare
ca76347
to
c6250de
Compare
I've added an new idea to the list of options (load foodsoft-shop externally). Would that be an acceptable solution? Ideally I'd like applications to somehow to be able to indicate which routes they can take over, so that a foodcoop can choose to override parts of the UI with external apps. That would give foodcoops the basis of having their data and logic safely in app.foodcoops.net, but the possibility to use custom user interfaces for some parts relevant to them. |
ccde69e
to
82dda57
Compare
i think we need to discuss our further plans in that area first. i personally would like to incrementally replace the existing UI with a responsive app. to support that we should have the whole future app in the tree and include components in the views. i don't see a lot of independent developers waiting to create a new UI anywhere, which would justify the additional complexity of multiple repositories. i don't think that we have the enough development resources for maintaining multiple interfaces parallel personally i don't like React/JSX and would prefer a mobile first approach e.g. with Framework7 Svelte instead. |
If we'd want a change in frond-end approach, that would be something to discuss elsewhere, indeed. We'd probably better continue the conversation on the developers (and portions on the user) mailing-list. I'll close this PR until we get more clarity there. It'll probably take some time for me to come up with an overview of the different questions we'd need to discuss. Thanks for the discussion in here, even though it is a bit of a disappointment for me that foodsoft-shop will not become usable by most Foodsoft users for the moment. Guess that's part of the life of an open source developer (I'm speaking as a contributor now, not as a maintainer). |
i'd be disappointed too... could you not just deploy via an independent branch (like i do with [
i'd say that it depends on the development process and/or the kind of change. doing a big fundamental change (including technology decisions) without broader discussion forehand might not be best way to go, if you expect more than a proof of concept out of it. please don't get me wrong: i really like the work you've done, but I see some relevant problems with maintainability, which we should sort out first. maybe we come to the conclusion that your proposed approach is the best fitting BTW: what do you think of replacing the dev-mailing-list with GitHub discussions? |
Following #573: adding foodsoft-shop as a plugin (foodcoops/foodsoft-shop#4).