Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display option for parameter in parts list (linked to category) #830

Open
Pytonballoon810 opened this issue Jan 12, 2025 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@Pytonballoon810
Copy link

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

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

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

(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!

@Pytonballoon810 Pytonballoon810 added the enhancement New feature or request label Jan 12, 2025
@1oorenz
Copy link

1oorenz commented Jan 13, 2025

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

@D1555
Copy link

D1555 commented Jan 13, 2025

I also use part db as a usefull tool in my workflow. This feature would positively influence my productivity.

@pdo59
Copy link
Contributor

pdo59 commented Jan 13, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants