Display option for parameter in parts list (linked to category)
Problem: I just went through my list of capacitors and resistors to see which ones are low on stock and which ones i dont have and/or are missing completely and wanted to sort all of them by the Ohms measurement i have entered in the Parameters page on the component. These parameters are provided by the info provider I used to enter these parts
Solution:
In the edit page for a category I would like a field that is named somehting like Common Measurement which allows you to specify a String of characters which is then looked up in the parts of this category and is then availiable as an option in the list display settings:
- In my
Resistorscategory I would specify aCommon Measurementof "Resistance" - When filtering per this
Resistorscategory I would then have the option to display theCommon Measurementin the list of parts - I would then be able to sort my resistors and caps and so on as I please and would see WITHOUT MANUALLY ENTERING a tag or such for each part I want to sort by some parameter.
Concidered Alternatives I have concidered adding a tag for these values to the respective parts such as a 100Ω Tag for the 100Ω resistor and so on but this would tage too long and would add so much additional work for adding new components when using an info provider (which are supposed to make things faster and easier). I have also looked into using one of the metrics already exposed as sortable list entries but could not seem to find a suitable one. Also here you would need to enter the metrics by hand as well.
Concept Screenshots
Category Entry: Here you would also need to specify a unit of measurement to determine the zero-value when the parameter exists but is left empty. (This also means when setting the unit to Ω or V, etc. the displayed value would still be the one specified in the component and NOT converted to this value. I.E.: When having a resistor with 10kΩ it is still display as 10kΩ even if the unit is set to Ω in the category settings.)
Add the Common Measurement to the item display options.
If these are generated once globally you could call it "Common Measurement" if they are generated per search/filgter request you could even display them as the name given in the category edit:
For example when filtering just for resistors you would recognice that the filter is set to a category that has a Common Measurement set and would display it in the list options. when filtering for caps and resistors you could then display 2 different Common Measurements one for the "Resistance" and one for the "Capacitance" if entered in the category.
When displaying this options in the list you can just sort them accending and descending just like you would with any other category. Edge cases in this picture:
- When not specifieng the set
Common Measurementparameter in the part entry the value will be empty in the item list (see item 2) - When the
Common Measurementexists as a parameter but is left empty it is displayed as 0 if a measurement unit is defined for theCommon Measurementin the category settings
(Sorry for low img quality.)
Please let me know what you think of this I would love to see this implemented! Thank you for such an awesome project! Greetings from Germany!
that would be an awesome enhancement. i am using part db on a daily basis and would really appreciate this implementation as it would increase productivity significantly. love this project
I also use part db as a usefull tool in my workflow. This feature would positively influence my productivity.
That would be a fantastic improvement! This implementation would greatly enhance productivity and make a significant impact. I really love this project!
Il giorno 13 gen 2025, alle ore 00:40, Philipp Hofmann @.***> ha scritto:
Problem: I just went through my list of capacitors and resistors to see which ones are low on stock and which ones i dont have and/or are missing completely and wanted to sort all of them by the Ohms measurement i have entered in the Parameters page on the component. These parameters are provided by the info provider I used to enter these parts
Solution: In the edit page for a category I would like a field that is named somehting like Common Measurement which allows you to specify a String of characters which is then looked up in the parts of this category and is then availiable as an option in the list display settings:
In my Resistors category I would specify a Common Measurement of "Resistance" When filtering per this Resistors category I would then have the option to display the Common Measurement in the list of parts I would then be able to sort my resistors and caps and so on as I please and would see WITHOUT MANUALLY ENTERING a tag or such for each part I want to sort by some parameter. Concidered Alternatives I have concidered adding a tag for these values to the respective parts such as a 100Ω Tag for the 100Ω resistor and so on but this would tage too long and would add so much additional work for adding new components when using an info provider (which are supposed to make things faster and easier). I have also looked into using one of the metrics already exposed as sortable list entries but could not seem to find a suitable one. Also here you would need to enter the metrics by hand as well.
Concept Screenshots Category Entry: Here you would also need to specify a unit of measurement to determine the zero-value when the parameter exists but is left empty. (This also means when setting the unit to Ω or V, etc. the displayed value would still be the one specified in the component and NOT converted to this value. I.E.: When having a resistor with 10kΩ it is still display as 10kΩ even if the unit is set to Ω in the category settings.) image.png (view on web) https://github.com/user-attachments/assets/b868bd33-6893-474c-a13f-4a81b0187b93 Add the Common Measurement to the item display options. If these are generated once globally you could call it "Common Measurement" if they are generated per search/filgter request you could even display them as the name given in the category edit: For example when filtering just for resistors you would recognice that the filter is set to a category that has a Common Measurement set and would display it in the list options. when filtering for caps and resistors you could then display 2 different Common Measurements one for the "Resistance" and one for the "Capacitance" if entered in the category. image.png (view on web) https://github.com/user-attachments/assets/adc7eaae-7cb7-40d1-b2d6-e5bc6c55d348 When displaying this options in the list you can just sort them accending and descending just like you would with any other category. Edge cases in this picture:
When not specifieng the set Common Measurement parameter in the part entry the value will be empty in the item list (see item 2) When the Common Measurement exists as a parameter but is left empty it is displayed as 0 if a measurement unit is defined for the Common Measurement in the category settings image.png (view on web) https://github.com/user-attachments/assets/52725e41-0f8b-40f3-aab1-4835481c176e (Sorry for low img quality.)
Please let me know what you think of this I would love to see this implemented! Thank you for such an awesome project! Greetings from Germany!
— Reply to this email directly, view it on GitHub https://github.com/Part-DB/Part-DB-server/issues/830, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINND77QHVMUV4M25MTTCO32KL4O7AVCNFSM6AAAAABVBQAH5OVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44DENZVGY4TCMY. You are receiving this because you are subscribed to this thread.