Skip to content

Commit 52663c2

Browse files
committed
feat: update changelog and documentation for v2.0.2 release, add debug logging and fix timezone issues
1 parent 6bc0111 commit 52663c2

11 files changed

Lines changed: 29 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
55

66
---
77

8+
## [2.0.2] - 2026-07-27
9+
10+
### Added
11+
12+
- **Browser extension debug logging** — the browser extension now emits detailed `[TimeLens API]`, `[TimeLens BG]`, and `[TimeLens Popup]` console logs for connection discovery, cache decisions, session lifecycle, sync attempts, and bridge-signature checks, making it easier to diagnose connection issues in Edge/Chrome DevTools.
13+
- **Redesigned GitHub Pages documentation site** — rewrote all GitHub Pages HTML docs and added dedicated pages for the two extensions:
14+
- `docs/browser-extension/index.html` — Edge/Chrome extension overview, install steps, connection settings (manual port, cache mode, auto fallback scan), and troubleshooting.
15+
- `docs/vscode-extension/index.html` — VS Code extension overview, Marketplace/VSIX install, settings, commands, and troubleshooting.
16+
- `docs/help/index.html` — user help center with quick start, FAQ, and scenario-based troubleshooting.
17+
- Updated `docs/index.html` with v2.0.2 branding and links to the new pages; fixed footer links to use GitHub blob URLs for static-page compatibility.
18+
19+
### Fixed
20+
21+
- **Browser Usage timezone mismatch**`browser_sessions.ended_at` is stored as UTC RFC3339 from the browser extension, but the desktop Browser Usage page queried by local date. This caused the page to appear empty when local midnight had passed while the session was still recorded on the previous UTC day. Queries in `get_browser_domain_stats`, `get_browser_domain_stats_for_hour`, and `get_browser_domain_today_seconds` now convert `ended_at` to local time (`date(ended_at, 'localtime')`) before comparing with user-facing dates.
22+
- **Duplicate React keys in Browser Usage** — recent session list keys now use `session.id` when available, falling back to a composite including the array index, preventing the "two children with the same key" warning when the same URL was visited within the same millisecond.
23+
24+
---
25+
826
## [2.0.1] - 2026-07-18
927

1028
### Changed

docs/browser-extension/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ <h3>网页数据未显示在桌面端</h3>
243243
</div>
244244
<div class="trouble-card reveal">
245245
<h3>端口 49152 被占用</h3>
246-
<p>TimeLens v2.0.1 桌面端会在 49152 被占用时自动扫描 <code>49152–50151</code> 并绑定到第一个可用端口。扩展侧也支持自动回退扫描,因此无需手动查找实际端口。</p>
246+
<p>TimeLens v2.0.2 桌面端会在 49152 被占用时自动扫描 <code>49152–50151</code> 并绑定到第一个可用端口。扩展侧也支持自动回退扫描,因此无需手动查找实际端口。</p>
247247
</div>
248248
</div>
249249
</div>

docs/help/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h2>FAQ</h2>
143143
</button>
144144
<div class="faq-answer">
145145
<div class="faq-answer-inner">
146-
<p>TimeLens v2.0.1 已内置端口回退机制:</p>
146+
<p>TimeLens v2.0.2 已内置端口回退机制:</p>
147147
<ul>
148148
<li>桌面端启动时若 49152 被 Windows 保留或安全软件拦截,会自动扫描 <code>49152–50151</code> 并绑定第一个可用端口。</li>
149149
<li>桌面端的 Browser Usage / VS Code Insights 页面会显示当前实际绑定的本地 API 端口。</li>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<img src="assets/icon.png" alt="TimeLens" class="hero-icon" />
4747
<span>TimeLens</span>
4848
<span class="hero-badge-sep">·</span>
49-
<span class="hero-badge-version" id="heroVersion">v2.0.1</span>
49+
<span class="hero-badge-version" id="heroVersion">v2.0.2</span>
5050
</div>
5151
<h1 class="hero-title reveal">
5252
洞悉每一分桌面时光

docs/vscode-extension/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h3>数据未同步</h3>
282282
</div>
283283
<div class="trouble-card reveal">
284284
<h3>端口 49152 被占用</h3>
285-
<p>TimeLens v2.0.1 桌面端会在 49152 不可用时自动扫描 <code>49152–50151</code> 并绑定到第一个可用端口。扩展也支持自动回退扫描;如未触发,请检查 <code>timelens.apiBaseUrl</code> 是否留空或正确。</p>
285+
<p>TimeLens v2.0.2 桌面端会在 49152 不可用时自动扫描 <code>49152–50151</code> 并绑定到第一个可用端口。扩展也支持自动回退扫描;如未触发,请检查 <code>timelens.apiBaseUrl</code> 是否留空或正确。</p>
286286
</div>
287287
</div>
288288
</div>

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "timelens",
33
"private": true,
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"license": "MIT",
66
"authors": [
77
"Shan Wenxiao"

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "timelens"
3-
version = "2.0.1"
3+
version = "2.0.2"
44
description = "A screen time tracker and desktop widget manager"
55
authors = ["Shan Wenxiao"]
66
license = "MIT"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "TimeLens",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"identifier": "ShanWenxiao.TimeLens-TimeManagementAppwithWidgets",
66
"build": {
77
"beforeDevCommand": "npm run dev",

0 commit comments

Comments
 (0)