Copilot
90411d25e4
Merge ad77dea4fe into cd7dbd5f7b
2026-01-18 23:43:56 +01:00
Lukas Runge
af81e15ef2
Set "Excluded from sim" to false by default for new categories to avoid annoying symbol at kicad parts.
2026-01-18 22:35:37 +01:00
Jan Böhmer
3e380f82d2
Revert "Declare nativeType of parent property explicitly as workaround for bug in symfony TypeInfo"
...
Build assets artifact / Build assets artifact (push) Waiting to run
Docker Image Build / docker (push) Waiting to run
Docker Image Build (FrankenPHP) / docker (push) Waiting to run
Static analysis / Static analysis (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, sqlite) (push) Waiting to run
This reverts commit 2f580c92d1 .
2026-01-03 22:18:10 +01:00
copilot-swe-agent[bot]
ad77dea4fe
Complete refactoring: replace inheritance with trait composition
...
Refactored remaining entities to use trait composition instead of inheritance:
- MeasurementUnit - uses all structural traits directly
- PartCustomState - uses all structural traits directly
- Manufacturer - uses all structural traits + CompanyTrait
- Supplier - uses all structural traits + CompanyTrait
- AttachmentType - uses all structural traits directly
All entities now use explicit trait composition with:
- DBElementTrait, NamedElementTrait, TimestampTrait
- AttachmentsTrait, MasterAttachmentTrait
- StructuralElementTrait, ParametersTrait
- CompanyTrait (for Manufacturer and Supplier)
All entities implement required interfaces directly instead of inheriting them.
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
2026-01-03 00:14:22 +00:00
copilot-swe-agent[bot]
87d26e7eac
Refactor Category, Footprint, and StorageLocation to use trait composition
...
- Remove inheritance from AbstractPartsContainingDBElement
- Add explicit trait usage: DBElementTrait, NamedElementTrait, TimestampTrait, AttachmentsTrait, MasterAttachmentTrait, StructuralElementTrait, ParametersTrait
- Implement all required interfaces directly
- Initialize traits in constructor
- Add custom __clone and jsonSerialize methods
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
2026-01-03 00:08:31 +00:00
copilot-swe-agent[bot]
12f5c4e14d
Address additional code review feedback: trait dependencies and grammar
...
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
2026-01-02 23:55:40 +00:00
copilot-swe-agent[bot]
47d677b5db
Fix code review issues: typos, docblock consistency, and null checks
...
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
2026-01-02 23:54:17 +00:00
copilot-swe-agent[bot]
2d36373bea
Add trait dependency documentation and architecture diagrams
...
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
2026-01-02 23:51:52 +00:00
Jan Böhmer
2f580c92d1
Declare nativeType of parent property explicitly as workaround for bug in symfony TypeInfo
...
Build assets artifact / Build assets artifact (push) Waiting to run
Docker Image Build / docker (push) Waiting to run
Docker Image Build (FrankenPHP) / docker (push) Waiting to run
Static analysis / Static analysis (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, mysql) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, postgres) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Waiting to run
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, sqlite) (push) Waiting to run
Symfony/type-info returns an invalid property type for the parent property based on the @phpstan-var static phpdoc in the parent. It returns some App\Entity\Base\AttachmentType which does not exists.
Symfony issue: https://github.com/symfony/symfony/issues/62922
2026-01-03 00:47:49 +01:00
copilot-swe-agent[bot]
ebbfd11545
Extract entity functionality into traits and interfaces
...
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
2026-01-02 23:44:20 +00:00
Jan Böhmer
e1090d46e3
Fixed error that attachment path had to have exactly 2048 chars
2025-12-07 20:34:47 +01:00
Jan Böhmer
a5275f7be7
Increase DB field length for URLs to 2048 chars
...
This fixes issue #1122
2025-12-04 23:04:44 +01:00
Jan Böhmer
9f2989444a
Fixed phpstan issues
2025-11-30 23:37:34 +01:00
web-devinition.de
771857e014
Added feature for part IPN suggest with category prefixes ( #1054 )
...
* Erweiterungstätigkeiten zur IPN-Vorschlagsliste anhand von Präfixen aus den Kategorien
* Umstellung Migrationen bzgl. Multi-Plattform-Support.
Zunächst MySQL, SQLite Statements integrieren.
* Postgre Statements integrieren
* SQL-Formatierung in Migration verbessern
* Erweitere IPN-Suggest um Bauteilbeschreibung.
Die Implementierung berücksichtigt nun zusätzlich die Bauteilbeschreibung zu maximal 150 Zeichen Länge für die Generierung von IPN-Vorschlägen und Inkrementen.
* Anpassungen aus Analyse vornehmen
* IPN-Validierung für Parts überarbeiten
* IPN-Vorschlagslogik um Konfiguration erweitert
* Anpassungen aus phpstan Analyse
* IPN-Vorschlagslogik erweitert und Bauteil-IPN vereindeutigt
Die IPN-Logik wurde um eine Konfiguration zur automatischen Suffix-Anfügung und die Berücksichtigung von doppelten Beschreibungen bei Bedarf ergänzt. Zudem wurde das Datenmodell angepasst, um eine eindeutige Speicherung der IPN zu gewährleisten.
* Regex-Konfigurationsmöglichkeit für IPN-Vorschläge einführen
Die Einstellungen für die IPN-Vorschlagslogik wurden um eine Regex-Validierung und eine Hilfetext-Konfiguration erweitert. Tests und Änderungen an den Formularoptionen wurden implementiert.
* Match range assert and form limits in suggestPartDigits
* Keep existing behavior with autoAppend suffix by default
* Show the regex hint in the browser validation notice.
* Improved translations
* Removed unnecessary service definition
* Removed german comments
---------
Co-authored-by: Marcel Diegelmann <marcel.diegelmann@gmail.com>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-11-03 00:31:47 +01:00
web-devinition.de
14a4f1f437
Added custom part status ( #1053 )
...
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, sqlite) (push) Has been cancelled
* Benutzerdefinierten Bauteilstatus einführen
* PartCustomStateController hinzufügen
* Umstellung Migrationen bzgl. Multi-Plattform-Support.
Zunächst MySQL, SQLite Statements integrieren.
* Postgre Statements integrieren
* Semikolon in Migration entfernen
* Migration für PartCustomState aktualisieren
* Benutzerdefinierten Bauteilstatus in TableSettings aufnehmen
* PartCustomStateControllerTest: Attribute für PHPUnit-Gruppen umgestellt
* PartCustomState: Mapping für Parameter korrigieren
* PartCustomState: Darstellung und Zuordnung von Anhängen ergänzt
Die Sidebar wurde um die Anzeige des benutzerdefinierten Bauteilstatus erweitert, inklusive Vorschaubild, sofern vorhanden.
* Migrationen zusammenführen
* PartCustomState: Anpassungen bzgl. Tests
* PartCustomStateEndpoint hinzufügen
* Made custom part states plural for consistency with other entity captions
* Fixed phpunit error
* Fixed phpstan issues
---------
Co-authored-by: Marcel Diegelmann <marcel.diegelmann@gmail.com>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-10-27 21:58:16 +01:00
Jan Böhmer
6e4ae15438
Do not remove associated Project BOM entries if part is deleted
...
Instead the part name is put into the name field. This fixes issue #1068
2025-10-17 21:30:40 +02:00
Jan Böhmer
63a33d1057
Fixed deprecations
2025-09-23 20:55:22 +02:00
Jan Böhmer
0d49632b92
Refactored constraints, to reuse existing mechanisms
2025-09-21 20:45:18 +02:00
Jan Böhmer
710569daaf
Fixed phpunit tests
2025-09-21 19:03:29 +02:00
Jan Böhmer
92cd645945
Renamed dto to make their relation to batch searches more clear
2025-09-21 17:49:00 +02:00
Jan Böhmer
16126c4000
Encapsulate the fieldmapping data in the importjob further
2025-09-21 17:41:56 +02:00
Jan Böhmer
27a18bdc1e
Doing refactoring to remove remains of arrays
2025-09-21 14:24:34 +02:00
Jan Böhmer
41a7238ab7
Pass parts object directly to BulkSearchRequestDTO and added some syntax hints
2025-09-14 22:56:12 +02:00
Jan Böhmer
0e99faee0a
Moved BulkImportJobStatus enum to own file to make it discoverable by autoloading
2025-09-14 22:23:07 +02:00
barisgit
d6ac16ede0
Refactor bulk import functionality to make controller smaller (use services) add DTOs and use stimulus controllers on frontend
2025-09-09 20:30:27 +02:00
barisgit
ed396765c8
Let symfony manage translations
2025-08-31 22:18:24 +02:00
barisgit
cc9d50a8fe
Add makefile to help with development setup, change part_ids in bulk import jobs to junction table and implement filtering based on bulk import jobs status and its associated parts' statuses.
2025-08-31 22:17:05 +02:00
barisgit
2bc39e7791
Add tests and fix static errors
2025-08-31 22:16:27 +02:00
barisgit
c91d37d2a4
More sophisticated two-step bulk import from info providers
2025-08-31 22:16:27 +02:00
Jan Böhmer
0eee161630
Use new webauthn library for 2FA
2025-08-14 18:46:10 +02:00
Jan Böhmer
58d4207b49
Fixed phpstan issues
2025-08-03 21:59:51 +02:00
Jan Böhmer
b9c3358f7f
Use a doctrine entity for storing the settings
2025-07-06 22:15:48 +02:00
Jan Böhmer
9812671a89
Merge master into settings-bundle
2025-07-06 19:05:22 +02:00
d-buchmann
2226b72d1c
Update AbstractParameter.php ( #959 )
...
* Update AbstractParameter.php
Make lazy null conditionals explicit.
Try to handle LaTeX special chars gracefully.
Fixes #958
* Only escape the percentage sign, so that you can still use latex for units
* Only escape previously unescaped percentage signs
* simplify regex
* Render the percentage sign correctly in units in the frontend.
---------
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-07-06 00:20:29 +02:00
Jan Böhmer
442457f11b
Merge branch 'master' into settings-bundle
2025-06-15 18:39:49 +02:00
Jan Böhmer
00da2dedc3
Ignore phpstan issue
2025-05-18 22:54:03 +02:00
Jan Böhmer
4e1b1a4ffa
Render units of parameters in upstanding latex
...
Fixes issue #856
2025-03-29 12:33:18 +01:00
Jan Böhmer
c4ba28e3a0
Heavily refactored the property metadata attribute logic
...
The new method is much more universal and fixes issue #862
2025-02-22 22:19:38 +01:00
Jan Böhmer
019e67a676
Migrate legacy attachment discriminator class values to modern format, so that we can make the discriminator map unique and fix a deprecation with doctrine
2025-02-22 17:58:20 +01:00
Treeed
29f92d9bd3
Split attachment paths ( #848 )
...
* fixed attachment statistics for sqlite
* Split attachment path into internal and external path, so the external source URL can be retained after a file is downloaded
* Make internal and external path for attachments nullable, to make clear that they have no internal or external path
* Added migrations for nullable columns for postgres and mysql
* Added migration for nullable internal and external pathes for sqlite
* Added translations
* Fixed upload error
* Restrict length of filename badge in attachment edit view
* Improved margins with badges in attachment edit
* Added a link to view external version from attachment edit
* Let media_url stay in API attachments responses for backward compatibility
---------
Co-authored-by: jona <a@b.c>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-02-22 17:29:14 +01:00
Jan Böhmer
b724b05de6
Fixed "implicitly marking parameter as nullable" deprecations in PHP 8.4 fixed
2025-02-08 00:19:20 +01:00
Jan Böhmer
8750573724
Merge branch 'master' into settings-bundle
2025-01-17 22:06:18 +01:00
Treeed
9e85b70c17
Added capability to scan Digikey barcodes and open the local part part page based on the result ( #811 )
...
* added capability to scan digikey barcodes and open the local part page based on the digikey part number or manufacturer part number
* had replaced one too many doublequotes
* Generalized interpretation of format06 barcodes, added ids for mouser
* Renamed vendor_barcode to user_barcode in entities
* Added a own class to parse EIGP114 barcodes
* Added tests to EIGP114Barcode parser
* Refactored code
* Changed BarcodeRedirector to support the new Barcode EIGP114BarcodeScanResult class
* Added possibility to just show all information contained in a barcode
* Dont require trailer for EIGP114 barcodes, as digikey does not seem to put them onto their barcodes
* Fixed inspection issues
---------
Co-authored-by: jona <a@b.c>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2025-01-04 01:20:51 +01:00
Jan Böhmer
946032a101
Fixed phpstan analysis issues and bad code that showed up with phpstan 2.0
2024-12-28 23:08:08 +01:00
Jan Böhmer
b1ba26e0b9
Allow usernames to contain @-signs as long as it is not at the begininng
...
This allows to use email addresses as usernames and fixes issue #772
2024-12-01 23:05:27 +01:00
Jan Böhmer
baf8977578
Correctly handle IP addresses containing RFC 4007 scoping
2024-12-01 19:19:04 +01:00
Marc
76ebd22eab
Fixed Typos and mistranslations in GDPR mode (DSGVO Modus) ( #757 )
...
Fixed Typo enviroment
Co-authored-by: Marc Kreidler <kreidler@nedo.com>
2024-11-08 23:22:18 +01:00
Jan Böhmer
6225d2c9b3
Implemented an easy to use APIFilter for tags
...
This makes the process of filters more easily and intuitive. This fixes issue #750
2024-11-05 00:07:25 +01:00
Jan Böhmer
0c47aa226c
Fixed imports of parameters on parts
...
It was missing the required serialization group. This fixes issue #718
2024-10-13 21:35:31 +02:00
Jan Böhmer
49acf3e0cf
Fixed problem preventing non-admins to add TOTP 2FA to their account
...
This was caused by the no-lockout constraint, which was accidentially triggered here
2024-10-13 20:13:03 +02:00