Repository navigation
Conversation
|
@Git-on-my-level could you take a look when you have a moment? Tasks tab only, UI, no backend change: Overdue first, Completed folded under the list, a task opens on its own page, one ⋯ with the conversation page's anchored menu, and a lock on paywalled tasks. TL;DR and before/after phone screenshots are at the top of the description; local preflight is 22/22 and the hermetic journeys are 23/23. @cubic-dev-ai review |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 13 files
Requires human review: Auto-approval blocked because this review re-detected 6 unresolved issues already reported by Cubic.
Re-trigger cubic
- exportItems resolves each task against the provider's current record, so a page holding a pre-export copy cannot export it twice; a single already-exported task names the app. - Select All skips paywalled tasks, loads the remaining pages first (selectAllTasks), reads "all selected" from the same set, and is disabled with Select Multiple while the list is empty. - One helper, exportTaskToConnectedApp, serves the row menu and the task page. - TaskPage takes the back primitive (pushed page, ux-contract §2); the due-date clear button keeps its own semantics node. - Completing a task stamps completedAt locally and adopts the server's completion fields when the PATCH returns; the Completed section reads a cached newest-first list from the provider. - Changelog fragments reworded as user outcomes; tasks-edit audit scenario goes through openTaskPage and names TaskPage. - Tests: paywalled tap lands on the plan page; new bulk-selection/export provider test; layout fixture dates come from one captured clock; the Export gesture test lets the 8 s feedback elapse.
|
@cubic-dev-ai review |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
- Single-task export goes to the app chosen in Task Integrations; other connected apps are only a fallback. - A state toggle carries a per-task token: a late answer to an earlier toggle can no longer revert or adopt over a newer one. - The task page's merged semantics nodes keep their tap action, so rows and the conversation line stay activatable for assistive tech. - Completed nested tasks keep their indent; the due-day label resolves its locale through OmiDateFormat so locales without intl data fall back instead of throwing. - Tests: stale toggle race, completed indent, semantics tap actions; the Select All test now asserts "all selected" on the fully loaded set.
|
@cubic-dev-ai review |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
- A single-task export waits for the integrations to be loaded (TaskIntegrationProvider .ensureLoaded joins an in-flight load), so a task opened directly cannot be told nothing is connected while the first load is still running. - A paywalled done row gets no long-press menu, like an open one; selecting a done row never cascades to the rows under it (the Completed list is newest-first, not hierarchy order). - The task page's date picker opens in the app's sheet shell; the completion row is disabled while a toggle is in flight, so taps cannot overlap. - The export app's name comes from TaskIntegrationApp.displayName, one source for every string. - Completed rows are a lazy sliver; the row hairline is positioned for RTL; the page-and-menus changelog fragment is one sentence. - Tests: locked done row, no cascade on done rows, one toggle at a time, platform label.
|
@cubic-dev-ai review |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
6 issues found across 16 files
Confidence score: 3/5
- Concurrent calls through the shared export path in
action_items_provider.dartcan export the same task twice. Track in-flight task IDs and skip or serialize duplicate requests. - In
task_page.dart, a staleupdateActionItemStateresponse can leave the page showing the wrong completion state after another surface toggles the task. Reconcile the page with the current task state rather than treating the stale response as authoritative. ensureLoaded()intask_integration_provider.dartcan join a pre-logout request, which exits after the session changes and leaves the new user's integrations unloaded. Make sure a request for the current session runs afterclearUserData().- Clear Completed in
action_items_page.dartincludes locked tasks even though their writes are rejected, so those rows can reappear after the failed deletes. Filter out locked tasks before invoking the clear operation.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/lib/pages/action_items/task_page.dart">
<violation number="1" location="app/lib/pages/action_items/task_page.dart:124">
P2: This page can display the wrong completion state after another surface toggles the same task while this request is in flight. `updateActionItemState` deliberately suppresses stale server records but still returns `true`, so reconcile `_completed` with the provider's latest record or expose a latest-mutation result instead of treating every `true` response as authoritative.
(Based on your team's feedback about guarding task toggle responses.) .</violation>
</file>
<file name="app/lib/providers/action_items_provider.dart">
<violation number="1" location="app/lib/providers/action_items_provider.dart:1381">
P1: The shared export path still allows concurrent invocations to export the same task twice. Track task IDs currently being exported and skip or serialize duplicate requests until the first operation settles.</violation>
</file>
<file name="app/lib/providers/task_integration_provider.dart">
<violation number="1" location="app/lib/providers/task_integration_provider.dart:41">
P2: `ensureLoaded()` can join a pre-logout request after `clearUserData()` instead of loading the new user's integrations. That request exits on the session-generation check, leaving `hasLoaded` false and making immediate exports report no connected app; clear `_inFlightLoad` when invalidating the session, as `IntegrationProvider.clearUserData()` does.</violation>
</file>
<file name="app/lib/pages/action_items/action_items_page.dart">
<violation number="1" location="app/lib/pages/action_items/action_items_page.dart:720">
P2: Clear Completed attempts to delete locked tasks even though paywalled task writes are rejected, causing doomed requests and silently restoring those rows after the clear. Filter out locked items before invoking `_confirmClearCompleted` (and avoid showing an actionable clear control when none are deletable).</violation>
<violation number="2" location="app/lib/pages/action_items/action_items_page.dart:1294">
P2: Locked rows still show the selection checkbox in selection mode, even though tapping them opens the upgrade page and bulk selection excludes them. Gate this affordance on `!item.isLocked` so locked tasks do not appear selectable.</violation>
</file>
<file name="app/test/providers/action_items_bulk_selection_test.dart">
<violation number="1" location="app/test/providers/action_items_bulk_selection_test.dart:108">
P3: This assertion depends on the wall clock: 'open' completes at DateTime.now() and must sort above 'old-done', but the comparison key is the hard-coded DateTime(2026, 9, 1). Run before September 2026, now() is the older timestamp and 'old-done' sorts first, so the test fails. Derive the older completion from now(), e.g. DateTime.now().subtract(const Duration(days: 1)), to keep the hermetic suite date-independent.</violation>
</file>
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Re-trigger cubic
- exportItems skips a task whose export is already in flight, so the row menu and the task page (or a double tap) cannot send one task twice; the exporter is injectable for the test. - After a completion toggle the task page reads the provider's record, so a toggle from another surface while the request was in flight is what the page shows. - TaskIntegrationProvider.clearUserData drops the in-flight load, so ensureLoaded after a sign-out starts a fresh one instead of joining a request that exits on the generation check. - Paywalled rows show no selection box in selection mode; Clear Completed leaves paywalled done tasks out and is hidden when nothing can be deleted. - The newest-first provider test derives its older completion from now.
|
@cubic-dev-ai review |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Tasks page redesign: overdue-first, per-task page, completed folded) — files under app/lib/pages/action_items + app/lib/providers (Flutter mobile), no desktop paths. Mobile area, not a bug fix -> approve-only.
There was a problem hiding this comment.
All reported issues were addressed across 16 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Re-trigger cubic
- TaskIntegrationProvider.ensureLoaded loads again after an attempt that did not reach the server (_needsRetry, as IntegrationProvider does), and loadFromBackend joins a load already in flight instead of fetching twice. The fetch is injectable for the tests. - The task page runs one mutation at a time: the completion row is disabled while a save is in flight and Save while a toggle is. - exportItems treats a throwing exporter as one failed task and always calls onSettled.
|
@cubic-dev-ai review |
@Itaxh1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
4 issues found across 17 files
Confidence score: 3/5
- In
action_items_provider.dart, a stale response can still roll back a newer toggle or update Siri and Apple Reminders. Guard both success and failure side effects withisLatest(). - In
task_integration_provider.dart, deduplication can discard a forced refresh while an older load is in flight, leaving stale integration state after authentication or disconnection changes. Let the forced refresh supersede or invalidate the in-flight load. - In
action_items_list_layout_test.dart, the predicate never matches the row hairlines becauseContainer.constraintsis null when onlyheightandcolorare set. Match the rendered height and color instead so the test can catch layout regressions. - In
action_items_page.dart, the guard can re-arm after rebuilds when a locked row is present and the list is too short to scroll; a failedloadMoreActionItemscan then prompt another load attempt. Keep the guard from re-arming after that failure.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/test/widgets/action_items_list_layout_test.dart">
<violation number="1" location="app/test/widgets/action_items_list_layout_test.dart:95">
P2: This predicate can never match the row hairlines: the page builds them as `Container(height: 0.5, color: OmiColors.border)`, and Flutter's `Container` keeps its public `constraints` field null when only `height`/`width` are passed (they go to a private `_additionalConstraints`). The finder returns zero candidates and `findsNWidgets(2)` always fails. Match on the divider's `color` instead (the only border-colored Containers on the page are these dividers), and optionally assert the rendered height via `tester.getSize`.</violation>
</file>
<file name="app/lib/providers/action_items_provider.dart">
<violation number="1" location="app/lib/providers/action_items_provider.dart:556">
P1: `isLatest()` does not cover every response side effect. A stale failure can roll back the newer toggle, while a stale success can update Siri or Apple Reminders; guard both paths with `isLatest()`.
(Based on your team's feedback about guarding stale task toggle responses.)</violation>
</file>
<file name="app/lib/providers/task_integration_provider.dart">
<violation number="1" location="app/lib/providers/task_integration_provider.dart:54">
P2: This deduplication drops a forced refresh when startup or lifecycle loading is still in flight. The old response can contain pre-authentication or pre-disconnection state, leaving the integration unavailable or restored incorrectly until another unrelated load; queue a refresh after the current request or let `refresh()` bypass deduplication.</violation>
</file>
<file name="app/lib/pages/action_items/action_items_page.dart">
<violation number="1" location="app/lib/pages/action_items/action_items_page.dart:404">
P2: This guard re-arms after every rebuild while any loaded row is locked and the list is too short to scroll, so an error in `loadMoreActionItems` (which catches the failure and then calls `notifyListeners()`, flipping `isFetching` back to false) schedules another page fetch every frame — an unbounded, backoff-free retry loop against the backend until `hasMore` goes false or the mismatch clears. On success the same block also emits one page fetch per frame (plus `SiriIntegration.queueUpsertTasks` churn per page) until the list becomes scrollable. Bound the auto-loading (e.g., a one-shot flag per page set, an error stop like `selectAllTasks`' `maxPages` cap, or no re-schedule after a failed fetch).</violation>
</file>
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Re-trigger cubic
| return false; | ||
| } | ||
| SiriIntegration.current.queueUpsertTasks([success]); | ||
| if (isLatest()) _adoptServerRecord(success); |
There was a problem hiding this comment.
P1: isLatest() does not cover every response side effect. A stale failure can roll back the newer toggle, while a stale success can update Siri or Apple Reminders; guard both paths with isLatest().
(Based on your team's feedback about guarding stale task toggle responses.)
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/providers/action_items_provider.dart, line 556:
<comment>`isLatest()` does not cover every response side effect. A stale failure can roll back the newer toggle, while a stale success can update Siri or Apple Reminders; guard both paths with `isLatest()`.
(Based on your team's feedback about guarding stale task toggle responses.) </comment>
<file context>
@@ -528,13 +544,16 @@ class ActionItemsProvider extends ChangeNotifier {
return false;
}
SiriIntegration.current.queueUpsertTasks([success]);
+ if (isLatest()) _adoptServerRecord(success);
// Cancel notification if the action item is marked as completed
if (newState == true) {
</file context>
| final hairlines = find.byWidgetPredicate((w) => w is Container && w.constraints?.maxHeight == 0.5); | ||
| // Today has two rows and Later has two: one hairline each. |
There was a problem hiding this comment.
P2: This predicate can never match the row hairlines: the page builds them as Container(height: 0.5, color: OmiColors.border), and Flutter's Container keeps its public constraints field null when only height/width are passed (they go to a private _additionalConstraints). The finder returns zero candidates and findsNWidgets(2) always fails. Match on the divider's color instead (the only border-colored Containers on the page are these dividers), and optionally assert the rendered height via tester.getSize.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/test/widgets/action_items_list_layout_test.dart, line 95:
<comment>This predicate can never match the row hairlines: the page builds them as `Container(height: 0.5, color: OmiColors.border)`, and Flutter's `Container` keeps its public `constraints` field null when only `height`/`width` are passed (they go to a private `_additionalConstraints`). The finder returns zero candidates and `findsNWidgets(2)` always fails. Match on the divider's `color` instead (the only border-colored Containers on the page are these dividers), and optionally assert the rendered height via `tester.getSize`.</comment>
<file context>
@@ -0,0 +1,99 @@
+
+ testWidgets('rows in a section are split by a hairline, the last one is not', (tester) async {
+ await pumpPage(tester);
+ final hairlines = find.byWidgetPredicate((w) => w is Container && w.constraints?.maxHeight == 0.5);
+ // Today has two rows and Later has two: one hairline each.
+ expect(hairlines, findsNWidgets(2));
</file context>
| final hairlines = find.byWidgetPredicate((w) => w is Container && w.constraints?.maxHeight == 0.5); | |
| // Today has two rows and Later has two: one hairline each. | |
| final hairlines = find.byWidgetPredicate((w) => w is Container && w.color == OmiColors.border); | |
| // Row dividers are Container(height: 0.5, color: border); the color identifies them | |
| // because `constraints` is only set when passed explicitly to the constructor. | |
| expect(hairlines, findsNWidgets(2)); |
| /// joins it rather than fetching twice. | ||
| Future<void> loadFromBackend() { | ||
| final existing = _inFlightLoad; | ||
| if (existing != null) return existing; |
There was a problem hiding this comment.
P2: This deduplication drops a forced refresh when startup or lifecycle loading is still in flight. The old response can contain pre-authentication or pre-disconnection state, leaving the integration unavailable or restored incorrectly until another unrelated load; queue a refresh after the current request or let refresh() bypass deduplication.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/providers/task_integration_provider.dart, line 54:
<comment>This deduplication drops a forced refresh when startup or lifecycle loading is still in flight. The old response can contain pre-authentication or pre-disconnection state, leaving the integration unavailable or restored incorrectly until another unrelated load; queue a refresh after the current request or let `refresh()` bypass deduplication.</comment>
<file context>
@@ -12,33 +12,63 @@ import 'package:omi/utils/platform/platform_service.dart';
+ /// joins it rather than fetching twice.
+ Future<void> loadFromBackend() {
+ final existing = _inFlightLoad;
+ if (existing != null) return existing;
+ late final Future<void> started;
+ started = _loadFromBackend().whenComplete(() {
</file context>
| final hasTasks = categorizedItems.values.any((l) => l.isNotEmpty) || completedItems.isNotEmpty; | ||
| // Only a scroll asks for the next page, and with locked rows hidden what is left may be too | ||
| // short to scroll: check once this frame is laid out. | ||
| if (shownItems.length != provider.actionItems.length && provider.hasMore && !provider.isFetching) { |
There was a problem hiding this comment.
P2: This guard re-arms after every rebuild while any loaded row is locked and the list is too short to scroll, so an error in loadMoreActionItems (which catches the failure and then calls notifyListeners(), flipping isFetching back to false) schedules another page fetch every frame — an unbounded, backoff-free retry loop against the backend until hasMore goes false or the mismatch clears. On success the same block also emits one page fetch per frame (plus SiriIntegration.queueUpsertTasks churn per page) until the list becomes scrollable. Bound the auto-loading (e.g., a one-shot flag per page set, an error stop like selectAllTasks' maxPages cap, or no re-schedule after a failed fetch).
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/action_items/action_items_page.dart, line 404:
<comment>This guard re-arms after every rebuild while any loaded row is locked and the list is too short to scroll, so an error in `loadMoreActionItems` (which catches the failure and then calls `notifyListeners()`, flipping `isFetching` back to false) schedules another page fetch every frame — an unbounded, backoff-free retry loop against the backend until `hasMore` goes false or the mismatch clears. On success the same block also emits one page fetch per frame (plus `SiriIntegration.queueUpsertTasks` churn per page) until the list becomes scrollable. Bound the auto-loading (e.g., a one-shot flag per page set, an error stop like `selectAllTasks`' `maxPages` cap, or no re-schedule after a failed fetch).</comment>
<file context>
@@ -435,8 +391,21 @@ class _ActionItemsPageState extends State<ActionItemsPage> with AutomaticKeepAli
+ final hasTasks = categorizedItems.values.any((l) => l.isNotEmpty) || completedItems.isNotEmpty;
+ // Only a scroll asks for the next page, and with locked rows hidden what is left may be too
+ // short to scroll: check once this frame is laid out.
+ if (shownItems.length != provider.actionItems.length && provider.hasMore && !provider.isFetching) {
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ if (mounted && _scrollController.hasClients) _onScroll();
</file context>
|
Reviewed the full diff on c428aac — nice work overall, and the iteration across review rounds shows. Some file-level observations, then two things I'd like a maintainer to confirm. Implementation notes (nothing blocking):
Two things to confirm:
Leaving for human maintainer review on the locked-task behavior; everything else looks in good shape. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Reviewed the full diff on c428aac — a cohesive, UI-only rework of the Tasks tab, and the quality holds up across the review rounds. Specific observations:
One gap I could not close by execution: I had no Flutter SDK available and this PR's Dart CI jobs are skipped, so the new tests were reviewed statically only — a local Note for maintainers: the existing approval was on the previous head (c2d0115); the last two commits (hiding locked tasks from the list, fifth-round fixes) have not had human review, and whether paywalled tasks should be fully hidden versus shown as locked rows is a product call — that's why needs-maintainer-review stays on. — automated review on David's behalf by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
c428aac to
b1dafc3
Compare
b1dafc3 to
2f9641c
Compare
There was a problem hiding this comment.
2 existing issues remain and 10 new issues found across 143 files
Confidence score: 3/5
- In
task_integration_provider.dart, a cached successful load can bypass an in-flight refresh, so task export may use stale connection state. Return the in-flight future before checking the cache. - In
action_items_provider.dart, a stale toggle can still queue a task upsert and update Apple Reminders even when the provider record is guarded. Check that the toggle is current before triggering those side effects. - In
page.dart, Select All stays disabled when the loaded page has only locked tasks, even if later pages contain selectable tasks. Enable it whentasks.hasMoreis true. - In
omi_button.dart,wrapLabel: truewith a fixed width still pins the height, so long localized labels can clip. Keep the width constraint but let the button grow vertically.
You’re at about 94% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/lib/ui/components/omi_segmented_control.dart">
<violation number="1" location="app/lib/ui/components/omi_segmented_control.dart:9">
P3: No app code uses this widget, so the new control provides no UI behavior and remains dead code. Wire a current screen to it or defer adding it until there is a caller.</violation>
</file>
<file name="app/lib/l10n/app_ja.arb">
<violation number="1" location="app/lib/l10n/app_ja.arb:807">
P3: 「下に引いて」は引き下げ操作の案内として不自然です。「下に引っ張って」にしてください。</violation>
</file>
<file name="app/lib/ui/components/omi_button.dart">
<violation number="1" location="app/lib/ui/components/omi_button.dart:260">
P2: With `wrapLabel: true` and `width`, `fixedSize` still pins height to `visualHeight`, so large localized labels clip. Keep the fixed width but allow wrapped buttons to grow vertically.</violation>
</file>
<file name="app/lib/ui/components/omi_glass.dart">
<violation number="1" location="app/lib/ui/components/omi_glass.dart:26">
P3: No app code instantiates `OmiGlass`, so this blur path never reaches a shipped screen; `OmiIconButton` uses only `fill` and `rim`. Wire the widget into its intended floating control or remove the unused widget path.</violation>
</file>
<file name="app/lib/ui/components/omi_settings.dart">
<violation number="1" location="app/lib/ui/components/omi_settings.dart:356">
P3: No app or test constructs `OmiGroupedSlice` or the other new grouped-card widgets, so this painter never contributes to a rendered list. Wire these helpers into their intended consumers or remove the unused widgets.</violation>
</file>
<file name="app/changelog/unreleased/20261005-design-foundation.json">
<violation number="1" location="app/changelog/unreleased/20261005-design-foundation.json:2">
P2: This marks the user-visible Tasks redesign as having no changes, so release collection omits it from the store notes. Replace the exemption with a user-facing sentence describing the redesign.</violation>
</file>
<file name="app/lib/pages/home/page.dart">
<violation number="1" location="app/lib/pages/home/page.dart:944">
P2: Select All stays disabled when the loaded page contains only locked tasks, even if later pages remain; users cannot invoke `selectAllTasks()` to select those later tasks. Enable this item when `tasks.hasMore` is true.</violation>
</file>
<file name="app/lib/l10n/app_en.arb">
<violation number="1" location="app/lib/l10n/app_en.arb:10883">
P2: This toast reports a load failure even when Select All simply reaches its 40-page limit. Use wording that describes partial selection without claiming loading failed.</violation>
</file>
<file name="app/lib/pages/action_items/widgets/action_item_form_sheet.dart">
<violation number="1" location="app/lib/pages/action_items/widgets/action_item_form_sheet.dart:381">
P2: Repeated taps while the conversation lookup is pending can push the same detail route multiple times. Add an in-flight guard and disable the row until opening completes.</violation>
</file>
<file name="app/lib/ui/omi_tokens.dart">
<violation number="1" location="app/lib/ui/omi_tokens.dart:198">
P3: `canvasBlend` is added as Home's bottom tint, but no code reads it, so the documented tint is never painted. Wire it into Home's background blend or remove the unused token.</violation>
</file>
Requires human review: Auto-approval blocked because this review re-detected 2 unresolved issues already reported by Cubic.
Re-trigger cubic
| ); | ||
|
|
||
| Widget label = Text(widget.label, style: textStyle, maxLines: 1, overflow: TextOverflow.ellipsis); | ||
| Widget label = widget.wrapLabel |
There was a problem hiding this comment.
P2: With wrapLabel: true and width, fixedSize still pins height to visualHeight, so large localized labels clip. Keep the fixed width but allow wrapped buttons to grow vertically.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/ui/components/omi_button.dart, line 260:
<comment>With `wrapLabel: true` and `width`, `fixedSize` still pins height to `visualHeight`, so large localized labels clip. Keep the fixed width but allow wrapped buttons to grow vertically.</comment>
<file context>
@@ -239,7 +257,9 @@ class _OmiButtonState extends State<OmiButton> {
);
- Widget label = Text(widget.label, style: textStyle, maxLines: 1, overflow: TextOverflow.ellipsis);
+ Widget label = widget.wrapLabel
+ ? Text(widget.label, style: textStyle, textAlign: TextAlign.center)
+ : Text(widget.label, style: textStyle, maxLines: 1, overflow: TextOverflow.ellipsis);
</file context>
| @@ -0,0 +1,3 @@ | |||
| { | |||
| "kind": "none" | |||
There was a problem hiding this comment.
P2: This marks the user-visible Tasks redesign as having no changes, so release collection omits it from the store notes. Replace the exemption with a user-facing sentence describing the redesign.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/changelog/unreleased/20261005-design-foundation.json, line 2:
<comment>This marks the user-visible Tasks redesign as having no changes, so release collection omits it from the store notes. Replace the exemption with a user-facing sentence describing the redesign.</comment>
<file context>
@@ -0,0 +1,3 @@
+{
+ "kind": "none"
+}
</file context>
| "kind": "none" | |
| "change": "The Tasks tab puts overdue tasks first, folds completed tasks below the list, and brings task actions into one menu." |
| PullDownMenuItem( | ||
| title: context.l10n.selectActionItems, | ||
| icon: Icons.check_box_outlined, | ||
| enabled: hasItems, |
There was a problem hiding this comment.
P2: Select All stays disabled when the loaded page contains only locked tasks, even if later pages remain; users cannot invoke selectAllTasks() to select those later tasks. Enable this item when tasks.hasMore is true.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/home/page.dart, line 944:
<comment>Select All stays disabled when the loaded page contains only locked tasks, even if later pages remain; users cannot invoke `selectAllTasks()` to select those later tasks. Enable this item when `tasks.hasMore` is true.</comment>
<file context>
@@ -917,37 +918,65 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver, Ticker
+ PullDownMenuItem(
+ title: context.l10n.selectActionItems,
+ icon: Icons.check_box_outlined,
+ enabled: hasItems,
+ onTap: () {
+ OmiHaptics.light();
</file context>
| enabled: hasItems, | |
| enabled: hasItems || tasks.hasMore, |
| "@selectAllTasksMenu": { | ||
| "description": "Action menu entry to select every task in the action items list" | ||
| }, | ||
| "selectAllTasksPartial": "Couldn't load every task. Only the tasks already loaded are selected.", |
There was a problem hiding this comment.
P2: This toast reports a load failure even when Select All simply reaches its 40-page limit. Use wording that describes partial selection without claiming loading failed.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_en.arb, line 10883:
<comment>This toast reports a load failure even when Select All simply reaches its 40-page limit. Use wording that describes partial selection without claiming loading failed.</comment>
<file context>
@@ -10876,6 +10880,10 @@
"@selectAllTasksMenu": {
"description": "Action menu entry to select every task in the action items list"
},
+ "selectAllTasksPartial": "Couldn't load every task. Only the tasks already loaded are selected.",
+ "@selectAllTasksPartial": {
+ "description": "Toast after Select All on the Tasks list when some pages of tasks could not be loaded, so the selection is partial."
</file context>
| "selectAllTasksPartial": "Couldn't load every task. Only the tasks already loaded are selected.", | |
| "selectAllTasksPartial": "Not all tasks are selected. Only the tasks already loaded are selected.", |
| if (widget.isEditing && widget.actionItem!.conversationId != null) | ||
| InkWell( | ||
| key: const Key('task_open_conversation'), | ||
| onTap: _isSaving ? null : _openConversation, |
There was a problem hiding this comment.
P2: Repeated taps while the conversation lookup is pending can push the same detail route multiple times. Add an in-flight guard and disable the row until opening completes.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/action_items/widgets/action_item_form_sheet.dart, line 381:
<comment>Repeated taps while the conversation lookup is pending can push the same detail route multiple times. Add an in-flight guard and disable the row until opening completes.</comment>
<file context>
@@ -353,6 +375,22 @@ class _ActionItemFormSheetState extends State<ActionItemFormSheet> {
+ if (widget.isEditing && widget.actionItem!.conversationId != null)
+ InkWell(
+ key: const Key('task_open_conversation'),
+ onTap: _isSaving ? null : _openConversation,
+ child: ConstrainedBox(
+ constraints: const BoxConstraints(minHeight: kOmiMinTapTarget),
</file context>
| /// · Synced): the iOS sliding control in the Settings look, an [OmiColors.iconTile] track with a | ||
| /// thumb that stands out from it (white in light mode, [OmiColors.surface3] in dark), full width, | ||
| /// 44 pt segments whose labels never wrap. | ||
| class OmiSegmentedControl<T extends Object> extends StatelessWidget { |
There was a problem hiding this comment.
P3: No app code uses this widget, so the new control provides no UI behavior and remains dead code. Wire a current screen to it or defer adding it until there is a caller.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/ui/components/omi_segmented_control.dart, line 9:
<comment>No app code uses this widget, so the new control provides no UI behavior and remains dead code. Wire a current screen to it or defer adding it until there is a caller.</comment>
<file context>
@@ -0,0 +1,47 @@
+/// · Synced): the iOS sliding control in the Settings look, an [OmiColors.iconTile] track with a
+/// thumb that stands out from it (white in light mode, [OmiColors.surface3] in dark), full width,
+/// 44 pt segments whose labels never wrap.
+class OmiSegmentedControl<T extends Object> extends StatelessWidget {
+ const OmiSegmentedControl({super.key, required this.value, required this.segments, required this.onChanged});
+
</file context>
| "tasksToday": "今日", | ||
| "tasksTomorrow": "明日", | ||
| "tasksNoDeadline": "期限なし", | ||
| "tasksNextPageFailed": "タスクをさらに読み込めませんでした。下に引いて再試行してください。", |
There was a problem hiding this comment.
P3: 「下に引いて」は引き下げ操作の案内として不自然です。「下に引っ張って」にしてください。
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/l10n/app_ja.arb, line 807:
<comment>「下に引いて」は引き下げ操作の案内として不自然です。「下に引っ張って」にしてください。</comment>
<file context>
@@ -804,6 +804,7 @@
"tasksToday": "今日",
"tasksTomorrow": "明日",
"tasksNoDeadline": "期限なし",
+ "tasksNextPageFailed": "タスクをさらに読み込めませんでした。下に引いて再試行してください。",
"tasksLater": "後で",
"loadingTasks": "タスクを読み込んでいます…",
</file context>
| "tasksNextPageFailed": "タスクをさらに読み込めませんでした。下に引いて再試行してください。", | |
| "tasksNextPageFailed": "タスクをさらに読み込めませんでした。下に引っ張って再試行してください。", |
|
|
||
| /// Blur what scrolls beneath. It costs a compositing layer, so only controls that float over a | ||
| /// list use it. | ||
| final bool blur; |
There was a problem hiding this comment.
P3: No app code instantiates OmiGlass, so this blur path never reaches a shipped screen; OmiIconButton uses only fill and rim. Wire the widget into its intended floating control or remove the unused widget path.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/ui/components/omi_glass.dart, line 26:
<comment>No app code instantiates `OmiGlass`, so this blur path never reaches a shipped screen; `OmiIconButton` uses only `fill` and `rim`. Wire the widget into its intended floating control or remove the unused widget path.</comment>
<file context>
@@ -0,0 +1,126 @@
+
+ /// Blur what scrolls beneath. It costs a compositing layer, so only controls that float over a
+ /// list use it.
+ final bool blur;
+
+ static const double blurSigma = 16;
</file context>
| /// One row of an outlined Settings card that a lazy list builds row by row (thousands of | ||
| /// recordings): every row paints the card's sides, [first] rounds and closes the top, [last] the | ||
| /// bottom, so consecutive rows read as one [OmiGroupedCard]. | ||
| class OmiGroupedSlice extends StatelessWidget { |
There was a problem hiding this comment.
P3: No app or test constructs OmiGroupedSlice or the other new grouped-card widgets, so this painter never contributes to a rendered list. Wire these helpers into their intended consumers or remove the unused widgets.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/ui/components/omi_settings.dart, line 356:
<comment>No app or test constructs `OmiGroupedSlice` or the other new grouped-card widgets, so this painter never contributes to a rendered list. Wire these helpers into their intended consumers or remove the unused widgets.</comment>
<file context>
@@ -128,6 +278,221 @@ class OmiSettingsGroup extends StatelessWidget {
+/// One row of an outlined Settings card that a lazy list builds row by row (thousands of
+/// recordings): every row paints the card's sides, [first] rounds and closes the top, [last] the
+/// bottom, so consecutive rows read as one [OmiGroupedCard].
+class OmiGroupedSlice extends StatelessWidget {
+ const OmiGroupedSlice({super.key, required this.child, this.first = false, this.last = false});
+
</file context>
| canvas: Color(0xFFFFFFFF), | ||
| canvasCard: Color(0xFFF2F2F7), | ||
| // #C9B89A at 10%: over the white page, #FAF8F4. | ||
| canvasBlend: Color(0x1AC9B89A), |
There was a problem hiding this comment.
P3: canvasBlend is added as Home's bottom tint, but no code reads it, so the documented tint is never painted. Wire it into Home's background blend or remove the unused token.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/ui/omi_tokens.dart, line 198:
<comment>`canvasBlend` is added as Home's bottom tint, but no code reads it, so the documented tint is never painted. Wire it into Home's background blend or remove the unused token.</comment>
<file context>
@@ -109,6 +192,23 @@ class OmiPalette {
+ canvas: Color(0xFFFFFFFF),
+ canvasCard: Color(0xFFF2F2F7),
+ // #C9B89A at 10%: over the white page, #FAF8F4.
+ canvasBlend: Color(0x1AC9B89A),
+ // Omi v8 in light: circles are frosted white (55%) with a 9% hairline and a faint 6% shadow; the
+ // Ask bar and record button are frosted white with a white edge, a faint outline and a soft shadow.
</file context>
|
Thanks @Itaxh1 — reviewed the full diff. This is a cohesive Tasks-surface change and the quality holds up. Some things I verified in the code:
Three notes before merge:
Leaving for human maintainer review: the v2 merge order behind #20342 and the Tasks UX calls (hiding paywalled tasks from the list, folding Completed) need a product sign-off. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (mobile app v2 UX redesign, part 5/9) — approve-only ceiling per policy, new commits since last approval. CI green, no abuse signal, not a draft.
kodjima33
left a comment
There was a problem hiding this comment.
Itaxh1 v2 cleaner UX 5/9 -- feature, approve-only
kodjima33
left a comment
There was a problem hiding this comment.
Itaxh1 v2 cleaner-UX series — feature (mobile/flutter), explicitly carved out as normal per standing memory (self-bounty flag applies elsewhere on this account, not this series) — approve only, not a
|
Superseded by #20835. Closing; please follow that PR. |
|
Hey @Itaxh1 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
TL;DR: The Tasks tab, UI only, no backend change. Overdue comes first. Done tasks fold under the list as "Completed n" instead of a separate view. The Home | Tasks header has one ⋯ (Task Integrations, Select Multiple, Select All), and a row's long-press opens the same anchored menu as the conversation page. A task heard in a conversation can open that conversation from its edit sheet. Locked (paywalled) tasks stay off the list for now, because the backend refuses every write on them. Part 5 of 9 of the v2 cleaner UX; it needs #20342 first. Addresses #19859.
What changed and why
Tasks is the page people leave the app from most, and the store reviews ask to see what slipped and to get tasks into Google Tasks or Apple Reminders. This restyles the existing page around that.
action_items_page.dart):PullDownButton: Task Integrations | Select Multiple, Select All.selectAllTasksPartial).task_export.dart→ActionItemsProvider.exportItems), so the connect nudge, skip-if-exported and the outcome snackbar behave the same.TaskIntegrationProvider.ensureLoadedjoins a load in flight instead of fetching twice.openTaskEditor). A task Omi heard in a conversation gets an Open conversation row; back returns to the sheet with its edits. Deep links and global search open a task the same way (a locked one goes to the plan page).tasksNextPageFailed), instead of retrying on every frame.selectAllTasksPartialandtasksNextPageFailed, in all 49 locales.Not changed: the bucket rule (
categoryForItem) and its parity fixture, create, delete with Undo, drag and drop, indent, search, Siri sync, the backend.Screenshots
Before is
main(4bdcc56d0d), after is this branch (with #20342 under it). Rendered byapp/scripts/visual_audit.sh(real widgets, flutter-tester, 390×844 at 2×, fixture data, light theme). The audit's Home frame doesn't draw Home's header actions, so the ⋯ isn't in these renders.main)On an iPhone 15 Pro Max, from this branch before the split. Since these were taken, locked tasks are hidden (the padlock row is gone) and the page takes Home's page colour.
Product invariants affected
none (presentation only;
categoryForItemandcontracts/parity/task_due_buckets.jsonare untouched, and no INV-TASK-1 path is in the diff)How it was verified
flutter analyze: no errors or warnings (the 89 infos are all onmain).dart format --line-length 120: clean.flutter test) on this branch: 4,697 passed, 14 skipped, 0 failed.python3 scripts/l10n.py check: OK.scripts/pr-preflightwith this body: passed.Tests
test/widgets/action_items_list_layout_test.dart(new): Overdue first and sentence-case headings; the due day only on Overdue and Later rows, red while overdue; hairlines between rows, none after the last.test/widgets/action_items_completed_section_test.dart(new):test/providers/action_items_bulk_selection_test.dart(new):test/providers/task_integration_provider_default_test.dart(new): retries after a load that didn't reach the server, joins a load in flight, and keeps or publishes the default app based on the server's answer.test/widgets/action_items_row_gestures_test.dart: long-press offers Export for one task, and points to Connect when no app is linked.Failure class (fixes)
Failure-Class: none