• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hicommonwealth / commonwealth / 20825777357
38%

Build:
DEFAULT BRANCH: master
Ran 08 Jan 2026 05:37PM UTC
Jobs 1
Files 463
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jan 2026 05:29PM UTC coverage: 37.755% (+0.01%) from 37.745%
20825777357

push

github

web-flow
Add Markets App Page (#13238)

* first draft

* second pass

* Subscribe to markets

* Add Markets App Page

* updated markets display

* feat: add FLAG_MARKETS feature flag for prediction markets visibility

Completed GitHub issue #13265
- Added feature flag control for prediction markets UI visibility
- Updated governance_section.tsx to check markets flag for Markets menu item
- Updated AdminSection.tsx to check markets flag for Market Integrations menu
- Added FLAG_MARKETS documentation to .env.example with default value false

Files affected:
- packages/commonwealth/client/scripts/views/components/sidebar/governance_section.tsx
- packages/commonwealth/client/scripts/views/components/sidebar/AdminSection/AdminSection.tsx
- .env.example
- .ai/progress.txt

Tests: Pre-existing type/lint errors unrelated to this change. Manual verification required with FLAG_MARKETS=true/false.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* docs: update progress.txt with commit hash for issue #13265

* fix: resolve React Hooks error by converting Router to a component

Fixed "Rendered more hooks than during the previous render" error by:
- Converting Router from a function returning a router config to a React component
- Router now returns <RouterProvider> directly instead of just the router object
- Updated App.tsx to use <Router /> as a component instead of router()
- Moved useFlag('markets') hook to Router component where it's properly called
- Passed marketsEnabled as parameter to CommonDomainRoutes/CustomDomainRoutes

This ensures hooks are called at the top level of a React component, following
the Rules of Hooks and preventing the conditional hook call issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* docs: update progress.txt with React Hooks fix details

* feat: add backend validation for FLAG_MARKET... (continued)

2051 of 5853 branches covered (35.04%)

Branch coverage included in aggregate %.

3 of 6 new or added lines in 3 files covered. (50.0%)

3602 of 9120 relevant lines covered (39.5%)

47.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
75.0
-25.0% libs/model/src/aggregates/community/GetMarkets.query.ts
1
80.0
-20.0% libs/model/src/aggregates/community/SubscribeMarket.command.ts
1
80.0
-20.0% libs/model/src/aggregates/community/UnsubscribeMarket.command.ts
Subprojects
ID Flag name Job ID Ran Files Coverage
1 unit-test-coverage 20825777357.1 08 Jan 2026 05:37PM UTC 463
37.75
GitHub Action Run
Source Files on build 20825777357
  • Tree
  • List 463
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20825777357
  • a736cedb on github
  • Prev Build on master (#20795525857)
  • Next Build on master (#20829386921)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc