Skip to content

Commit 9f9cf5e

Browse files
committed
MMI-3269 Override report from address
Update DevOps Publish tno-core:1.0.17
1 parent e554d0a commit 9f9cf5e

File tree

22 files changed

+83
-43
lines changed

22 files changed

+83
-43
lines changed

app/editor/.yarn/cache/tno-core-npm-1.0.15-e6f529dcb7-6afb49b193.zip renamed to app/editor/.yarn/cache/tno-core-npm-1.0.17-238c76d901-997c603c0d.zip

2.02 MB
Binary file not shown.

app/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"redux-logger": "3.0.6",
6161
"styled-components": "6.1.11",
6262
"stylis": "4.3.2",
63-
"tno-core": "1.0.15"
63+
"tno-core": "1.0.17"
6464
},
6565
"devDependencies": {
6666
"@simbathesailor/use-what-changed": "2.0.0",

app/editor/src/features/admin/reports/ReportFormSections.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,19 @@ export const ReportFormSections = () => {
123123
<Row gap="1rem">
124124
<Col className="frm-in options" flex="1">
125125
<div>
126-
<label>Subject Line Options</label>
126+
<label>Email Options</label>
127127
</div>
128-
<Col>
129-
<p>Customize the email subject line.</p>
130-
<Row alignItems="center">
131-
<Col flex="1">
132-
<FormikText label="Text" name="settings.subject.text" required />
133-
</Col>
134-
<FormikCheckbox
135-
label="Show Today's Date"
136-
name="settings.subject.showTodaysDate"
137-
tooltip="Whether today's date will be included in the report subject line"
138-
/>
139-
</Row>
140-
</Col>
128+
<FormikText label="From" name="settings.from" />
129+
<Row alignItems="center">
130+
<Col flex="1">
131+
<FormikText label="Subject" name="settings.subject.text" required />
132+
</Col>
133+
<FormikCheckbox
134+
label="Show Today's Date"
135+
name="settings.subject.showTodaysDate"
136+
tooltip="Whether today's date will be included in the report subject line"
137+
/>
138+
</Row>
141139
</Col>
142140
<ReportOptions />
143141
</Row>

app/editor/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12209,7 +12209,7 @@ __metadata:
1220912209
sass-extract-loader: 1.1.0
1221012210
styled-components: 6.1.11
1221112211
stylis: 4.3.2
12212-
tno-core: 1.0.15
12212+
tno-core: 1.0.17
1221312213
typescript: 4.9.5
1221412214
vitest: 3.0.7
1221512215
languageName: unknown
@@ -16674,9 +16674,9 @@ __metadata:
1667416674
languageName: node
1667516675
linkType: hard
1667616676

16677-
"tno-core@npm:1.0.15":
16678-
version: 1.0.15
16679-
resolution: "tno-core@npm:1.0.15"
16677+
"tno-core@npm:1.0.17":
16678+
version: 1.0.17
16679+
resolution: "tno-core@npm:1.0.17"
1668016680
dependencies:
1668116681
"@elastic/elasticsearch": ^8.13.1
1668216682
"@fortawesome/free-solid-svg-icons": ^6.4.2
@@ -16709,7 +16709,7 @@ __metadata:
1670916709
styled-components: ^6.1.11
1671016710
stylis: ^4.3.2
1671116711
yup: ^1.1.1
16712-
checksum: 6afb49b193fdd9553e3c625846af61fa20f7ef8475dad175ce841652159416fff2802881e069595084c2f6d81ace0bc31a64de8ce980637047c2973927baaa99
16712+
checksum: 997c603c0df481a9ba0128058c8b3cedfede511248c5b93f6fcd341b9756f5cd4d4480d4e924b04222299cfe8f44a681d6983f9485e7a7446c11bca0630ee1bf
1671316713
languageName: node
1671416714
linkType: hard
1671516715

app/subscriber/.yarn/cache/tno-core-npm-1.0.15-e6f529dcb7-6afb49b193.zip renamed to app/subscriber/.yarn/cache/tno-core-npm-1.0.17-238c76d901-997c603c0d.zip

2.02 MB
Binary file not shown.

app/subscriber/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"sheetjs": "file:packages/xlsx-0.20.1.tgz",
4646
"styled-components": "6.1.11",
4747
"stylis": "4.3.2",
48-
"tno-core": "1.0.15"
48+
"tno-core": "1.0.17"
4949
},
5050
"devDependencies": {
5151
"@testing-library/jest-dom": "6.6.3",

app/subscriber/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12029,7 +12029,7 @@ __metadata:
1202912029
sheetjs: "file:packages/xlsx-0.20.1.tgz"
1203012030
styled-components: 6.1.11
1203112031
stylis: 4.3.2
12032-
tno-core: 1.0.15
12032+
tno-core: 1.0.17
1203312033
typescript: 4.9.5
1203412034
vitest: 3.0.7
1203512035
languageName: unknown
@@ -16367,9 +16367,9 @@ __metadata:
1636716367
languageName: node
1636816368
linkType: hard
1636916369

16370-
"tno-core@npm:1.0.15":
16371-
version: 1.0.15
16372-
resolution: "tno-core@npm:1.0.15"
16370+
"tno-core@npm:1.0.17":
16371+
version: 1.0.17
16372+
resolution: "tno-core@npm:1.0.17"
1637316373
dependencies:
1637416374
"@elastic/elasticsearch": ^8.13.1
1637516375
"@fortawesome/free-solid-svg-icons": ^6.4.2
@@ -16402,7 +16402,7 @@ __metadata:
1640216402
styled-components: ^6.1.11
1640316403
stylis: ^4.3.2
1640416404
yup: ^1.1.1
16405-
checksum: 6afb49b193fdd9553e3c625846af61fa20f7ef8475dad175ce841652159416fff2802881e069595084c2f6d81ace0bc31a64de8ce980637047c2973927baaa99
16405+
checksum: 997c603c0df481a9ba0128058c8b3cedfede511248c5b93f6fcd341b9756f5cd4d4480d4e924b04222299cfe8f44a681d6983f9485e7a7446c11bca0630ee1bf
1640616406
languageName: node
1640716407
linkType: hard
1640816408

libs/net/ches/ChesService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public async Task<EmailResponseModel> SendEmailAsync(IEmail email)
228228
{
229229
ArgumentNullException.ThrowIfNull(email);
230230

231-
email.From = this.Options.From ?? email.From;
231+
email.From = !String.IsNullOrWhiteSpace(this.Options.From) ? this.Options.From : email.From;
232232

233233
if (this.Options.BccUser)
234234
{

libs/net/kafka/Models/ReportRequestModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public class ReportRequestModel
5151
/// </summary>
5252
public int? AssignedId { get; set; }
5353

54+
/// <summary>
55+
/// get/set - Email Address that this report will be sent from.
56+
/// </summary>
57+
public string? From { get; set; }
58+
5459
/// <summary>
5560
/// get/set - Comma separated email addresses that this report will be sent to instead of subscribers.
5661
/// </summary>

libs/net/models/Settings/ReportSettingsModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ namespace TNO.API.Models.Settings;
66
public class ReportSettingsModel
77
{
88
#region Properties
9+
/// <summary>
10+
/// get/set - The email from address.
11+
/// </summary>
12+
public string From { get; set; } = "";
13+
914
/// <summary>
1015
/// get/set - Subject configuration settings.
1116
/// </summary>
@@ -42,6 +47,7 @@ public ReportSettingsModel() { }
4247

4348
public ReportSettingsModel(Dictionary<string, object> settings, JsonSerializerOptions options)
4449
{
50+
this.From = settings.GetDictionaryJsonValue<string>("from", "", options)!;
4551
this.Subject = settings.GetDictionaryJsonValue<ReportSubjectSettingsModel>("subject", new(), options)!;
4652
this.Headline = settings.GetDictionaryJsonValue<ReportHeadlineSettingsModel>("headline", new(), options)!;
4753
this.Content = settings.GetDictionaryJsonValue<ReportContentSettingsModel>("content", new(), options)!;

0 commit comments

Comments
 (0)