Skip to content

Commit 35f774e

Browse files
knhagepozil
andauthored
Changed some labels to expand the CDC acronym. (#14)
* Changed some labels to expand the CDC acronym. * Updated event type dropdown labels for change events. * Removed remaining CDC abbreviations * Release 2.6.0 Co-authored-by: pozil <philippe.ozil@gmail.com>
1 parent d1701e7 commit 35f774e

File tree

7 files changed

+448
-414
lines changed

7 files changed

+448
-414
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Github Workflow](https://github.com/pozil/streaming-monitor/workflows/CI/badge.svg?branch=master)](https://github.com/pozil/streaming-monitor/actions) [![codecov](https://codecov.io/gh/pozil/streaming-monitor/branch/master/graph/badge.svg)](https://codecov.io/gh/pozil/streaming-monitor)
44

5-
This Lightning App allows to monitor streaming events: PushTopic events, generic events, standard and custom platform events, CDC events and monitoring events.
5+
This Lightning App allows to monitor streaming events: PushTopic events, generic events, standard and custom platform events, Change Data Capture events, and monitoring events.
66

77
[Presentation Video](https://youtu.be/T9HT-TTCz2s)
88

package-lock.json

Lines changed: 429 additions & 398 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "streaming-monitor",
33
"private": true,
4-
"version": "2.5.0",
4+
"version": "2.6.0",
55
"description": "A Lightning app for monitoring streaming events: PushTopic, generic, platform events, CDC events and monitoring events.",
66
"engines": {
77
"node": ">= 10.13.0",
@@ -20,14 +20,14 @@
2020
},
2121
"author": "Philippe Ozil",
2222
"devDependencies": {
23-
"@salesforce/eslint-config-lwc": "^0.7.0",
23+
"@salesforce/eslint-config-lwc": "^0.8.0",
2424
"@salesforce/sfdx-lwc-jest": "^0.10.2",
25-
"eslint": "^7.14.0",
26-
"husky": "^4.3.0",
27-
"lint-staged": "^10.5.2",
25+
"eslint": "^7.17.0",
26+
"husky": "^4.3.7",
27+
"lint-staged": "^10.5.3",
2828
"prettier": "^2.2.1",
2929
"prettier-plugin-apex": "^1.7.0",
30-
"semver": "^7.3.2"
30+
"semver": "^7.3.4"
3131
},
3232
"husky": {
3333
"hooks": {

src/main/default/lwc/actions/actions.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<p>
2020
Subscribe to all streaming channels&nbsp;
2121
<lightning-helptext
22-
content='Custom Change Data Capture (CDC) "group channels" cannot be automatically discovered. Supported channels: PushTopic, Generic, Platform Events, Standard CDC (standard and custom objects) and Monitoring Events.'
22+
content="Custom Change Data Capture channels cannot be automatically discovered. Supported channels: PushTopic, Generic, Platform events, Change Data Capture events and Monitoring events."
2323
></lightning-helptext>
2424
</p>
2525
<lightning-combobox
@@ -85,11 +85,14 @@
8585
<template if:true={isCDCSub}>
8686
<c-notice>
8787
<p slot="message">
88-
CDC events must be enabled in&nbsp;
88+
Enable Change Data Capture events in&nbsp;
8989
<a
9090
href="/lightning/setup/CdcObjectEnablement/home"
9191
>Setup</a
92-
>&nbsp;in order to receive them.
92+
>&nbsp;to receive them on the
93+
<code>/data/ChangeEvents</code> channel or the
94+
single-event channels. This doesn't apply to
95+
custom channels you define.
9396
</p>
9497
</c-notice>
9598
</template>
@@ -229,8 +232,8 @@
229232
event.
230233
</template>
231234
<template if:true={isCustomCDCReg}>
232-
Custom CDC channels cannot be declared via user
233-
interface. Follow these&nbsp;
235+
Custom Change Data Capture channels cannot be declared
236+
via the user interface. Follow these&nbsp;
234237
<a
235238
rel="noopener noreferrer"
236239
target="_blank"

src/main/default/lwc/actions/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default class Actions extends LightningElement {
132132
return 'Waiting for event type';
133133
}
134134
if (this.subEventType === EVT_CDC_CUSTOM) {
135-
return 'Custom CDC events require manual channel input';
135+
return 'The /data/ChangeEvents channel and custom channels require manual channel input';
136136
}
137137
const eventDefinition = EVENT_TYPES.find(
138138
(e) => e.value === this.subEventType

src/main/default/lwc/streamingMonitor/streamingMonitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default class StreamingMonitor extends LightningElement {
8080
) {
8181
showToast =
8282
!this.ignoreSubscribeErrors && isCDCChannel(subChannel);
83-
errorMessage = `Failed to subscribe to ${subChannel}. Is the CDC event active?`;
83+
errorMessage = `Failed to subscribe to ${subChannel}. Is the Change Data Capture event active?`;
8484
}
8585
// Subscribe rejected by security policy
8686
else if (

src/main/default/lwc/streamingUtility/streamingUtility.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ export const EVENT_TYPES = [
3030
channelPrefix: '/event/'
3131
},
3232
{
33-
label: 'CDC standard event',
33+
label: 'Change Data Capture event',
3434
value: EVT_CDC_STANDARD,
3535
channelPrefix: '/data/'
3636
},
3737
{
38-
label: 'CDC custom event',
38+
label: 'Change Data Capture channel',
3939
value: EVT_CDC_CUSTOM,
4040
channelPrefix: '/data/'
4141
},

0 commit comments

Comments
 (0)