Entities view: absolute datetime + remove card background#39
Merged
Conversation
Provider Details "Entities" section tweaks: - Date column now shows an absolute, human-readable timestamp with hour:minute (24h) via a new fmtDateTime helper, instead of relative "Nh ago" — operators wanted the actual interaction time. - Remove the card background from the entities section (drop the inline stat-card class) so the table sits flush. Status badges unchanged. Relates to ClickUp 86ca439ah
Contributor
Author
|
Seeding tooling for this view: Moonlight-Protocol/local-dev#116 ( |
AquiGorka
added a commit
to Moonlight-Protocol/local-dev
that referenced
this pull request
Jun 12, 2026
Adds **`setup-entities`** to the local-dev harness — a reusable seeder that drives three real submitter flows against one PP so the provider-console **Entities** section can be brought up with the full range of interaction states, produced entirely through the public API (no DB writes). ### Flows (all via the real endpoints) - **K1** — unauthorized bundle submit → **403** (recorded UNVERIFIED at SEP-10 connect, bumped at the 403), then KYC register → **APPROVED**. - **K2** — unauthorized bundle submit → **403**, left **UNVERIFIED** (no identity). - **K3** — KYC register → **APPROVED**, then a real deposit bundle → **accepted and settled**. Reuses the existing `lib/client` helpers (`authenticate` / `registerEntity` / `deposit`), so the only difference between a rejected and an accepted bundle is KYC status — exactly the per-PP approval gate the view surfaces. Fixed keypairs make re-runs idempotent (connect upserts; KYC returns 409-as-success). ### Usage ``` ./up.sh && ./setup-c.sh && ./setup-pp.sh && ./setup-entities.sh ``` Env overrides: `PP_INDEX` (default 1), `DEPOSIT_AMOUNT` (default 50). ### Checks - `deno fmt --check` / `lint` / `check` green on the new file. No version field in local-dev `deno.json`, so no bump. Supports the entities-view tweaks in **Moonlight-Protocol/provider-console#39**. Relates to ClickUp 86ca439ah
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.
Tweaks to the Provider Details Entities section (operator view of accounts that have interacted with the PP).
Changes
Jun 12, 2026, 18:16— via a newfmtDateTimehelper, instead of the relativeNh agorendering. Operators wanted the actual interaction time. The relative-time formatter stays in use elsewhere on the page.stat-cardclass on#entities-sectionso the table sits flush with the page (no surrounding card surface/border).Status badges are unchanged.
Scope
src/views/provider.tsonly.deno.jsonpatch-bumped0.3.2 → 0.3.3.provider-platformuntouched).Verification
deno fmt --check/lint/check/testall green locally.Relates to ClickUp 86ca439ah