Skip to content

Add AGIJobManager Prime Mainnet Console HTML (2026-04-02)#218

Merged
MontrealAI merged 3 commits into
mainfrom
codex/create-premium-discovery-participation-ui-gpm9b5
Apr 2, 2026
Merged

Add AGIJobManager Prime Mainnet Console HTML (2026-04-02)#218
MontrealAI merged 3 commits into
mainfrom
codex/create-premium-discovery-participation-ui-gpm9b5

Conversation

@MontrealAI

Copy link
Copy Markdown
Owner

Motivation

  • Provide a single-file, self-contained Prime mainnet console for AGIJobManager/AGIJobDiscovery workflows including premium discovery, job creation, identity onboarding, and the AGIALPHA bridge for mainnet operations.

Description

  • Add ui/agijobmanager_genesis_job_mainnet_2026-04-02.html, a complete SPA-like HTML file with styles, responsive mobile dock/sheet, and app UI for Premium Discovery, Create Job, Jobs table, Operator Deck, Admin panels, Alpha-Agent identity, and bridge/mint flows.
  • Embed contract ABIs, verified mainnet addresses, and client-side logic (Web3) to perform preflight reads, estimate/prepare transactions, manage approvals, persist local drafts/packets, and render event-derived views and simulations.
  • Include mobile enhancements (v26 dock/sheet), v35 visual refinements, and extensive local-state persistence, packet tooling, and inspector/debug panels; add helper functions for IPFS/ENS normalization and completion inspection.
  • Wire up UX for approvals, approvals batching, premium atomic create path (createPremiumJobWithDiscovery), attach path, participate (commit/reveal) flows, and vault conversion for bridged → official AGIALPHA minting.

Testing

  • No automated tests were added or executed for this UI artifact as part of this change; the file is a static UI bundle intended for manual/interactive validation in a browser connected to an Ethereum provider.

Codex Task

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

Copy link
Copy Markdown

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: 10cbcf7537

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

<div class="alphaTokenMeta">
<div class="smallNote">TokenURI name</div>
<div style="font-weight:700" id="alphaIdentityTokenMetaName">Not applicable before issuance</div>
<div class="smallNote" id="alphaIdentityTokenMe

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 Escape preview image URI before assigning innerHTML

The cover preview builds an <img> tag with src interpolated directly from jobImageURI/metadata without escaping. A crafted value containing quotes can break out of the attribute and inject scriptable HTML (for example via copied/imported metadata values), which will execute when preview renders. This should use DOM APIs (createElement + img.src = ...) or escape attribute content before inserting HTML.

Useful? React with 👍 / 👎.

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

Copy link
Copy Markdown

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: 122e042590

ℹ️ 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 +9452 to +9454
<div class="smallNote">TokenURI name</div>
<div style="font-weight:700" id="alphaIdentityTokenMetaName">Not applicable before issuance</div>
<div class="smallNote" id="alphaIdentityTokenMe

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 Include owner/moderator getters in AGIJobManager ABI

refreshAdminPanels reads agiJobManager.methods.owner() and agiJobManager.methods.moderators(userAccount) to compute authorization posture, but AGIJobManagerABI does not declare those functions, so these calls always resolve to safe-read errors and executeAdminControl treats the wallet as unauthorized for manager admin actions. In practice this makes the manager admin controls non-operational even for the real owner/moderator.

Useful? React with 👍 / 👎.

Comment on lines +5870 to +5872
<div class="smallNote">TokenURI name</div>
<div style="font-weight:700" id="alphaIdentityTokenMetaName">Not applicable before issuance</div>
<div class="smallNote" id="alphaIdentityTokenMe

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 Add missing ENSJobPages read methods to the ABI

updateEnsJobPagePreview invokes ensContract.methods.owner()/ens()/nameWrapper()/jobLabelPrefix()/jobLabelSnapshot(...), but those getters are absent from ENSJobPagesABI; missing methods throw before .call().catch(...) can run, so the preview path falls into the outer catch and clears ENS state. This also prevents reliable ENS ownership posture in admin flows because the same undeclared reads are reused there.

Useful? React with 👍 / 👎.

@MontrealAI MontrealAI merged commit 66cf0af into main Apr 2, 2026
4 checks passed
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