Repository navigation
fix: stop logging sync credentials; fix waiting filter, UTC times, nightly widget crash, empty project #661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
BrawlerXull
merged 6 commits into
CCExtractor:main
from
BrawlerXull:fix/home-screen-bugs
Oct 4, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3a2f9fa
fix(sync): stop logging the TaskChampion client id and encryption secret
BrawlerXull 5487285
fix(home): "Hide Waiting" hid every task except waiting ones
BrawlerXull c16b0de
fix(home): show task times in local time, not UTC
BrawlerXull 79503ab
fix(widget): find the home-screen widget provider in the nightly flavor
BrawlerXull f020e4e
fix(add-task): don't save an empty project or drop project: from the …
BrawlerXull bafae83
fix(sync): stop logging TaskChampion credentials on refresh
BrawlerXull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import 'package:taskwarrior/app/models/models.dart'; | ||
|
|
||
| /// Whether [task] is waiting: hidden until its wait date, as in Taskwarrior. | ||
| bool isWaiting(Task task, DateTime now) => | ||
| task.wait != null && task.wait!.isAfter(now); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import 'package:flutter_test/flutter_test.dart'; | ||
| import 'package:taskwarrior/app/utils/taskfunctions/add_task_dialog_utils.dart'; | ||
| import 'package:taskwarrior/app/utils/taskfunctions/taskparser.dart'; | ||
|
|
||
| void main() { | ||
| test('an empty Project field leaves the project unset', () { | ||
| expect(resolveProject('', null), isNull); | ||
| expect(resolveProject(' ', null), isNull); | ||
| }); | ||
|
|
||
| test('the Project field is used when filled in', () { | ||
| expect(resolveProject('home', null), 'home'); | ||
| expect(resolveProject(' home ', 'work'), 'home'); | ||
| }); | ||
|
|
||
| test('an empty field keeps a project typed in the description', () { | ||
| final parsed = taskParser('buy milk project:home'); | ||
| expect(resolveProject('', parsed.project), 'home'); | ||
| }); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import 'package:flutter_test/flutter_test.dart'; | ||
| import 'package:taskwarrior/app/models/models.dart'; | ||
| import 'package:taskwarrior/app/utils/taskfunctions/waiting.dart'; | ||
|
|
||
| void main() { | ||
| final now = DateTime.utc(2026, 10, 1, 12); | ||
|
|
||
| Task task({DateTime? wait}) => Task((b) => b | ||
| ..uuid = 'u' | ||
| ..description = 'd' | ||
| ..status = 'pending' | ||
| ..entry = now | ||
| ..wait = wait); | ||
|
|
||
| test('a task without a wait date is not waiting', () { | ||
| expect(isWaiting(task(), now), isFalse); | ||
| }); | ||
|
|
||
| test('a task whose wait date is in the future is waiting', () { | ||
| expect( | ||
| isWaiting(task(wait: now.add(const Duration(days: 1))), now), isTrue); | ||
| }); | ||
|
|
||
| test('a task whose wait date has passed is no longer waiting', () { | ||
| expect(isWaiting(task(wait: now.subtract(const Duration(days: 1))), now), | ||
| isFalse); | ||
| }); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🛡️ Detected with Advanced Tier | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: CCExtractor/taskwarrior-flutter
Length of output: 5597
🏁 Script executed:
Repository: CCExtractor/taskwarrior-flutter
Length of output: 26234
🏁 Script executed:
Repository: CCExtractor/taskwarrior-flutter
Length of output: 19818
🏁 Script executed:
Repository: CCExtractor/taskwarrior-flutter
Length of output: 4097
Sensitive Data Exposure
Reachability: External
Exploitability: Difficult
CWE: CWE-532 — Insertion of Sensitive Information into Log File
Do not log the raw Replica URL.
CredentialsStorage.getApiUrl()returns the complete stored value, and the credential form persists the URL without sanitizing it. A URL can therefore expose userinfo, path tokens, or query secrets in the persistent Logs database. Log only whether the URL is set or a sanitized origin.Log URL presence instead of its value
📝 Committable suggestion
View in Security blast radius
🤖 Prompt for AI Agents