Skip to content

[FR] Switch UI to React #2789

Closed
Closed

Description

@matmair

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)
  • Add UI testing with cypress
  • Run test via gh-actions

Describe alternatives you've considered
Current solution works fine but this FR would be cool.

Examples of other systems
A lot seems to run on this - an example in our field would be https://partsbox.com/

Do you want to develop this?
I would love to help but this would be a team effort.

Activity

  1. added
    enhancement
    api
    CI
    on Mar 29, 2022
  2. added this to the 0.8.0 milestone on Mar 29, 2022
  3. matmair commented on Mar 29, 2022

    @matmair
    MemberAuthor

    @SchrodingersGat can we get a 1.0 milestone for that? @eeintech

  4. modified the milestones: 0.8.0, 1.0.0 on Mar 30, 2022
  5. eeintech commented on Mar 31, 2022

    @eeintech
    Contributor

    @matmair I'm curious to know why React and not another JS framework like Vue?

  6. matmair commented on Mar 31, 2022

    @matmair
    MemberAuthor

    @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.

  7. eeintech commented on Apr 1, 2022

    @eeintech
    Contributor

    Sounds good thanks!

  8. matmair commented on Apr 1, 2022

    @matmair
    MemberAuthor

    @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.

  9. 4jag commented on Apr 21, 2022

    @4jag

    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.

  10. matmair commented on Apr 22, 2022

    @matmair
    MemberAuthor

    @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?

  11. phuicy commented on May 11, 2023

    @phuicy

    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/

  12. matmair commented on May 11, 2023

    @matmair
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIapienhancement

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions