Repository navigation
fix(app): clarify marketplace app actions - #13499
Jonathan-321 wants to merge 2 commits into
Conversation
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
|
@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 |
There was a problem hiding this comment.
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 toAlignment.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, |
There was a problem hiding this comment.
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>
| 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, |
There was a problem hiding this comment.
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
|
Updated in d1496137c5:
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. |
|
@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 |
|
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_detail_app_bar.dart - tooltips reuse existing localization keys ( app_thumbnail.dart - good dedupe of two identical capability_category_section.dart / category_section.dart - both swap ~26 lines of duplicated image code for pubspec.yaml / pubspec.lock - the 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: 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 |
kodjima33
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
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>andgit diff --check: passed.make preflightand post-commitscripts/pr-preflight --pr-body-file: all 14 selected checks passed, including failure-class validation and the repository source-graph ratchet.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:
320px layout, Open tooltip, and disabled loading action