Skip to content

MMI-3336 Talkwalker Integration#2493

Merged
Fosol merged 1 commit intobcgov:devfrom
Fosol:mmi-3336
Sep 18, 2025
Merged

MMI-3336 Talkwalker Integration#2493
Fosol merged 1 commit intobcgov:devfrom
Fosol:mmi-3336

Conversation

@Fosol
Copy link
Collaborator

@Fosol Fosol commented Sep 16, 2025

Reports now support sections that pull in data from CSV files. Each section can transform the data into HTML.

There appears to be some limits to the links that Talkwalker provides. I'm not certain they provide static URLs for some of these feeds regrettably.

Summary

  • Add DB migration 1.3.34
  • Published tno-core:1.0.22
  • Updated Subscriber app
  • Updated API
  • Updated Reporting Service

Report Editor

image

Talkwalker Post List

image

Talkwalker Collage

image

@Fosol Fosol self-assigned this Sep 16, 2025
@Fosol Fosol added enhancement New feature or request DB Migration A DB Migration may require refreshing or simply updating your database. subscriber PR contains changes towards the subscriber application, tno-core update Indicates that there have been changes to our tno-core package, which can pose concurrency issues. editor labels Sep 16, 2025
@Fosol Fosol force-pushed the mmi-3336 branch 2 times, most recently from e679934 to f59bd25 Compare September 16, 2025 22:10
Add DB migration 1.3.34
Publish tno-core:1.0.22
var pageBreak = Settings.Sections.UsePageBreaks ? "page-break-after: always;" : "";
var utcOffset = ReportExtensions.GetUtcOffset(System.DateTime.Now, "Pacific Standard Time");
var hasImages = Sections.Any(section => section.Value.SectionType == TNO.Entities.ReportSectionType.Image);
var hasImages = Sections.Any(section => section.Value.SectionType == TNO.Entities.ReportSectionType.Image || section.Value.SectionType == TNO.Entities.ReportSectionType.Data);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who section if it's a data section.


if (!section.Value.IsEnabled) continue;
if (sectionContent.Length == 0 && section.Value.Settings.HideEmpty) continue;
if (sectionContent.Length == 0 && section.Value.Settings.HideEmpty
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hide data sections.

@@ -0,0 +1,151 @@
@using System
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New Razor template to convert an array of items from Talkwalker into an image collage.

@@ -0,0 +1,195 @@
@using System
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New Razor template to convert an array of items from Talkwalker into an list of popular posts.

@@ -0,0 +1,21 @@
@using System
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New Razor template to convert a JSON object into a summary paragraph..

@@ -0,0 +1,196 @@
export const TalkwalkerPostListTemplate = `@using System
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default Razor template

@@ -0,0 +1,21 @@
export const TalkwalkerSummaryTemplate = `@using System
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default Razor template

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated UI to hide the advanced editor by default. Added buttons to apply default templates we have created.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to CustomReport.cshtml file to see changes.

sectionData.Data = ex.GetAllMessages();
}
}
else if (settings.DataType?.Equals("csv", StringComparison.InvariantCultureIgnoreCase) == true)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can now handle CSV files. They are imported and converted to JSON.

@Fosol Fosol merged commit c60d6b5 into bcgov:dev Sep 18, 2025
3 checks passed
@Fosol Fosol deleted the mmi-3336 branch September 18, 2025 22:53
Fosol added a commit to Fosol/tno that referenced this pull request Sep 18, 2025
Add DB migration 1.3.34
Publish tno-core:1.0.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DB Migration A DB Migration may require refreshing or simply updating your database. editor enhancement New feature or request subscriber PR contains changes towards the subscriber application, tno-core update Indicates that there have been changes to our tno-core package, which can pose concurrency issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant