Skip to content

Entities view: absolute datetime + remove card background#39

Merged
AquiGorka merged 1 commit into
mainfrom
tweak/entities-view
Jun 12, 2026
Merged

Entities view: absolute datetime + remove card background#39
AquiGorka merged 1 commit into
mainfrom
tweak/entities-view

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

Tweaks to the Provider Details Entities section (operator view of accounts that have interacted with the PP).

Changes

  • Date column → absolute timestamp. Show a human-readable date with hour:minute (24h) — e.g. Jun 12, 2026, 18:16 — via a new fmtDateTime helper, instead of the relative Nh ago rendering. Operators wanted the actual interaction time. The relative-time formatter stays in use elsewhere on the page.
  • Remove the entities card background. Drop the inline stat-card class on #entities-section so the table sits flush with the page (no surrounding card surface/border).

Status badges are unchanged.

Scope

  • src/views/provider.ts only. deno.json patch-bumped 0.3.2 → 0.3.3.
  • No backend change (provider-platform untouched).

Verification

  • deno fmt --check / lint / check / test all green locally.
  • Brought up locally and confirmed the section renders APPROVED + UNVERIFIED rows with the new datetime format and no card background.

Relates to ClickUp 86ca439ah

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
@AquiGorka

Copy link
Copy Markdown
Contributor Author

Seeding tooling for this view: Moonlight-Protocol/local-dev#116 (setup-entities — drives the connect/403/KYC/deposit flows through the real API).

@AquiGorka AquiGorka merged commit b6f07fb into main Jun 12, 2026
6 checks passed
@AquiGorka AquiGorka deleted the tweak/entities-view branch June 12, 2026 20:56
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
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