Skip to content

Commit dba4653

Browse files
committed
feat: update browser usage localization and enhance no data hints
1 parent 25db238 commit dba4653

5 files changed

Lines changed: 75 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ src-tauri/windows/out/TimeLens-0.5.0.0.msix
5353
src-tauri/windows/msix-staging/AppxManifest.xml
5454
src-tauri/windows/msix-staging/timelens.exe
5555
browser-extension.zip
56+
src-tauri/windows/msix-staging/timelens.exe

CHANGELOG.md

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

66
---
77

8+
## [1.0.0] - 2026-05-01
9+
10+
### Added
11+
12+
#### Categories
13+
14+
- New **Categories** page — manually group apps into custom categories such as "Work / Entertainment / Social / Utilities"
15+
- **CategoryInsights** component — new dashboard card visualizing category time distribution and trends via pie and area charts
16+
- Category data persisted to SQLite with aggregate queries and stats by category
17+
18+
#### Goals
19+
20+
- New **Goals** page — create, edit, and delete daily / weekly usage goals
21+
- Goals can target a **category** or a **single app**
22+
- Configurable duration down to hour + minute granularity
23+
- **GoalProgressBar** component — new dashboard progress bars showing completion percentage for each goal
24+
25+
#### Focus Mode
26+
27+
- New **FocusMode** page — start focused timer sessions
28+
- Real-time countdown display with option to abandon mid-session
29+
- Configurable focus duration
30+
31+
#### Dashboard Enhancements
32+
33+
- **TrendComparePanel** — compare usage trends across different periods (period-over-period change, absolute and percentage deltas, color-coded)
34+
- **UsageHeatmap** — yearly usage heatmap rendered as calendar cells showing daily screen-time intensity over the past year
35+
36+
#### Browser Extension
37+
38+
- New **Chrome browser extension** (`browser-extension/`)
39+
- Tracks browsing time per website / tab
40+
- Standalone popup showing browser usage stats (progress bars + percentages)
41+
- Supports `en` / `zh_CN` localization
42+
- Includes `build-chrome.js` script for one-click packaging
43+
44+
#### API Server
45+
46+
- New local **REST API** module (`src-tauri/src/api_server/`)
47+
- Exposes endpoints for third-party tools (e.g. Obsidian, Raycast) to read usage data
48+
- Supports querying app lists, usage statistics, and browser data
49+
50+
#### UI / Components
51+
52+
- **ExePickerInput** — improved app-picker component supporting search / selection from currently running processes and historical executables
53+
- **WidgetCenter upgrades** — improved per-widget startup configuration and friendlier empty-state messaging
54+
55+
#### Internationalization
56+
57+
- New i18n namespaces:
58+
- `categories` — category management labels
59+
- `goals` — goal system labels
60+
- `focus` — focus mode labels
61+
- `browserUsage` — browser extension labels
62+
- `dashboard`, `settings`, and `widgets` namespaces significantly expanded to cover all new features
63+
64+
### Changed
65+
66+
- Version bumped to **1.0.0**, marking the first stable release
67+
- `package.json`, `src-tauri/Cargo.toml`, and `src-tauri/tauri.conf.json` synchronized to the new version
68+
- Settings page refactored with new configuration entries for categories, goals, and browser data
69+
- Database schema significantly expanded with new tables / indexes for categories, goals, and browser usage
70+
- Backend command modules (`storage_cmd`, `widget_cmd`, etc.) refactored to support new features
71+
72+
---
73+
874
## [0.5.0] - 2026-05-01
975

1076
### Added

src/i18n/locales/en/browserUsage.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"hasLimit": "Limit",
2222
"noBrowserData": "No browser data yet",
2323
"noBrowserDataHint": "Install and connect the browser extension to track website usage.",
24+
"noBrowserDataEdgeAddon": "Search \"TimeLens Browser Companion\" in the Edge Add-ons Store to get started.",
2425
"noResults": "No domains found",
2526
"ignoredDomains": "Ignored Domains",
2627
"ignoredDomainsHint": "Ignored domains are hidden from stats and not tracked against any limit.",

src/i18n/locales/zh-CN/browserUsage.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"hasLimit": "限额",
2222
"noBrowserData": "暂无浏览器数据",
2323
"noBrowserDataHint": "请安装并连接浏览器扩展,以追踪网站使用情况。",
24+
"noBrowserDataEdgeAddon": "前往 Edge 加载项商店搜索 \"TimeLens Browser Companion\" 以开始使用。",
2425
"noResults": "未找到相关域名",
2526
"ignoredDomains": "已忽略的域名",
2627
"ignoredDomainsHint": "已忽略的域名不会出现在统计中,也不会计入限额。",

src/pages/BrowserUsage/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,12 @@ export default function BrowserUsage() {
373373
{search ? t("browserUsage:noResults") : t("browserUsage:noBrowserData")}
374374
</p>
375375
{!search && (
376-
<p className="text-text-muted text-xs">{t("browserUsage:noBrowserDataHint")}</p>
376+
<>
377+
<p className="text-text-muted text-xs">{t("browserUsage:noBrowserDataHint")}</p>
378+
<p className="text-accent-blue text-xs font-medium">
379+
{t("browserUsage:noBrowserDataEdgeAddon")}
380+
</p>
381+
</>
377382
)}
378383
</div>
379384
) : (

0 commit comments

Comments
 (0)