Agent Skill
2/7/2026graph-page-testing
A comprehensive skill to test, analyze, and fix the PropertyIQ graphs page.
T
th309
1GitHub Stars
1Views
npx skills add th309/Realestate
SKILL.md
| Name | graph-page-testing |
| Description | A comprehensive skill to test, analyze, and fix the PropertyIQ graphs page. |
name: Graph Page Testing description: A comprehensive skill to test, analyze, and fix the PropertyIQ graphs page.
Graph Page Testing Skill
This skill provides tools and workflows to ensure the PropertyIQ graphs page (/graphs) is functioning correctly, aligned with the map data sources, and presenting accurate data.
Capabilities
- Alignment Verification: Checks if the graphs page uses the same metric definitions and order as the map sidebar.
- Data Fetching Validation: Tests the backend API endpoints for time-series data to ensure availability and correct format.
- Component Analysis: Reviews React components for correct state management and rendering logic.
Resources
- Test Script:
scripts/run-tests.ts- Runs a suite of API tests against the local backend. - Reference Configs:
packages/frontend/app/map/config/metrics.tspackages/frontend/app/map/config/metric-categories.tsx
Usage
1. Run Data Tests
To verify that the backend is serving the correct time-series data for the graph metrics:
npx tsx .agent/skills/graph_page_testing/scripts/run-tests.ts
2. Verify Metric Alignment
The graphs page should use the centralized metric configuration. check:
packages/frontend/app/graphs/constants.tsshould import fromapp/map/config/...packages/frontend/app/graphs/hooks/useDashboardState.tsshould useuseAllMetricOptions
Troubleshooting
- "No data returned (empty array)": This typically means the local database does not have data for the requested region/metric. Ensure data ingestion has been run.
- "HTTP 404/500": Check the backend logs. Mismatch in
timeseries.service.tsmapping or missing table.
Maintenance
When adding new metrics to metric-categories.tsx, they automatically propagate to the graphs page. No manual update to graphs/constants.ts is required as it now dynamically imports the ordered list.
Skills Info
Original Name:graph-page-testingAuthor:th309
Download