TaskServer 3 (CCSync v3) Bugs and Improvements
还没有人认领这个 Issue。
评估
调研方向
首先阅读 origin.dart、complete.dart、manage_task_champion_creds_controller.dart、task.dart、profiles_list.dart 和 profile_view.dart,以梳理每项请求的变更。添加或更新 TaskForC.fromJson、completeTask 异常处理和超时配置的单元测试。所有五项验收标准均通过且列出的回归测试覆盖这些变更,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description
Several issues were identified in the TaskServer 3 (CCSync v3) integration of the Flutter application.
These include bugs affecting reliability, missing parsing functionality, and UI improvements to make configuration clearer.
This issue proposes fixes and enhancements to improve stability, error handling, and usability.
Problems Identified
1. Hardcoded Origin URL
File: origin.dart
Problem
The origin parameter is currently hardcoded to:
http://localhost:8080
This prevents the application from connecting to remote or user-configured backend servers.
Proposed Solution
Replace the hardcoded value with a dynamic function:
Future getOrigin()
This function retrieves the backend URL from:
CredentialsStorage.getApiUrl()
2. Invalid ScaffoldMessenger Context
File: complete.dart
Problem
The code attempts to call:
ScaffoldMessenger.of(context as BuildContext)
This may cause runtime crashes when the BuildContext is invalid or disposed.
Proposed Solution
Remove the unsafe UI call and instead:
- Throw exceptions for non-200 HTTP responses
- Allow the caller to handle UI feedback.
3. Excessive Timeout Duration
File: manage_task_champion_creds_controller.dart
Problem
The HTTP timeout is set to:
Duration(seconds: 10000)
(~166 minutes)
This prevents the application from failing quickly when the server is unreachable.
Proposed Solution
Reduce the timeout to:
Duration(seconds: 10)
This improves responsiveness when the TaskServer is unavailable.
4. Missing Annotation Parsing
File: task.dart
Problem
The TaskForC model initializes annotations as an empty list:
annotations = []
This ignores annotation data returned by the server.
Proposed Solution
Update the fromJson method to parse annotations dynamically using:
Annotation.fromJson
5. Mode Selector Visibility
Files
profiles_list.dartprofile_view.dart
Problem
The TW2 / TW3 / TW3C mode selector is buried inside the profile view and lacks visibility.
Users cannot easily determine the currently active mode.
Proposed Solution
Add a getModeLabel callback to display the currently selected mode as a subtitle in the Change Mode option.
Acceptance Criteria
- Origin URL is dynamically retrieved
- ScaffoldMessenger crash is removed
- Timeout duration is reduced
- Task annotations are parsed correctly
- Current mode is visible in the profile UI
Tests
Unit tests should verify:
- Annotation parsing in
TaskForC.fromJson - Exception handling in
completeTask - Timeout configuration regression
- 主要语言
- Dart
- 星标
- 244
- 派生
- 180
- 平均合并
- 16 小时 19 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CCExtractor/taskwarrior-flutter 的其他 Issue
-
Fix misaligned text "Select the directory" in settings tile可能重新可做 @alabeddev 于 200 天前认领,目前没有进行中的 PR。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
CCExtractor/taskwarrior-flutter#639 · 2 条评论 ·
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
-
Drawer should close automatically when navigating to a new screen可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
-
Sensitive Credentials Stored in Plain Text Files Without Encryption可能重新可做 @sahu-virendra-1908 于 198 天前认领,目前没有进行中的 PR。 未关闭bug
难度 5/5 一周以上 新手友好度 45/100
CCExtractor/taskwarrior-flutter#645 · 1 条评论 ·
-
Data Inconsistency When Editing Task (Missing Transaction)可能重新可做 @aryanorastar 于 58 天前认领,目前没有进行中的 PR。 未关闭bug
难度 4/5 3-5 天 新手友好度 52/100
CCExtractor/taskwarrior-flutter#643 · 1 条评论 ·
查看 CCExtractor/taskwarrior-flutter 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 80/100
rajput-hemant/calculator#199 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
leancodepl/app-rating#35 ·
-
Mobile login: "Sign In" button is squashed to 16 px with its label cut while the keyboard is open未关闭ai-driven-qa bug claude
难度 2/5 1-3 小时 新手友好度 78/100
linagora/tmail-flutter#4976 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
aaronified/fluenough#503 ·
维护者通常 1 天内回复
-
P2 package platform-ios team-ios
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复