Operations table, 6h dashboard, per-PP event payload#36
Merged
Conversation
Two thin clients for the provider-platform endpoints that back the new Operations table on the provider dashboard: - listRecentBundles(ppPublicKey, limit) → GET /dashboard/bundles scoped to a PP, returns entityName / jurisdictions / aggregated amount alongside id / status / channelContractId / timestamps. - getBundleDetail(bundleId) → GET /dashboard/bundles/:id, returns the decoded operation list for row expansion.
provider-platform now includes entityName, jurisdictions, and amount on the bundle-added event so dashboards can render an Operations row without an extra REST roundtrip. Widen the ProviderEvent type so the new fields type-check at the consumer (provider view).
The 3-up council cards on the home view were rendering the union of council jurisdictions + PP-claimed jurisdictions, which made it look like a PP covered every country the council operated in. Now the card shows only what the PP itself claimed (falls back to council jurisdictions when there's no claim yet), matching the equivalent fix already in the provider view.
Replaces the v2 events / topology zone on /provider/:pk with a 2-column dashboard: Operations table on the left, Live feed on the right, counter cards on top, sparklines below. All counters and sparklines run on a 6-hour window so they survive low-traffic gaps and make sustained behaviour visible. - Operations table: per-row stage circle + entity name (hover for Title-cased stage), Action with reconciliation tooltip, Jurisdiction flags, Amount, Asset, Date. Sticky header with a queued/submitting/ completed/failed/expired counts strip above. Mounted from listRecentBundles on load + upserted from WS events. - Counter cards (Throughput / Avg Latency / Queue Peak / Error Rate): matched to the dashboard's dark theme, dropped the hard-coded blue panel + per-card "last 6h" sub-text (the section title carries that). - Sparklines: single shared colour, real X/Y axes with a 1px non- scaling stroke, min/max labels on the left, "6h ago"/"now" labels underneath, 10px gap between each title and its chart. - Copy: "Activity" → "Live feed", "No events yet." → "Nothing happening". Drops the dead PREVIEW_STAGE_COLORS table now that rows render with border-only colour, no fill.
6faa6ab to
d54fc67
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Provider dashboard rework that lands alongside the merged provider-platform changes (#106). Five atomic commits:
feat(api)—listRecentBundles(ppPublicKey, limit)andgetBundleDetail(bundleId)clients for the new dashboard endpoints.feat(events-client)— widen themempool.bundle_addedevent payload type withentityName,jurisdictions,amountso dashboards can render a row without an extra REST roundtrip.fix(home)— council cards on the home view stop showing the union of council jurisdictions + PP-claimed jurisdictions. Now only the PP's own claim is shown.feat(provider)— the bulk of the work on/provider/:pk:listRecentBundles+ upserted from WS events.chore— version bump 0.2.24 → 0.3.0.Test plan
deno task checkdeno fmt --checkdeno lint