GUI for flinventory data and scripts
Find a file
2024-10-27 14:33:25 +01:00
flinventory_gui set signs on unprinted on sign change 2024-08-29 23:16:29 +02:00
.gitignore ignore log files 2024-07-27 22:54:57 +02:00
.gitmodules very first dummy version of a search with all the project Kladeradatsch 2024-07-26 19:41:56 +02:00
.mypyrc very first dummy version of a search with all the project Kladeradatsch 2024-07-26 19:41:56 +02:00
.pylintrc ignore errors due to not understanding python imports 2024-07-27 22:41:19 +02:00
environment.yml very first dummy version of a search with all the project Kladeradatsch 2024-07-26 19:41:56 +02:00
README.md use proper markdown for python code snippets 2024-10-27 14:33:25 +01:00
update-bikeparts.sh Script for updating code and save data 2024-08-20 15:45:30 +02:00

flinventory GUI

A GUI for the flinventory project/ data format.

Currently only intended for bike part lists.

It's run with cd flinventory_gui && python search.py.

Packages and importing

I still don't understand the import and package mechanism of python. I tried a lot of different combinations of . and import and import from but could not get search.py working at the same time as keeping the scripts like datacleanup.py in flinventory working. My terrible workaround now is to symlink the necessary python files in flinventory_gui from the subdirectory (and submodule) inventory. Please fix this if you have understood python import mechanism.

Making website accessible in local network

I had to allow the port mentioned in the ui.run(..., port=11111) call in search.py in my firewall. In KDE I opened "Firewall" and in the Configuration "Runtime" in Tab "Zones" in zone "public" in tab "Ports" added 11111 for protocol tcp.

Ideas for the future

  • Somehow really make the search async. Since filtering the correct parts and displaying them has no waiting periods (with await) it cannot really be cancelled.
    • Also helpful: show only 10 best results.
  • Sort results by relevance. Use some fuzzy search algorithm.
  • Add filter for search that shows a bike where you can click on parts. And then only parts that are "part_of" this are shown. When clicked on the brakes, it shows a list of brake types (sub categories) that you can click on again. Interactive image could be helpful.
  • Make this filter keyboard accessible. Ctrl+F activates choice, then letter chooses something which is marked in the text on the bike picture.
  • Figure out why sometimes the page reloads completely.