Skip to content

Commit f9991f2

Browse files
committed
chore: update dependencies and improve project localization
- Updated Vite to version 8.0.16 in package.json. - Added "unknownProject" translations in multiple languages (German, English, Spanish, French, Japanese, Korean, Simplified Chinese, Traditional Chinese). - Enhanced project label handling in TodayOverview and VsCodeInsights components using getProjectDisplayName utility. - Implemented getProjectDisplayName function to derive project names from paths and provide localized fallback. - Added tests for getProjectDisplayName utility to ensure correct functionality. - Updated VS Code extension localization to include "unknownProject" key. - Created a comprehensive roadmap document for post-v2.0.0 planning.
1 parent 360e11a commit f9991f2

23 files changed

Lines changed: 657 additions & 135 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6666
- Added secondary confirmation and success/failure feedback for widget permission revoke actions to reduce accidental operations.
6767
- Added per-widget permission change timeline (grant/revoke actor + timestamp) for third-party widget governance audits.
6868
- Completed i18n coverage for newly added Widget permission matrix and Browser Usage/Dashboard incremental features across `en` / `zh-CN` / `zh-TW`.
69+
- **`getProjectDisplayName` helper** in `src/utils/format.ts` with unit tests: prefers `project_name`, falls back to the basename of `project_path`, and finally returns the localized `dashboard:unknownProject` label.
70+
- **`dashboard:unknownProject`** i18n key across all desktop locales (`en`, `zh-CN`, `zh-TW`, `ja`, `ko`, `fr`, `de`, `es`).
71+
- **`unknownProject`** runtime string to the VS Code extension i18n module, used by the extension dashboard panel when a project name is missing.
6972

7073
### Fixed
7174

@@ -75,6 +78,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
7578
- **Database encryption file-lock resilience** — encryption/decryption and plaintext wipe now retry on Windows file locks and fall back to a usable runtime plaintext database if the encrypted backup cannot be decrypted on startup.
7679
- **Database encryption disable flow** — fixed a bug where disabling encryption and restarting could corrupt or overwrite the latest plaintext with a stale encrypted backup. Disabling now preserves the current runtime plaintext and removes encrypted artifacts after verifying the plaintext is valid.
7780
- **Database open retry on restart** — added a short retry loop when opening the profile database during startup to avoid "localhost refused connection" / startup failures caused by Windows file-lock races after `app.restart()`.
81+
- **VS Code project name fallback** — when `project_name` is empty (for example, in detailed tracking where only the folder path was recorded), the Dashboard today overview and VS Code Insights project ranking now derive the display name from the opened folder path. If no folder information is available, they show a localized "Unknown project" label instead of "No data".
7882

7983
### Security
8084

@@ -84,6 +88,8 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
8488
- **CodeQL: hard-coded cryptographic value** — refactored salt/nonce generation in `src-tauri/src/db_encryption.rs` and `src-tauri/src/commands/data_reliability_cmd.rs` to use `OsRng.gen()` instead of zero-initialized arrays, eliminating false-positive hard-coded crypto alerts.
8589
- **CodeQL: workflow permissions** — added explicit `permissions: { contents: read, actions: write }` at workflow and job level in `.github/workflows/ci.yml`.
8690
- **CI `npm test` failure** — added frontend unit tests for `src/utils/format.ts` and a `vitest.config.ts` so `npm test` no longer exits with "No test files found".
91+
- **Patched npm vulnerabilities** — updated `vite` to `^8.0.16` in the root workspace to resolve the `server.fs.deny` Windows alternate-path bypass (GHSA-fx2h-pf6j-xcff) and the bundled `launch-editor` NTLMv2 hash disclosure via UNC paths (GHSA-v6wh-96g9-6wx3).
92+
- **Patched VS Code extension dependencies** — ran `npm audit fix` in `vscode-extension/` to update `markdown-it` to `14.2.0` (quadratic complexity DoS in smartquotes, GHSA-6v5v-wf23-fmfq), `form-data` to `4.0.6`, and `js-yaml` to `4.2.0`.
8793

8894
## [1.4.4] - 2026-06-06
8995

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) before submitting pull requests.
148148
## 🗺 Roadmap
149149

150150
- [Roadmap to v2.0.0 (Local-First)](docs/ROADMAP_v2.0.0.md)
151+
- [Roadmap Post-v2.0.0 (Extension Platform)](docs/ROADMAP_POST_v2.0.0.md)
151152

152153
---
153154

README_zh.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ TimeLens/
146146
## 🗺 路线图
147147

148148
- [v2.0.0 路线图(本地优先)](docs/ROADMAP_v2.0.0.md)
149+
- [v2.0.0 之后路线图(扩展平台)](docs/ROADMAP_POST_v2.0.0.md)
149150

150151
---
151152

docs/ROADMAP_FROM_1.4.3.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ This file is archived to avoid maintaining multiple active roadmap sources.
66

77
## Canonical Roadmap
88

9-
- Use `docs/ROADMAP_v2.0.0.md` as the only active local-first roadmap source.
10-
- The previous forward-looking milestones from this file are merged into the post-v2.0 outlook section in the canonical roadmap.
9+
- Use `docs/ROADMAP_v2.0.0.md` as the active roadmap source up to and including v2.0.0.
10+
- Use `docs/ROADMAP_POST_v2.0.0.md` for detailed planning of releases after v2.0.0.
11+
- The previous forward-looking milestones from this file are merged into the post-v2.0 outlook in `docs/ROADMAP_POST_v2.0.0.md`.
1112

1213
## Why This File Still Exists
1314

0 commit comments

Comments
 (0)