news
news copied to clipboard
Improve user-facing error handling when moving feeds between folders fails
When a feed move operation fails (e.g., due to API or backend errors), the News app currently only logs to the console and does not provide any visible feedback to the user.
The relevant logic is in the Vuex feed store:
async [FEED_ACTION_TYPES.MOVE_FEED](
state: FeedState,
{ feedId, folderId }: { feedId: number, folderId: number },
) {
try {
const response = await FeedService.moveFeed({
feedId,
folderId,
})
if (!response) {
console.error('error moving feed %d', feedId)
}
} catch (e) {
// TODO: show error to user if failure
console.error(e)
}
},
Problem
- Users receive no visual indication that the move has failed.
- The only signal is a console error, which most end users never see.
- There is an explicit TODO to show an error to the user.
Expected behavior
When a move operation fails (no response, non-2xx status, or thrown error), the UI should:
- Display a translated error notification (e.g. via showError), and
- Optionally provide a generic message such as “Unable to move feed. Please try again later or check your connection.”
Hi, @Grotax Could you assign to me this bug, please? Thanks.
You can just make a pull request, assigning a bug means nothing