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

Use categories from external provider when creating parts #541

Open
nomike opened this issue Mar 4, 2024 · 0 comments
Open

Use categories from external provider when creating parts #541

nomike opened this issue Mar 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nomike
Copy link

nomike commented Mar 4, 2024

Is your feature request related to a problem? Please describe.
When I'm looking up a part at an external provider, e.g. DigiKey, the "Create Part" mask shows the category:

Provider: Crystals, Oscillators, Resonators -> Crystals

In order to use the same category on local parts, I have to manually copy/paste the category in the field directly above.
This is mildly annoying. But the biggest issue is, that it's quite easy to forget to do that and then the part ends up in the wrong category as the last one created seems to be the one selected per default.

Describe the solution you'd like
I have multiple ideas on how to solve this:

  1. There could be a button which, when clicked, automates the copy/paste process and enters the provider category into the category control.
  2. The provider's category could be used as a default for that field, instead of just using the last one created, which is rarely the correct choice.

IMHO option 2. is the more user friendly. In most cases it does the right thing and you have to do nothin. If the provider category is not the one you want to use, you have to manually edit the category field.

Right now, you have to manually edit the category field almost every time.

Option 1 is less breaking the existing behavior, but it has the drawback that you need to press a button on every import and need to make sure not to forget it.

Additional context
One problem this might add is if you source parts from different providers, as they will most likely have different category names and hierarchies. So you may end up with similar resistors being in two different categories.
But that's a problem already existing right now and it doesn't change when this feature is added.

There might be ways to solve this (e.g. by having a mapping between provider categories and part-db categories. But that sounds like way more effort to implement, a lot of work for the user in maintaining that mapping between providers and is definitely out of scope for this feature request.

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

1 participant