Skip to content

Make status page detector links point to the connected environment's … - #431

Open
timmarkhuff wants to merge 2 commits into
mainfrom
fix-status-page-dashboard-links-per-env
Open

Make status page detector links point to the connected environment's …#431
timmarkhuff wants to merge 2 commits into
mainfrom
fix-status-page-dashboard-links-per-env

Conversation

@timmarkhuff

Copy link
Copy Markdown
Contributor

…dashboard

The "Groundlight Edge Endpoint Status" page hardcoded detector links to https://dashboard.groundlight.ai (prod). When the Edge Endpoint is connected to a non-prod upstream (integ, dev/ag1, etc.), clicking a detector ID opened the wrong dashboard and failed.

Derive the dashboard base URL from the upstream GROUNDLIGHT_ENDPOINT instead:

  • Inject GROUNDLIGHT_ENDPOINT into the status-monitor container (it was the only core container missing it).
  • Add a dashboard_base_url() helper + /status/config.json endpoint that maps api..groundlight.ai -> dashboard..groundlight.ai, falling back to the prod dashboard for non-standard endpoints (localhost, IPs, etc.).
  • Fetch the URL once on the frontend and use it for detector links.
  • Add the endpoint to the dev mock server.

…dashboard

The "Groundlight Edge Endpoint Status" page hardcoded detector links to
https://dashboard.groundlight.ai (prod). When the Edge Endpoint is connected
to a non-prod upstream (integ, dev/ag1, etc.), clicking a detector ID opened
the wrong dashboard and failed.

Derive the dashboard base URL from the upstream GROUNDLIGHT_ENDPOINT instead:
- Inject GROUNDLIGHT_ENDPOINT into the status-monitor container (it was the
  only core container missing it).
- Add a dashboard_base_url() helper + /status/config.json endpoint that maps
  api.<env>.groundlight.ai -> dashboard.<env>.groundlight.ai, falling back to
  the prod dashboard for non-standard endpoints (localhost, IPs, etc.).
- Fetch the URL once on the frontend and use it for detector links.
- Add the endpoint to the dev mock server.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@timmarkhuff
timmarkhuff requested a review from a team as a code owner June 17, 2026 23:54
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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