Skip to content

fix(app): clarify marketplace app actions - #13499

Open
Jonathan-321 wants to merge 2 commits into
BasedHardware:mainfrom
Jonathan-321:codex/omi-marketplace-icon-clarity
Open

Jonathan-321 wants to merge 2 commits into
BasedHardware:mainfrom
Jonathan-321:codex/omi-marketplace-icon-clarity

Conversation

@Jonathan-321

@Jonathan-321 Jonathan-321 commented Sep 11, 2026 •

Copy link
Copy Markdown

The app-detail toolbar used a settings gear for an action that opens the app's home page, and its icon buttons had no tooltips. This changes Open to an arrow-free browser-window icon, adds existing localized action names, and gives each button a 48px tap target around the existing circular treatment. Missing marketplace thumbnails now use an image-unavailable placeholder instead of an app-error symbol.

Chat tooltips normalize app names like the detail summary, and the toolbar keeps an 8px trailing inset as available actions change. The page retains its existing navigation, availability checks, chat loading behavior, and iOS share anchor. The toolbar and thumbnail are small production widgets exercised directly by hermetic tests; no new translation keys or runtime packages were added. The already-locked cache manager is declared as a direct test dependency to drive its real image stream without network or disk access.

Related to #3886. The proposed bounty remains unconfirmed; this PR does not assume assignment or payment.

Validation on pinned Flutter 3.44.5 / Dart 3.12.2:

  • cd app && bash test.sh: 1,885 passed, five existing skips; includes seven new widget tests for all actions/48px targets at 320px, semantic tooltips, chat loading, share origin, Spanish labels, encoded app names, loading-state spacing, and the real image failure stream with glyph-centering geometry.
  • cd app && bash scripts/analyze_ratchet.sh: passed with no baseline changes.
  • dart format --line-length 120 <changed Dart files> and git diff --check: passed.
  • make preflight and post-commit scripts/pr-preflight --pr-body-file: all 14 selected checks passed, including failure-class validation and the repository source-graph ratchet.
  • Normal pre-push gate passed, including Flutter generated-output verification; no tracked generated files changed.

Before/after screenshots render the actual components with fixture state at 320px and 390px; the before toolbar is extracted from the upstream source with inert fixture callbacks. This is isolated component evidence, not an authenticated marketplace or real iOS share-sheet run.

Failure-Class: none

Product invariants affected

none

Isolated UI evidence

At 390px; real production component rendering with fixture state:

Before (upstream presentation) After
Before: gear for Open and warning thumbnail After: browser icon for Open and missing-image thumbnail
320px layout, Open tooltip, and disabled loading action All five actions fit a 320px viewport Localized Open tooltip on the browser-window action Chat loading indicator with other actions still available

Review in cubic

Use a browser-window icon and localized action tooltips, preserve the
existing navigation/loading/share behavior, and provide 48px tap targets.
Use a neutral missing-image thumbnail for unavailable marketplace art.

Validation: Flutter 3.44.5 app/test.sh passed 1,883 tests with five existing
skips. Analyzer ratchet passed without baseline changes. Five production
widget tests cover actions, localization, loading, sharing and image failure.
Isolated before/after component renders verified at 320px and 390px;
authenticated marketplace and real iOS share-sheet flows were not run.

Failure-Class: none
@Jonathan-321

Copy link
Copy Markdown
Author

@aaravgarg, this is the focused icon-clarity pass proposed in #3886. The description includes before/after component captures, 1,883 passing app tests, and the signed-in testing limitation. Could you review whether this addresses the intended UX issue?

Jonathan

@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 issues found across 9 files

Confidence score: 5/5

  • In app_detail.dart, the chat tooltip can show a raw, non-normalized app name while the detail summary shows the decoded name, creating a minor user- and accessibility-facing inconsistency—pass the normalized name to the tooltip.
  • In app_thumbnail.dart, failed thumbnails render the unavailable icon in the top-left instead of centered, which is a small visual defect—set the placeholder alignment to Alignment.center.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="app/lib/pages/apps/app_detail/app_detail.dart">

