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

hicommonwealth / commonwealth / 20825777357 / 1 – unit-test-coverage
38%
master: 38%

Build:
DEFAULT BRANCH: master
Ran 08 Jan 2026 05:37PM UTC
Files 463
Run time 12s
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%
unit-test-coverage – 20825777357.1

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 %.

3602 of 9120 relevant lines covered (39.5%)

47.02 hits per line

Source Files on job unit-test-coverage - 20825777357.1
  • 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 Build 20825777357
  • a736cedb on github
  • Prev Job for on master (#20795525857.1)
  • Next Job for on master (#20829386921.1)
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