Skip to content

feat(app): v2 cleaner UX 5/9 — Tasks: Overdue first, Completed folded, one ⋯ menu - #20329

Closed
Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:design/tasks-list-variants
Closed

Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:design/tasks-list-variants

Conversation

@Itaxh1

@Itaxh1 Itaxh1 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Part 5 of 9. The plan and merge order are in #20342. This PR needs #20342 (the design foundation) merged first; until then it also lists that PR's 21 files. This PR's own change: compare (17 files, +1,660 / −351 without translations).

Since the last review: the task page is gone. Per David's review, an existing task opens in the edit sheet again, so several tasks can be edited in a row, and the sheet gains Open conversation.

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.

  • The list (action_items_page.dart):
    • Overdue first, expanded, then Today, Tomorrow, Later and No Deadline.
    • Headings are sentence case with the count beside them, and the fold chevron after it.
    • Rows have a thin solid ring (filled when done) and Home's list type. A hairline separates rows.
    • The due day sits on the right only where the section doesn't already say it ("Wed", "Oct 14"; red while overdue).
    • Tasks shows Home's page colour.
  • Completed folds under the list as "Completed n ›": newest first, Clear with a confirm, and a ring tap brings a task back. It replaces the separate completed view, so the Completed toggle in the Home header is gone. A task completed just now sorts first without waiting for the server. The rows are a lazy sliver.
  • One ⋯ on the Home | Tasks switcher replaces the Export and Completed buttons and the menu in the search row. It is the conversation page's anchored PullDownButton: Task Integrations | Select Multiple, Select All.
    • Select All loads the remaining pages first and skips paywalled tasks.
    • If a page fails, the selection says it is partial (selectAllTasksPartial).
    • Both selection entries are disabled while the list is empty.
  • The row long-press menu is the same anchored menu: Open, Mark Complete | Export, Indent / Outdent, Select | Delete Task.
  • Export one task from the row menu through the selection bar's bulk export (task_export.dart → ActionItemsProvider.exportItems), so the connect nudge, skip-if-exported and the outcome snackbar behave the same.
    • A task whose export is in flight isn't sent twice.
    • A stale copy of an exported task is skipped, with the app named.
    • TaskIntegrationProvider.ensureLoaded joins a load in flight instead of fetching twice.
  • The edit sheet: existing tasks still open in main's sheet (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).
  • Locked (paywalled) tasks are left off the list for now. The backend answers 402 to every write on them, delete included, so a locked row could only lead to the plan page. A paid plan unlocks them all. Counts are the rows shown. If hidden rows leave the list too short to scroll, the page loads the next page itself. The lock-row code stays, so showing them again is a small change.
  • Paging: a page that fails stops paging until a pull to refresh (tasksNextPageFailed), instead of retrying on every frame.
  • Strings: selectAllTasksPartial and tasksNextPageFailed, 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 by app/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.

Before (main) After (this branch)
The list Before: The list After: The list
Editing a task heard in a conversation Before: Editing a task heard in a conversation After: Editing a task heard in a conversation
Holding a task Before: Holding a task After: Holding a task

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.

After: the list After: Completed open
Tasks list with Completed folded Completed section open

Product invariants affected

none (presentation only; categoryForItem and contracts/parity/task_due_buckets.json are 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 on main). dart format --line-length 120: clean.
  • Full app suite (flutter test) on this branch: 4,697 passed, 14 skipped, 0 failed.
  • python3 scripts/l10n.py check: OK.
  • Visual audit, main against this branch: the screenshots above.
  • scripts/pr-preflight with 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):
    • completed tasks folded at the bottom, newest first, with Clear;
    • locked tasks are neither listed nor counted (open, done, or a whole first page), and the next page still loads;
    • a failed next page is asked for once, with a toast;
    • selecting a done task never cascades, and Clear deletes only listed done tasks;
    • holding a done task offers Mark Incomplete and Delete Task;
    • a task heard in a conversation opens the edit sheet with Open conversation.
  • test/providers/action_items_bulk_selection_test.dart (new):
    • Select All skips paywalled tasks, loads the remaining pages, and says partial when a page fails or the cap is hit;
    • a failed page stops paging until a fresh fetch;
    • a task completed just now sorts first;
    • slow or failing earlier toggles don't undo newer ones;
    • concurrent exports of one task send it once, and an exporter that throws is one failed task;
    • a stale copy of an exported task is skipped.
  • 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

Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
@Itaxh1

