@fleetbase/fleetops-engine 0.6.42 → 0.6.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/composer.json +1 -1
- package/extension.json +1 -1
- package/package.json +1 -1
- package/server/migrations/2026_04_08_000001_add_orchestrator_columns_to_vehicles_table.php +3 -0
- package/server/migrations/2026_04_08_000004_add_orchestrator_columns_to_payloads_table.php +3 -0
- package/server/migrations/2026_04_14_000001_drop_redundant_capacity_columns_from_payloads_table.php +2 -0
- package/server/migrations/2026_04_14_000002_rename_capacity_columns_on_vehicles_table.php +2 -0
- package/server/migrations/2026_04_21_081353_add_internal_id_column_to_vehicles_table.php +27 -0
- package/server/src/Orchestration/Support/OrchestrationPayloadBuilder.php +2 -2
- package/addon/components/modals/set-password.hbs +0 -27
- package/app/components/modals/set-password.js +0 -1
package/composer.json
CHANGED
package/extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<?php
|
|
2
|
+
|
|
2
3
|
use Illuminate\Database\Migrations\Migration;
|
|
3
4
|
use Illuminate\Database\Schema\Blueprint;
|
|
4
5
|
use Illuminate\Support\Facades\Schema;
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* Add Orchestrator constraint columns to the vehicles table.
|
|
7
9
|
*
|
|
@@ -34,6 +36,7 @@ return new class extends Migration {
|
|
|
34
36
|
$table->boolean('return_to_depot')->default(true)->after('time_window_end');
|
|
35
37
|
});
|
|
36
38
|
}
|
|
39
|
+
|
|
37
40
|
public function down(): void
|
|
38
41
|
{
|
|
39
42
|
Schema::table('vehicles', function (Blueprint $table) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<?php
|
|
2
|
+
|
|
2
3
|
use Illuminate\Database\Migrations\Migration;
|
|
3
4
|
use Illuminate\Database\Schema\Blueprint;
|
|
4
5
|
use Illuminate\Support\Facades\Schema;
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* Add Orchestrator capacity columns to the payloads table.
|
|
7
9
|
*
|
|
@@ -24,6 +26,7 @@ return new class extends Migration {
|
|
|
24
26
|
$table->unsignedInteger('capacity_parcels')->nullable()->after('capacity_pallets');
|
|
25
27
|
});
|
|
26
28
|
}
|
|
29
|
+
|
|
27
30
|
public function down(): void
|
|
28
31
|
{
|
|
29
32
|
Schema::table('payloads', function (Blueprint $table) {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
use Illuminate\Database\Migrations\Migration;
|
|
4
|
+
use Illuminate\Database\Schema\Blueprint;
|
|
5
|
+
use Illuminate\Support\Facades\Schema;
|
|
6
|
+
|
|
7
|
+
return new class extends Migration {
|
|
8
|
+
public function up(): void
|
|
9
|
+
{
|
|
10
|
+
if (!Schema::hasColumn('vehicles', 'internal_id')) {
|
|
11
|
+
Schema::table('vehicles', function (Blueprint $table) {
|
|
12
|
+
$table->string('internal_id')
|
|
13
|
+
->nullable()
|
|
14
|
+
->after('public_id');
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public function down(): void
|
|
20
|
+
{
|
|
21
|
+
if (Schema::hasColumn('vehicles', 'internal_id')) {
|
|
22
|
+
Schema::table('vehicles', function (Blueprint $table) {
|
|
23
|
+
$table->dropColumn('internal_id');
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -70,9 +70,9 @@ class OrchestrationPayloadBuilder
|
|
|
70
70
|
|
|
71
71
|
foreach ($payload->entities as $entity) {
|
|
72
72
|
// --- Weight ---
|
|
73
|
-
$rawWeight
|
|
73
|
+
$rawWeight = (float) ($entity->weight ?? 0);
|
|
74
74
|
$weightUnit = strtolower($entity->weight_unit ?? 'kg');
|
|
75
|
-
$weightKg
|
|
75
|
+
$weightKg = match ($weightUnit) {
|
|
76
76
|
'g', 'gram', 'grams' => $rawWeight / 1000,
|
|
77
77
|
'lb', 'lbs', 'pound', 'pounds' => $rawWeight * 0.453592,
|
|
78
78
|
'oz', 'ounce', 'ounces' => $rawWeight * 0.0283495,
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<Modal::Default @modalIsOpened={{@modalIsOpened}} @options={{@options}} @confirm={{@onConfirm}} @decline={{@onDecline}}>
|
|
2
|
-
<div class="modal-body-container">
|
|
3
|
-
<div class="flex px-3 py-2 mb-6 rounded-md shadow-sm bg-blue-200">
|
|
4
|
-
<div>
|
|
5
|
-
<FaIcon @icon="info-circle" class="text-blue-900 mr-4" />
|
|
6
|
-
</div>
|
|
7
|
-
<p class="flex-1 text-sm text-blue-900 dark:text-blue-900">
|
|
8
|
-
{{t "modals.set-password.message"}}
|
|
9
|
-
</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<InputGroup
|
|
13
|
-
@name={{t "modals.set-password.new-password"}}
|
|
14
|
-
@value={{@options.password}}
|
|
15
|
-
@type="password"
|
|
16
|
-
@inputClass="form-input-lg"
|
|
17
|
-
@helpText={{t "modals.set-password.help-text"}}
|
|
18
|
-
/>
|
|
19
|
-
<InputGroup
|
|
20
|
-
@name={{t "modals.set-password.confirm-password"}}
|
|
21
|
-
@value={{@options.password_confirmation}}
|
|
22
|
-
@type="password"
|
|
23
|
-
@inputClass="form-input-lg"
|
|
24
|
-
@helpText={{t "modals.set-password.help-text"}}
|
|
25
|
-
/>
|
|
26
|
-
</div>
|
|
27
|
-
</Modal::Default>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '@fleetbase/fleetops-engine/components/modals/set-password';
|