Skip to content

feat: show a notice when the server takes long to respond - #22

Merged
pitercoding merged 1 commit into
mainfrom
feat/slow-server-notice
Nov 28, 2026
Merged

pitercoding merged 1 commit into
mainfrom
feat/slow-server-notice

Conversation

@pitercoding

Copy link
Copy Markdown
Owner

Summary

  • Shows a "Waking up the server..." notice when API requests stay pending for more than 5 seconds.

Motivation

  • The free backend hosting sleeps when idle and the first request can take up to 2 minutes, which looked like a frozen page.

Implementation

  • LoadingStateService.isSlow$ is derived from the pending-request counter.
  • New SlowServerNoticeComponent, rendered in AppComponent, with role="status".

Testing

  • 29 unit tests pass (6 new for the loading state).
  • Checked in the browser against a fake slow API: the notice appears after about 5 seconds and disappears when the response arrives.

@vercel

vercel Bot commented Nov 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
worklog Ready Ready Preview Nov 28, 2026 11:39am UTC

@pitercoding
pitercoding merged commit 3116963 into main Nov 28, 2026
5 checks passed
@pitercoding
pitercoding deleted the feat/slow-server-notice branch November 28, 2026 11:40
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