Skip to content

Sprint 2: Add API status badge and environment validation#905

Merged
KishanFW merged 4 commits into
mainfrom
EHMI/kn/sprint2-api-status
May 16, 2026
Merged

Sprint 2: Add API status badge and environment validation#905
KishanFW merged 4 commits into
mainfrom
EHMI/kn/sprint2-api-status

Conversation

@kimmynoto
Copy link
Copy Markdown
Collaborator

This PR implements the Sprint 2 task: Frontend API Environment Validation and Connection Status UI.

Changes:

  • Added api-status.js to test the API connection and detect the environment mode (local, live, or fallback)
  • Added a status badge to the admin dashboard that shows connection status and current environment
  • Added user-friendly error handling for unreachable API or missing configuration
  • Added ENV_SETUP.md documenting how to configure the .env file once the live server URL is received

This task builds directly on Sprint 1's CLIENT_URL work and helps developers and users see clearly which environment the frontend is connected to.

Copy link
Copy Markdown
Collaborator

@KishanFW KishanFW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is good

@KishanFW KishanFW merged commit a3bb245 into main May 16, 2026
1 check passed
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