Skip to content

Modular logistics and supply chain operating system (LSOS)

v0.5.15 - Additional recovery actions added, added ability for admins to reset user password, patches to webhook handler and logging

Ronald A. Richardsonc7b1a876f569
diff --git a/api/composer.json b/api/composer.json
index 3cab1204..1c8b90cb 100644
--- a/api/composer.json
+++ b/api/composer.json
@@ -9,8 +9,8 @@
"license": "AGPL-3.0-or-later",
"require": {
"php": "^8.0",
- "fleetbase/core-api": "^1.5.14",
- "fleetbase/fleetops-api": "^0.5.11",
+ "fleetbase/core-api": "^1.5.15",
+ "fleetbase/fleetops-api": "^0.5.12",
"fleetbase/registry-bridge": "^0.0.17",
"fleetbase/storefront-api": "^0.3.16",
"guzzlehttp/guzzle": "^7.0.1",
diff --git a/api/composer.lock b/api/composer.lock
index c28985c6..27a67303 100644
--- a/api/composer.lock
+++ b/api/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "f4bc982fd22389c79dfd398ef45b510a",
+ "content-hash": "b2b331926d83262cbf59a7f2b8f2bbd3",
"packages": [
{
"name": "aws/aws-crt-php",
@@ -62,16 +62,16 @@
},
{
"name": "aws/aws-sdk-php",
- "version": "3.324.2",
+ "version": "3.324.4",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
- "reference": "fea3d0ac8f96009cb87cf8166caba6558f26a0ab"
+ "reference": "4467374b1efda020b58adddd010f05949d9fa383"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/fea3d0ac8f96009cb87cf8166caba6558f26a0ab",
- "reference": "fea3d0ac8f96009cb87cf8166caba6558f26a0ab",
+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/4467374b1efda020b58adddd010f05949d9fa383",
+ "reference": "4467374b1efda020b58adddd010f05949d9fa383",
"shasum": ""
},
"require": {
@@ -154,9 +154,9 @@
"support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues",
- "source": "https://github.com/aws/aws-sdk-php/tree/3.324.2"
+ "source": "https://github.com/aws/aws-sdk-php/tree/3.324.4"
},
- "time": "2024-10-14T18:06:11+00:00"
+ "time": "2024-10-16T18:04:55+00:00"
},
{
"name": "aws/aws-sdk-php-laravel",
@@ -2299,16 +2299,16 @@
},
{
"name": "fleetbase/core-api",
- "version": "1.5.14",
+ "version": "1.5.15",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/core-api.git",
- "reference": "8dd4932c191d2721ad0949df6aad98b4bcb3c592"
+ "reference": "8db60ca17977fc5976f3cc01348ba6f885de131c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/8dd4932c191d2721ad0949df6aad98b4bcb3c592",
- "reference": "8dd4932c191d2721ad0949df6aad98b4bcb3c592",
+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/8db60ca17977fc5976f3cc01348ba6f885de131c",
+ "reference": "8db60ca17977fc5976f3cc01348ba6f885de131c",
"shasum": ""
},
"require": {
@@ -2391,22 +2391,22 @@
],
"support": {
"issues": "https://github.com/fleetbase/core-api/issues",
- "source": "https://github.com/fleetbase/core-api/tree/v1.5.14"
+ "source": "https://github.com/fleetbase/core-api/tree/v1.5.15"
},
- "time": "2024-10-15T09:05:53+00:00"
+ "time": "2024-10-17T08:52:07+00:00"
},
{
"name": "fleetbase/fleetops-api",
- "version": "0.5.11",
+ "version": "0.5.12",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/fleetops.git",
- "reference": "27558ad50d97b206febc76538f540ba34bf709a5"
+ "reference": "d2e98638e77b8f6511f285565cbca78ff435b414"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/27558ad50d97b206febc76538f540ba34bf709a5",
- "reference": "27558ad50d97b206febc76538f540ba34bf709a5",
+ "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/d2e98638e77b8f6511f285565cbca78ff435b414",
+ "reference": "d2e98638e77b8f6511f285565cbca78ff435b414",
"shasum": ""
},
"require": {
@@ -2480,9 +2480,9 @@
],
"support": {
"issues": "https://github.com/fleetbase/fleetops/issues",
- "source": "https://github.com/fleetbase/fleetops/tree/v0.5.11"
+ "source": "https://github.com/fleetbase/fleetops/tree/v0.5.12"
},
- "time": "2024-10-15T09:33:34+00:00"
+ "time": "2024-10-17T08:55:41+00:00"
},
{
"name": "fleetbase/laravel-mysql-spatial",
@@ -7748,33 +7748,32 @@
},
{
"name": "nunomaduro/termwind",
- "version": "v1.15.1",
+ "version": "v1.16.0",
"source": {
"type": "git",
"url": "https://github.com/nunomaduro/termwind.git",
- "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc"
+ "reference": "dcf1ec3dfa36137b7ce41d43866644a7ab8fc257"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/8ab0b32c8caa4a2e09700ea32925441385e4a5dc",
- "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc",
+ "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/dcf1ec3dfa36137b7ce41d43866644a7ab8fc257",
+ "reference": "dcf1ec3dfa36137b7ce41d43866644a7ab8fc257",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
- "php": "^8.0",
- "symfony/console": "^5.3.0|^6.0.0"
+ "php": "^8.1",
+ "symfony/console": "^6.4.12"
},
"require-dev": {
- "ergebnis/phpstan-rules": "^1.0.",
- "illuminate/console": "^8.0|^9.0",
- "illuminate/support": "^8.0|^9.0",
- "laravel/pint": "^1.0.0",
- "pestphp/pest": "^1.21.0",
- "pestphp/pest-plugin-mock": "^1.0",
- "phpstan/phpstan": "^1.4.6",
- "phpstan/phpstan-strict-rules": "^1.1.0",
- "symfony/var-dumper": "^5.2.7|^6.0.0",
+ "illuminate/console": "^10.48.22",
+ "illuminate/support": "^10.48.22",
+ "laravel/pint": "^1.18.1",
+ "pestphp/pest": "^2",
+ "pestphp/pest-plugin-mock": "2.0.0",
+ "phpstan/phpstan": "^1.12.6",
+ "phpstan/phpstan-strict-rules": "^1.6.1",
+ "symfony/var-dumper": "^6.4.11",
"thecodingmachine/phpstan-strict-rules": "^1.0.0"
},
"type": "library",
@@ -7814,7 +7813,7 @@
],
"support": {
"issues": "https://github.com/nunomaduro/termwind/issues",
- "source": "https://github.com/nunomaduro/termwind/tree/v1.15.1"
+ "source": "https://github.com/nunomaduro/termwind/tree/v1.16.0"
},
"funding": [
{
@@ -7830,7 +7829,7 @@
"type": "github"
}
],
- "time": "2023-02-08T01:06:31+00:00"
+ "time": "2024-10-15T15:27:12+00:00"
},
{
"name": "nyholm/psr7",
@@ -15517,16 +15516,16 @@
},
{
"name": "laravel/sail",
- "version": "v1.35.0",
+ "version": "v1.36.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/sail.git",
- "reference": "992bc2d9e52174c79515967f30849d21daa334d8"
+ "reference": "f184d3d687155d06bc8cb9ff6dc48596a138460c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/sail/zipball/992bc2d9e52174c79515967f30849d21daa334d8",
- "reference": "992bc2d9e52174c79515967f30849d21daa334d8",
+ "url": "https://api.github.com/repos/laravel/sail/zipball/f184d3d687155d06bc8cb9ff6dc48596a138460c",
+ "reference": "f184d3d687155d06bc8cb9ff6dc48596a138460c",
"shasum": ""
},
"require": {
@@ -15576,7 +15575,7 @@
"issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail"
},
- "time": "2024-10-08T14:45:26+00:00"
+ "time": "2024-10-10T13:26:02+00:00"
},
{
"name": "mockery/mockery",
@@ -15786,40 +15785,40 @@
},
{
"name": "nunomaduro/collision",
- "version": "v7.10.0",
+ "version": "v7.11.0",
"source": {
"type": "git",
"url": "https://github.com/nunomaduro/collision.git",
- "reference": "49ec67fa7b002712da8526678abd651c09f375b2"
+ "reference": "994ea93df5d4132f69d3f1bd74730509df6e8a05"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nunomaduro/collision/zipball/49ec67fa7b002712da8526678abd651c09f375b2",
- "reference": "49ec67fa7b002712da8526678abd651c09f375b2",
+ "url": "https://api.github.com/repos/nunomaduro/collision/zipball/994ea93df5d4132f69d3f1bd74730509df6e8a05",
+ "reference": "994ea93df5d4132f69d3f1bd74730509df6e8a05",
"shasum": ""
},
"require": {
- "filp/whoops": "^2.15.3",
+ "filp/whoops": "^2.16.0",
"nunomaduro/termwind": "^1.15.1",
"php": "^8.1.0",
- "symfony/console": "^6.3.4"
+ "symfony/console": "^6.4.12"
},
"conflict": {
"laravel/framework": ">=11.0.0"
},
"require-dev": {
- "brianium/paratest": "^7.3.0",
- "laravel/framework": "^10.28.0",
- "laravel/pint": "^1.13.3",
- "laravel/sail": "^1.25.0",
- "laravel/sanctum": "^3.3.1",
- "laravel/tinker": "^2.8.2",
- "nunomaduro/larastan": "^2.6.4",
- "orchestra/testbench-core": "^8.13.0",
- "pestphp/pest": "^2.23.2",
- "phpunit/phpunit": "^10.4.1",
- "sebastian/environment": "^6.0.1",
- "spatie/laravel-ignition": "^2.3.1"
+ "brianium/paratest": "^7.3.1",
+ "laravel/framework": "^10.48.22",
+ "laravel/pint": "^1.18.1",
+ "laravel/sail": "^1.36.0",
+ "laravel/sanctum": "^3.3.3",
+ "laravel/tinker": "^2.10.0",
+ "nunomaduro/larastan": "^2.9.8",
+ "orchestra/testbench-core": "^8.28.3",
+ "pestphp/pest": "^2.35.1",
+ "phpunit/phpunit": "^10.5.36",
+ "sebastian/environment": "^6.1.0",
+ "spatie/laravel-ignition": "^2.8.0"
},
"type": "library",
"extra": {
@@ -15878,7 +15877,7 @@
"type": "patreon"
}
],
- "time": "2023-10-11T15:45:01+00:00"
+ "time": "2024-10-15T15:12:40+00:00"
},
{
"name": "phar-io/manifest",
diff --git a/console/app/controllers/console/account/organizations.js b/console/app/controllers/console/account/organizations.js
index 6d92e6cc..6844760c 100644
--- a/console/app/controllers/console/account/organizations.js
+++ b/console/app/controllers/console/account/organizations.js
@@ -13,7 +13,7 @@ export default class ConsoleAccountOrganizationsController extends Controller {
@service fetch;
@service router;
- @action async leaveOrganization (organization) {
+ @action async leaveOrganization(organization) {
const isOwner = this.currentUser.id === organization.owner_uuid;
const hasOtherMembers = organization.users_count > 1;
const willBeDeleted = isOwner && organization.users_count === 1;
@@ -37,11 +37,11 @@ export default class ConsoleAccountOrganizationsController extends Controller {
willBeDeleted,
organization,
newOwnerId: null,
- selectNewOwner: newOwnerId => {
+ selectNewOwner: (newOwnerId) => {
this.modalsManager.setOption('newOwnerId', newOwnerId);
this.modalsManager.setOption('acceptButtonDisabled', false);
},
- confirm: async modal => {
+ confirm: async (modal) => {
modal.startLoading();
if (isOwner) {
@@ -78,13 +78,13 @@ export default class ConsoleAccountOrganizationsController extends Controller {
});
}
- @action switchOrganization (organization) {
+ @action switchOrganization(organization) {
this.modalsManager.confirm({
title: this.intl.t('console.switch-organization.modal-title', { organizationName: organization.name }),
body: this.intl.t('console.switch-organization.modal-body'),
acceptButtonText: this.intl.t('console.switch-organization.modal-accept-button-text'),
acceptButtonScheme: 'primary',
- confirm: async modal => {
+ confirm: async (modal) => {
modal.startLoading();
try {
@@ -106,7 +106,7 @@ export default class ConsoleAccountOrganizationsController extends Controller {
});
}
- @action deleteOrganization (organization) {
+ @action deleteOrganization(organization) {
const isOwner = this.currentUser.id === organization.owner_uuid;
if (this.model.length === 1) {
@@ -125,7 +125,7 @@ export default class ConsoleAccountOrganizationsController extends Controller {
acceptButtonText: 'Delete Organization',
acceptButtonScheme: 'danger',
acceptButtonIcon: 'trash',
- confirm: async modal => {
+ confirm: async (modal) => {
modal.startLoading();
try {
@@ -138,14 +138,14 @@ export default class ConsoleAccountOrganizationsController extends Controller {
});
}
- @action editOrganization (organization) {
+ @action editOrganization(organization) {
this.modalsManager.show('modals/edit-organization', {
title: 'Edit Organization',
acceptButtonText: 'Save Changes',
acceptButtonIcon: 'save',
isOwner: this.currentUser.id === organization.owner_uuid,
organization,
- confirm: async modal => {
+ confirm: async (modal) => {
modal.startLoading();
try {
@@ -158,7 +158,7 @@ export default class ConsoleAccountOrganizationsController extends Controller {
});
}
- @action createOrganization () {
+ @action createOrganization() {
const currency = this.currentUser.currency;
const country = this.currentUser.country;
@@ -175,7 +175,7 @@ export default class ConsoleAccountOrganizationsController extends Controller {
country,
timezone: null,
},
- confirm: async modal => {
+ confirm: async (modal) => {
modal.startLoading();
const organization = modal.getOption('organization');
diff --git a/console/app/models/company.js b/console/app/models/company.js
index c263c19f..19ac531f 100644
--- a/console/app/models/company.js
+++ b/console/app/models/company.js
@@ -41,54 +41,54 @@ export default class Company extends Model {
@attr('date') updated_at;
/** @computed */
- @computed('phone_country_code', 'country') get phoneCountryCode () {
+ @computed('phone_country_code', 'country') get phoneCountryCode() {
return this.phone_country_code || this.country;
}
- @computed('updated_at') get updatedAgo () {
+ @computed('updated_at') get updatedAgo() {
return formatDistanceToNow(this.updated_at);
}
- @computed('updated_at') get updatedAt () {
+ @computed('updated_at') get updatedAt() {
return format(this.updated_at, 'PPP p');
}
- @computed('updated_at') get updatedAtShort () {
+ @computed('updated_at') get updatedAtShort() {
return format(this.updated_at, 'PP');
}
- @computed('created_at') get createdAgo () {
+ @computed('created_at') get createdAgo() {
return formatDistanceToNow(this.created_at);
}
- @computed('created_at') get createdAt () {
+ @computed('created_at') get createdAt() {
return format(this.created_at, 'PPP p');
}
- @computed('created_at') get createdAtShort () {
+ @computed('created_at') get createdAtShort() {
return format(this.created_at, 'PP');
}
/** @methods */
- toJSON () {
+ toJSON() {
return autoSerialize(this);
}
- async transferOwnership (newOwner, params = {}) {
+ async transferOwnership(newOwner, params = {}) {
const owner = getOwner(this);
const fetch = owner.lookup('service:fetch');
return fetch.post('companies/transfer-ownership', { company: this.id, newOwner, ...params });
}
- async leave (user = null, params = {}) {
+ async leave(user = null, params = {}) {
const owner = getOwner(this);
const fetch = owner.lookup('service:fetch');
return fetch.post('companies/leave', { company: this.id, user, ...params });
}
- async loadUsers (params = {}) {
+ async loadUsers(params = {}) {
const owner = getOwner(this);
const fetch = owner.lookup('service:fetch');
diff --git a/console/package.json b/console/package.json
index fca4f2f8..8235e2d8 100644
--- a/console/package.json
+++ b/console/package.json
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/console",
- "version": "0.5.14",
+ "version": "0.5.15",
"private": true,
"description": "Modular logistics and supply chain operating system (LSOS)",
"repository": "https://github.com/fleetbase/fleetbase",
@@ -29,12 +29,12 @@
},
"dependencies": {
"@ember/legacy-built-in-components": "^0.4.2",
- "@fleetbase/dev-engine": "^0.2.7",
+ "@fleetbase/dev-engine": "^0.2.8",
"@fleetbase/ember-core": "^0.2.21",
"@fleetbase/ember-ui": "^0.2.35",
"@fleetbase/fleetops-data": "^0.1.18",
- "@fleetbase/fleetops-engine": "^0.5.11",
- "@fleetbase/iam-engine": "^0.1.2",
+ "@fleetbase/fleetops-engine": "^0.5.12",
+ "@fleetbase/iam-engine": "^0.1.3",
"@fleetbase/leaflet-routing-machine": "^3.2.16",
"@fleetbase/registry-bridge-engine": "^0.0.17",
"@fleetbase/storefront-engine": "^0.3.16",
diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yaml
index 10c6cc75..ae900f97 100644
--- a/console/pnpm-lock.yaml
+++ b/console/pnpm-lock.yaml
@@ -17,8 +17,8 @@ importers:
specifier: ^0.4.2
'@fleetbase/dev-engine':
- specifier: ^0.2.7
+ specifier: ^0.2.8
'@fleetbase/ember-core':
specifier: ^0.2.21
@@ -29,11 +29,11 @@ importers:
specifier: ^0.1.18
'@fleetbase/fleetops-engine':
- specifier: ^0.5.11
+ specifier: ^0.5.12
'@fleetbase/iam-engine':
- specifier: ^0.1.2
+ specifier: ^0.1.3
'@fleetbase/leaflet-routing-machine':
specifier: ^3.2.16
version: 3.2.16
@@ -1534,8 +1534,8 @@ packages:
resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-+XQqJQ97y4WPC3iRgdEjo/9DXHPfSXQf/+2grzZzZ3JNzsMgeKu/0yet0oD4ESdHTK5ymp5WoyOuumnkq4L6Jw==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-tfFuUxc+3NyNToGbBxrNhtVcIObbygr0sf1ZK3Tme7NPJJSEgbB/A/C0ryZty05pGjAM4WkkBebx2ecdBk8tIA==}
engines: {node: '>= 18'}
peerDependencies:
ember-engines: ^0.9.0
@@ -1558,14 +1558,14 @@ packages:
resolution: {integrity: sha512-SBiL992igloYgEGMbUX65uW95nv8k32u2QSoqVm7HrWfhCwMEeHubEOA916otDkBalkHNSE6QgWigaJDMNnW4A==}
engines: {node: '>= 18'}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-TkRUPJ/i0lDUt527YCX+IRR4ur/aAQ4ejENOGn7lc9ZfBbNy7SWZxNvSQQs6jp4wl1a4JwQgEYvVtSNIgYrCqQ==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-ApUqIuAQJ/T5dX98PqXBALF8KNiz2LmTXUmKYuXU5IssgvXqZM6xYp2nqZT7baUISHC1bmcUVXQS9TRItK51dw==}
engines: {node: '>= 18'}
peerDependencies:
ember-engines: ^0.9.0
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-+uaxdmIZBQOUUy6XsonN4LC2evZ0C1L7gdAx4uSC4uDy6uXUrRIvAmxN9eYshlOzc2vXTeL8hMdQo1NCyMEdoA==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-66RmYn+kHblqlSEvfcQgU+beutxakPJGIr8Ra/hd9ogNxrH1WSZ4QZdl7q/Hz0DkjmS3u06gA2xo7KDHRRWtEg==}
engines: {node: '>= 18'}
peerDependencies:
ember-engines: ^0.9.0
@@ -10411,7 +10411,7 @@ snapshots:
'@eslint/[email protected]': {}
dependencies:
'@babel/core': 7.25.7
@@ -10617,7 +10617,7 @@ snapshots:
- utf-8-validate
- webpack
dependencies:
'@babel/core': 7.25.7
@@ -10673,7 +10673,7 @@ snapshots:
- webpack-cli
- webpack-command
dependencies:
'@babel/core': 7.25.7
diff --git a/packages/core-api b/packages/core-api
index 8dd4932c..8db60ca1 160000
--- a/packages/core-api
+++ b/packages/core-api
@@ -1 +1 @@
-Subproject commit 8dd4932c191d2721ad0949df6aad98b4bcb3c592
+Subproject commit 8db60ca17977fc5976f3cc01348ba6f885de131c
diff --git a/packages/dev-engine b/packages/dev-engine
index aa8274df..2ba75a3a 160000
--- a/packages/dev-engine
+++ b/packages/dev-engine
@@ -1 +1 @@
-Subproject commit aa8274dfd52e82d0f0f88c190018075783504737
+Subproject commit 2ba75a3aec2849d987e684519855df2d9334c7e8
diff --git a/packages/fleetops b/packages/fleetops
index 27558ad5..d2e98638 160000
--- a/packages/fleetops
+++ b/packages/fleetops
@@ -1 +1 @@
-Subproject commit 27558ad50d97b206febc76538f540ba34bf709a5
+Subproject commit d2e98638e77b8f6511f285565cbca78ff435b414
diff --git a/packages/iam-engine b/packages/iam-engine
index 030d25df..898b8d0d 160000
--- a/packages/iam-engine
+++ b/packages/iam-engine
@@ -1 +1 @@
-Subproject commit 030d25dfb6ebbe0bc1b1db14350ee58dc0187a58
+Subproject commit 898b8d0d14afb72ac4efe3b54498fb4f8521768c