A local nutrition tracking app powered by AI
Implemented real-time backend status monitoring and improved the settings page user experience.
/api/health endpoint to provide a status heartbeat and application version.api-client.ts with checkHealth method.BackendStatus component:
v0.1.0) fetched from package.json.HomePage layout, positioned directly under the logo.SettingsPage:
The health check endpoint is located at app/api/health/route.ts. It returns the current version from package.json.
The BackendStatus component (components/backend-status.tsx) handles the polling logic (every 30 seconds) and UI state.
The save handler in app/settings/page.tsx was modified to use router.push('/') upon success.