Skip to content

PM-16: Routing #13402

@mzparacha

Description

@mzparacha

Overview

Register all prediction market routes for both common and custom domains.

Size: Small
Depends on: PM-14
Blocks: PM-17

Files to Modify

  • client/scripts/navigation/CommonDomainRoutes.tsx
  • client/scripts/navigation/CustomDomainRoutes.tsx

Follows Pattern

Reference: existing Markets routes in same files

Acceptance Criteria

  • /:scope/prediction-marketsPredictionMarketsAppPage (scoped)
  • /prediction-marketsPredictionMarketsAppPage (common domain)
  • /:scope/manage/prediction-marketsPredictionMarketsPage (admin)
  • /manage/prediction-marketsPredictionMarketsPage (admin)
  • All routes conditional on predictionMarketsEnabled flag

Implementation Details

Routes to Add

Public Routes:

  • /:scope/prediction-markets - Scoped app page (community-specific)
  • /prediction-markets - Common domain app page (all communities)

Admin Routes:

  • /:scope/manage/prediction-markets - Scoped admin config page
  • /manage/prediction-markets - Common domain admin config page

Feature Flag Gating

All routes should be conditionally rendered based on the predictionMarketsEnabled feature flag:

{predictionMarketsEnabled && (
  <Route path="/:scope/prediction-markets" element={<PredictionMarketsAppPage />} />
)}

Related

Part of the Prediction Markets (Futarchy) Integration Plan. See common_knowledge/Prediction-Markets.md for full specification.

Metadata

Metadata

Assignees

Labels

ai-readyReady for AI implementationarea:uiFrontend/UI changespriority:highHigh priorityrisk:lowLow risk - safe for AItype:featureNew feature (creates feature/* branch)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions