Skip to content

feat(app): v2 cleaner UX 9/9 — Daily Recaps: flat rows, counts that open their lists - #20718

Closed
Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:feat/v2-daily-recaps
Closed

Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:feat/v2-daily-recaps

Conversation

@Itaxh1

@Itaxh1 Itaxh1 commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

TL;DR: Daily Recaps read like Home. The list is flat rows (the day's emoji in a tile, the headline, the date and counts, a chevron), and a recap card on Home puts the day's first place on a map along the top. A recap's page opens with the emoji, the date and the headline over one line of counts, "3 conversations › · 1h 23m · 2 tasks ›", where the stat boxes were. The conversation and task counts still open that day's conversations and tasks, as on main. Part 9 of 9 of the v2 cleaner UX; it needs #20342 first.

Part 9 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 (10 files, +322 / −309 without translations).

What changed and why

  • The list (daily_summaries_list.dart, daily_recaps_page.dart):
    • each recap is a flat row with the day's emoji in a tile, the headline (two lines at most), then the date and counts, and a chevron;
    • swipe to delete is unchanged, and the page-coloured fill keeps the red hidden until the row moves;
    • the Daily Recaps page uses the canvas.
  • Home's section headers: the Daily Recaps header on Home is a small grey label with View All underlined, and it moves to Home's 16 pt gutter together with For You beside it (home_for_you.dart), so the two stay aligned (main's home_for_you_test checks that).
  • The recap card on Home (daily_summary_card.dart, home_daily_recaps.dart): a card with the glass rim, the day's first place on a map along the top, and the date and headline below. Below the map the headline gets whole lines only, at most two. A recap without a place shows its emoji, headline and overview, as before.
  • A recap's page (daily_summary_detail_page.dart):
    • the canvas and glass controls; the bar stays pinned and the title scrolls;
    • the emoji in a tile, the date and the headline, then one line of counts in place of the stat boxes. The conversation and task counts are links with a chevron on a 44 pt target and open that day's conversations and tasks, as main's stats did. The task count shows even at 0, as on main. A zero length is left out. Desktop watching time and proactive moments follow when present.
    • highlights and places are tile rows, and tasks, questions, decisions and nuggets are flat rows under small grey labels.

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 fixture recaps have no places, so the map card isn't in these renders.

Before (main) After (this branch)
Daily Recaps Before: Daily Recaps After: Daily Recaps

Product invariants affected

none

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,668 passed, 14 skipped, 2 failed. Neither failure is in code this PR touches: test/unit/voice_recorder_test.dart ("close discards failed pending WAV only after explicit user removal") is the flake that fails 1 run in 6 on main itself, and test/unit/ring_custody_download_test.dart ("CAP_APP_ACK_RECLAIM: incremental advance fires on each durable chunk") is a timing check in the pendant download code that missed while two suites ran on the machine at once. Run alone on this branch, both files passed 34/34, three times in a row.
  • Visual audit, main against this branch: the screenshots above.
  • scripts/pr-preflight with this body: passed.
  • The combined branch these PRs were split from ran on an iPhone 15 Pro Max.

Tests

  • test/widgets/daily_summaries_list_test.dart: a recap row has the day's emoji in a tile and a chevron, with no card around it.
  • test/widgets/daily_summary_card_test.dart: a recap with places shows the first one on a map along the top; the card has the glass rim; only a recap without a map shows its emoji.
  • test/widgets/daily_summary_detail_page_test.dart:
    • the counts are one line under the headline ("3 conversations", "1h 23m", "2 tasks");
    • the conversation and task counts open their day pages;
    • a zero length is left out, and "0 tasks" stays, as on main.

Failure class (fixes)

Failure-Class: none

Review in cubic

@Itaxh1
Itaxh1 force-pushed the feat/v2-daily-recaps branch from 4146249 to 88895c6 Compare October 5, 2026 08:49
@Itaxh1
Itaxh1 force-pushed the feat/v2-daily-recaps branch from 88895c6 to 271cdfd Compare October 5, 2026 09:25
@Itaxh1
Itaxh1 marked this pull request as ready for review October 5, 2026 09:47

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

10 issues found across 37 files

Confidence score: 3/5

  • In omi_button.dart, fixedSize still caps wrapped buttons at visualHeight, so longer labels can be clipped. Let wrapped buttons grow vertically while keeping the supplied width constraints.
  • In daily_summary_detail_page.dart, the conversation and task count buttons have no accessibility activation action, so VoiceOver and TalkBack users can’t open those day pages. Add onTap to the replacement Semantics nodes.
  • In omi_tokens.dart, canvasBlend has no consumer, so light canvas pages stay solid white instead of getting the documented warm tint. Apply it to the canvas background gradient or remove the unused token.
  • In omi_grouped_page.dart, the OmiCanvas marker makes the back button and filled actions use glass styling instead of the grouped Settings header treatment. Remove the marker from this grouped page.

You’re at about 97% 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/test/widgets/ui/omi_canvas_test.dart">

<violation number="1" location="app/test/widgets/ui/omi_canvas_test.dart:111">
P2: These whole-`ShapeDecoration` comparisons are brittle against a correct build. `OmiGlass.fill` reads the `shadows`/`floatShadows` getters, which allocate a fresh `List<BoxShadow>` on every call; `ShapeDecoration.==` compares that list with identity semantics, so `expect(circle(tester).decoration, OmiGlass.fill(const CircleBorder()))` here (and the `contains(OmiGlass.fill(const StadiumBorder()))` check in the `OmiGlass` blur-less test) compares two decoration instances that hold different `BoxShadow` list instances and can fail at runtime. Assert the resolved fields (color/shape/shadows) instead of the whole decoration object.</violation>
</file>

<file name="app/lib/ui/components/omi_line_icon.dart">

<violation number="1" location="app/lib/ui/components/omi_line_icon.dart:67">
P3: OmiLineIcon/OmiLineGlyph are introduced and exported from ui.dart but nothing in the repo references them, and no widget test covers them, so this ~90-line component is dead API surface at HEAD. Wire it to its intended toolbar/Ask bar consumers, add it to the dead-code allowlist with a reason like device_tile.dart, or drop it until the consuming PR lands.</violation>
</file>

<file name="app/lib/ui/components/omi_segmented_control.dart">

<violation number="1" location="app/lib/ui/components/omi_segmented_control.dart:9">
P3: OmiSegmentedControl has no caller or test at merge time: nothing in app/lib or app/test references it, and it is not exported from ui.dart. This PR already allowlisted device_tile for exactly this "pre-lands before its consumer" situation; give this file the equivalent flutter.allowlist.json entry, or wire up a consumer/test in this PR.</violation>
</file>

<file name="app/lib/ui/omi_tokens.dart">

<violation number="1" location="app/lib/ui/omi_tokens.dart:250">
P2: `canvasBlend` is never consumed, so light canvas pages remain solid white instead of receiving the documented warm bottom tint. Apply this token in the canvas background gradient, or remove it until a consumer exists.</violation>
</file>

<file name="app/lib/ui/components/omi_button.dart">

<violation number="1" location="app/lib/ui/components/omi_button.dart:299">
P2: `wrapLabel` cannot grow a fixed-width button because `fixedSize` still constrains its height to `visualHeight`. Allow the wrapped variant to use the supplied width as a maximum/minimum while leaving height unconstrained, otherwise long localized labels still overflow instead of being readable.</violation>
</file>

<file name=".github/scripts/dead_code/flutter.allowlist.json">

<violation number="1" location=".github/scripts/dead_code/flutter.allowlist.json:56">
P3: This allowlist entry is stale before it ships: the dead-code checker reports `app/lib/widgets/device_tile.dart` is already reachable at this PR head (imported by `app/lib/pages/conversations/widgets/daily_summaries_list.dart` and `app/lib/pages/settings/daily_summary_detail_page.dart` via `package:omi/widgets/device_tile.dart`), so the entry emits "allowlist entries no longer dead" and never matches actual dead code. Drop the entry in this PR instead of adding it.</violation>
</file>

<file name="app/lib/ui/components/omi_sheet.dart">

<violation number="1" location="app/lib/ui/components/omi_sheet.dart:38">
P3: The new `surface` parameter on `showOmiSheet` has no consumer: no call site in `app/lib` or `app/test` passes it (the only `surface` hits near `showOmiSheet` calls belong to nested arguments such as `conversationDisplayTitle(..., surface: ConversationUntitledRenderedSurface.actions)`), and Settings already passes `surface` to `showOmiSurfaceSheet`, not `showOmiSheet`. The param is also undocumented while `showOmiSurfaceSheet` documents its `surface` semantics in detail (palette switch rebuild, etc.). Either wire up the consumer this was added for within this PR, drop the parameter, or at minimum document it.</violation>
</file>

<file name="app/lib/pages/settings/daily_summary_detail_page.dart">

<violation number="1" location="app/lib/pages/settings/daily_summary_detail_page.dart:406">
P2: The conversation and task counts are exposed as labeled buttons without an accessibility activation action. Add `onTap: onTap` to this replacement `Semantics` node so VoiceOver and TalkBack can open the same day pages that pointer taps open.</violation>
</file>

<file name="app/lib/widgets/device_tile.dart">

<violation number="1" location="app/lib/widgets/device_tile.dart:82">
P3: `isPendant` is a new public static with no caller anywhere in the app or tests. Drop it until a call site exists, or the analyzer will flag it and readers will assume rows rely on it.</violation>
</file>

<file name="app/lib/ui/components/omi_grouped_page.dart">

<violation number="1" location="app/lib/ui/components/omi_grouped_page.dart:77">
P2: These header controls are inside an `OmiCanvas` marker even though `OmiGroupedPage` is a grouped Settings page, so the default back button and filled actions render glass rather than the grouped header treatment. Remove the canvas wrappers here so `OmiIconButton.filled` uses its grouped-page palette.</violation>
</file>

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

Re-trigger cubic

testWidgets('are glass on the canvas and keep their fill elsewhere', (tester) async {
final button = OmiIconButton.filled(icon: const Icon(Icons.search), label: 'Search', onPressed: () {});
await pumpIn(tester, button);
expect(circle(tester).decoration, OmiGlass.fill(const CircleBorder()));

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: These whole-ShapeDecoration comparisons are brittle against a correct build. OmiGlass.fill reads the shadows/floatShadows getters, which allocate a fresh List<BoxShadow> on every call; ShapeDecoration.== compares that list with identity semantics, so expect(circle(tester).decoration, OmiGlass.fill(const CircleBorder())) here (and the contains(OmiGlass.fill(const StadiumBorder())) check in the OmiGlass blur-less test) compares two decoration instances that hold different BoxShadow list instances and can fail at runtime. Assert the resolved fields (color/shape/shadows) instead of the whole decoration object.

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/ui/omi_canvas_test.dart, line 111:

<comment>These whole-`ShapeDecoration` comparisons are brittle against a correct build. `OmiGlass.fill` reads the `shadows`/`floatShadows` getters, which allocate a fresh `List<BoxShadow>` on every call; `ShapeDecoration.==` compares that list with identity semantics, so `expect(circle(tester).decoration, OmiGlass.fill(const CircleBorder()))` here (and the `contains(OmiGlass.fill(const StadiumBorder()))` check in the `OmiGlass` blur-less test) compares two decoration instances that hold different `BoxShadow` list instances and can fail at runtime. Assert the resolved fields (color/shape/shadows) instead of the whole decoration object.</comment>

<file context>
@@ -0,0 +1,206 @@
+    testWidgets('are glass on the canvas and keep their fill elsewhere', (tester) async {
+      final button = OmiIconButton.filled(icon: const Icon(Icons.search), label: 'Search', onPressed: () {});
+      await pumpIn(tester, button);
+      expect(circle(tester).decoration, OmiGlass.fill(const CircleBorder()));
+      expect(circle(tester).foregroundDecoration, isA<OmiGlassRim>());
+
</file context>
Suggested change
expect(circle(tester).decoration, OmiGlass.fill(const CircleBorder()));
final deco = circle(tester).decoration! as ShapeDecoration;
expect(deco.color, OmiColors.glass);
expect(deco.shape, const CircleBorder());
expect(deco.shadows, OmiGlass.shadows);

static Color get dangerSurface => active.dangerSurface;
static Color get canvas => active.canvas;
static Color get canvasCard => active.canvasCard;
static Color get canvasBlend => active.canvasBlend;

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: canvasBlend is never consumed, so light canvas pages remain solid white instead of receiving the documented warm bottom tint. Apply this token in the canvas background gradient, or remove it until a consumer exists.

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

<comment>`canvasBlend` is never consumed, so light canvas pages remain solid white instead of receiving the documented warm bottom tint. Apply this token in the canvas background gradient, or remove it until a consumer exists.</comment>

<file context>
@@ -140,6 +245,20 @@ abstract final class OmiColors {
   static Color get dangerSurface => active.dangerSurface;
+  static Color get canvas => active.canvas;
+  static Color get canvasCard => active.canvasCard;
+  static Color get canvasBlend => active.canvasBlend;
+  static Color get glass => active.glass;
+  static Color get glassEdge => active.glassEdge;
</file context>

padding: WidgetStatePropertyAll(EdgeInsets.symmetric(horizontal: horizontalPadding)),
// A wrapped label keeps a little air above and below; one line still sits in the minimum height.
padding: WidgetStatePropertyAll(
EdgeInsets.symmetric(horizontal: horizontalPadding, vertical: widget.wrapLabel ? OmiSpacing.xs : 0)),

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: wrapLabel cannot grow a fixed-width button because fixedSize still constrains its height to visualHeight. Allow the wrapped variant to use the supplied width as a maximum/minimum while leaving height unconstrained, otherwise long localized labels still overflow instead of being readable.

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

<comment>`wrapLabel` cannot grow a fixed-width button because `fixedSize` still constrains its height to `visualHeight`. Allow the wrapped variant to use the supplied width as a maximum/minimum while leaving height unconstrained, otherwise long localized labels still overflow instead of being readable.</comment>

<file context>
@@ -274,10 +294,16 @@ class _OmiButtonState extends State<OmiButton> {
-        padding: WidgetStatePropertyAll(EdgeInsets.symmetric(horizontal: horizontalPadding)),
+        // A wrapped label keeps a little air above and below; one line still sits in the minimum height.
+        padding: WidgetStatePropertyAll(
+            EdgeInsets.symmetric(horizontal: horizontalPadding, vertical: widget.wrapLabel ? OmiSpacing.xs : 0)),
         minimumSize: WidgetStatePropertyAll(Size(widget.width ?? visualHeight, visualHeight)),
         fixedSize: widget.width != null ? WidgetStatePropertyAll(Size(widget.width!, visualHeight)) : null,
</file context>

key: key,
button: onTap != null,
label: text,
excludeSemantics: true,

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: The conversation and task counts are exposed as labeled buttons without an accessibility activation action. Add onTap: onTap to this replacement Semantics node so VoiceOver and TalkBack can open the same day pages that pointer taps open.

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/settings/daily_summary_detail_page.dart, line 406:

<comment>The conversation and task counts are exposed as labeled buttons without an accessibility activation action. Add `onTap: onTap` to this replacement `Semantics` node so VoiceOver and TalkBack can open the same day pages that pointer taps open.</comment>

<file context>
@@ -360,172 +365,124 @@ class _DailySummaryDetailPageState extends State<DailySummaryDetailPage> with Si
+          key: key,
+          button: onTap != null,
+          label: text,
+          excludeSemantics: true,
+          child: GestureDetector(
+            behavior: HitTestBehavior.opaque,
</file context>
Suggested change
excludeSemantics: true,
excludeSemantics: true,
onTap: onTap,

leading: Padding(
padding: const EdgeInsetsDirectional.only(start: OmiSpacing.xxs),
// Glass circles, the same header controls as Home and Tasks.
child: OmiCanvas(child: leading ?? OmiBackButton.circled(onPressed: onBack)),

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: These header controls are inside an OmiCanvas marker even though OmiGroupedPage is a grouped Settings page, so the default back button and filled actions render glass rather than the grouped header treatment. Remove the canvas wrappers here so OmiIconButton.filled uses its grouped-page palette.

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_grouped_page.dart, line 77:

<comment>These header controls are inside an `OmiCanvas` marker even though `OmiGroupedPage` is a grouped Settings page, so the default back button and filled actions render glass rather than the grouped header treatment. Remove the canvas wrappers here so `OmiIconButton.filled` uses its grouped-page palette.</comment>

<file context>
@@ -0,0 +1,98 @@
+            leading: Padding(
+              padding: const EdgeInsetsDirectional.only(start: OmiSpacing.xxs),
+              // Glass circles, the same header controls as Home and Tasks.
+              child: OmiCanvas(child: leading ?? OmiBackButton.circled(onPressed: onBack)),
+            ),
+            centerTitle: true,
</file context>


/// One [OmiLineGlyph], drawn in [color] or the ambient [IconTheme] colour at [size] (default the
/// icon theme's size). Decorative: the row it sits in carries the label.
class OmiLineIcon 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: OmiLineIcon/OmiLineGlyph are introduced and exported from ui.dart but nothing in the repo references them, and no widget test covers them, so this ~90-line component is dead API surface at HEAD. Wire it to its intended toolbar/Ask bar consumers, add it to the dead-code allowlist with a reason like device_tile.dart, or drop it until the consuming PR lands.

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_line_icon.dart, line 67:

<comment>OmiLineIcon/OmiLineGlyph are introduced and exported from ui.dart but nothing in the repo references them, and no widget test covers them, so this ~90-line component is dead API surface at HEAD. Wire it to its intended toolbar/Ask bar consumers, add it to the dead-code allowlist with a reason like device_tile.dart, or drop it until the consuming PR lands.</comment>

<file context>
@@ -0,0 +1,88 @@
+
+/// One [OmiLineGlyph], drawn in [color] or the ambient [IconTheme] colour at [size] (default the
+/// icon theme's size). Decorative: the row it sits in carries the label.
+class OmiLineIcon extends StatelessWidget {
+  const OmiLineIcon(this.glyph, {super.key, this.size, this.color});
+
</file context>

@@ -0,0 +1,47 @@
import 'package:flutter/cupertino.dart';

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: OmiSegmentedControl has no caller or test at merge time: nothing in app/lib or app/test references it, and it is not exported from ui.dart. This PR already allowlisted device_tile for exactly this "pre-lands before its consumer" situation; give this file the equivalent flutter.allowlist.json entry, or wire up a consumer/test in this PR.

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>OmiSegmentedControl has no caller or test at merge time: nothing in app/lib or app/test references it, and it is not exported from ui.dart. This PR already allowlisted device_tile for exactly this "pre-lands before its consumer" situation; give this file the equivalent flutter.allowlist.json entry, or wire up a consumer/test in this PR.</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>

"reason": "AppsPage left the shell (the catalog is Settings > Integrations), but protected spine oracles (app/test/spine/b1_surface_contract.dart) import it; remove with the B1 contract revision"
},
{
"path": "app/lib/widgets/device_tile.dart",

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: This allowlist entry is stale before it ships: the dead-code checker reports app/lib/widgets/device_tile.dart is already reachable at this PR head (imported by app/lib/pages/conversations/widgets/daily_summaries_list.dart and app/lib/pages/settings/daily_summary_detail_page.dart via package:omi/widgets/device_tile.dart), so the entry emits "allowlist entries no longer dead" and never matches actual dead code. Drop the entry in this PR instead of adding it.

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 .github/scripts/dead_code/flutter.allowlist.json, line 56:

<comment>This allowlist entry is stale before it ships: the dead-code checker reports `app/lib/widgets/device_tile.dart` is already reachable at this PR head (imported by `app/lib/pages/conversations/widgets/daily_summaries_list.dart` and `app/lib/pages/settings/daily_summary_detail_page.dart` via `package:omi/widgets/device_tile.dart`), so the entry emits "allowlist entries no longer dead" and never matches actual dead code. Drop the entry in this PR instead of adding it.</comment>

<file context>
@@ -51,6 +51,10 @@
       "reason": "AppsPage left the shell (the catalog is Settings > Integrations), but protected spine oracles (app/test/spine/b1_surface_contract.dart) import it; remove with the B1 contract revision"
+    },
+    {
+      "path": "app/lib/widgets/device_tile.dart",
+      "reason": "v2 cleaner UX foundation (#20342): the device tile that #20328, #20717 and #20718 put on Home, conversation and recap rows; reachable once the first of them lands, then remove this entry"
     }
</file context>

bool useRootNavigator = false,
EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: OmiSpacing.md),
RouteSettings? routeSettings,
Color Function()? surface,

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: The new surface parameter on showOmiSheet has no consumer: no call site in app/lib or app/test passes it (the only surface hits near showOmiSheet calls belong to nested arguments such as conversationDisplayTitle(..., surface: ConversationUntitledRenderedSurface.actions)), and Settings already passes surface to showOmiSurfaceSheet, not showOmiSheet. The param is also undocumented while showOmiSurfaceSheet documents its surface semantics in detail (palette switch rebuild, etc.). Either wire up the consumer this was added for within this PR, drop the parameter, or at minimum document it.

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_sheet.dart, line 38:

<comment>The new `surface` parameter on `showOmiSheet` has no consumer: no call site in `app/lib` or `app/test` passes it (the only `surface` hits near `showOmiSheet` calls belong to nested arguments such as `conversationDisplayTitle(..., surface: ConversationUntitledRenderedSurface.actions)`), and Settings already passes `surface` to `showOmiSurfaceSheet`, not `showOmiSheet`. The param is also undocumented while `showOmiSurfaceSheet` documents its `surface` semantics in detail (palette switch rebuild, etc.). Either wire up the consumer this was added for within this PR, drop the parameter, or at minimum document it.</comment>

<file context>
@@ -35,9 +35,11 @@ Future<T?> showOmiSheet<T>({
   bool useRootNavigator = false,
   EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: OmiSpacing.md),
   RouteSettings? routeSettings,
+  Color Function()? surface,
 }) {
   return showOmiSurfaceSheet<T>(
</file context>


/// Whether [source] is a pendant (Omi, Limitless, Bee, Plaud, …), as opposed to a phone, watch,
/// glasses or other source.
static bool isPendant(String? source) => glyphFor(source) == _pendant;

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: isPendant is a new public static with no caller anywhere in the app or tests. Drop it until a call site exists, or the analyzer will flag it and readers will assume rows rely on it.

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/widgets/device_tile.dart, line 82:

<comment>`isPendant` is a new public static with no caller anywhere in the app or tests. Drop it until a call site exists, or the analyzer will flag it and readers will assume rows rely on it.</comment>

<file context>
@@ -0,0 +1,137 @@
+
+  /// Whether [source] is a pendant (Omi, Limitless, Bee, Plaud, …), as opposed to a phone, watch,
+  /// glasses or other source.
+  static bool isPendant(String? source) => glyphFor(source) == _pendant;
+
+  /// The drawn glyph for [source]. Every source has one, so a row never falls back to a bare mic.
</file context>

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the Daily Recaps surface against the v2 design foundation. What I verified in the diff:

  • daily_summaries_list.dart rebuilds each recap as a flat row (DeviceTile with the day's emoji, two-line headline, date + counts, chevron) while keeping the Dismissible swipe-to-delete path intact — same ValueKey and confirmDismiss flow — and the row tap now uses HitTestBehavior.opaque so the whole row is tappable.
  • daily_summary_detail_page.dart replaces the stat boxes with one line of counts under the headline and preserves the important behavior: recap_conversations_stat still opens DayConversationsPage and recap_tasks_stat still opens DayTasksPage for the recap's day, with 44 pt targets and Semantics labels retained; the duration segment is now hidden when totalDurationMinutes is 0.
  • daily_summary_card.dart moves a map to the top of Home's recap card and deliberately shows only the first usable place (one pin) instead of all pins — intentional per the description, but it is a real behavior change on Home worth a look during the design pass.
  • The new foundation pieces (omi_canvas.dart, omi_glass.dart, omi_grouped_page.dart, omi_segmented_control.dart, omi_line_icon.dart, device_tile.dart) are well documented and covered by the new omi_canvas_test.dart plus the updated widget tests, and the Instrument Sans addition ships its OFL 1.1 license file with clean pubspec/generated-file wiring.
  • The device_tile.dart dead-code allowlist entry names its own removal condition once the series lands — good hygiene.

The change is cohesive around one surface, so no split requested. Since this is the last part of the v2 series and needs #20342 merged first, leaving the merge-order call and the overall v2 recaps direction for human maintainer review. Nice work — the flat rows and count links read like a clear upgrade.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants