Skip to content

Refine Alpha identity review surface and normalize v43 write-state gating#191

Open
MontrealAI wants to merge 1 commit into
mainfrom
codex/patch-alpha-agent-console-ui-for-mainnet
Open

Refine Alpha identity review surface and normalize v43 write-state gating#191
MontrealAI wants to merge 1 commit into
mainfrom
codex/patch-alpha-agent-console-ui-for-mainnet

Conversation

@MontrealAI

Copy link
Copy Markdown
Owner

Motivation

  • The Alpha-Agent identity review surface was visually and logically inconsistent: preview reads could be unresolved or stale when the modal opened, raw calldata and debug fields dominated the hierarchy, and mobile sticky-footer/safe-area issues risked obscuring critical review controls, so the review experience needed to be contract-faithful, deterministic, and executive-grade.

Description

  • Normalize and extend the identity state model and snapshot in ui/agijobmanager_genesis_job_mainnet_2026-03-05-v43.html by adding read_failed, preview_ready, preview_inconsistent, review_open states and snapshot fields such as fullName, previewStatus, previewStatusLabel, rootUsable, and termsAccepted to drive a single canonical identity snapshot used across the UI.
  • Harden review gating so the review modal cannot open while preview(label)/rootHealth() are unresolved, failed, or inconsistent, and guard against stale async responses before permitting register/claim/sync paths.
  • Redesign the transaction review IA and visuals: introduce an alphaReviewBody container, promote decision summary (recommended action, preview status, root posture, wallet, network, contract, value, preflight) above the fold, add explorer links and copy controls for addresses, and demote raw calldata and method selector to a collapsed Advanced section.
  • Improve accessibility and mobile behavior by binding an in-modal focus trap, ensuring initial focus on the primary CTA, and applying scoped sticky-footer and safe-area padding fixes; update the tests to assert the new state names, snapshot content, gating behavior, and modal structure.
  • Files changed: ui/agijobmanager_genesis_job_mainnet_2026-03-05-v43.html and ui/tests/standaloneV43.test.ts.

Testing

  • Executed the standalone artifact unit tests with Vitest: npx vitest ui/tests/standaloneV43.test.ts and all tests passed (12/12).
  • The updated tests verify deterministic preview/root parsing, the new state names and normalized snapshot fields, strict review-open gating for unresolved/failed/inconsistent reads, presence of the redesigned review sections, and that the direct register(string) parity remains intact, and those assertions succeeded.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant