mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-15 23:49:31 +00:00
Show when parts from info provider already exist (#810)
* added button to show existing part with same manufacturer and mpn in provider list * added button to edit existing part in provider list * added docstring and comments * replaced unnecessary double quotes * Introduced a new twig variable localPart to split up the result * Highlight a row, if the part is already existing * Made buttons translatable * Improved styling of the buttons and added a badge to show a hint * Extracted database queries for part matching into its own service and optimized the query reducing the required queries by factor 2 * Allow to find existing parts via the stored providerReference This should allow the database to more quickly find entries * Allow to use part name and manufacturer alternative names for mapping * Added a button to update a local part from the info provider and moved some buttons into dropdown menu --------- Co-authored-by: jona <a@b.c> Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
This commit is contained in:
parent
e9efbff912
commit
92e4976396
4 changed files with 195 additions and 28 deletions
|
|
@ -12227,5 +12227,35 @@ Please note, that you can not impersonate a disabled user. If you try you will g
|
|||
<target>Generated code</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="5fgkpRc" name="info_providers.search.show_existing_part">
|
||||
<segment>
|
||||
<source>info_providers.search.show_existing_part</source>
|
||||
<target>Show existing part</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="iPO8lit" name="info_providers.search.edit_existing_part">
|
||||
<segment>
|
||||
<source>info_providers.search.edit_existing_part</source>
|
||||
<target>Edit existing part</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="gUMm8CJ" name="info_providers.search.existing_part_found.short">
|
||||
<segment>
|
||||
<source>info_providers.search.existing_part_found.short</source>
|
||||
<target>Part already existing</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="bT1nkI9" name="info_providers.search.existing_part_found">
|
||||
<segment>
|
||||
<source>info_providers.search.existing_part_found</source>
|
||||
<target>This part (or a very similar one) was already found in the database. Please check if it is the same and if you want to create it again!</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="TDxYuTP" name="info_providers.search.update_existing_part">
|
||||
<segment>
|
||||
<source>info_providers.search.update_existing_part</source>
|
||||
<target>Update existing part from info provider</target>
|
||||
</segment>
|
||||
</unit>
|
||||
</file>
|
||||
</xliff>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue