Tighten the chart colour guard and the axis check
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript, react
- Domain
- data-visualization, testing
Research direction
Start with src/charts/noHex.test.js and src/charts/chartText.test.jsx, then inspect the chart components that use AXIS_PROPS. Add a sample covering decoded CSS text inside style elements, and update the axis check to inspect JSX props after spreads on both self-closing and paired axes. Done means both findings are covered by tests; the issue has linked open pull request #61.
Written by the indexing model from the issue text.
Description
The round-3 review of #58 raised two P3 findings. They're filed here so #58 could merge.
src/charts/noHex.test.jsreads strings and template literals, not JSX text, so CSS inside a<style>element passes. For<style>.series { stroke: #227773; }</style>the scan reports nothing. No chart file has a<style>element today. Scan the decoded text inside<style>elements and add that case to the sample test.- The static axis check in
src/charts/chartText.test.jsxaccepts<XAxis axisLine={true} tickLine={false} />, which leaves the axis line and tick text in Recharts' #666. Its regex can also skip an axis written as a paired tag. All 18 axes spreadAXIS_PROPStoday, and the rendered checks cover every chart they draw. Parse the JSX instead, and check the axis line, tick and title props each axis ends up with, including any set after the spread.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PolicyEngine/ai-inequality
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
PolicyEngine/ai-inequality#48 ·
Maintainers usually reply within 1 day
All issues in PolicyEngine/ai-inequality
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
Maintainers usually reply within 1 day