Skip to content
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

Integrate in Foodsoft #4

Open
17 tasks done
wvengen opened this issue May 23, 2016 · 4 comments
Open
17 tasks done

Integrate in Foodsoft #4

wvengen opened this issue May 23, 2016 · 4 comments

Comments

@wvengen
Copy link
Member

wvengen commented May 23, 2016

To make this work out-of-the-box in Foodsoft, it's useful to either create a Foodsoft plugin with this, or make it part of main Foodsoft.

  • Create basic plugin
  • Include generated bundle in assets (as a first step)
  • Embed React component in Foodsoft page (not needed anymore)
  • Make Bootstrap 2 and Bootstrap 3 work together - Foodsoft in Bootstrap 3 feature/bootstrap3 - separate app with links between regular foodsoft and foodsoft-shop
    • Use similar layout
    • Get navigation links from Foodsoft API
    • Get foodcoop name and url, help url and Foodsoft version from Foodsoft API
    • Expire access token(s) on logout (needs to happen in Foodsoft)
  • Fix width of Everyone column on wide pages (with container-fluid)
  • Fix progress bar when there is no shortage (or even some left in tolerance)
  • Pass configuration and generate access token as part of the window object
  • Auto-register app (either in db or more dynamically in Doorkeeper)
  • Make app auto-registration work with multicoops too
  • Add configuration option to choose between old group_order and foodsoft-shop
  • Fix glyphicons (use same as Foodsoft)
  • Only show foodsoft-shop for open orders
  • Check precompilation in production environment

Later:

  • Publish foodsoft-shop to npm and use js dependency in plugin (instead of generated bundle)
@wvengen wvengen changed the title Create Foodsoft plugin Integrate in Foodsoft Aug 10, 2016
@wvengen
Copy link
Member Author

wvengen commented Jun 30, 2017

I do wonder if creating a standalone Javascript app for ordering (with full layout) would actually be better, with tasks, wiki, etc. still in Foodsoft as it is currently. edit will use separate page/app.

@wvengen
Copy link
Member Author

wvengen commented Oct 12, 2018

I've got this working, will publish it some time soon.
edit see branch feature/rest-for-shop-with-plugin, where it is bundled as a plugin and works out of the box.

@wvengen
Copy link
Member Author

wvengen commented Oct 13, 2018

Well, this seems done! Leaving open until PR is submitted (after foodcoops/foodsoft#581 is merged).

@wvengen
Copy link
Member Author

wvengen commented Mar 10, 2021

Here is an example of a Foodsoft Docker-image that includes the plugin (and another plugin that you'd probably not want to use).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant