Skip to content

test: continue functional e2e coverage#24

Merged
senamakel merged 14 commits into
tinyhumansai:mainfrom
senamakel-droid:feat/functional-upstream-continuation
Jun 15, 2026
Merged

test: continue functional e2e coverage#24
senamakel merged 14 commits into
tinyhumansai:mainfrom
senamakel-droid:feat/functional-upstream-continuation

Conversation

@senamakel-droid

@senamakel-droid senamakel-droid commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Continues frontend functional/e2e harness work on a fresh branch merged with upstream/main.
  • Keeps the live leaderboards/stats coverage and backend/frontend integration helpers from the prior branch.

Validation

Additional F504 checkpoint:

  • Added Node SDK harness capability-family coverage for identity, directory, channels, broadcasts, messaging, inbox, marketplace, reputation, pricing, signers, payments, and ledger.
  • Added registry.exportIdentity(...) as a harness-facing alias for identity export.
  • Validation: ./node_modules/.bin/vitest run tests/harness-capabilities.test.ts tests/registry.test.ts; ./node_modules/.bin/tsc --noEmit (from sdk/typescript)

Additional F504 CLI checkpoint:

  • Added a package bin entry for the tinyplace CLI.
  • Added CLI commands covering the documented harness capability families and representative SDK route dispatch coverage.
  • Validation: ./node_modules/.bin/vitest run tests/cli.test.ts tests/harness-capabilities.test.ts tests/registry.test.ts; ./node_modules/.bin/tsc --noEmit (from sdk/typescript)

Additional F505/F506 checkpoint:

  • Added CLI config-file endpoint/secret loading and SDK-backed signed request coverage.
  • Added parseable JSON stderr coverage for x402 payment challenges and recursive redaction for secret-shaped output fields.
  • Added ledger-tx as the documented ledger transaction CLI alias.
  • Validation: ./node_modules/.bin/vitest run tests/cli.test.ts tests/harness-capabilities.test.ts tests/registry.test.ts; ./node_modules/.bin/tsc --noEmit (from sdk/typescript)

Additional F507 checkpoint:

  • Added TypeScript SDK identity export proof typing and alias coverage for structured ownership and ledger reference proofs.
  • Validation: ./node_modules/.bin/vitest run tests/registry.test.ts tests/cli.test.ts tests/harness-capabilities.test.ts; ./node_modules/.bin/tsc --noEmit (from sdk/typescript)

Summary by CodeRabbit

  • New Features

    • Added tinyplace command-line interface for platform operations and automation
    • Identity export functionality expanded to include ownership verification proofs and ledger references
  • Improvements

    • Signer dashboard now displays remaining budget allocation alongside spent and expiration information

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

@senamakel-droid must be a member of the Vezures team on Vercel to deploy.
- Click here to add @senamakel-droid to the team.
- If you initiated this build, request access.
- If you're already a member of the Vezures team, make sure that your Vercel account is connected to your GitHub account.

Learn more about collaboration on Vercel and other options here.

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: 8184387c-2338-44d4-aa36-558c24cece36

📥 Commits

Reviewing files that changed from the base of the PR and between 1e478e4 and 8ba6f98.

📒 Files selected for processing (18)
  • contracts-sol/tests/escrow.ts
  • contracts-sol/tests/settlement_game_poker.ts
  • contracts-sol/tests/settlement_job.ts
  • sdk/typescript/package.json
  • sdk/typescript/src/api/registry.ts
  • sdk/typescript/src/cli.ts
  • sdk/typescript/src/types/identity.ts
  • sdk/typescript/tests/cli.test.ts
  • sdk/typescript/tests/harness-capabilities.test.ts
  • sdk/typescript/tests/registry.test.ts
  • website/e2e/functional-leaderboards.spec.ts
  • website/e2e/functional-platform.spec.ts
  • website/e2e/identity-management.spec.ts
  • website/src/common/session-wallet.test.ts
  • website/src/components/explore/DomainRegistration.test.tsx
  • website/src/components/explore/Signers.test.tsx
  • website/src/components/explore/Signers.tsx
  • website/src/components/explore/X402ConfirmDialog.test.tsx

📝 Walkthrough

Walkthrough

This PR expands on-chain test coverage for Solana escrow/job/poker contracts with state-machine helpers and invariant assertions, introduces a full tinyplace TypeScript CLI with identity export proof types and a command dispatcher, and adds unit/e2e tests for website X402 payment signing, SessionWalletSigner, DomainRegistration, X402ConfirmDialog, and the Signers component (which also gains a "Remaining" column).

Changes

Solana Contract Test Coverage

Layer / File(s) Summary
Escrow vault PDA invariant assertions
contracts-sol/tests/escrow.ts
Imports jobPda and vaultAuthorityPda; asserts vault owner, authority, and feeAccount match PDA-derived values after createVault.
Settlement job state machine coverage
contracts-sol/tests/settlement_job.ts
Adds expectJobState helper and calls it at every lifecycle transition (open, delivered, resolved, disputed, refunded), plus expectRevert guards for illegal re-entries.
Poker game state and guard coverage
contracts-sol/tests/settlement_game_poker.ts
Adds expectGameState helper; asserts game state at each transition; validates playerEntry fields on join; adds revert guards for short buy-in, game-full, join-after-settle, settle-after-cancel, and double-refund.

TypeScript SDK CLI and Identity Export Proofs

Layer / File(s) Summary
Identity export proof types and RegistryApi alias
sdk/typescript/src/types/identity.ts, sdk/typescript/src/api/registry.ts
Adds IdentityExportProofs, IdentityOwnershipProof, IdentityLedgerReferenceProof interfaces extending IdentityExport; adds RegistryApi.exportIdentity(name) alias.
CLI interfaces, command catalog, and argument parsing
sdk/typescript/src/cli.ts, sdk/typescript/package.json
Defines TinyPlaceCliCommand/Options/Result interfaces, HARNESS_CLI_COMMANDS list with help text, and --flag argument parsing; wires tinyplace bin entry in package manifest.
Client wiring, command dispatcher, and utilities
sdk/typescript/src/cli.ts
Implements makeCliClient/loadCliConfig, the runTinyPlaceCli entry point, a large command dispatcher for all sub-clients, flag coercion helpers, hexToBytes, and recursive redactSecrets.
CLI tests, harness parity, and registry export test
sdk/typescript/tests/cli.test.ts, sdk/typescript/tests/harness-capabilities.test.ts, sdk/typescript/tests/registry.test.ts
Tests catalog coverage, dispatched HTTP routes, 402 payment challenge mapping, config-file signed requests, secret redaction, harness capability matrix, and exportIdentity alias.

Website X402 Payment Tests, Signers UI, and E2E Updates

Layer / File(s) Summary
X402ConfirmDialog and SessionWalletSigner tests
website/src/components/explore/X402ConfirmDialog.test.tsx, website/src/common/session-wallet.test.ts
Tests confirm/cancel/retry dialog flows and SessionWalletSigner.establish authorization fields, canonical message contents, metadata mapping, and session key relationships.
DomainRegistration X402 payment signing test
website/src/components/explore/DomainRegistration.test.tsx
Tests full domain registration flow with X402: asserts register called twice (second with populated payment object), no sensitive key material in output, and correct wallet signing behavior.
Signers component Remaining column and tests
website/src/components/explore/Signers.tsx, website/src/components/explore/Signers.test.tsx
Extends SignerRow grid to 4 columns adding approval.remaining; adds tests for disconnected-wallet prompt, full approval rendering, and revoke mutation trigger.
E2E suite updates
website/e2e/functional-leaderboards.spec.ts, website/e2e/functional-platform.spec.ts, website/e2e/identity-management.spec.ts
Adds live leaderboard/stats Playwright suite gated on API_URL; updates F005 spec document count to 39 with "feedback"; guards identity handle tests behind E2E_API_URL.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Poem

🐇 A rabbit hopped through contracts deep,
Checking states so none could sleep.
Then typed a CLI with flair,
X402 signed beyond compare.
Signers got a column too—
All the tests now proven true! ✨


Note

🎁 Summarized by CodeRabbit Free

The PR author is not assigned a seat. To perform a comprehensive line-by-line review, please assign a seat to the pull request author through the subscription management page by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@senamakel
senamakel marked this pull request as ready for review June 15, 2026 23:13
@senamakel
senamakel merged commit fe5642f into tinyhumansai:main Jun 15, 2026
6 of 8 checks passed
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.

2 participants