You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request the result of a bug?
No - More of a vision
Problem
Currently we build a lot of html templates and js. As there is a disconnect between the server and the frontend we do not really have tests for the frontend. Also there is a lot more data transmitted than needed.
Suggested solution
Switch to React (or a framework that uses React as basis like remix or next.js)
@eeintech huge adoption, not very opinionated, good toolset ecosystem and a lot of examples that this sort of application can be done in react.
The tooling is a good fit for what we already do with js. A lot of code should be adaptable rather easy. And there are not as much heavy breaking changes as in vue. Got burned by that too often now.
@eeintech always open for feedback but I think react is a good compromise.
I will do a prototype for how I would tackle it so we can discuss the architecture, todos etc. in the coming months. It is a lot but not as much one would think - we can reuse all the API forms from what I can see.
I dislike React. I'm working on a project that uses it, and at the end of every day I want to go out to the garage and hang myself. Please stay clear of React.
@4jag we are open for other suggestions.
I have worked and am working on multiple projects with next.js and find it to be much better than bare js + html. Could you elaborate on the problems you see / which framework would be better suited for this project?
Have you worked with the front-end code? A lot of bugs are because of missing typing and lazy linking of important parts via jquery. It also needs full reloads for a lot of actions.
Activity
matmair commentedon Mar 29, 2022
@SchrodingersGat can we get a 1.0 milestone for that? @eeintech
eeintech commentedon Mar 31, 2022
@matmair I'm curious to know why React and not another JS framework like Vue?
matmair commentedon Mar 31, 2022
@eeintech huge adoption, not very opinionated, good toolset ecosystem and a lot of examples that this sort of application can be done in react.
The tooling is a good fit for what we already do with js. A lot of code should be adaptable rather easy. And there are not as much heavy breaking changes as in vue. Got burned by that too often now.
eeintech commentedon Apr 1, 2022
Sounds good thanks!
matmair commentedon Apr 1, 2022
@eeintech always open for feedback but I think react is a good compromise.
I will do a prototype for how I would tackle it so we can discuss the architecture, todos etc. in the coming months. It is a lot but not as much one would think - we can reuse all the API forms from what I can see.
4jag commentedon Apr 21, 2022
I dislike React. I'm working on a project that uses it, and at the end of every day I want to go out to the garage and hang myself. Please stay clear of React.
matmair commentedon Apr 22, 2022
@4jag we are open for other suggestions.
I have worked and am working on multiple projects with next.js and find it to be much better than bare js + html. Could you elaborate on the problems you see / which framework would be better suited for this project?
matmair commentedon May 7, 2022
Tutorial for Vue: https://realpython.com/python-django-blog/#step-6-set-up-vue-router
phuicy commentedon May 11, 2023
Geniunely, why? Your front end seems clear, simple, and capable. You could acheive more UI testing with your current frontend. You could even use this sort of system: https://playwright.dev/
matmair commentedon May 11, 2023
Have you worked with the front-end code? A lot of bugs are because of missing typing and lazy linking of important parts via jquery. It also needs full reloads for a lot of actions.
Add SPA views for react inventree#2789
Platform UI - React integration (#5011)
P UI: Added frontend publishing for bare-metal (git) (#5277)
P UI: Basic UI & Auth setup (#5207)
P-UI: Dependency bumps (#5298)
[WIP] Mantine datatables (#5218)