Skip to content

Commit 29dff6a

Browse files
author
李杰
committed
chore(release): bump version to 0.3.3
- feat(account): add sorting by creation time - feat(db): add created_at field to accounts table - feat(i18n): add creation time translations for all 17 languages - chore: add pre-push hook for auto-tagging
1 parent 0cf77f2 commit 29dff6a

27 files changed

Lines changed: 173 additions & 35 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
88

99
---
1010

11+
## [0.3.3] - 2026-01-24
12+
13+
### Added
14+
- **Account Management**: Added sorting by creation time. Accounts are now sorted by creation time (descending) by default.
15+
- **Database**: Added `created_at` field to the `accounts` table for precise account tracking.
16+
- **i18n**: Added "Creation Time" related translations for all 17 supported languages.
17+
1118
## [0.3.2] - 2026-01-23
1219

1320
### Added

CHANGELOG.zh-CN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
---
1010

11+
## [0.3.3] - 2026-01-24
12+
13+
### Added
14+
- **账号管理**: 新增按创建时间排序功能。账号现在默认按创建时间倒序排列(新创建的在前)。
15+
- **数据库**: 为 `accounts` 表新增了 `created_at` 字段,支持精确的账号追踪。
16+
- **国际化**: 为全部 17 种语言完善了"创建时间"相关的翻译支持。
17+
1118
## [0.3.2] - 2026-01-23
1219

1320
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "antigravity-cockpit-tools",
33
"private": true,
4-
"version": "0.3.2",
4+
"version": "0.3.3",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

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 = "antigravity-cockpit-tools"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
description = "Cockpit Tools"
55
authors = ["jlcodes"]
66
license = "CC-BY-NC-SA-4.0"

src-tauri/src/modules/account.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ pub fn add_account(email: String, name: Option<String>, token: TokenData) -> Res
137137
let account_id = Uuid::new_v4().to_string();
138138
let mut account = Account::new(account_id.clone(), email.clone(), token);
139139
account.name = name.clone();
140+
141+
let fingerprint = crate::modules::fingerprint::generate_fingerprint(email.clone())?;
142+
account.fingerprint_id = Some(fingerprint.id.clone());
140143

141144
save_account(&account)?;
142145

@@ -190,6 +193,8 @@ pub fn upsert_account(email: String, name: Option<String>, token: TokenData) ->
190193
modules::logger::log_warn(&format!("Account {} file missing ({}), recreating...", account_id, e));
191194
let mut account = Account::new(account_id.clone(), email.clone(), token);
192195
account.name = name.clone();
196+
let fingerprint = crate::modules::fingerprint::generate_fingerprint(email.clone())?;
197+
account.fingerprint_id = Some(fingerprint.id.clone());
193198
save_account(&account)?;
194199

195200
if let Some(idx_summary) = index.accounts.iter_mut().find(|s| s.id == account_id) {

src-tauri/src/modules/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub fn write_service_machine_id(service_machine_id: &str) -> Result<(), String>
9797

9898
conn.execute(
9999
"INSERT OR REPLACE INTO ItemTable (key, value) VALUES (?, ?)",
100-
["telemetry.serviceMachineId", service_machine_id],
100+
["storage.serviceMachineId", service_machine_id],
101101
)
102102
.map_err(|e| format!("写入 serviceMachineId 失败: {}", e))?;
103103

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": "Cockpit Tools",
4-
"version": "0.3.2",
4+
"version": "0.3.3",
55
"identifier": "com.jlcodes.antigravity-cockpit-tools",
66
"build": {
77
"beforeDevCommand": "npm run dev",

src/App.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4064,6 +4064,36 @@ html[data-theme="dark"] body {
40644064
pointer-events: none;
40654065
}
40664066

4067+
/* Sort Direction Toggle Button */
4068+
.accounts-page .sort-direction-btn {
4069+
width: 32px;
4070+
height: 32px;
4071+
margin-left: 6px;
4072+
border-radius: 10px;
4073+
border: 1px solid var(--border);
4074+
background: var(--bg-tertiary);
4075+
color: var(--text-secondary);
4076+
font-size: 16px;
4077+
cursor: pointer;
4078+
transition: all 0.2s ease;
4079+
display: flex;
4080+
align-items: center;
4081+
justify-content: center;
4082+
flex-shrink: 0;
4083+
}
4084+
4085+
.accounts-page .sort-direction-btn:hover {
4086+
background: var(--bg-hover);
4087+
color: var(--text-primary);
4088+
border-color: var(--border-hover);
4089+
transform: scale(1.05);
4090+
}
4091+
4092+
.accounts-page .sort-direction-btn:active {
4093+
transform: scale(0.95);
4094+
}
4095+
4096+
40674097
.accounts-page .filter-tab.active {
40684098
background: var(--gradient-primary);
40694099
color: white;

src/locales/ar.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@
152152
"sort": {
153153
"default": "افتراضي",
154154
"overall": "حسب الكوتا الإجمالية",
155-
"byGroup": "حسب كوتا {{group}}"
155+
"byGroup": "حسب كوتا {{group}}",
156+
"createdAt": "حسب وقت الإنشاء",
157+
"descTooltip": "تنازلي، انقر للتبديل إلى تصاعدي",
158+
"ascTooltip": "تصاعدي، انقر للتبديل إلى تنازلي",
159+
"toggleDirection": "تبديل اتجاه الترتيب"
156160
},
157161
"actions": {
158162
"viewDetails": "عرض التفاصيل",

0 commit comments

Comments
 (0)