<violation number="1" location="app/lib/pages/apps/app_detail/app_detail.dart:592">
P2: When an app name needs the UTF-8 normalization already used by the detail summary, this tooltip exposes the raw name to users and screen readers. Pass the decoded name so the chat tooltip matches the displayed app name.</violation>
</file>

<file name="app/lib/pages/apps/widgets/app_thumbnail.dart">

<violation number="1" location="app/lib/pages/apps/widgets/app_thumbnail.dart:14">
P3: When a thumbnail fails, the unavailable icon appears in the container's top-left rather than centered. Set the placeholder container's alignment to `Alignment.center`.</violation>
</file>

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

Re-trigger cubic

messageProvider.sendInitialAppMessage(selectedApp);
}
appBar: AppDetailAppBar(
appName: app.name,

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: When an app name needs the UTF-8 normalization already used by the detail summary, this tooltip exposes the raw name to users and screen readers. Pass the decoded name so the chat tooltip matches the displayed app name.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At app/lib/pages/apps/app_detail/app_detail.dart, line 592:

<comment>When an app name needs the UTF-8 normalization already used by the detail summary, this tooltip exposes the raw name to users and screen readers. Pass the decoded name so the chat tooltip matches the displayed app name.</comment>

<file context>
@@ -587,173 +588,100 @@ class _AppDetailPageState extends State<AppDetailPage> {
-                                messageProvider.sendInitialAppMessage(selectedApp);
-                              }
+          appBar: AppDetailAppBar(
+            appName: app.name,
+            isOwner: appProvider.isAppOwner,
+            chatLoading: chatButtonLoading,
</file context>
Suggested change
appName: app.name,
appName: app.name.decodeString,

width: 60,
height: 60,
decoration: BoxDecoration(color: const Color(0xFF35343B), borderRadius: BorderRadius.circular(8)),
child: unavailable ? const Icon(Icons.image_not_supported_outlined, color: Colors.white54, size: 24) : null,

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: When a thumbnail fails, the unavailable icon appears in the container's top-left rather than centered. Set the placeholder container's alignment to Alignment.center.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At app/lib/pages/apps/widgets/app_thumbnail.dart, line 14:

<comment>When a thumbnail fails, the unavailable icon appears in the container's top-left rather than centered. Set the placeholder container's alignment to `Alignment.center`.</comment>

<file context>
@@ -0,0 +1,38 @@
+        width: 60,
+        height: 60,
+        decoration: BoxDecoration(color: const Color(0xFF35343B), borderRadius: BorderRadius.circular(8)),
+        child: unavailable ? const Icon(Icons.image_not_supported_outlined, color: Colors.white54, size: 24) : null,
+      );
+
</file context>

Normalize the chat tooltip's app name with the existing display helper,
keep the same trailing inset as available actions change, and derive test
labels from the locale delegate. Remove the redundant owner flag from the
presentation widget; the page still owns action availability.

Add production-widget coverage for encoded names and loading-state geometry.
Verify that the missing-thumbnail glyph is already centered without changing
its rendering.

Validation: pinned Flutter 3.44.5 app/test.sh passed 1,885 tests with five
existing skips; all seven focused widget tests and analyzer ratchet passed.
Refreshed isolated production-component renders at 320px/390px, including
tooltip and loading states. Authenticated marketplace E2E was not run.

Failure-Class: none
@Jonathan-321

Copy link
Copy Markdown
Author

Updated in d1496137c5:

  • Chat tooltips now use the same name normalization as the detail summary, with an encoded-name regression test.
  • The toolbar keeps an 8px trailing inset when Edit becomes unavailable during loading; layout no longer depends on a separate owner flag.
  • Tooltip expectations come from the locale delegate.

The thumbnail-centering report did not reproduce: Flutter's Icon already centers its glyph. A new test checks the rendered RichText glyph against the thumbnail's center, so that production layout is unchanged.

Validation on Flutter 3.44.5: all seven focused widget tests passed; the full app suite passed 1,885 tests with five existing skips; analyzer, all 14 preflight checks, and normal push hooks passed. The PR's four affected screenshots have been refreshed; they remain isolated production-component renders, not an authenticated end-to-end run.

@Jonathan-321

Copy link
Copy Markdown
Author

@josancamon19 @kodjima33, a quick clarification on the bounty request in #3886: would you approve US$25 for this marketplace icon and accessibility fix, payable through your private PayPal process after acceptance and merge?

Jonathan

@Git-on-my-level Git-on-my-level added positive-signal Automation verified a genuine fix/quality contribution needs-maintainer-review Needs a human maintainer to sign off before merge flutter flutter work labels Sep 11, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @Jonathan-321 - this is a focused, well-tested pass at the icon confusion reported in #3886, and the second commit (d149613) cleanly resolved all four earlier automated findings. Notes per file:

app_detail.dart - the extraction keeps behavior: chat stays gated on app.enabled && app.worksWithChat() with the chatButtonLoading disable, share keeps the iOS sharePositionOrigin anchor (now resolved from the actual button via the Builder context the widget passes in), and edit collapses into a nullable onEdit (appProvider.isAppOwner && !isLoading). The old non-owner SizedBox(width: 8) spacer is replaced by the constant trailing inset inside the widget - owners mid-load now also keep the 8px inset, which is the intended normalization.

app_detail_app_bar.dart - tooltips reuse existing localization keys (back, chatWithAppName, open, share, edit; no .arb changes needed), tap targets grow to 48px around the unchanged 36px circles, and chatWithAppName(appName.decodeString) matches the name normalization the detail summary already applies. Open now uses Icons.web instead of the settings gear - the core of #3886. Optional polish: Icons.web reads as "browser window"; if you prefer a FontAwesome glyph for visual consistency with the other four buttons, it's a one-line swap.

app_thumbnail.dart - good dedupe of two identical CachedNetworkImage blocks. ExcludeSemantics is right for decorative artwork with the app name adjacent, and image_not_supported_outlined communicates better than error_outline for a missing image.

capability_category_section.dart / category_section.dart - both swap ~26 lines of duplicated image code for AppThumbnail(imageUrl: app.getImageUrl()) with no other behavior change.

pubspec.yaml / pubspec.lock - the flutter_cache_manager: 3.4.1 dev pin matches the version and sha256 already in the lock (the lock diff is only the transitive -> direct dev marker), so no runtime dependency changes. Minor heads-up: when cached_network_image eventually wants a newer cache manager, this pin will need a matching bump.

app_detail_app_bar_test.dart - tooltip expectations come from the locale delegate rather than hardcoded strings, and coverage includes 320px overflow, availability/loading states, the encoded-name case, trailing-inset consistency, share-anchor geometry, and Spanish. app_thumbnail_test.dart drives the real cache-manager stream to failure and asserts the placeholder keeps its 60x60 box with a centered glyph - which also settles the earlier "icon renders top-left" report: Icon centers within tight constraints, and this geometry test would catch it if that ever changed.

Two things for a maintainer: no checks have run on this head (the fork shows zero check-runs), so the suite hasn't been exercised by CI - the local validation summary in the description is the only test evidence; and the icon-choice sign-off (does the new Open action resolve the #3886 confusion?) plus the bounty question are product calls. Leaving those decisions with a human maintainer; the code itself looks in good shape pending that review.


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.

UX polish (icon/tooltip clarity, not a defect fix) — treated as feature per policy (unsure bug vs feature -> feature). Diff also exceeds the 300-line confidence-gate ceiling (691 lines). Approve only, not merging.

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

fix(app): approve-only. Diff is 691 lines across 9 files (well over the 300-line confidence-gate cap) with a widget extraction + new direct dev-dependency, so this reads as a refactor/polish alongside the UX fix rather than a narrow bug fix; per policy, ambiguous bug-fix-vs-feature defaults to approve-only. No CI has run yet on this fork PR (no check-runs found on the head commit) so CI-green can't be confirmed either. Good test coverage and clear rationale otherwise.

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

Approve only: mobile app UI clarity fix — diff (691 lines) exceeds the 300-line confidence-gate cap and issue link is only 'related to #3886' (no fixes/closes), so it doesn't clear 4/5 despite good tests.

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

UI polish (icon/tooltip clarity), linked issue #3886 is design/ux-polish not bug-labeled, 691-line diff exceeds scope gate -> 3/5 confidence, approve only

This branch has not been deployed

No deployments
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.

3 participants