Itaxh1 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

@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

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 2, 2026

Copy link
Copy Markdown

@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.

@Itaxh1
Itaxh1 marked this pull request as ready for review October 2, 2026 11:26

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed against the latest diff

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread app/lib/pages/home/page.dart Resolved
Comment thread app/lib/pages/home/page.dart Resolved
Comment thread app/lib/pages/home/page.dart Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
- 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.
@Itaxh1

Itaxh1 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 2, 2026

Copy link
Copy Markdown

@cubic-dev-ai review

@Itaxh1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
- 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.
@Itaxh1

Itaxh1 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 2, 2026

Copy link
Copy Markdown

@cubic-dev-ai review

@Itaxh1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
- 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.
@Itaxh1

Itaxh1 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 2, 2026

Copy link
Copy Markdown

@cubic-dev-ai review

@Itaxh1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 issues found across 16 files

Confidence score: 3/5

  • Concurrent calls through the shared export path in action_items_provider.dart can export the same task twice. Track in-flight task IDs and skip or serialize duplicate requests.
  • In task_page.dart, a stale updateActionItemState response 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() in task_integration_provider.dart can 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 after clearUserData().
  • Clear Completed in action_items_page.dart includes 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

Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
- 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.
@Itaxh1

Itaxh1 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 2, 2026

Copy link
Copy Markdown

@cubic-dev-ai review

@Itaxh1 I have started the AI code review. It will take a few minutes to complete.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
Itaxh1 added a commit to Itaxh1/omi that referenced this pull request Oct 2, 2026
- 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.
@Itaxh1

Itaxh1 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 2, 2026

Copy link
Copy Markdown

@cubic-dev-ai review

@Itaxh1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 with isLatest().
  • 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 because Container.constraints is null when only height and color are 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 failed loadMoreActionItems can 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

View Feedback

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>

Comment on lines +95 to +96
final hairlines = find.byWidgetPredicate((w) => w is Container && w.constraints?.maxHeight == 0.5);
// Today has two rows and Later has two: one hairline each.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@Git-on-my-level

Copy link
Copy Markdown
Member

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):

  • task_page.dart: the save/toggle guards (_saving/_toggling) and re-reading the provider's record after a toggle keep concurrent surfaces honest, and PopScope + confirmDiscardChanges covers unsaved edits. Delete via deleteTaskWithUndo is safe after the page pops since the toast hosts on the navigator's context. One nit: after a partial save failure (description ok, date failed) a retry re-sends the description.
  • action_items_provider.dart: the per-item state-mutation tokens plus _adoptServerRecord cleanly prevent a stale server answer from clobbering a newer toggle; the _exportingIds in-flight guard and per-item export error isolation are good; caching completedItemsNewestFirst per change version avoids re-sorting long histories on rebuild. Minor: the 50ms _isFetching wait loop in selectAllTasks has no deadline of its own (the 40-page bound on loadMore is the only backstop).
  • action_items_page.dart: overdue section above the dated sections, completed folded under the list as a lazy SliverList, and the post-frame pagination re-check when locked rows are hidden is a thoughtful touch so a short list still fills.
  • home/page.dart / task_export.dart / task_integration_provider.dart: Select All now spans all server pages (excluding paywalled tasks), and single-task export reusing the selection-bar path with ensureLoaded() (retry-after-failure, in-flight join) keeps the two flows consistent — both behaviors are unit-tested.
  • Entry points (home_deep_links.dart, global_search.dart, visual audit scenario) consistently route to openTaskPage, with locked tasks going to the plan page.

Two things to confirm:

  1. @kodjima33 approved c2d0115, but three commits landed after that — c5afa12 (Tasks adopts Home's page colour), 05783ed (locked/paywalled tasks hidden from the list entirely), and c428aac. Hiding locked tasks from the Tasks list is a monetization-visible behavior change (free users no longer see their older locked tasks there at all; the rationale — every write 402s and a paid plan unlocks all — is documented in the PR body). Worth an explicit maintainer sign-off on this head since the approval predates it.
  2. The "Dart Analyze & Tests" CI job is skipped on this head, so the new tests (bulk selection, completed section, list layout, row gestures — they're substantial) haven't run in CI here. If someone with the toolchain can trigger the full app lane before merge, that closes the main verification gap.

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 need human response.

@Git-on-my-level Git-on-my-level added flutter flutter work needs-maintainer-review Needs a human maintainer to sign off before merge labels Oct 2, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member

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:

  • app/lib/pages/action_items/task_page.dart — the new full-screen task page is careful: _save captures the navigator host context before awaiting (so the confirmation snackbar never uses a dead context), PopScope + _isDirty covers unsaved-edit discard, and _toggleCompleted re-reads the provider's record after the server answers instead of trusting the request outcome. Locked tasks route to the plan page in openTaskPage.
  • app/lib/providers/action_items_provider.dart — updateActionItemState now uses per-item mutation tokens so a rapid double-toggle can't let a stale response win, and _adoptServerRecord takes the server's completedAt/updatedAt over the provisional local stamps; exportItems dedupes concurrent exports per task id, isolates a single exporter's failure to one failed task, and re-fetches so exported/exportPlatform surface. completedItemsNewestFirst caches the sort per change version rather than per build.
  • app/lib/providers/task_integration_provider.dart — loadFromBackend joins an in-flight load instead of double-fetching, and ensureLoaded retries after a load that never reached the server; the session-reset path clears the joinable future, which is the subtle part and it's handled (and tested).
  • app/lib/pages/action_items/action_items_page.dart — overdue now renders above the dated sections, Completed folds under the list as a lazy SliverList with Clear excluding locked tasks, locked tasks are filtered via _withoutLocked everywhere the list is built (including search results), and a post-frame _onScroll keeps pagination alive when hiding locked rows leaves the list too short to scroll.
  • app/lib/pages/home/page.dart, widgets/task_row_parts.dart, task_export.dart — the header's ⋯ and the row long-press share the anchored pull-down menu (matching the conversation page); single-task export reuses the bulk bar's provider path so the connect nudge, skip-if-exported and outcome snackbar behave identically. TaskCompletionMark swaps the dashed ring for a thin solid accent ring; the removed doneColor/_DashedCirclePainter leave no stale references.
  • home_deep_links.dart / global_search.dart — both task entry points now route through openTaskPage; integration_test/visual_audit/scenarios/tasks.dart follows the move.
  • l10n — every key the new code references (deleteActionItem, connectTaskAppToExport, alreadyExportedTo, clearDueDate, taskIntegrations, …) resolves in app_en.arb, so no ARB changes were needed.
  • Tests — good coverage of the new behavior: bulk selection excluding locked/exported tasks, ensureLoaded retry/join, the completed section fold/clear/reopen, list layout with overdue-first and due-day labels, and row-gesture export with the connect nudge.

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 bash test.sh (or a CI run) before merge would close that.

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 need human response.

@Git-on-my-level Git-on-my-level added the positive-signal Automation verified a genuine fix/quality contribution label Oct 3, 2026
@Itaxh1
Itaxh1 force-pushed the design/tasks-list-variants branch from c428aac to b1dafc3 Compare October 5, 2026 08:41
@Itaxh1 Itaxh1 changed the title feat(app): Tasks — Overdue first, a page per task, Completed folded under the list feat(app): v2 cleaner UX 5/9 — Tasks: Overdue first, Completed folded, one ⋯ menu Oct 5, 2026
@Itaxh1
Itaxh1 marked this pull request as draft October 5, 2026 08:42
@Itaxh1
Itaxh1 force-pushed the design/tasks-list-variants branch from b1dafc3 to 2f9641c Compare October 5, 2026 08:50
@Itaxh1
Itaxh1 marked this pull request as ready for review October 5, 2026 09:15

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 when tasks.hasMore is true.
  • In omi_button.dart, wrapLabel: true with 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
"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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
enabled: hasItems,
enabled: hasItems || tasks.hasMore,

Comment thread app/lib/l10n/app_en.arb
"@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.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
"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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

Comment thread app/lib/l10n/app_ja.arb
"tasksToday": "今日",
"tasksTomorrow": "明日",
"tasksNoDeadline": "期限なし",
"tasksNextPageFailed": "タスクをさらに読み込めませんでした。下に引いて再試行してください。",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
"tasksNextPageFailed": "タスクをさらに読み込めませんでした。下に引いて再試行してください。",
"tasksNextPageFailed": "タスクをさらに読み込めませんでした。下に引っ張って再試行してください。",


/// Blur what scrolls beneath. It costs a compositing layer, so only controls that float over a
/// list use it.
final bool blur;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@Git-on-my-level

Copy link
Copy Markdown
Member

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:

  • action_items_provider.dart: loadMoreActionItems() now reports whether the page landed (lastPageFailed), so paging stops after a failed page instead of retrying on every scroll; the per-item _stateMutationTokens correctly stop a stale toggle response from reverting a newer toggle; _adoptServerRecord adopts the server's completion timestamps so the Completed order matches the next refresh.
  • action_items_page.dart: Overdue now renders above the dated sections, Completed folds under the list as a lazy sliver, and locked tasks are filtered via _withoutLocked with a post-frame pagination kick that is correctly guarded against looping while offline.
  • task_export.dart + task_integration_provider.dart: the single-task export reuses the selection-bar path with ensureLoaded() (joins an in-flight load, retries after a failed one) and a mounted check after the await. Nice.
  • action_item_form_sheet.dart: openTaskEditor routing locked tasks to the plan page (backend 402s every write) is the right call, and routing deep links + global search through it keeps behavior consistent.
  • omi_settings.dart / omi_tokens.dart / device_tile.dart: Instrument Sans ships with its SIL OFL 1.1 license file and pubspec weights; the new grouped/canvas/glass tokens cover light and dark; DeviceTile is unreferenced here but honestly allowlisted in the dead-code list against feat(app): v2 cleaner UX 6/9 — Flat Home: white canvas and glass header #20328/feat(app): v2 cleaner UX 8/9 — conversation rows show their device, Try again in line #20717/feat(app): v2 cleaner UX 9/9 — Daily Recaps: flat rows, counts that open their lists #20718.
  • l10n adds the two new toast strings across all locales; the ux-contract and changelog entries match the code.

Three notes before merge:

  1. This needs feat(app): v2 cleaner UX 1/9 — design foundation (no visible change) #20342 merged first (part 5 of 9) — the diff still carries that PR's files, so merge order matters.
  2. On this head the Dart/mobile CI jobs are skipped, so the ~1,100 new test lines haven't run in CI here — worth a run (or a re-push that triggers them) before merge.
  3. The earlier approval was on a previous head; the current head has no human review yet.

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 need human response.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Itaxh1 v2 cleaner UX 5/9 -- feature, approve-only

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@undivisible

Copy link
Copy Markdown
Collaborator

Superseded by #20835. Closing; please follow that PR.

@github-actions

Copy link
Copy Markdown
Contributor

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flutter flutter work needs-maintainer-review Needs a human maintainer to sign off before merge positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants