From 4a0cf21ce5bbae3c8d50c0e9adbbfcc1da6a048a Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Fri, 29 May 2026 15:05:00 +0800 Subject: [PATCH 1/2] fix(miniapp): remove iframe title tooltip, use aria-label for accessibility --- src/web-ui/src/app/scenes/miniapps/components/MiniAppRunner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web-ui/src/app/scenes/miniapps/components/MiniAppRunner.tsx b/src/web-ui/src/app/scenes/miniapps/components/MiniAppRunner.tsx index ce442a8139..9cbcb6c8a0 100644 --- a/src/web-ui/src/app/scenes/miniapps/components/MiniAppRunner.tsx +++ b/src/web-ui/src/app/scenes/miniapps/components/MiniAppRunner.tsx @@ -25,7 +25,7 @@ const MiniAppRunner: React.FC = ({ app, runScope }) => { data-run-scope={runScope?.kind ?? 'active'} sandbox="allow-scripts allow-forms allow-modals allow-popups allow-downloads" style={{ width: '100%', height: '100%', border: 'none', display: 'block' }} - title={app.name} + aria-label={app.name} /> ); }; From b0ac77ec3619a9ea81f6f07415aacf2fe6c3654d Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Fri, 29 May 2026 17:40:38 +0800 Subject: [PATCH 2/2] feat(ohos): add permission reason descriptions for HarmonyOS --- src/apps/ohos/entry/src/main/module.json5 | 19 ++++++----- .../main/resources/base/element/string.json | 32 +++++++++++++++++++ 2 files changed, 43 insertions(+), 8 deletions(-) diff --git a/src/apps/ohos/entry/src/main/module.json5 b/src/apps/ohos/entry/src/main/module.json5 index a6f37e4534..169845dfd2 100644 --- a/src/apps/ohos/entry/src/main/module.json5 +++ b/src/apps/ohos/entry/src/main/module.json5 @@ -33,17 +33,20 @@ ], "requestPermissions": [ { - "name": "ohos.permission.INTERNET" + "name": "ohos.permission.INTERNET", + "reason": "$string:permission_internet_reason" }, { - "name": "ohos.permission.READ_WRITE_USER_FILE" + "name": "ohos.permission.READ_WRITE_USER_FILE", + "reason": "$string:permission_user_file_reason" }, { - "name": "ohos.permission.CUSTOM_SANDBOX" + "name": "ohos.permission.CUSTOM_SANDBOX", + "reason": "$string:permission_custom_sandbox_reason" }, { "name": "ohos.permission.READ_CALENDAR", - "reason": "$string:module_desc", + "reason": "$string:permission_read_calendar_reason", "usedScene": { "abilities": [ "EntryAbility" @@ -53,7 +56,7 @@ }, { "name": "ohos.permission.WRITE_CALENDAR", - "reason": "$string:module_desc", + "reason": "$string:permission_write_calendar_reason", "usedScene": { "abilities": [ "EntryAbility" @@ -63,7 +66,7 @@ }, { "name": "ohos.permission.READ_WRITE_DESKTOP_DIRECTORY", - "reason": "$string:module_desc", + "reason": "$string:permission_desktop_directory_reason", "usedScene": { "abilities": [ "EntryAbility" @@ -73,7 +76,7 @@ }, { "name": "ohos.permission.READ_WRITE_DOCUMENTS_DIRECTORY", - "reason": "$string:module_desc", + "reason": "$string:permission_documents_directory_reason", "usedScene": { "abilities": [ "EntryAbility" @@ -83,7 +86,7 @@ }, { "name": "ohos.permission.READ_WRITE_DOWNLOAD_DIRECTORY", - "reason": "$string:module_desc", + "reason": "$string:permission_download_directory_reason", "usedScene": { "abilities": [ "EntryAbility" diff --git a/src/apps/ohos/entry/src/main/resources/base/element/string.json b/src/apps/ohos/entry/src/main/resources/base/element/string.json index fc8fbb64e7..cdf340b01c 100644 --- a/src/apps/ohos/entry/src/main/resources/base/element/string.json +++ b/src/apps/ohos/entry/src/main/resources/base/element/string.json @@ -10,6 +10,38 @@ { "name": "EntryAbility_label", "value": "BitFun" + }, + { + "name": "permission_internet_reason", + "value": "Used to access the network for communicating with remote AI services" + }, + { + "name": "permission_user_file_reason", + "value": "Used to read and write user-selected files for code editing and project management" + }, + { + "name": "permission_custom_sandbox_reason", + "value": "Used to access custom sandbox paths for project workspace operations" + }, + { + "name": "permission_read_calendar_reason", + "value": "Used to read calendar events for task scheduling and reminders" + }, + { + "name": "permission_write_calendar_reason", + "value": "Used to write calendar events for task scheduling and reminders" + }, + { + "name": "permission_desktop_directory_reason", + "value": "Used to access desktop directory for file management and project operations" + }, + { + "name": "permission_documents_directory_reason", + "value": "Used to access documents directory for file management and project operations" + }, + { + "name": "permission_download_directory_reason", + "value": "Used to access download directory for file management and project operations" } ] } \ No newline at end of file