Skip to content

Show whether a feeder is registered vs. claimed in the UI#59

Merged
d4rken merged 3 commits into
devfrom
feat/claim-status
Jun 3, 2026
Merged

Show whether a feeder is registered vs. claimed in the UI#59
d4rken merged 3 commits into
devfrom
feat/claim-status

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Jun 3, 2026

The feeder web UI's claim activity view previously labelled any feeder that had a local claim secret as "Claimed ✓" — even when no account had actually claimed it. It now reports the real state from the backend: not registered, registered but not yet claimed, or claimed.

A new GET /api/claim/status endpoint reads apl-feed claim status and caches the result server-side with a single-flight guard, so reloads and multiple tabs collapse to a single backend check. The view re-checks on a slow cadence only while a claim is still pending and stops once the state is settled, with a "Check now" button to force a refresh. The webconfig itself makes no network calls — it shells out to the feed CLI as the unprivileged service user.

@d4rken d4rken added the enhancement New feature or request label Jun 3, 2026
Adds GET /api/claim/status, backed by a single-flight, identity-keyed cache over a read-only `apl-feed claim status` probe, and replaces the claim activity panel's secret-presence guess with the real registered-vs-claimed verdict, a freshness stamp, and a Check now button.
@d4rken d4rken force-pushed the feat/claim-status branch from af67813 to 5e1f297 Compare June 3, 2026 17:53
d4rken added 2 commits June 3, 2026 21:00
A colored dot + label in the Identity card header reflects the /api/claim/status verdict — green claimed, blue registered, orange not registered, red action needed, grey unknown — refreshed on dashboard load and the status-snapshot poll.
readsb is the local decoder every other 1090 tile depends on; surfacing it first matches the data path (decode → feed → mlat).
@d4rken d4rken merged commit f29fe4f into dev Jun 3, 2026
7 checks passed
@d4rken d4rken deleted the feat/claim-status branch June 3, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant