Skip to content

Commit d2d59ad

Browse files
Updates analytics a bit
Signed-off-by: Cole Gentry <peapod2007@gmail.com>
1 parent b212b44 commit d2d59ad

6 files changed

Lines changed: 19 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ultralog"
3-
version = "1.4.1"
3+
version = "1.4.3"
44
edition = "2021"
55
description = "A high-performance ECU log viewer written in Rust"
66
authors = ["Cole Gentry"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A high-performance, cross-platform ECU log viewer written in Rust.
66

77
![CI](https://github.com/SomethingNew71/UltraLog/actions/workflows/ci.yml/badge.svg)
88
![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)
9-
![Version](https://img.shields.io/badge/version-1.4.1-green.svg)
9+
![Version](https://img.shields.io/badge/version-1.4.3-green.svg)
1010

1111
---
1212

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@
710710
<strong>Free and open source</strong> — no subscriptions, no licenses, just download and go.
711711
</p>
712712
<div class="hero-badges">
713-
<span class="version-badge">v1.4.1</span>
713+
<span class="version-badge">v1.4.3</span>
714714
<a href="https://github.com/SomethingNew71/UltraLog" class="opensource-badge" target="_blank">
715715
<i class="fa-brands fa-github"></i> Open Source
716716
</a>

src/analytics.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,18 @@ fn capture_event(event: AnalyticsEvent) {
105105
}
106106
}
107107

108+
/// Track when a channel is selected
109+
pub fn track_channel_selected(channel_count: usize) {
110+
let mut event = create_event("channel_selected");
111+
112+
event.properties.insert(
113+
"total_channels".to_string(),
114+
serde_json::json!(channel_count),
115+
);
116+
117+
capture_event(event);
118+
}
119+
108120
// ============================================================================
109121
// Public Analytics Functions
110122
// ============================================================================

src/app.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,9 @@ impl UltraLogApp {
709709
channel,
710710
color_index,
711711
});
712+
713+
// Track channel selection for analytics
714+
analytics::track_channel_selected(self.tabs[tab_idx].selected_channels.len());
712715
}
713716

714717
/// Remove a channel from the active tab's selection

wiki/Home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ UltraLog is a high-performance, cross-platform desktop application for viewing a
5353

5454
## Version Information
5555

56-
- **Current Version:** 1.4.1
56+
- **Current Version:** 1.4.3
5757
- **License:** AGPL-3.0
5858
- **Author:** Cole Gentry
5959

0 commit comments

Comments
 (0)