Add 2026-04-03 mainnet UI: primary Applicant 'Commit application on-chain' CTA wired to AGIJobDiscovery.commitApplication#221
Merged
MontrealAI merged 1 commit intoApr 2, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
commitApplication(...)write first-class and discoverable above-the-fold.Description
ui/agijobmanager_genesis_job_mainnet_2026-04-03.htmlcloned and refactored from2026-04-02so the previous file is preserved and 2026-04-03 becomes canonical for mainnet.#applicantCommitApplicationButton(label: "Commit application on-chain"),#applicantCommitApplicationButtonSticky(mobile sticky),#applicantApproveStakeButton, and#applicantCommitBlockersplaced above the fold and outside the advanced vault.openApplicantCommitReview()→ review modal → executesagiJobDiscovery.methods.commitApplication(pid, commitment, subdomain, proof).send({from:userAccount}), and on success the code saves the packet locally and updates packet state toOn-chain committed.normalizeAgentSubdomain(...),parseBytes32ArrayInput(...), andcomputeApplicationCommitment(...), tightenedgenerateApplicationCommitment()to validate full bytes32 salt, and rewroterefreshParticipate()to compute pause-adjusted effectiveNow, read required contract getters (procurements,applications,procurementApplicants,MAX_APPLICANTS,paused,pauseStartedAt,pausedSecondsAccumulated,isAuthorizedAgent,allowance,balanceOf), build explicit blocker list, render blockers under#applicantCommitBlockers, and enable/disable the primary CTA accordingly.reviewDiscoveryWrite(...)infrastructure and reused it for applicant commit/reveal while addingopenApplicantCommitReviewandsubmitApplicantRevealwrappers; preservedpremiumActionCommitApplicationBtnas an alias but made the primary pathway front-and-center.#advancedLocalPacketArchiveand changed its copy to emphasize "local-only" and that it is a secondary archive; ensured primary commit/reveal buttons are not located only in this drawer.schemaVersion:'2026-04-03'so state persists correctly for the new artifact.Testing
npm run check:no-binariesand confirmed no forbidden binary additions (passed).npm run docs:checkand confirmed documentation checks passed (passed).npm run test:ui; the UI unit/indexer helper subtests passed (smoke unit tests OK), however a full smoke run attempted to start Ganache and encountered an environment port conflict (EADDRINUSE 127.0.0.1:8545) during one run in this environment; subsequent targeted UI smoke checks (indexer helpers) passed.agiJobDiscovery.methods.commitApplication(...)/revealApplication(...)call paths in the review-first runner.Codex Task