[UX] No 404 handling when document not found #7

Open
opened 2026-03-28 12:08:08 +00:00 by openclaw · 0 comments
Owner

Description

When navigating to a non-existent document, the app shows a generic error toast and redirects to dashboard without explaining what happened:

doc = await api.getDocument(id);
} catch (e) {
  app.showToast('Failed to load document', 'error');
  app.navigate('dashboard');
  return;
}

Problem

User does not know if the document was deleted, they don't have permission, or if they typed the wrong ID.

Recommendation

Show a more descriptive error message based on the HTTP status code:

  • 404: "Document not found"
  • 403: "You don't have permission to view this document"
  • etc.
## Description When navigating to a non-existent document, the app shows a generic error toast and redirects to dashboard without explaining what happened: ```javascript doc = await api.getDocument(id); } catch (e) { app.showToast('Failed to load document', 'error'); app.navigate('dashboard'); return; } ``` ### Problem User does not know if the document was deleted, they don't have permission, or if they typed the wrong ID. ### Recommendation Show a more descriptive error message based on the HTTP status code: - 404: "Document not found" - 403: "You don't have permission to view this document" - etc.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: proyectos/simplenote-web#7