-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
ai-readyReady for AI implementationReady for AI implementationarea:uiFrontend/UI changesFrontend/UI changespriority:highHigh priorityHigh priorityrisk:lowLow risk - safe for AILow risk - safe for AItype:featureNew feature (creates feature/* branch)New feature (creates feature/* branch)
Description
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.tsxclient/scripts/navigation/CustomDomainRoutes.tsx
Follows Pattern
Reference: existing Markets routes in same files
Acceptance Criteria
-
/:scope/prediction-markets→PredictionMarketsAppPage(scoped) -
/prediction-markets→PredictionMarketsAppPage(common domain) -
/:scope/manage/prediction-markets→PredictionMarketsPage(admin) -
/manage/prediction-markets→PredictionMarketsPage(admin) - All routes conditional on
predictionMarketsEnabledflag
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ai-readyReady for AI implementationReady for AI implementationarea:uiFrontend/UI changesFrontend/UI changespriority:highHigh priorityHigh priorityrisk:lowLow risk - safe for AILow risk - safe for AItype:featureNew feature (creates feature/* branch)New feature (creates feature/* branch)