Skip to content

fix(ui): refresh event groups and contain failed avatars - #945

Merged
CarGuo merged 1 commit into
masterfrom
codex/fix-event-refresh-avatar-error
Sep 28, 2026
Merged

CarGuo merged 1 commit into
masterfrom
codex/fix-event-refresh-avatar-error

Conversation

@CarGuo

@CarGuo CarGuo commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Rebuild grouping once per notified list snapshot instead of caching mutable List identity and length. Reuse the bounded avatar component in user headers and retain image failure logs while displaying the existing local failure asset.

Regression checks: old code fails equal-length refresh and avatar error cases; 15 related Flutter tests pass after the fix. Flutter debug build and Dart MCP personal-page smoke on Pixel_9a show real account data and no runtime errors. Analyze retains 17 pre-existing diagnostics. Independent review found no code blocker. Full authenticated Flow and fold posture coverage remain pending; this commit does not claim them.

Rebuild grouping once per notified list snapshot instead of caching mutable List identity and length. Reuse the bounded avatar component in user headers and retain image failure logs while displaying the existing local failure asset.

Regression checks: old code fails equal-length refresh and avatar error cases; 15 related Flutter tests pass after the fix. Flutter debug build and Dart MCP personal-page smoke on Pixel_9a show real account data and no runtime errors. Analyze retains 17 pre-existing diagnostics. Independent review found no code blocker. Full authenticated Flow and fold posture coverage remain pending; this commit does not claim them.
Copilot AI lite review requested due to automatic review settings September 28, 2026 08:47
@CarGuo
CarGuo merged commit 798b103 into master Sep 28, 2026
4 checks passed
@CarGuo
CarGuo deleted the codex/fix-event-refresh-avatar-error branch September 28, 2026 08:47

Copilot AI 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.

Copilot review overview

🔵 Needs a closer look

The avatar error test does not prove that the fallback path completed.

Review effort: Lite
Findings: None

What changed in this PR

Fixes stale event grouping on refreshed lists and contains avatar load failures with bounded fallbacks and logging.

Changes:

  • Rebuild event-group indexes from current data snapshots.
  • Reuse the shared avatar component with failure fallback.
  • Add grouping and avatar regression tests.
File Description
test/​widget/​gsy_avatar_error_test.dart Tests avatar failure behavior.
test/​widget/​event_group_refresh_test.dart Tests refresh and pagination grouping.
lib/​widget/​gsy_user_icon_widget.dart Adds bounded image failure fallback and logging.
lib/​widget/​gsy_event_group_item.dart Removes mutable-list caching.
lib/​page/​user/​widget/​user_header.dart Reuses the shared avatar component.
lib/​page/​repos/​repostory_detail_info_page.dart Uses snapshot-based grouping.
lib/​page/​dynamic/​dynamic_page.dart Rebuilds grouping on data notifications.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants