Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
c3e641c
fix(ui): share the searchable desktop language picker
Nov 18, 2026
18abcd7
Redesign Ask Anything around a modular prompt box
Nov 18, 2026
25acad2
Align Ask geometry assertions with the multiline prompt
Nov 18, 2026
fd37932
Keep streaming follow stable across viewport resizes
Nov 18, 2026
f5ce079
Recover QA layout when WebKit misses a resize notification
Nov 18, 2026
e1c2ebc
Model real touch gestures in the scroll ownership fixture
Nov 18, 2026
ff3f0c5
Update QA runtime contracts for the composer modules
Nov 18, 2026
81cc300
Keep service usage retention deterministic and reopenable
Nov 18, 2026
a1797d6
test(ui): follow the shared interface language picker
Nov 18, 2026
1de69fa
fix(overview): rank Windows apps and show local desktop icons
Nov 18, 2026
350e80d
fix(windows): compile the icon adapter for the Cargo target
Nov 18, 2026
692b3be
fix(build): preserve the existing local ASR target contract
Nov 18, 2026
0fc8618
Merge onboarding language picker follow-up
Nov 19, 2026
71ba7ac
Merge service usage ledger prerequisite
Nov 19, 2026
519387e
Merge desktop app activity ranking and icons
Nov 19, 2026
d55fc03
Merge Ask Anything prompt box
Nov 19, 2026
046c479
refactor(dev): tighten the integrated client module boundaries
Nov 19, 2026
da2a7c3
refactor(usage): name the retained ledger update boundary
Nov 19, 2026
27c53ca
fix(overview): stack app icons without duplicate labels
Nov 19, 2026
7ef3e7f
Merge remote-tracking branch 'origin/feat/ask-promptbox' into feat/as…
Nov 19, 2026
2c5a6e3
Match Rare UI prompt motion and recover near-simultaneous Fn+Space
Nov 19, 2026
d8efbc5
Match the reference editor’s multiline height
Nov 19, 2026
bd31d4b
Update remaining QA frame assertions for rounded corners
Nov 19, 2026
c6373ba
Scale the Ask Anything window and composer on large displays
Nov 19, 2026
fbd092e
Keep the composer spring aligned under display scaling
Nov 19, 2026
4a9e508
Merge the updated Ask Anything redesign into Dev
Nov 19, 2026
dedb3fb
Unify text, credential, and search fields
Nov 19, 2026
84cc37d
Open Ask on the recording edge and keep dictation in the draft
Nov 19, 2026
5d32ccc
Assert the shortcut search surface on its shared field frame
Nov 19, 2026
ba174c0
Use a shared Rare UI toast for non-modal feedback
Nov 19, 2026
3a02b8a
Validate toast panel dimensions across scale and theme
Nov 19, 2026
af2d985
Integrate Ask recording and draft dictation into Dev
Nov 19, 2026
3b5bc10
Scope Ask draft dictation to the native window
Nov 19, 2026
b1f56bd
Keep Ask window stable and use the reference recording capsule
Nov 19, 2026
2436a4b
Keep the draft intact through transcription and report recording errors
Nov 19, 2026
3d9200a
Keep Ask send and stop hit targets stable during icon transitions
Nov 19, 2026
8b19fe1
Fix Dev notifications, cancel actions, and vocabulary layout
Nov 19, 2026
262c42d
Cover cancelling an experimental download on its real Settings page
Nov 19, 2026
16b0ea7
Follow the dictation feedback policy in the Windows contract
Nov 19, 2026
f5ba5cc
Validate the native capsule visibility policy directly
Nov 19, 2026
e5a66d3
Support desktop-only verification for pull requests
Nov 19, 2026
aca8351
Merge updated Ask Anything with Dev feedback fixes
Nov 19, 2026
364d7ac
Keep the macOS accessibility guide from activating OpenLess
Nov 19, 2026
910b90d
Keep toast geometry stable and clarify cloud and download feedback
Nov 19, 2026
758f240
Present the macOS main window after the themed first frame
Nov 19, 2026
8300b79
Stage macOS launch glass and paint the entire activity grid together
Nov 19, 2026
380b808
Match light input surfaces to the shared select trigger
Nov 20, 2026
c19ce52
Align vocabulary filter track and selection corners
Nov 20, 2026
efa96e0
Reorder vocabulary toolbar around the search field
Nov 20, 2026
63e4a3a
Use a compact add-word button and an undimmed blur backdrop
Nov 20, 2026
50f4cc7
Keep vocabulary background blurred through modal exit
Nov 20, 2026
eb10243
Fit five vocabulary cards and pan overflowing phrases
Nov 20, 2026
d28fd6a
Loop overflowing vocabulary labels on card hover
Nov 20, 2026
dcc1778
Align startup and authorization checks with Dev behavior
Nov 20, 2026
75b97cb
Add stable vocabulary selection and corner hit badges
Nov 20, 2026
cd358b2
Update the main WebView unload contract for URL recovery
Nov 20, 2026
e2dc0a7
Morph vocabulary selection control and keep the idle delete action vi…
Nov 20, 2026
2654fa2
Show plain vocabulary counts and hide batch actions outside selection
Nov 20, 2026
893d80f
Lift held vocabulary cards above a subtle local blur
Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ jobs:
# true。push / tag / 手动运行不带基线,因此始终全量验证。
changes:
name: Changed areas
runs-on: ubuntu-latest
runs-on: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:desktop-only') && 'macos-latest' || 'ubuntu-latest' }}
timeout-minutes: 10
outputs:
desktop-only: ${{ steps.detect.outputs.desktop-only }}
tauri: ${{ steps.detect.outputs.tauri }}
msrv: ${{ steps.detect.outputs.msrv }}
harmony: ${{ steps.detect.outputs.harmony }}
Expand All @@ -67,8 +68,10 @@ jobs:
working-directory: openless-all/app
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
DESKTOP_ONLY: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:desktop-only') }}
run: |
set -euo pipefail
echo "desktop-only=$DESKTOP_ONLY" | tee -a "$GITHUB_OUTPUT"
for area in tauri msrv harmony frontend android capsule ios-device; do
verdict=$(bash scripts/ci-changed-areas.sh "$area" "$BASE_SHA")
# 失败即运行:脚本读不到差异时返回 true,这里也只接受明确的 false。
Expand All @@ -84,7 +87,7 @@ jobs:
# Keep existing check-run names for branch protection compatibility.
name: test
needs: [changes]
if: (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.ios != 'false'
if: needs.changes.outputs.desktop-only != 'true' && (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.ios != 'false'
runs-on: xcode-27
timeout-minutes: 30
env:
Expand Down Expand Up @@ -146,7 +149,7 @@ jobs:
# same two VMs instead of adding ~8 minutes of tests before a ~15 minute build.
# Both checks still have to pass; this workflow does not publish the IPA.
needs: [changes]
if: (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.ios != 'false'
if: needs.changes.outputs.desktop-only != 'true' && (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.ios != 'false'
runs-on: xcode-27
timeout-minutes: 60
env:
Expand Down Expand Up @@ -222,7 +225,7 @@ jobs:
needs: [changes]
# One worker per browser keeps timing-sensitive tests isolated; the two
# engines run on separate runners instead of serialising ~15 minutes.
if: (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.frontend != 'false'
if: needs.changes.outputs.desktop-only != 'true' && (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.frontend != 'false'
runs-on: ubuntu-24.04
# A hung Chromium/WebKit process must not hold the runner after the step cap.
# Includes cold browser setup and leaves time to upload a failed trace.
Expand Down Expand Up @@ -301,11 +304,11 @@ jobs:
if-no-files-found: ignore

# Preserve the existing required-check name. A skipped browser matrix is only
# acceptable when the change classifier explicitly says it is out of scope.
# acceptable when the classifier or the requested CI scope excludes it.
ui-motion:
name: UI motion (Chromium + WebKit)
needs: [changes, ui-motion-browsers]
if: always()
if: always() && !(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:desktop-only'))
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand All @@ -326,7 +329,7 @@ jobs:
android-check:
needs: [changes]
# Android compiles its own Rust graph: a bundle-only change cannot break it.
if: (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.android != 'false'
if: needs.changes.outputs.desktop-only != 'true' && (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.android != 'false'
name: Android cargo check
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down Expand Up @@ -669,7 +672,7 @@ jobs:
# real HAP, which is what actually type-checks the ArkTS sources.
harmony-check:
needs: [changes]
if: (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.harmony != 'false'
if: needs.changes.outputs.desktop-only != 'true' && (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos') && needs.changes.outputs.harmony != 'false'
name: Harmony (ArkTS contracts, Rust host, HAP)
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down Expand Up @@ -1186,7 +1189,7 @@ jobs:
name: Windows checks
needs: [changes, cross-platform, windows-msrv]
if: always() && (github.event_name != 'workflow_dispatch' || inputs.platform != 'macos')
runs-on: ubuntu-latest
runs-on: ${{ needs.changes.outputs.desktop-only == 'false' && 'ubuntu-latest' || 'macos-latest' }}
timeout-minutes: 5
steps:
- name: Require stable and MSRV results
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,12 @@ This acknowledgement does not imply official endorsement or affiliation.

## Third-party components

The Overview yearly-activity card is a port of **Rare UI**'s [GitHub Activity](https://rareui.com/components/githubactivity)
component (Copyright (c) 2026 Swami Malode, MIT + Commons Clause, attribution required).
The port keeps the upstream layout, week/month maths, tooltip and expandable panel, and
replaces the GitHub data source with local dictation counts. Source:
`openless-all/app/src/components/ui/GitHubActivity.tsx` and `github-activity.css`.
The same credit is shown in Settings → About → Component credits.
The Overview annual activity card adapts calendar and expandable-panel code from **Rare UI**'s
[GitHub Activity](https://rareui.com/components/githubactivity) (Copyright (c) 2026 Swami Malode).
OpenLess supplies its own dictation data, app ranking, and desktop icons. See the
[component attribution and license](docs/ATTRIBUTION.md). The credit is also shown in Settings → About → Component credits.

The shared password field adapts the animated eye from Rare UI's [Password Input](https://www.rareui.com/components/passwordinput).

## License

Expand Down
10 changes: 5 additions & 5 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,11 @@ OpenLess 同样认可并感谢 LinuxDo 社区开放、务实、对开发者友

## 第三方组件

概览页的年度活动热力图移植自 **Rare UI** 的 [GitHub Activity](https://rareui.com/components/githubactivity)
组件(Copyright (c) 2026 Swami Malode,MIT + Commons Clause,要求署名)。移植保留上游的布局、
周/月换算、悬浮提示和可展开面板,只把 GitHub 数据源换成本地听写统计。源码位于
`openless-all/app/src/components/ui/GitHubActivity.tsx` 与 `github-activity.css`。
同一署名也出现在「设置 → 关于与更新 → 组件来源」。
概览页的年度活动卡片改编了 **Rare UI** 的 [GitHub Activity](https://rareui.com/components/githubactivity)
日历和可展开面板代码(Copyright (c) 2026 Swami Malode)。听写数据、应用排名与桌面图标由 OpenLess 提供。
详情见[组件署名与许可](docs/ATTRIBUTION.md);署名也可在「设置 → 关于与更新 → 组件来源」中查看。

共用密码输入框的眼睛动效改编自 Rare UI 的 [Password Input](https://www.rareui.com/components/passwordinput)。

## 许可证

Expand Down
26 changes: 21 additions & 5 deletions docs/ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@

## Rare UI GitHub Activity

The overview yearly activity card is a port of Rare UI's GitHub Activity component.
The Overview annual activity card adapts the calendar and expandable-panel code from Rare UI's GitHub Activity component. OpenLess uses local dictation activity and native desktop app icons instead of GitHub data. The card also supports a fitted calendar and an in-flow ranking panel.

- Page: https://rareui.com/components/githubactivity
- Upstream: https://github.com/swamimalode07/rare-ui
- License: MIT License + Commons Clause
- Upstream source: [github-activity.tsx](https://github.com/swamimalode07/rare-ui/blob/main/components/ui/github-activity.tsx)
- Copyright (c) 2026 Swami Malode
- License: [MIT + Commons Clause + Attribution](../openless-all/app/public/licenses/rare-ui-LICENSE.txt)

The port keeps the original geometry: 11px cells, 3px gap, 28px corner radius, 16px padding, week and month layout, the hover tooltip, and the expandable bottom panel. Local dictation counts replace GitHub contributions. The software with the most voice input (name and count) replaces repositories. Cells are not redrawn or resized to fit a narrow column.
The adapted component lives in `openless-all/app/src/ui/controls/GitHubActivity.tsx`, with styles in `openless-all/app/src/ui/styles/github-activity.css`. The in-app credit is Settings → About and updates → Component credits.

The in-app credit is Settings → About and updates → Component credits. The repository READMEs (`openless-all/README.md` and `openless-all/README.zh.md`) carry the same credit.
## Rare UI Password Input

[Password Input](https://www.rareui.com/components/passwordinput) is the visual reference for OpenLess's shared input fields. `openless-all/app/src/ui/controls/PasswordEye.tsx` adapts the animated eye geometry from [password-input.tsx](https://github.com/swamimalode07/rare-ui/blob/main/components/ui/password-input.tsx) (Copyright (c) 2026 Swami Malode, [MIT + Commons Clause + Attribution](../openless-all/app/public/licenses/rare-ui-LICENSE.txt)). OpenLess uses native text rendering and masking, not the demo's per-character overlay or password strength meter. The credit appears in Settings → About and updates → Component credits.

## Rare UI Toast

The shared toast surface adapts Rare UI's [Toast](https://www.rareui.com/components/toast) panel, glyphs, and tile transitions from [toast.tsx](https://github.com/swamimalode07/rare-ui/blob/main/components/ui/toast.tsx) (Copyright (c) 2026 Swami Malode, [MIT + Commons Clause + Attribution](../openless-all/app/public/licenses/rare-ui-LICENSE.txt)). OpenLess uses its existing per-window notification controller and viewport instead of Sonner's global store. `useToast()` exposes non-modal variants and task updates; `confirm`, `warn`, and `openDialog` remain separate modal APIs. The credit appears in Settings → About and updates → Component credits.

## Rare UI AI Prompt Box and Streaming Response

[AI Prompt Box](https://www.rareui.com/components/promptbox) and
[Streaming Response](https://www.rareui.com/components/streamingresponse) are the
interaction references for OpenLess Ask Anything. The OpenLess implementation uses
its own native shortcut, voice, and streaming contracts rather than the demo's mock backend.

The blue Ask recording strip also uses [Rare UI Voice Note](https://www.rareui.com/components/voicenote)
as its visual reference, retaining the medium 340×52 layout with 40 bars while replacing playback with live microphone levels and elapsed time.
4 changes: 3 additions & 1 deletion docs/ci-trigger-and-cache-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@

| 事件 | 行为 |
|---|---|
| `pull_request` → `main` / `beta` | 按改动范围门控:改动够不到的平台直接跳过(见下) |
| `pull_request` → `main` / `beta` | 按改动范围门控。标记 `ci:desktop-only` 的 PR 仅跑 macOS 与 Windows 桌面检查,不分配 Ubuntu runner |
| `push` → `main` / `beta` | 全量验证(合并后的基线必须有完整证据),不跳过任何 job;仅 beta 写入共享缓存,beta 手动/周期构建也可预热 |
| `push` → 其他分支 | **不跑**。feature 分支由它的 PR 覆盖;两边都跑等于同一个 commit 交两遍完整矩阵(实测 42 次 run 里有 8 次是这种重复,每次 ~86 VM-min、峰值 12 台 VM) |
| tag `v*-tauri` | 发布 Tauri 桌面与 Android;Linux 包不随标签自动发布 |
| `workflow_dispatch` | 全量;`platform=macos` 只跑 macOS(仅 macOS 验证入口) |

同一 PR 连续推送会取消旧运行(`concurrency.cancel-in-progress`)。CI 的相同 ref、platform、macos_runner、windows_build_jobs 手动请求也会取消旧运行,不同参数独立运行。桌面手动构建按 ref、platform、诊断开关区分;Android 按 ref、ABI、profile、签名模式区分。标签发布(包括手动选择标签)和修复发布不会被新运行中途取消。

`ci:desktop-only` 在 PR 下次触发 CI 时生效;添加或移除标签本身不会重启作业。该模式显式跳过浏览器动效矩阵及 iOS、Android、鸿蒙作业,不改变改动范围判定、桌面门禁、默认分支基线或发布验证。

### 改动范围判定

`openless-all/app/scripts/ci-impact.mjs`(由 `ci-changed-areas.sh` 调用)回答一个问题:**这份改动能不能被某个平台的编译过程看见**。
Expand Down
10 changes: 8 additions & 2 deletions openless-all/app/crates/openless-core/src/activity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ use std::path::{Path, PathBuf};
use std::sync::Mutex;

const ACTIVITY_RETENTION_DAYS: usize = 731;
// Older Windows buckets contain arbitrary document titles with no recoverable app identity.
const ACTIVITY_APPS_FILE: &str = if cfg!(target_os = "windows") {
"activity-apps-v2.json"
} else {
"activity-apps.json"
};

#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
Expand Down Expand Up @@ -109,7 +115,7 @@ impl ActivityStore {
}
pub fn at_path(path: PathBuf) -> Result<Self, BackendError> {
let days = read_days(&path)?;
let apps_path = path.with_file_name("activity-apps.json");
let apps_path = path.with_file_name(ACTIVITY_APPS_FILE);
let apps = match std::fs::read(&apps_path) {
Ok(bytes) => serde_json::from_slice(&bytes).ok(),
Err(error) if error.kind() == std::io::ErrorKind::NotFound => Some(BTreeMap::new()),
Expand Down Expand Up @@ -165,7 +171,7 @@ impl ActivityStore {
if let Some(path) = &self.path {
let bytes = serde_json::to_vec_pretty(&next)
.map_err(|_| persistence_error("encode application activity"))?;
atomic_write(&path.with_file_name("activity-apps.json"), &bytes)?;
atomic_write(&path.with_file_name(ACTIVITY_APPS_FILE), &bytes)?;
}
*state = Some(next);
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion openless-all/app/crates/openless-core/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7999,7 +7999,7 @@ impl OpenLessBackend {
// Freeze the destination and its matching host-context reader before context/credential
// awaits or feedback can change foreground focus. No native preparation happens yet.
let (inserter, host_context) = if insert_text {
match self.deps.text_inserter.capture_target() {
match self.deps.text_inserter.capture_target_for_session(session_id) {
Some(captured) => (captured.inserter, captured.host_context),
None => (
Arc::clone(&self.deps.text_inserter),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ impl EncryptedSyncService {

async fn current_account(&self, runtime: &Runtime) -> SyncResult<()> {
self.check_cancelled()?;
self.verify_account(runtime).await?;
self.check_cancelled()
}

async fn verify_account(&self, runtime: &Runtime) -> SyncResult<()> {
let connection = runtime
.connection
.as_ref()
Expand All @@ -341,7 +346,7 @@ impl EncryptedSyncService {
{
return Err(error("account_changed"));
}
self.check_cancelled()
Ok(())
}

fn finish<T>(&self, runtime: &mut Runtime, result: &SyncResult<T>) {
Expand Down Expand Up @@ -1442,6 +1447,9 @@ impl EncryptedSyncService {
old_key_id,
};
let owner = self.storage_owner(runtime)?;
self.check_cancelled()?;
// Once we start persisting a replayable proposal, finish its submit/receipt path.
// Cancellation here could otherwise leave an unsent operation for the next sync to replay.
self.0
.local
.write(
Expand All @@ -1455,7 +1463,7 @@ impl EncryptedSyncService {
.write(&owner, "pending", pending.clone())
.await?;
self.update(|s| s.pending_operation_id = Some(pending.operation_id.clone()));
self.current_account(runtime).await?;
self.verify_account(runtime).await?;
// Once submitted, preserve the exact operation until a validated receipt.
let receipt = connection
.transport
Expand Down Expand Up @@ -1576,7 +1584,8 @@ impl EncryptedSyncService {
pending: &Pending,
receipt: &OperationReceipt,
) -> SyncResult<()> {
self.current_account(runtime).await?;
// A cancellation cannot invalidate a receipt for an operation already sent.
self.verify_account(runtime).await?;
let owner = self.storage_owner(runtime)?;
if receipt.operation_id.as_str() != pending.operation_id
|| receipt.vault_id.as_str() != pending.vault_id
Expand Down Expand Up @@ -2050,6 +2059,7 @@ impl EncryptedSyncService {
self.require_consent(runtime).await?;
self.connect(runtime).await?;
self.reconcile(runtime).await?;
self.check_cancelled()?;
if !runtime.settings.enabled {
return Ok(());
}
Expand All @@ -2065,6 +2075,7 @@ impl EncryptedSyncService {
let key = self.unlocked(runtime)?;
let snapshot = self.download(runtime).await?;
let remote = self.decrypt(runtime, snapshot.clone(), key.clone()).await?;
self.check_cancelled()?;
runtime.snapshot = Some(snapshot.clone());
let baseline = self.baseline_documents(runtime)?;
if baseline.is_none() {
Expand All @@ -2073,6 +2084,7 @@ impl EncryptedSyncService {
}
let scope = self.active_scope(runtime)?;
let mut captured = self.0.data.export(scope.clone()).await?;
self.check_cancelled()?;
let merge = documents::diff_sync_documents(baseline.as_ref(), &captured.documents, &remote)
.map_err(document_error)?;
if !merge.conflicts().is_empty() {
Expand Down
Loading
Loading