From 5fd2ab847053057a0ce99730fd8216c5df68ced3 Mon Sep 17 00:00:00 2001 From: Matteo Date: Tue, 3 Feb 2026 17:16:19 +0100 Subject: [PATCH 01/12] =?UTF-8?q?feat=20:=20mise=20=C3=A0=20jour=20du=20bo?= =?UTF-8?q?n=20de=20r=C3=A9ception=20wip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/dataSources.xml | 2 +- .idea/inspectionProfiles/Project_Default.xml | 6 -- .idea/php.xml | 1 + .idea/workspace.xml | 65 +++++++++------- src/Entity/Address.php | 37 +++++++++ src/Entity/Carrier.php | 80 ++++++++++++++++++++ src/Entity/Vehicle.php | 43 +++++++++++ 7 files changed, 200 insertions(+), 34 deletions(-) delete mode 100644 .idea/inspectionProfiles/Project_Default.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index 0b73c9c..15f93b9 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -5,7 +5,7 @@ postgresql true org.postgresql.Driver - jdbc:postgresql://localhost:5433/ferme + jdbc:postgresql://localhost:5432/ferme $ProjectFileDir$ diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index d829d01..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml index a873179..a081fbb 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -15,6 +15,7 @@ + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d5f5372..dd56244 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,8 +6,13 @@ + + + + + + + + @@ -51,7 +58,7 @@ - + @@ -214,36 +221,39 @@ - { - "keyToString": { - "RunOnceActivity.MCP Project settings loaded": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", - "RunOnceActivity.git.unshallow": "true", - "RunOnceActivity.typescript.service.memoryLimit.init": "true", - "git-widget-placeholder": "develop", - "last_opened_file_path": "/home/sroy/Documents/test/Ferme", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "settings.editor.selected.configurable": "configurable.group.appearance", - "ts.external.directory.path": "/opt/phpstorm/plugins/javascript-plugin/jsLanguageServicesImpl/external", - "vue.rearranger.settings.migration": "true" + +}]]> @@ -287,6 +297,7 @@ + - - - - + - - - + @@ -717,8 +728,6 @@ - - @@ -742,7 +751,9 @@ - diff --git a/src/Entity/BovinShipment.php b/src/Entity/BovinShipment.php index 7d261a0..bf4b7c4 100644 --- a/src/Entity/BovinShipment.php +++ b/src/Entity/BovinShipment.php @@ -4,10 +4,56 @@ declare(strict_types=1); namespace App\Entity; +use ApiPlatform\Metadata\ApiResource; +use ApiPlatform\Metadata\Get; +use ApiPlatform\Metadata\GetCollection; +use ApiPlatform\Metadata\Patch; +use ApiPlatform\Metadata\Post; use Doctrine\ORM\Mapping as ORM; +use Symfony\Component\Serializer\Attribute\Groups; #[ORM\Entity] #[ORM\Table(name: 'bovin_shipment')] +#[ApiResource( + operations: [ + new Get( + requirements: ['id' => '\d+'], + normalizationContext: ['groups' => ['bovin-shipment:read']], + ), + new GetCollection( + normalizationContext: ['groups' => ['bovin-shipment:read']], + ), + new Post( + normalizationContext: ['groups' => ['bovin-shipment:read']], + denormalizationContext: ['groups' => ['bovin-shipment:write']], + ), + new Patch( + requirements: ['id' => '\d+'], + normalizationContext: ['groups' => ['bovin-shipment:read']], + denormalizationContext: ['groups' => ['bovin-shipment:write']], + ), + // new Get( + // uriTemplate: '/receptions/weigh', + // openapi: new OpenApiOperation( + // summary: 'Fetch the current weight reading', + // description: 'Queries the pont-bascule and returns the weight data.', + // ), + // normalizationContext: ['groups' => ['reception:weigh:read']], + // output: PontBasculeReading::class, + // provider: ReceptionWeighingProvider::class, + // ), + // new Get( + // uriTemplate: '/receptions/{id}/receipt', + // requirements: ['id' => '\d+'], + // openapi: new OpenApiOperation( + // summary: 'Render a reception receipt', + // description: 'Returns a PDF receipt for the reception.', + // ), + // output: false, + // provider: ReceptionReceiptProvider::class, + // ), + ], +)] class BovinShipment { #[ORM\Id] -- 2.39.5 From e249d44e784f414fbdb2ff6c44d8ef3aeb98d2aa Mon Sep 17 00:00:00 2001 From: Matteo Date: Tue, 3 Feb 2026 17:34:35 +0100 Subject: [PATCH 04/12] =?UTF-8?q?feat=20:=20mise=20=C3=A0=20jour=20du=20bo?= =?UTF-8?q?n=20de=20r=C3=A9ception=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3fa597c..afa2e6a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,11 +4,7 @@ - - - - - + -- 2.39.5 From ba4375f60918f2cf5d9a0a58f3cf5e101d845c8d Mon Sep 17 00:00:00 2001 From: Matteo Date: Wed, 4 Feb 2026 16:58:55 +0100 Subject: [PATCH 05/12] feat : Expedition dev back-end WIP --- .idea/workspace.xml | 77 +++++++-- makefile | 2 +- migrations/Version20260203152543.php | 64 -------- migrations/Version20260204101625.php | 64 ++++++++ migrations/Version20260204102423.php | 35 ++++ src/Entity/Address.php | 49 +----- src/Entity/BovinShipment.php | 50 ++---- src/Entity/BovineTypeShipment.php | 110 ------------- src/Entity/Carrier.php | 86 +--------- src/Entity/Customer.php | 101 +++++------- src/Entity/Shipment.php | 230 +++++++++++---------------- src/Entity/ShipmentType.php | 71 +++++++++ src/Entity/Vehicle.php | 43 ----- 13 files changed, 396 insertions(+), 586 deletions(-) delete mode 100644 migrations/Version20260203152543.php create mode 100644 migrations/Version20260204101625.php create mode 100644 migrations/Version20260204102423.php delete mode 100644 src/Entity/BovineTypeShipment.php create mode 100644 src/Entity/ShipmentType.php diff --git a/.idea/workspace.xml b/.idea/workspace.xml index afa2e6a..d350ddf 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,21 @@ - + + + + + + + + + + + + + + + + + + + + @@ -220,15 +239,17 @@ "RunOnceActivity.git.unshallow": "true", "RunOnceActivity.typescript.service.memoryLimit.init": "true", "com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true", + "database.data.extractors.current.export.id": "Comma-separated (CSV)_id", + "database.data.extractors.current.id": "Comma-separated (CSV)_id", "git-widget-placeholder": "feat/271-expedition-etape-1", "junie.onboarding.icon.badge.shown": "true", - "last_opened_file_path": "/home/sroy/Documents/test/Ferme", + "last_opened_file_path": "//wsl.localhost/Ubuntu-24.04/home/matte/Ferme/frontend/services", "node.js.detected.package.eslint": "true", "node.js.detected.package.tslint": "true", "node.js.selected.package.eslint": "(autodetect)", "node.js.selected.package.tslint": "(autodetect)", "nodejs_package_manager_path": "npm", - "settings.editor.selected.configurable": "configurable.group.appearance", + "settings.editor.selected.configurable": "preferences.keymap", "to.speed.mode.migration.done": "true", "ts.external.directory.path": "/opt/phpstorm/plugins/javascript-plugin/jsLanguageServicesImpl/external", "vue.rearranger.settings.migration": "true" @@ -246,6 +267,13 @@ } }]]> + + + + + + + @@ -257,7 +285,6 @@ - @@ -288,15 +315,10 @@ - - - - - @@ -759,8 +789,27 @@ + + + + + file://$PROJECT_DIR$/frontend/stores/reception.ts + + + + +