Skip to content

Add v26 AGIJobManager single-file mainnet UI (agijobmanager_genesis_job_mainnet_2026-03-05-v26.html)#1459

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

Add v26 AGIJobManager single-file mainnet UI (agijobmanager_genesis_job_mainnet_2026-03-05-v26.html)#1459
MontrealAI wants to merge 2 commits into
mainfrom
codex/upgrade-agijobmanager-html-to-v26-dc8x3x

Conversation

@MontrealAI
Copy link
Copy Markdown
Owner

Motivation

  • Introduce a complete single-file v26 web UI for AGIJobManager to operate against the Ethereum Mainnet job manager contract and related tooling.
  • Provide a unified interface for Employers, Agents, and Validators including job creation, application, review, settlement, and ENS integration.
  • Surface bridging and minting flows for $AGIALPHA (Solana → Ethereum via deBridge), plus an embedded Terms & Conditions reader to gate write actions.

Description

  • Add ui/agijobmanager_genesis_job_mainnet_2026-03-05-v26.html, a self-contained SPA containing CSS, HTML, and JavaScript implementing the full protocol UI and mobile enhancements.
  • Implement wallet integration, contract ABIs, safe read helpers (runSafeReadStep), and core on-chain flows such as createJob, applyForJob, requestJobCompletion, validateJob, disapproveJob, finalizeJob, disputeJob, expireJob, cancelJob, and lockJobENS.
  • Add metadata builder and local IPFS pinning support (Pinata JWT flow), metadata preview/JSON generation, automated insertion of uploaded ipfs:// URIs into the create job form, and completion-assistant tooling to canonicalize and inspect completion URIs.
  • Add $AGIALPHA bridge panel and vault conversion: embedded deBridge route mounting, preview/mint via AGIALPHAEqualMinterVault, allowance/approval flows, local activity trail, command palette, admin control surfaces (owner/moderator paths), ENSJobPages preview, autonomous packet generation (draft and live), and mobile-first dock/sheet UX.

Testing

  • No automated tests were executed as part of this change.
  • The file is a large UI addition intended for manual browser validation and integration testing against Ethereum Mainnet RPC and wallet providers.

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: fe6dd4d35f

ℹ️ 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 +5773 to +5775
}
function useEnsUriPreview(){
const uri = (el("predictedEnsUR
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 Validate admin args instead of defaulting blanks

The new admin argument parser silently coerces empty/invalid inputs to executable values (uint* -> "0", bool -> false) instead of rejecting them, so a partially filled modal can submit a real transaction with unintended parameters. This is especially risky for owner/moderator methods in ADMIN_METHOD_SCHEMAS such as withdrawAGI, setSettlementPaused, or quorum/bond setters, where an accidental blank field now becomes an on-chain state change rather than a pre-send error.

Useful? React with 👍 / 👎.

Comment on lines +2525 to +2530
APP_STATE.jobsReadDegraded = true;
setToast('Job index event scan missing JobCreated coverage; no synthetic IDs shown. Retry refresh or rely on cached confirmed IDs.', 'warn');
}
activeJobIndexCache.ids = ids.slice();
activeJobIndexCache.ts = now;
APP_STATE.jobsReadDegraded = false;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve degraded state when event scan is incomplete

When JobCreated coverage is missing (totalHint > 0 but no created events), the code marks jobsReadDegraded = true and warns the user, but immediately resets the flag to false before returning. That suppresses the degraded indicator used in the jobs summary, so operators are shown a "healthy" state even though indexing is known incomplete and the table may be empty due to RPC log gaps.

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: c25f60f306

ℹ️ 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".

if(el("jobSpecURI")) el("jobSpecURI").value = uri;
setToast("Generated URI inserted into Job Spec URI.", "ok");
}
func
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 arg schemas for newly exposed owner setters

The new manager control list now exposes many parameterized methods (for example setVoteQuorum, setMaxJobPayout, setValidatorBondParams, updateMerkleRoots) but these methods are not present in ADMIN_METHOD_SCHEMAS, and collectAdminArgs falls back to [] when a schema is missing. In practice, when an owner clicks one of these controls the UI builds a zero-argument call (contract.methods[method]()), which web3 rejects for invalid parameter count, so a large portion of the newly added admin deck is unusable.

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