Skip to content

Modular logistics and supply chain operating system (LSOS)

v0.7.45

Ronald A. Richardson6f5ca0b514f7
diff --git a/RELEASE.md b/RELEASE.md
index b7f4226e..c1a99043 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,67 +1,59 @@
-> v0.7.44 ~ "Admin dashboards, internal metrics, Fleet-Ops connectivity, and shared UI polish"
+> v0.7.45 ~ "Multi-provider SMS, Fleet-Ops operations navigation, reports, and telematics hardening"
---
## Highlights
-Fleetbase `0.7.44` brings a more complete admin experience, new internal metrics for Console dashboards, a major Fleet-Ops connectivity update, native fuel provider integration support, and shared UI improvements across engines. This release updates Fleetbase Console `0.7.44`, Core API `1.6.51`, Fleet-Ops `0.6.52`, Fleet-Ops Data `0.1.37`, Ledger `0.0.5`, IAM Engine `0.1.10`, Developers Engine `0.2.14`, Ember Core `0.3.22`, and Ember UI `0.3.34`.
+Fleetbase `0.7.45` adds configurable multi-provider SMS support, a refreshed Fleet-Ops navigation experience, new shared reporting widgets, facilitator-driver data support, and several telematics and device-management hardening fixes. This release updates Fleetbase Console `0.7.45`, Core API `1.6.52`, Fleet-Ops `0.6.53`, Fleet-Ops Data `0.1.38`, and Ember UI `0.3.35`.
---
## Component Versions
-- `console`: `0.7.44`
-- `core-api`: `1.6.51`
-- `fleetops`: `0.6.52`
-- `fleetops-data`: `0.1.37`
-- `ledger`: `0.0.5`
-- `iam-engine`: `0.1.10`
-- `dev-engine`: `0.2.14`
-- `ember-core`: `0.3.22`
-- `ember-ui`: `0.3.34`
+- `console`: `0.7.45`
+- `core-api`: `1.6.52`
+- `fleetops`: `0.6.53`
+- `fleetops-data`: `0.1.38`
+- `ember-ui`: `0.3.35`
---
-## Console and Admin
-- Replaced the static Console admin overview with the shared Dashboard experience, including sticky dashboard headers and reusable admin widgets.
-- Added richer organization management views with organization details, settings, users, extensions, activity, owner/company table cells, and overview widgets.
-- Improved the install, invite, onboarding, auth, catch, and virtual screens so the surrounding Console shell feels more consistent.
+## Core API and SMS
+- Added multi-provider SMS support for Vonage, AWS SNS, MessageBird, SMPP, custom HTTP providers, and the existing CallPro path.
+- Added protocol and provider configuration support so SMS delivery can be driven from settings and environment mapping.
+- Improved SMS service fallback behavior and added coverage for the new provider selection paths.
+- Updated the Fleetbase blog RSS source used by Console content surfaces.
---
-## Fleet-Ops Connectivity and Fuel
-- Reworked Fleet-Ops connectivity around a clearer Telematics hub with provider setup, settings, device/event/sensor/log views, attachments, and connection diagnostics.
-- Added native fuel provider integrations, including provider connection setup, matching priorities, sync/import flows, provider transactions, and Fleet-Ops widgets.
-- Added PetroApp as the built-in fuel provider path while keeping the integration framework extension-ready.
-- Added Fleet-Ops Data models and serializers for fuel provider connections and fuel provider transactions, and exposed provider metadata on fuel reports.
-- Improved driver, fleet, vehicle, device, and map drawer workflows around connectivity and assignment actions.
+## Fleet-Ops Operations and Telematics
+- Refactored the Fleet-Ops sidebar navigation and added an operations monitor for a clearer operations-focused workspace.
+- Added hub and search support for richer Fleet-Ops management, maintenance, analytics, and settings landing surfaces.
+- Hardened device attachment morph types and added repair support for invalid polymorphic relation namespaces.
+- Improved telematics device sync, attach error handling, Afaqy provider behavior, and device/vehicle filtering.
+- Fixed draft order entity editing and restored facilitator-driver schedule assignee support.
---
-## Dashboards and Metrics
-- Added internal Core API metrics support for admin, IAM, and developer dashboards.
-- Rebuilt the IAM dashboard with KPI, identity health, access coverage, access risk, policy, group, activity, and quick-action widgets.
-- Rebuilt the Developers dashboard with API traffic, latency, error rate, webhook delivery, endpoint health, event stream, credentials, activity, and quick resource widgets.
-- Improved dashboard registration, widget sizing, and layout structure across engines.
-- Updated IAM and Developers packages for Node 22 and pnpm 11 compatibility in CI and workspace builds.
+## Reports and Shared UI
+- Added shared report find/select components, a report widget, and report widget registration.
+- Added dashboard outlets so engines can contribute content around shared dashboard layouts.
+- Refined the shared sidebar navigator and simplified Fleetbase attribution styling and behavior.
+- Added tests for report selection, report widgets, sidebar navigation, dashboard registration, and attribution behavior.
---
-## Core API and Shared UI
-- Added internal admin, IAM, and developer search support for Console dashboard and management surfaces.
-- Improved organization resources, company filtering, activity filtering, and API model behavior used by internal Console tools.
-- Updated Ledger with a lighter app shell and internal search controller support.
-- Added shared Ember UI sidebar navigation, table empty states, Fleetbase attribution, and legal notice UI.
-- Improved shared docs panel, activity log, floating UI, sidebar resize behavior, date-time input handling, filters picker behavior, and resource table empty-state forwarding.
-- Improved Ember Core service exports, serializer normalization, chat service behavior, request option forwarding, and custom field loading defaults.
+## Data Models
+- Added the Fleet-Ops Data `facilitator-driver` model and application re-export.
+- Added driver subtype support on facilitators so maintenance and assignment workflows can identify facilitator drivers correctly.
+- Added regression coverage for facilitator-driver data and maintenance schedule normalization.
---
## Bug Fixes
-- Fixed telematics detail routing, connection logs, diagnostics, and setup flows that could make provider/device management harder to follow.
-- Improved fuel provider matching, import, sync, and transaction workflows.
-- Fixed shared sidebar, table, docs panel, activity log, floating, and date-time UI behavior covered by new Ember UI tests.
-- Fixed IAM and Developers dashboard structure issues and linter/style ordering cleanup.
-- Fixed Ember Core payload normalization for plural underscore keys and made custom field loading request all records by default.
-- Fixed Ledger internal search controller behavior.
+- Fixed reports empty-state documentation links.
+- Fixed Fleet-Ops draft order entity edit modal behavior.
+- Fixed device attach errors and telematics sync feedback paths.
+- Fixed facilitator-driver assignee restoration in maintenance schedules.
+- Fixed shared sidebar navigator edge behavior covered by new Ember UI tests.
---
## API Changes
-- Added internal metrics endpoints under `int/v1/metrics/admin`, `int/v1/metrics/iam`, and `int/v1/metrics/dev`.
-- Added internal search endpoints for admin, IAM, and developer Console surfaces.
-- Added Fleet-Ops fuel provider API support for provider connections, transactions, sync/import workflows, events, and matching.
-- Added Fleet-Ops Data `fuel-provider-connection` and `fuel-provider-transaction` models and serializers.
-- Extended internal organization, company, activity, and resource behavior used by Console admin views.
+- Added configurable SMS provider support in Core API settings and environment mapping.
+- Added internal Fleet-Ops hub and search routes for management, maintenance, analytics, and settings surfaces.
+- Added Fleet-Ops device and vehicle hardening around attachable types, filters, and telematics sync.
+- Added Fleet-Ops Data `facilitator-driver` model support for facilitator driver assignment workflows.
+- Added shared Ember UI report selection and report widget components.
---
## Upgrade Steps
diff --git a/api/app/Providers/AppServiceProvider.php b/api/app/Providers/AppServiceProvider.php
index f06fb48a..1170659a 100644
--- a/api/app/Providers/AppServiceProvider.php
+++ b/api/app/Providers/AppServiceProvider.php
@@ -44,7 +44,7 @@ class AppServiceProvider extends ServiceProvider
Log::info('[http:out:start]', [
'id' => $id,
'method' => $request->getMethod(),
- 'url' => (string) $request->getUri(),
+ 'url' => $this->redactOutboundHttpUrl((string) $request->getUri()),
'timeout' => $options['timeout'] ?? null,
'connect_timeout' => $options['connect_timeout'] ?? null,
'trace' => $this->outboundHttpTrace(),
@@ -78,6 +78,11 @@ class AppServiceProvider extends ServiceProvider
});
}
+ protected function redactOutboundHttpUrl(string $url): string
+ {
+ return preg_replace('/([?&](?:token|access_token|api_key|apikey|key|secret|signature)=)[^&#]*/i', '$1[redacted]', $url) ?? $url;
+ }
+
protected function outboundHttpTrace(): array
{
return collect(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 20))
diff --git a/api/composer.json b/api/composer.json
index 9eea87fb..59fbcfd4 100644
--- a/api/composer.json
+++ b/api/composer.json
@@ -20,8 +20,8 @@
"require": {
"php": ">=8.0 <=8.2.30",
"appstract/laravel-opcache": "^4.0",
- "fleetbase/core-api": "^1.6.51",
- "fleetbase/fleetops-api": "^0.6.52",
+ "fleetbase/core-api": "^1.6.52",
+ "fleetbase/fleetops-api": "^0.6.53",
"fleetbase/registry-bridge": "^0.1.9",
"fleetbase/customer-portal-api": "^0.0.11",
"fleetbase/storefront-api": "^0.4.16",
diff --git a/api/composer.lock b/api/composer.lock
index 72e1362b..2105459d 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": "5a2ffde06d16049d857c86adb8a3200f",
+ "content-hash": "3943c48fe99821695e542744bddc6e64",
"packages": [
{
"name": "appstract/laravel-opcache",
@@ -124,16 +124,16 @@
},
{
"name": "aws/aws-sdk-php",
- "version": "3.384.8",
+ "version": "3.384.10",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
- "reference": "eab63461524f6b7e309d03441b09f0f5532f2672"
+ "reference": "a43566ffe0176f55441b1b9a39dc5951c5b68675"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/eab63461524f6b7e309d03441b09f0f5532f2672",
- "reference": "eab63461524f6b7e309d03441b09f0f5532f2672",
+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a43566ffe0176f55441b1b9a39dc5951c5b68675",
+ "reference": "a43566ffe0176f55441b1b9a39dc5951c5b68675",
"shasum": ""
},
"require": {
@@ -144,7 +144,7 @@
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/promises": "^2.0",
"guzzlehttp/psr7": "^2.4.5",
- "mtdowling/jmespath.php": "^2.8.0",
+ "mtdowling/jmespath.php": "^2.9.1",
"php": ">=8.1",
"psr/http-message": "^1.0 || ^2.0",
"symfony/filesystem": "^v5.4.45 || ^v6.4.3 || ^v7.1.0 || ^v8.0.0"
@@ -215,9 +215,9 @@
"support": {
"forum": "https://github.com/aws/aws-sdk-php/discussions",
"issues": "https://github.com/aws/aws-sdk-php/issues",
- "source": "https://github.com/aws/aws-sdk-php/tree/3.384.8"
+ "source": "https://github.com/aws/aws-sdk-php/tree/3.384.10"
},
- "time": "2026-06-11T18:06:10+00:00"
+ "time": "2026-06-15T19:06:48+00:00"
},
{
"name": "aws/aws-sdk-php-laravel",
@@ -2155,16 +2155,16 @@
},
{
"name": "fleetbase/core-api",
- "version": "1.6.51",
+ "version": "1.6.52",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/core-api.git",
- "reference": "4147cb35ca4fa18ae896400c779500bc5b019b1e"
+ "reference": "e7ac7053f4ddcd7845b329ee019541aeda74b9ff"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/4147cb35ca4fa18ae896400c779500bc5b019b1e",
- "reference": "4147cb35ca4fa18ae896400c779500bc5b019b1e",
+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/e7ac7053f4ddcd7845b329ee019541aeda74b9ff",
+ "reference": "e7ac7053f4ddcd7845b329ee019541aeda74b9ff",
"shasum": ""
},
"require": {
@@ -2254,9 +2254,9 @@
],
"support": {
"issues": "https://github.com/fleetbase/core-api/issues",
- "source": "https://github.com/fleetbase/core-api/tree/v1.6.51"
+ "source": "https://github.com/fleetbase/core-api/tree/v1.6.52"
},
- "time": "2026-06-12T10:39:40+00:00"
+ "time": "2026-06-16T05:45:19+00:00"
},
{
"name": "fleetbase/countries",
@@ -2394,16 +2394,16 @@
},
{
"name": "fleetbase/fleetops-api",
- "version": "0.6.52",
+ "version": "0.6.53",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/fleetops.git",
- "reference": "4e2fe8174e7325144700d866c09225f4da2ce4df"
+ "reference": "7ef50212b07f848f7e7e4cbf3760f7fe17d8359e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/4e2fe8174e7325144700d866c09225f4da2ce4df",
- "reference": "4e2fe8174e7325144700d866c09225f4da2ce4df",
+ "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/7ef50212b07f848f7e7e4cbf3760f7fe17d8359e",
+ "reference": "7ef50212b07f848f7e7e4cbf3760f7fe17d8359e",
"shasum": ""
},
"require": {
@@ -2480,9 +2480,9 @@
],
"support": {
"issues": "https://github.com/fleetbase/fleetops/issues",
- "source": "https://github.com/fleetbase/fleetops/tree/v0.6.52"
+ "source": "https://github.com/fleetbase/fleetops/tree/v0.6.53"
},
- "time": "2026-06-12T11:22:20+00:00"
+ "time": "2026-06-16T07:17:58+00:00"
},
{
"name": "fleetbase/laravel-mysql-spatial",
@@ -3671,16 +3671,16 @@
},
{
"name": "google/apiclient-services",
- "version": "v0.444.0",
+ "version": "v0.445.0",
"source": {
"type": "git",
"url": "https://github.com/googleapis/google-api-php-client-services.git",
- "reference": "b38b3329e67bf68ef184997c047e6ff5952feca5"
+ "reference": "d76b09227d898db351457010c88f39eedfb815aa"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/b38b3329e67bf68ef184997c047e6ff5952feca5",
- "reference": "b38b3329e67bf68ef184997c047e6ff5952feca5",
+ "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/d76b09227d898db351457010c88f39eedfb815aa",
+ "reference": "d76b09227d898db351457010c88f39eedfb815aa",
"shasum": ""
},
"require": {
@@ -3709,9 +3709,9 @@
],
"support": {
"issues": "https://github.com/googleapis/google-api-php-client-services/issues",
- "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.444.0"
+ "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.445.0"
},
- "time": "2026-06-08T01:52:31+00:00"
+ "time": "2026-06-15T01:58:30+00:00"
},
{
"name": "google/auth",
diff --git a/console/app/components/configure/services.hbs b/console/app/components/configure/services.hbs
index 770477ba..99090f7d 100644
--- a/console/app/components/configure/services.hbs
+++ b/console/app/components/configure/services.hbs
@@ -9,20 +9,96 @@
<InputGroup @name="Google Maps Locale" @value={{this.googleMapsLocale}} disabled={{this.isLoading}} />
</ContentPanel>
-<ContentPanel @title="Twilio" @open={{true}} @wrapperClass="bordered-classic">
- <InputGroup @name="Twilio SID" @value={{this.twilioSid}} disabled={{this.isLoading}} />
- <InputGroup @name="Twilio Token" @value={{this.twilioToken}} disabled={{this.isLoading}} />
- <InputGroup @name="Twilio From" @value={{this.twilioFrom}} disabled={{this.isLoading}} />
- {{#if this.twilioTestResponse}}
- <div class="flex flex-row items-center rounded-lg border {{if (eq this.twilioTestResponse.status 'error') 'border-red-900 bg-red-800 text-red-100' 'border-green-900 bg-green-800 text-green-100'}} shadow-sm my-2 px-4 py-2">
- <FaIcon @icon={{if (eq this.twilioTestResponse.status 'error') 'triangle-exclamation' 'circle-check'}} class="mr-1.5 {{if (eq this.twilioTestResponse.status 'error') 'text-red-200' 'text-green-200'}}" />
- <span class="text-xs">{{this.this.twilioTestResponse.message}}</span>
+<ContentPanel @title="SMS Providers" @open={{true}} @wrapperClass="bordered-classic">
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-3">
+ <div>
+ <label class="form-label">Default Provider</label>
+ <select class="form-select form-select-sm w-full" data-test-sms-default-provider {{on "change" this.updateSmsDefaultProvider}}>
+ {{#each this.smsProviders as |provider|}}
+ <option value={{provider.key}} selected={{eq this.normalizedSms.defaultProvider provider.key}}>{{provider.name}}</option>
+ {{/each}}
+ </select>
+ </div>
+ <div>
+ <label class="form-label">Configure Provider</label>
+ <select class="form-select form-select-sm w-full" data-test-sms-configure-provider {{on "change" this.selectSmsProvider}}>
+ {{#each this.smsProviders as |provider|}}
+ <option value={{provider.key}} selected={{eq this.smsSelectedProvider provider.key}}>{{provider.name}}</option>
+ {{/each}}
+ </select>
+ </div>
+ </div>
+
+ <div class="mt-4">
+ {{#if (eq this.smsSelectedProvider "twilio")}}
+ <InputGroup @name="Twilio SID" @value={{this.selectedSmsProviderConfig.sid}} {{on "input" (fn this.updateSmsProviderField "twilio" "sid")}} disabled={{this.isLoading}} />
+ <InputGroup @name="Twilio Token" @value={{this.selectedSmsProviderConfig.token}} {{on "input" (fn this.updateSmsProviderField "twilio" "token")}} disabled={{this.isLoading}} />
+ <InputGroup @name="Twilio From" @value={{this.selectedSmsProviderConfig.from}} {{on "input" (fn this.updateSmsProviderField "twilio" "from")}} disabled={{this.isLoading}} />
+ {{/if}}
+
+ {{#if (eq this.smsSelectedProvider "callpro")}}
+ <InputGroup @name="CallPro API Key" @value={{this.selectedSmsProviderConfig.api_key}} {{on "input" (fn this.updateSmsProviderField "callpro" "api_key")}} disabled={{this.isLoading}} />
+ <InputGroup @name="CallPro From" @value={{this.selectedSmsProviderConfig.from}} {{on "input" (fn this.updateSmsProviderField "callpro" "from")}} disabled={{this.isLoading}} />
+ <InputGroup @name="CallPro Base URL" @value={{this.selectedSmsProviderConfig.base_url}} {{on "input" (fn this.updateSmsProviderField "callpro" "base_url")}} disabled={{this.isLoading}} />
+ {{/if}}
+
+ {{#if (eq this.smsSelectedProvider "vonage")}}
+ <InputGroup @name="Vonage API Key" @value={{this.selectedSmsProviderConfig.api_key}} {{on "input" (fn this.updateSmsProviderField "vonage" "api_key")}} disabled={{this.isLoading}} />
+ <InputGroup @name="Vonage API Secret" @value={{this.selectedSmsProviderConfig.api_secret}} {{on "input" (fn this.updateSmsProviderField "vonage" "api_secret")}} disabled={{this.isLoading}} />
+ <InputGroup @name="Vonage From" @value={{this.selectedSmsProviderConfig.from}} {{on "input" (fn this.updateSmsProviderField "vonage" "from")}} disabled={{this.isLoading}} />
+ <InputGroup @name="Vonage Base URL" @value={{this.selectedSmsProviderConfig.base_url}} {{on "input" (fn this.updateSmsProviderField "vonage" "base_url")}} disabled={{this.isLoading}} />
+ {{/if}}
+
+ {{#if (eq this.smsSelectedProvider "messagebird")}}
+ <InputGroup @name="MessageBird Access Key" @value={{this.selectedSmsProviderConfig.access_key}} {{on "input" (fn this.updateSmsProviderField "messagebird" "access_key")}} disabled={{this.isLoading}} />
+ <InputGroup @name="MessageBird Originator" @value={{this.selectedSmsProviderConfig.originator}} {{on "input" (fn this.updateSmsProviderField "messagebird" "originator")}} disabled={{this.isLoading}} />
+ <InputGroup @name="MessageBird Base URL" @value={{this.selectedSmsProviderConfig.base_url}} {{on "input" (fn this.updateSmsProviderField "messagebird" "base_url")}} disabled={{this.isLoading}} />
+ {{/if}}
+
+ {{#if (eq this.smsSelectedProvider "aws_sns")}}
+ <InputGroup @name="AWS Access Key" @value={{this.selectedSmsProviderConfig.key}} {{on "input" (fn this.updateSmsProviderField "aws_sns" "key")}} disabled={{this.isLoading}} />
+ <InputGroup @name="AWS Secret" @value={{this.selectedSmsProviderConfig.secret}} {{on "input" (fn this.updateSmsProviderField "aws_sns" "secret")}} disabled={{this.isLoading}} />
+ <InputGroup @name="AWS Region" @value={{this.selectedSmsProviderConfig.region}} {{on "input" (fn this.updateSmsProviderField "aws_sns" "region")}} disabled={{this.isLoading}} />
+ <InputGroup @name="SNS Sender ID" @value={{this.selectedSmsProviderConfig.sender_id}} {{on "input" (fn this.updateSmsProviderField "aws_sns" "sender_id")}} disabled={{this.isLoading}} />
+ <InputGroup @name="SNS SMS Type" @value={{this.selectedSmsProviderConfig.sms_type}} {{on "input" (fn this.updateSmsProviderField "aws_sns" "sms_type")}} disabled={{this.isLoading}} />
+ {{/if}}
+
+ {{#if (eq this.smsSelectedProvider "smpp")}}
+ <InputGroup @name="SMPP Host" @value={{this.selectedSmsProviderConfig.host}} {{on "input" (fn this.updateSmsProviderField "smpp" "host")}} disabled={{this.isLoading}} />
+ <InputGroup @name="SMPP Port" @value={{this.selectedSmsProviderConfig.port}} {{on "input" (fn this.updateSmsProviderField "smpp" "port")}} disabled={{this.isLoading}} />
+ <InputGroup @name="SMPP System ID" @value={{this.selectedSmsProviderConfig.system_id}} {{on "input" (fn this.updateSmsProviderField "smpp" "system_id")}} disabled={{this.isLoading}} />
+ <InputGroup @name="SMPP Password" @value={{this.selectedSmsProviderConfig.password}} {{on "input" (fn this.updateSmsProviderField "smpp" "password")}} disabled={{this.isLoading}} />
+ <InputGroup @name="SMPP Source Address" @value={{this.selectedSmsProviderConfig.source_addr}} {{on "input" (fn this.updateSmsProviderField "smpp" "source_addr")}} disabled={{this.isLoading}} />
+ <InputGroup @name="SMPP Bind Type" @value={{this.selectedSmsProviderConfig.bind_type}} {{on "input" (fn this.updateSmsProviderField "smpp" "bind_type")}} disabled={{this.isLoading}} />
+ <label class="flex flex-row items-center text-sm mt-2">
+ <Input @type="checkbox" @checked={{this.selectedSmsProviderConfig.tls}} {{on "change" (fn this.updateSmsProviderChecked "smpp" "tls")}} />
+ <span class="ml-2">Use TLS</span>
+ </label>
+ {{/if}}
+
+ {{#if (eq this.smsSelectedProvider "custom_http")}}
+ <InputGroup @name="Gateway URL" @value={{this.selectedSmsProviderConfig.url}} {{on "input" (fn this.updateSmsProviderField "custom_http" "url")}} disabled={{this.isLoading}} />
+ <InputGroup @name="From" @value={{this.selectedSmsProviderConfig.from}} {{on "input" (fn this.updateSmsProviderField "custom_http" "from")}} disabled={{this.isLoading}} />
+ <InputGroup @name="Auth Header" @value={{this.selectedSmsProviderConfig.auth_header}} {{on "input" (fn this.updateSmsProviderField "custom_http" "auth_header")}} disabled={{this.isLoading}} />
+ <InputGroup @name="Auth Token" @value={{this.selectedSmsProviderConfig.auth_token}} {{on "input" (fn this.updateSmsProviderField "custom_http" "auth_token")}} disabled={{this.isLoading}} />
+ <label class="form-label">Headers JSON</label>
+ <textarea class="form-input w-full font-mono text-xs" rows="4" value={{this.customHttpHeadersText}} {{on "input" (fn this.updateSmsProviderJsonField "custom_http" "headers")}}></textarea>
+ <label class="form-label mt-3">Body Template JSON</label>
+ <textarea class="form-input w-full font-mono text-xs" rows="5" value={{this.customHttpBodyText}} {{on "input" (fn this.updateSmsProviderJsonField "custom_http" "body")}}></textarea>
+ {{/if}}
+ </div>
+
+ {{#if this.smsTestResponse}}
+ <div class="flex flex-row items-center rounded-lg border {{if (eq this.smsTestResponse.status 'error') 'border-red-900 bg-red-800 text-red-100' 'border-green-900 bg-green-800 text-green-100'}} shadow-sm my-2 px-4 py-2">
+ <FaIcon @icon={{if (eq this.smsTestResponse.status 'error') 'triangle-exclamation' 'circle-check'}} class="mr-1.5 {{if (eq this.smsTestResponse.status 'error') 'text-red-200' 'text-green-200'}}" />
+ <span class="text-xs">{{this.smsTestResponse.message}}</span>
</div>
{{/if}}
- <div class="flex flex-row items-center mt-3">
- <Input @value={{this.twilioTestPhone}} @type="tel" placeholder="Send Test SMS Here" class="form-input form-input-sm" />
- <Button @wrapperClass="ml-2" @icon="plug" @text="Test Twilio Config" @onClick={{perform this.testTwilio}} @isLoading={{this.testTwilio.isRunning}} @disabled={{not this.twilioTestPhone}} />
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-3 mt-3">
+ <Input @value={{this.smsTestPhone}} @type="tel" placeholder="Send Test SMS Here" class="form-input form-input-sm" data-test-sms-test-phone />
+ <Input @value={{this.smsTestMessage}} @type="text" placeholder="Test Message" class="form-input form-input-sm" data-test-sms-test-message />
</div>
+ <Button @wrapperClass="mt-3" @icon="plug" @text="Test SMS Provider" @onClick={{perform this.testSmsProvider}} @isLoading={{this.testSmsProvider.isRunning}} @disabled={{not this.smsTestPhone}} data-test-sms-test-button />
</ContentPanel>
<ContentPanel @title="Sentry" @open={{true}} @wrapperClass="bordered-classic">
@@ -44,4 +120,4 @@
<EmberWormhole @to="next-view-section-subheader-actions">
<Button @type="primary" @size="sm" @icon="save" @text="Save Changes" @onClick={{perform this.save}} @disabled={{or this.save.isRunning this.loadConfigValues.isRunning}} @isLoading={{or this.save.isRunning this.loadConfigValues.isRunning}} />
-</EmberWormhole>
\ No newline at end of file
+</EmberWormhole>
diff --git a/console/app/components/configure/services.js b/console/app/components/configure/services.js
index 0de42415..8383b36a 100644
--- a/console/app/components/configure/services.js
+++ b/console/app/components/configure/services.js
@@ -28,6 +28,15 @@ export default class ConfigureServicesComponent extends Component {
@tracked twilioTestPhone = null;
@tracked twilioTestResponse;
+ /** sms service */
+ @tracked sms = null;
+ @tracked smsSelectedProvider = 'twilio';
+ @tracked smsTestPhone = null;
+ @tracked smsTestMessage = 'This is a Fleetbase SMS test.';
+ @tracked smsTestResponse;
+ @tracked customHttpHeadersText = '{}';
+ @tracked customHttpBodyText = '{}';
+
/** sentry service */
@tracked sentryDsn = null;
@tracked sentryTestResponse;
@@ -47,6 +56,107 @@ export default class ConfigureServicesComponent extends Component {
this[key] = config[key];
}
}
+
+ if (config.sms) {
+ this.sms = this.normalizeSmsConfig(config.sms);
+ this.smsSelectedProvider = this.sms.defaultProvider || 'twilio';
+ this.syncSmsJsonText();
+ }
+ }
+
+ @action selectSmsProvider(event) {
+ this.smsSelectedProvider = event.target.value;
+ this.syncSmsJsonText();
+ }
+
+ @action updateSmsDefaultProvider(event) {
+ this.smsSelectedProvider = event.target.value;
+ this.sms = {
+ ...this.normalizedSms,
+ defaultProvider: event.target.value,
+ };
+ this.syncSmsJsonText();
+ }
+
+ @action updateSmsProviderField(provider, field, event) {
+ this.sms = this.updateSmsProvider(provider, {
+ [field]: event.target.value,
+ });
+
+ if (provider === 'twilio') {
+ if (field === 'sid') {
+ this.twilioSid = event.target.value;
+ }
+
+ if (field === 'token') {
+ this.twilioToken = event.target.value;
+ }
+
+ if (field === 'from') {
+ this.twilioFrom = event.target.value;
+ }
+ }
+ }
+
+ @action updateSmsProviderChecked(provider, field, event) {
+ this.sms = this.updateSmsProvider(provider, {
+ [field]: event.target.checked,
+ });
+ }
+
+ @action updateSmsProviderJsonField(provider, field, event) {
+ if (field === 'headers') {
+ this.customHttpHeadersText = event.target.value;
+ }
+
+ if (field === 'body') {
+ this.customHttpBodyText = event.target.value;
+ }
+
+ const value = this.parseJsonValue(event.target.value);
+
+ if (value) {
+ this.sms = this.updateSmsProvider(provider, {
+ [field]: value,
+ });
+ }
+ }
+
+ get normalizedSms() {
+ return this.normalizeSmsConfig(this.sms);
+ }
+
+ get smsProviders() {
+ return [
+ { key: 'twilio', name: 'Twilio' },
+ { key: 'callpro', name: 'CallPro/MessagePro.mn' },
+ { key: 'vonage', name: 'Vonage' },
+ { key: 'messagebird', name: 'MessageBird' },
+ { key: 'aws_sns', name: 'AWS SNS' },
+ { key: 'smpp', name: 'SMPP Gateway' },
+ { key: 'custom_http', name: 'Custom HTTP Gateway' },
+ ];
+ }
+
+ get selectedSmsProviderConfig() {
+ return this.normalizedSms.providers[this.smsSelectedProvider] || {};
+ }
+
+ get smsConfigForSave() {
+ const sms = this.normalizedSms;
+
+ return {
+ defaultProvider: sms.defaultProvider,
+ providers: {
+ ...sms.providers,
+ twilio: {
+ ...(sms.providers.twilio || {}),
+ sid: this.twilioSid,
+ token: this.twilioToken,
+ from: this.twilioFrom,
+ },
+ },
+ };
}
@task *loadConfigValues() {
@@ -79,6 +189,7 @@ export default class ConfigureServicesComponent extends Component {
token: this.twilioToken,
from: this.twilioFrom,
},
+ sms: this.smsConfigForSave,
sentry: {
dsn: this.sentryDsn,
},
@@ -103,6 +214,21 @@ export default class ConfigureServicesComponent extends Component {
}
}
+ @task *testSmsProvider() {
+ try {
+ const smsTestResponse = yield this.fetch.post('settings/test-sms-provider-config', {
+ provider: this.smsSelectedProvider,
+ phone: this.smsTestPhone,
+ message: this.smsTestMessage,
+ config: this.selectedSmsProviderConfig,
+ });
+ this.smsTestResponse = smsTestResponse;
+ return smsTestResponse;
+ } catch (error) {
+ this.notifications.serverError(error);
+ }
+ }
+
@task *testSentry() {
try {
const sentryTestResponse = yield this.fetch.post('settings/test-sentry-config', {
@@ -114,4 +240,81 @@ export default class ConfigureServicesComponent extends Component {
this.notifications.serverError(error);
}
}
+
+ normalizeSmsConfig(sms = {}) {
+ sms = sms ?? {};
+
+ const providers = {
+ twilio: {
+ sid: this.twilioSid,
+ token: this.twilioToken,
+ from: this.twilioFrom,
+ },
+ callpro: {},
+ vonage: {},
+ messagebird: {},
+ aws_sns: {},
+ smpp: {},
+ custom_http: {
+ headers: {},
+ body: {
+ to: '{{to}}',
+ text: '{{text}}',
+ from: '{{from}}',
+ },
+ },
+ ...(sms.providers || {}),
+ };
+
+ providers.twilio = {
+ ...providers.twilio,
+ sid: providers.twilio.sid ?? this.twilioSid,
+ token: providers.twilio.token ?? this.twilioToken,
+ from: providers.twilio.from ?? this.twilioFrom,
+ };
+
+ return {
+ defaultProvider: sms.defaultProvider || 'twilio',
+ routingRules: sms.routingRules || {},
+ providers,
+ };
+ }
+
+ updateSmsProvider(provider, changes = {}) {
+ const sms = this.normalizedSms;
+
+ return {
+ ...sms,
+ providers: {
+ ...sms.providers,
+ [provider]: {
+ ...(sms.providers[provider] || {}),
+ ...changes,
+ },
+ },
+ };
+ }
+
+ parseJsonValue(value) {
+ try {
+ const parsed = JSON.parse(value);
+ return parsed && typeof parsed === 'object' ? parsed : null;
+ } catch {
+ return null;
+ }
+ }
+
+ syncSmsJsonText() {
+ const customHttpConfig = this.normalizedSms.providers.custom_http || {};
+ this.customHttpHeadersText = JSON.stringify(customHttpConfig.headers || {}, null, 2);
+ this.customHttpBodyText = JSON.stringify(
+ customHttpConfig.body || {
+ to: '{{to}}',
+ text: '{{text}}',
+ from: '{{from}}',
+ },
+ null,
+ 2
+ );
+ }
}
diff --git a/console/app/components/fleetbase-blog.hbs b/console/app/components/fleetbase-blog.hbs
index 3bf21dd9..ada4d4fa 100644
--- a/console/app/components/fleetbase-blog.hbs
+++ b/console/app/components/fleetbase-blog.hbs
@@ -1,29 +1,38 @@
-<div class="fleetbase-blog" ...attributes>
- <div class="border dark:border-gray-700 border-gray-200 dark:bg-gray-800 bg-gray-50 rounded-lg shadow-sm flex flex-col">
- <div class="flex flex-row items-center justify-between rounded-t-lg px-4 py-2 border-b border-gray-200 dark:border-gray-700">
+<div class="fleetbase-blog flex h-full min-h-0 w-full" ...attributes>
+ <div class="flex h-full min-h-0 w-full flex-col overflow-hidden rounded-lg border border-gray-200 bg-gray-50 shadow-sm dark:border-gray-700 dark:bg-gray-800">
+ <div class="sticky top-0 flex flex-shrink-0 flex-row items-center justify-between rounded-t-lg border-b border-gray-200 bg-gray-50 px-4 py-2 dark:border-gray-700 dark:bg-gray-800">
<span class="text-base font-bold text-black dark:text-gray-100">Fleetbase Blog</span>
<a href="https://www.fleetbase.io/blog" target="_blog" class="flex flex-row items-center text-sm">
<FaIcon @icon="arrow-up-right-from-square" @size="xs" class="mr-2" />
<span>Visit Blog</span>
</a>
</div>
- <div class="px-4 py-2.5">
+ <div class="min-h-0 flex-1 overflow-y-auto">
{{#if this.loadBlogPosts.isRunning}}
- <Spinner />
+ <div class="p-4">
+ <Spinner />
+ </div>
{{else}}
- {{#if this.posts.length}}
- <ul class="space-y-2">
- {{#each this.posts as |post|}}
- <li class="text-sm flex flex-col lg:flex-row">
- <a href={{post.link}} target="_blog" rel="noopener noreferrer" class="text-black truncate max-w-lg dark:text-gray-200">
- <span class="truncate">{{post.title}}</span>
+ {{#if this.formattedPosts.length}}
+ <ul class="divide-y divide-gray-200 dark:divide-gray-700">
+ {{#each this.formattedPosts as |post|}}
+ <li class="text-sm">
+ <a
+ href={{post.link}}
+ target="_blog"
+ rel="noopener noreferrer"
+ class="group flex items-start justify-between gap-4 px-4 py-3 text-gray-900 transition-colors hover:bg-blue-50 hover:text-blue-700 dark:text-gray-100 dark:hover:bg-gray-700 dark:hover:text-blue-300"
+ >
+ <span class="min-w-0 flex-1 whitespace-normal break-words font-medium leading-5">{{post.title}}</span>
+ {{#if post.formattedDate}}
+ <span class="flex-shrink-0 whitespace-nowrap text-right text-xs text-gray-500 transition-colors group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-300">{{post.formattedDate}}</span>
+ {{/if}}
</a>
- <span class="ml-1 text-gray-900 dark:text-gray-400">- {{post.pubDate}}</span>
</li>
{{/each}}
</ul>
{{else}}
- <div class="text-sm text-gray-700 dark:text-gray-300">
+ <div class="p-4 text-sm text-gray-700 dark:text-gray-300">
No blog posts are available right now.
</div>
{{/if}}
diff --git a/console/app/components/fleetbase-blog.js b/console/app/components/fleetbase-blog.js
index 08e84938..43d703a4 100644
--- a/console/app/components/fleetbase-blog.js
+++ b/console/app/components/fleetbase-blog.js
@@ -4,7 +4,7 @@ import { inject as service } from '@ember/service';
import { isArray } from '@ember/array';
import { debug } from '@ember/debug';
import { storageFor } from 'ember-local-storage';
-import { add, isPast } from 'date-fns';
+import { add, format, isPast, isValid } from 'date-fns';
import { task } from 'ember-concurrency';
export default class FleetbaseBlogComponent extends Component {
@@ -17,6 +17,29 @@ export default class FleetbaseBlogComponent extends Component {
this.loadBlogPosts.perform();
}
+ get formattedPosts() {
+ return this.posts.map((post) => {
+ return {
+ ...post,
+ formattedDate: this.formatPublishedDate(post.pubDate),
+ };
+ });
+ }
+
+ formatPublishedDate(value) {
+ if (!value) {
+ return '';
+ }
+
+ const date = new Date(value);
+
+ if (!isValid(date)) {
+ return value;
+ }
+
+ return format(date, 'MMM d, yyyy');
+ }
+
@task *loadBlogPosts() {
// Check if cached data and expiration are available
const cachedData = this.localCache.get('fleetbase-blog-data');
diff --git a/console/package.json b/console/package.json
index 29469fe1..024649b8 100644
--- a/console/package.json
+++ b/console/package.json
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/console",
- "version": "0.7.44",
+ "version": "0.7.45",
"private": true,
"description": "Modular logistics and supply chain operating system (LSOS)",
"repository": "https://github.com/fleetbase/fleetbase",
@@ -35,9 +35,9 @@
"@ember/legacy-built-in-components": "^0.4.2",
"@fleetbase/dev-engine": "^0.2.14",
"@fleetbase/ember-core": "^0.3.22",
- "@fleetbase/ember-ui": "^0.3.34",
- "@fleetbase/fleetops-data": "^0.1.37",
- "@fleetbase/fleetops-engine": "^0.6.52",
+ "@fleetbase/ember-ui": "^0.3.35",
+ "@fleetbase/fleetops-data": "^0.1.38",
+ "@fleetbase/fleetops-engine": "^0.6.53",
"@fleetbase/iam-engine": "^0.1.10",
"@fleetbase/leaflet-routing-machine": "^3.2.17",
"@fleetbase/ledger-engine": "^0.0.5",
diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yaml
index b936ed63..b81780c0 100644
--- a/console/pnpm-lock.yaml
+++ b/console/pnpm-lock.yaml
@@ -5,9 +5,9 @@ settings:
excludeLinksFromLockfile: false
overrides:
- '@fleetbase/fleetops-data': ^0.1.37
+ '@fleetbase/fleetops-data': ^0.1.38
'@fleetbase/ember-core': ^0.3.22
- '@fleetbase/ember-ui': ^0.3.34
+ '@fleetbase/ember-ui': ^0.3.35
importers:
@@ -26,14 +26,14 @@ importers:
specifier: ^0.3.22
'@fleetbase/ember-ui':
- specifier: ^0.3.34
+ specifier: ^0.3.35
'@fleetbase/fleetops-data':
- specifier: ^0.1.37
+ specifier: ^0.1.38
'@fleetbase/fleetops-engine':
- specifier: ^0.6.52
- version: 0.6.52(abaf0c2a8c51c5147c2d07c08c7af87d)
+ specifier: ^0.6.53
+ version: 0.6.53(abaf0c2a8c51c5147c2d07c08c7af87d)
'@fleetbase/iam-engine':
specifier: ^0.1.10
version: 0.1.10(abaf0c2a8c51c5147c2d07c08c7af87d)
@@ -1563,16 +1563,16 @@ packages:
resolution: {integrity: sha512-tCYgxJoemUXgjsUztzeJZSwU2ejDp5x2WYI3FsBO55AlcC+mfWm0FsYtuPd9xd9PoO1jZ3T3VyvQQ06HRPtqWw==}
engines: {node: '>= 18'}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-l67lrbpeh0JRLDHr1sJ3QnxP6vPKwVW614CVWEASs6ZImGCBr6CK3DjsT3h+1uslQa51dpixN/stiQ+C/Z1etA==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-pJP74Nev5Xr87bqHkLVKRI7NJ3zmsfI2lwdq/Vwx9wgXR77n+20k0Yr753U7q+TFZoD1Zj+Ozm5Ywl2GGiJVMQ==}
engines: {node: '>= 18'}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-VGVWaGlwQAqHWA9/A80jKAjoDkAM7U9Ve1UVmKkCTlolqUd5/k/Z66rVC0iFUijj8qzkMCdahdh3mBPQ6x71WA==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-OiK3q7+Ol9/9xlDwu45IB4mAOanReZAolVVMyI5NkQkS1Qu3U5qN+AZt6KMt4kTNIPRy9La1Wms6P2wI6Ahz5A==}
engines: {node: '>= 18'}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-2hvzUDDI7l7OLjEG43f6px09t2qrB+OH+CvlRQ/KbZYdlGqMbHYjDueFFH/cOStOosh3dBsc65tL+L18vjLnag==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-hGUjD/wZPq/3lOdAKKFrzhbATFqeMFTavTSkubTzoYrpYZiLUQJSDfU8VH8OlwuYdA5XrvGqaMiInDQKtwdKSw==}
engines: {node: '>= 18'}
peerDependencies:
ember-engines: ^0.9.0
@@ -10832,8 +10832,8 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fleetbase/leaflet-routing-machine': 3.2.17
'@fortawesome/fontawesome-svg-core': 6.4.0
@@ -10891,7 +10891,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -10972,7 +10972,7 @@ snapshots:
- utf-8-validate
- webpack
dependencies:
'@babel/core': 7.29.7
@@ -11078,7 +11078,7 @@ snapshots:
- webpack-command
- yaml
dependencies:
'@babel/core': 7.29.7
@@ -11098,12 +11098,12 @@ snapshots:
- utf-8-validate
- webpack
- '@fleetbase/[email protected](abaf0c2a8c51c5147c2d07c08c7af87d)':
+ '@fleetbase/[email protected](abaf0c2a8c51c5147c2d07c08c7af87d)':
dependencies:
'@babel/core': 7.29.7
'@fleetbase/leaflet-routing-machine': 3.2.17
'@fortawesome/fontawesome-svg-core': 6.4.0
@@ -11172,7 +11172,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -11236,8 +11236,8 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -11293,7 +11293,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -11348,8 +11348,8 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -11391,7 +11391,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fleetbase/leaflet-routing-machine': 3.2.17
'@fortawesome/fontawesome-svg-core': 6.4.0
@@ -11446,7 +11446,7 @@ snapshots:
dependencies:
'@babel/core': 7.29.7
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -12303,7 +12303,7 @@ snapshots:
dependencies:
- glob: 8.1.0
+ glob: 13.0.6
'@types/[email protected]': {}
@@ -12324,7 +12324,7 @@ snapshots:
dependencies:
- minimatch: 7.4.9
+ minimatch: 10.2.5
'@types/[email protected]': {}
@@ -18239,7 +18239,7 @@ snapshots:
dependencies:
- hash-base: 3.0.5
+ hash-base: 3.1.2
inherits: 2.0.4
safe-buffer: 5.2.1
diff --git a/console/pnpm-workspace.yaml b/console/pnpm-workspace.yaml
index a24aff22..350abc9c 100644
--- a/console/pnpm-workspace.yaml
+++ b/console/pnpm-workspace.yaml
@@ -5,9 +5,9 @@ publicHoistPattern:
- "*ember-ui*"
- "*fleetops-data*"
overrides:
- "@fleetbase/fleetops-data": "^0.1.37"
+ "@fleetbase/fleetops-data": "^0.1.38"
"@fleetbase/ember-core": "^0.3.22"
- "@fleetbase/ember-ui": "^0.3.34"
+ "@fleetbase/ember-ui": "^0.3.35"
allowBuilds:
"@fortawesome/fontawesome-common-types": false
"@fortawesome/fontawesome-svg-core": false
diff --git a/console/tests/integration/components/configure/services-test.js b/console/tests/integration/components/configure/services-test.js
index 3aa2deab..51226918 100644
--- a/console/tests/integration/components/configure/services-test.js
+++ b/console/tests/integration/components/configure/services-test.js
@@ -1,26 +1,95 @@
+import Service from '@ember/service';
import { module, test } from 'qunit';
import { setupRenderingTest } from '@fleetbase/console/tests/helpers';
-import { render } from '@ember/test-helpers';
+import { click, fillIn, render, select, waitFor } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
+class FetchStub extends Service {
+ lastPost = null;
+
+ async get(url) {
+ if (url === 'settings/services-config') {
+ return {
+ awsKey: 'aws-key',
+ awsSecret: 'aws-secret',
+ awsRegion: 'us-east-1',
+ twilioSid: 'twilio-sid',
+ twilioToken: 'twilio-token',
+ twilioFrom: '+15551234567',
+ sms: {
+ defaultProvider: 'twilio',
+ routingRules: {
+ '+44': 'messagebird',
+ },
+ providers: {
+ twilio: {
+ sid: 'twilio-sid',
+ token: 'twilio-token',
+ from: '+15551234567',
+ },
+ messagebird: {
+ access_key: 'messagebird-key',
+ originator: 'Fleetbase',
+ base_url: 'https://rest.messagebird.com/messages',
+ },
+ },
+ },
+ };
+ }
+
+ return {};
+ }
+
+ async post(url, payload) {
+ this.lastPost = { url, payload };
+
+ return {
+ status: 'success',
+ message: 'SMS sent.',
+ };
+ }
+}
+
+class NotificationsStub extends Service {
+ serverError() {}
+}
+
module('Integration | Component | configure/services', function (hooks) {
setupRenderingTest(hooks);
- test('it renders', async function (assert) {
- // Set any properties with this.set('myProperty', 'value');
- // Handle any actions with this.set('myAction', function(val) { ... });
+ hooks.beforeEach(function () {
+ this.owner.register('service:fetch', FetchStub);
+ this.owner.register('service:notifications', NotificationsStub);
+ });
+ test('it renders sms provider configuration and sends test payload', async function (assert) {
await render(hbs`<Configure::Services />`);
+ await waitFor('[data-test-sms-default-provider]');
+
+ assert.dom('[data-test-sms-default-provider]').hasValue('twilio');
+ assert.dom('[data-test-sms-configure-provider]').exists();
+ assert.dom(this.element).includesText('SMS Providers');
+ assert.dom(this.element).doesNotIncludeText('Test Twilio Config');
+
+ await select('[data-test-sms-default-provider]', 'messagebird');
+ assert.dom('[data-test-sms-configure-provider]').hasValue('messagebird');
- assert.dom(this.element).hasText('');
+ await fillIn('[data-test-sms-test-phone]', '+441234567890');
+ await fillIn('[data-test-sms-test-message]', 'Fleetbase SMS test');
+ await click('[data-test-sms-test-button]');
- // Template block usage:
- await render(hbs`
- <Configure::Services>
- template block text
- </Configure::Services>
- `);
+ const fetch = this.owner.lookup('service:fetch');
- assert.dom(this.element).hasText('template block text');
+ assert.strictEqual(fetch.lastPost.url, 'settings/test-sms-provider-config');
+ assert.deepEqual(fetch.lastPost.payload, {
+ provider: 'messagebird',
+ phone: '+441234567890',
+ message: 'Fleetbase SMS test',
+ config: {
+ access_key: 'messagebird-key',
+ originator: 'Fleetbase',
+ base_url: 'https://rest.messagebird.com/messages',
+ },
+ });
});
});
diff --git a/console/translations/en-us.yaml b/console/translations/en-us.yaml
index 58285ad7..2a4ee387 100644
--- a/console/translations/en-us.yaml
+++ b/console/translations/en-us.yaml
@@ -351,6 +351,7 @@ common:
continue-without-saving: Continue Without Saving?
continue-without-saving-prompt: You have unsaved changes to this {resource}. Continuing will discard them. Click Continue to proceed.
changelog: Changelog
+ reload: Reload
resource:
alert: Alert
diff --git a/docker/Dockerfile b/docker/Dockerfile
index d90c2266..6469cd89 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -75,7 +75,7 @@ ENV QUEUE_CONNECTION=redis
ENV CADDYFILE_PATH=/fleetbase/Caddyfile
ENV CONSOLE_PATH=/fleetbase/console
ENV OCTANE_SERVER=frankenphp
-ENV FLEETBASE_VERSION=0.7.44
+ENV FLEETBASE_VERSION=0.7.45
# Set environment
ARG ENVIRONMENT=production
diff --git a/packages/core-api b/packages/core-api
index 4147cb35..e7ac7053 160000
--- a/packages/core-api
+++ b/packages/core-api
@@ -1 +1 @@
-Subproject commit 4147cb35ca4fa18ae896400c779500bc5b019b1e
+Subproject commit e7ac7053f4ddcd7845b329ee019541aeda74b9ff
diff --git a/packages/ember-ui b/packages/ember-ui
index eeff10a8..402fd42c 160000
--- a/packages/ember-ui
+++ b/packages/ember-ui
@@ -1 +1 @@
-Subproject commit eeff10a8ebe2d66900ae9d5a1e95dec9bd7ab283
+Subproject commit 402fd42cce123f18a603806b0e125db1af82353b
diff --git a/packages/fleetops b/packages/fleetops
index 4e2fe817..7ef50212 160000
--- a/packages/fleetops
+++ b/packages/fleetops
@@ -1 +1 @@
-Subproject commit 4e2fe8174e7325144700d866c09225f4da2ce4df
+Subproject commit 7ef50212b07f848f7e7e4cbf3760f7fe17d8359e
diff --git a/packages/fleetops-data b/packages/fleetops-data
index 41a65fbf..446e2974 160000
--- a/packages/fleetops-data
+++ b/packages/fleetops-data
@@ -1 +1 @@
-Subproject commit 41a65fbf71daf4924f2c9ad3ad76dbda35a02faa
+Subproject commit 446e29746a15e15e2706ccd4caafbd3429a3d9d8