Skip to content

fix(chat): identify and locate failed attachment uploads - #108

Draft
leeyisoft wants to merge 10 commits into
mainfrom
fix/chat-attachment-recovery-feedback-20261201
Draft

leeyisoft wants to merge 10 commits into
mainfrom
fix/chat-attachment-recovery-feedback-20261201

Conversation

@leeyisoft

@leeyisoft leeyisoft commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Scope

Fix the two issues visible in the supplied screenshot without changing the backend, upload protocol, E2EE, or message payloads.

Changes

  • Remove the generic global EasyLoading error overlay. It only knew that a non-chat upload had failed and could not identify the source.
  • Query actionable failed upload journal rows and show a compact, per-task recovery list with the source type, local conversation/channel name where available, file name, and time.
  • C2C/C2G rows use the existing business_intent peer/type and anchor_msg_id to open the correct conversation with the original message ID as the location target. If the pending message has not yet been materialized, the existing chat-specific recovery prompt handles the task after navigation.
  • Channel rows use the existing scope=channel / scope_ref to open the channel. The current journal does not distinguish the channel compose route from the channel detail publish bar, so this opens the channel page rather than claiming an exact composer sub-route.
  • Moment rows use scope=moment to open the moment creation page. A moment ID does not exist until publishing succeeds.
  • Rows without a trustworthy source identity are shown without a fabricated navigation target.
  • Include abandoned legacy uploads whose records still require user action.
  • Keep the group-task message card compact by using the existing FlatListTile.

Safety

  • No automatic resend. Existing upload records and chat outbox guards remain in place.
  • Account/session changes are checked before recovery navigation.
  • No SQLite schema migration or Backend change.

Regression coverage

  • Verify source classification and routes for C2C, C2G, channel, moment, and unknown private uploads.
  • Verify the recovery inventory returns actionable failed rows only for the current account, including abandoned rows that need re-selection.
  • Verify the recovery list displays source/file information and navigates to the original chat message target.
  • Verify the group-task card remains compact and preserves its existing route.

Validation

GitHub Actions is pending. No local Flutter/device run is claimed.

@leeyisoft
leeyisoft force-pushed the fix/chat-attachment-recovery-feedback-20261201 branch 2 times, most recently from 8749071 to dbb26af Compare December 1, 2026 10:23
@leeyisoft leeyisoft changed the title fix(chat): prevent recovery alerts from blocking messages fix(chat): identify and locate failed attachment uploads Dec 1, 2026
Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
@leeyisoft
leeyisoft force-pushed the fix/chat-attachment-recovery-feedback-20261201 branch from 6da83ca to 7ff3b7e Compare December 1, 2026 10:49
Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
@leeyisoft
leeyisoft marked this pull request as draft December 1, 2026 10:54
Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
Add an account-scoped manual recovery entry without starting uploads or sending messages. Preserve automatic prompt suppression, fix the group message anchor fixture and analyzer braces, and cover reopening, empty results and stale-session navigation.

Extract cohesive recovery queries, lifecycle logic and test cases to preserve the existing file-size limits and test ownership contract.

Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
@leeyisoft
leeyisoft force-pushed the fix/chat-attachment-recovery-feedback-20261201 branch from af4221c to e7cd6ff Compare December 2, 2026 03:12
Keep the search page behavior unchanged while moving its filter-chip builder into a library part.

Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
Keep extracted filter-chip behavior available as an instance member of the search page state.

Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
Signed-off-by: leeyi <leeyisoft@users.noreply.github.com>
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.

1 participant