invenhost / InvenTree-react-archive

React Fork - Open Source Inventory Management System
https://inventree.readthedocs.io
MIT License
0 stars 2 forks source link

Create search UI #18

Closed matmair closed 11 months ago

MaYaNkKashyap681 commented 2 years ago

I want to work on this can i start working

matmair commented 2 years ago

@MaYaNkKashyap681 Great! A rough outline of the requirements:

Feel free to open a draft PR early on and ping me if you want feedback!

MaYaNkKashyap681 commented 2 years ago

Screenshot (101)

Screenshot_20221117_115151

Do I have to code the UI of these components or something else? Do you want the search to be done inside the flyout or modal on this page and results to be shown in the same place they are now?

matmair commented 2 years ago

First of all sorry for the current (none) state of devdocs or issue content. Did not think someone would want to participate before this gets upstreamed. As a UI framework the new interface uses Mantine UI - please use the components provided by that. I am not really set on a look, the goal right now is to get a working Proof that covers all the core functions so we can evaluate if this really works as the new UI.

Do you want the search to be done inside the flyout or modal on this page and results to be shown in the same place they are now?

I imagine having a quick search (for now only searching the parts API route should be fine) in the first part and then have the option to get to a flyout or modal where all categories are explored like in the current UI.

Does not have to be pretty rn - I am currently basically just slapping together components and getting an MVP of the board so that we can gather feedback.

MaYaNkKashyap681 commented 2 years ago

Do I have to create an entirely different file and implement everything over there? Can you please tell me in which folder I have to do all this?

matmair commented 2 years ago

@MaYaNkKashyap681 just put it in here, if the component gets big we can always refactor it later. The search box is already part of that component so a lot of logic might go there anyway. https://github.com/invenhost/InvenTree/blob/ea2c33d8425a775fe1128a435b73878af25d4d27/InvenTree/web/src/src/components/nav/HeaderTabs.tsx