Skip to content

[Frontend] — ENHANCEMENT: Add AI Oracle Dashboard at /oracle/creator-events #886

@Olowodarey

Description

@Olowodarey

Dashboard for the AI Oracle agent to submit match results for creator events. This page is only accessible to the configured AI agent address.

Required Features

  1. Pending Matches View:

    • List all matches that have started but don't have results
    • Filter by event
    • Sort by match time
    • For each match:
      • Event title
      • Match details (Team A vs Team B)
      • Match time
      • Number of predictions
      • "Submit Result" button
  2. Submit Result Form:

    • Match details display
    • Outcome selector: Team A Won, Team B Won, Draw
    • Confidence score input (optional, for logging)
    • Data source input (optional, for audit trail)
    • "Submit Result" button
    • Transaction signing
  3. Recent Submissions:

    • List of recently submitted results
    • Match details
    • Submitted outcome
    • Submission timestamp
    • Transaction hash link
  4. Batch Result Submission:

    • Select multiple matches
    • CSV upload option (Match ID, Outcome)
    • Preview before submission
    • "Submit All Results" button
  5. Statistics:

    • Total results submitted
    • Results submitted today
    • Pending matches count
    • Average submission time (after match end)
  6. Authorization:

    • Only AI agent address can access
    • Redirect non-agents to dashboard

Files to create:

  • frontend/src/app/(oracle)/creator-events/page.tsx
  • frontend/src/component/oracle/PendingMatchesList.tsx
  • frontend/src/component/oracle/SubmitResultForm.tsx
  • frontend/src/component/oracle/BatchResultSubmission.tsx

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions