Skip to content

Add AGIJobManager v26 single-page UI (mainnet)#1460

Open
MontrealAI wants to merge 2 commits into
mainfrom
codex/upgrade-agijobmanager-html-to-v26-lbrlxv
Open

Add AGIJobManager v26 single-page UI (mainnet)#1460
MontrealAI wants to merge 2 commits into
mainfrom
codex/upgrade-agijobmanager-html-to-v26-lbrlxv

Conversation

@MontrealAI
Copy link
Copy Markdown
Owner

Motivation

  • Provide a self-contained, single-page web UI for the AGIJobManager protocol targeting Ethereum Mainnet operations and workflows.
  • Offer employer/agent/validator flows (job builder, apply, completion, validator voting) together with bridge and minting tools for $AGIALPHA.
  • Improve operator experience with live-sync, command palette, local activity trail, and mobile-first dock/sheet for handheld operation.

Description

  • Add ui/agijobmanager_genesis_job_mainnet_2026-03-05-v26.html, a complete HTML/CSS/JS single-file app implementing wallet connect, contract ABIs, read/write actions, and UI surfaces for posting jobs, applying, completing, validating, settling, ENS preview/locking, and admin controls.
  • Implement metadata builder and optional client-side IPFS upload (Pinata JWT support) with JSON generation, preview, and auto-insertion into the create job form via generateMetadata, uploadMetadataToIPFS, and useGeneratedUri flows.
  • Add bridge integration and vault conversion flows that embed a locked deBridge route and call AGIALPHAEqualMinterVault.depositExact with allowance handling and preview via mountDebridgeWidget, prepareOfficialAgialphaMint, and mintOfficialAgialpha.
  • Provide extensive UX features: command palette, mobile dock/sheet, auto-refresh scheduler, local transaction activity log, draft autosave, completion assistant (metadata inspection), live job table with filters/sorting, per-job detail modal, and admin action builder with argument collection and review.

Testing

  • Manual smoke interactions exercised in-browser during development: wallet connect, read-only mainnet reads, metadata generation, IPFS upload (Pinata flow), deBridge embed load, and basic create/apply/approve code paths (no live mainnet writes were executed in CI). These manual checks succeeded for the UI flows in a local/dev environment.
  • No automated unit or integration tests were added or run for this HTML UI in this change.

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4913057f6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +2537 to +2538
if(activeJobIndexCache.ids && activeJobIndexCache.ids.length) return activeJobIndexCache.ids.slice();
return [];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore fallback IDs when job event scan fails

When getPastEvents fails or returns no JobCreated coverage (a common RPC limitation on first load), this function now returns an empty list instead of the previous nextJobId-based fallback, so loadJobs() renders zero jobs even though jobs exist on-chain. This is a functional regression for users on providers without full historical log access, because there is no cache yet to recover from and the UI becomes effectively unusable for discovering active jobs.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfc699b924

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

function fillDetailsFromBuilder(){
const title = (el("jobTitle")?.value || "").trim();
const summary = (el("jobSummaryBuilder")?.value || "").trim();
const details =
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Define schemas for argumented admin methods

The expanded manager admin list now includes methods like setVoteQuorum, updateMerkleRoots, setValidatorBondParams, and others, but ADMIN_METHOD_SCHEMAS does not define argument forms for many of them, so collectAdminArgs defaults to an empty argument list and submits zero-arg calls. Because these methods are declared in the ABI with required parameters (for example setVoteQuorum(uint256)), these controls fail at runtime with invalid parameter-count errors, leaving a substantial portion of the new admin surface non-functional.

Useful? React with 👍 / 👎.

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