Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions docs/usage-guide/sms.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,7 @@ notifications and communications.

![Short code from Africanstalking](images/africanstalking-sms-shortcode.png)

### Step 4: Register SMS Delivery Callback URL

1. In your AfricasTalking dashboard, go to **SMS** → **Callback URLs**
2. Set up the delivery callback URL to point to your MPM instance: Copy the url
from the plugin overview page

```bash
https://your-mpm-domain.com/api/africas-talking/callback/1/delivery-reports
```

3. Enable delivery reports to track SMS delivery status

![Register callback URL for sms delivery](images/africanstalking-sms-delivery-callback.png)

### Step 5: Enable AfricasTalking Plugin in MPM
### Step 4: Enable AfricasTalking Plugin in MPM

1. Log into your MPM admin panel
2. Navigate to **Plugins** section
Expand All @@ -74,7 +60,7 @@ notifications and communications.

![Plugin settings page](images/africanstalking-enable-plugin.png)

### Step 6: Configure Plugin Credentials
### Step 5: Configure Plugin Credentials

1. After enabling the plugin, go to **Plugins** → **AfricasTalking** → **Settings**
2. Enter the following credentials:
Expand All @@ -86,6 +72,20 @@ notifications and communications.

![Plugin Overview page](images/africanstalking-cred-overview-page.png)

### Step 6: Register SMS Delivery Callback URL

1. In your AfricasTalking dashboard, go to **SMS** → **Callback URLs**
2. Set up the delivery callback URL to point to your MPM instance: Copy the url
from the plugin overview page

```bash
https://your-mpm-domain.com/api/africas-talking/callback/1/delivery-reports
```

3. Enable delivery reports to track SMS delivery status

![Register callback URL for sms delivery](images/africanstalking-sms-delivery-callback.png)

### Step 7: Test SMS Functionality

1. Navigate to **Customers** in your MPM dashboard
Expand Down
97 changes: 55 additions & 42 deletions src/frontend/src/ExportedRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,48 +343,6 @@ export const exportedRoutes = [
},
],
},
{
path: "dashboards/mini-grid",
component: ChildRouteWrapper,
meta: {
sidebar: {
enabled: true,
name: "Mini-Grid",
},
},
children: [
{
path: "",
component: MiniGridOverviewPage,
meta: {
layout: "default",
breadcrumb: {
level: "base",
name: "Mini-Grids",
link: "/dashboards/mini-grid",
},
sidebar: {
enabled: true,
name: "Mini-Grid",
},
},
},
{
path: ":id",
component: MiniGridDetailPage,
meta: {
layout: "default",
breadcrumb: {
level: "detail",
name: "Mini-Grid",
link: "/dashboards/mini-grid",
target: "id",
},
},
},
],
},

{
path: "dashboards/agent-performance",
component: ChildRouteWrapper,
Expand Down Expand Up @@ -822,6 +780,61 @@ export const exportedRoutes = [
},
],
},
{
path: "",
component: ChildRouteWrapper,
meta: {
sidebar: {
enabled: true,
name: "Mini-Grid",
icon: "bolt",
},
},
children: [
{
path: "mini-grids",
component: ChildRouteWrapper,
meta: {
layout: "default",
sidebar: {
enabled: true,
name: "Overview",
},
},
children: [
{
path: "",
component: MiniGridOverviewPage,
meta: {
layout: "default",
breadcrumb: {
level: "base",
name: "Mini-Grids",
link: "/mini-grids",
},
sidebar: {
enabled: true,
name: "Overview",
},
},
},
{
path: ":id",
component: MiniGridDetailPage,
meta: {
layout: "default",
breadcrumb: {
level: "base",
name: "Mini-Grid",
link: "/mini-grids",
target: "id",
},
},
},
],
},
],
},
{
// FIXME: Should this be part of the Customer route?
path: "/sold-appliance-detail",
Expand Down
5 changes: 5 additions & 0 deletions src/frontend/src/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
"agentCommissionUpdated": "Agent Commission Updated!",
"agentDashboard": "Agent Overview",
"agentList": "Agent List",
"miniGridDashboard": "Mini-Grid Overview",
"miniGridList": "Mini-Grid List",
"agentPerformanceDashboard": "Agent Performance Dashboard",
"agentTicket": "Agent Ticket | Agent Tickets",
"agentTransaction": "Agent Transaction | Agent Transactions",
Expand Down Expand Up @@ -369,6 +371,9 @@
"toDate": "To Date",
"topPerformingAgents": "Top Performing Agents",
"totalAgents": "Total Agents",
"totalClusters": "Total Clusters",
"totalCities": "Total Cities",
"totalMiniGrids": "Total Mini-Grids",
"totalCommission": "Total Commission",
"totalCost": "Total Cost",
"totalCustomers": "Total Customers",
Expand Down
Loading