policygenius / athenaeum Goto Github PK
View Code? Open in Web Editor NEWThe React Component Library with a living styleguide
License: MIT License
The React Component Library with a living styleguide
License: MIT License
Background
A number of RCL components do not have guards around props that are undefined
and simply pass those down. This can not only present a problem in use but it also shows up in jest snapshots, which doesn't provide a great way to test the expected HTML structure of our components.
We will need to do a thorough documentation of all the components that do not have this guard and determine if one is needed. Best way to do this may just be to look at a few snapshots and find patterns.
Acceptance Criteria
undefined
values from being applied to RCL componentsTech Notes
Here is a list of known offenders:
<Text />
<Layout />
<Icon />
<Button />
<LinkWrapper />
Broken images found on Spacers
Typography
Grid
the react-svg-inline webpack is no longer support consider upgrade and refactor to use: https://github.com/smooth-code/svgr
http://rcl.policygenius.com/latest/index.html#!/TextField
cannot set autofocus on textfield.
The Text
component takes a size prop, but that size will only work with the 'a' font.
For our markdown linter, which lints the JS written in each component's Readme.md
file, we use a customized version of the eslint-plugin-markdown
package, which is currently forked on my (jmcolella) Github account.
For yarn to load the correct, customized module, the package.json
points to the tarball on my Github for this package and the yarn.lock
resolves a specific SHA for the tarball.
Occasionally, the SHA in the yarn.lock
will not resolve properly and, as of now, needs to be updated manually. If you are experiencing any yarn issues on Buildkite, please follow the steps below to help solve the issue:
yarn.lock
file in athenaeum and find the eslint-plugin-markdown
packaged. Where it says resolved
, at the very end, replace the SHA that is already there with the one you copied.yarn
Expected #{wrong_sha}, but got #{correct_sha}
.yarn.lock
with the correct_sha
from step 4.yarn
again to ensure all is goodI currently don't know another way to resolve this issue, hopefully we can spend time soon to get to the bottom of it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.