Commit Graph

446 Commits

Author SHA1 Message Date
Jeff Avallone
67ca83ff16 Updating demos 2019-01-29 17:48:14 -05:00
Jeff Avallone
97509773af Adding useAnchor prop to Box and calculating axis coords 2019-01-29 17:47:52 -05:00
Jeff Avallone
cdb77255a7 Cleaning up HorizontalLayout path calculations 2019-01-29 17:47:22 -05:00
Jeff Avallone
b47d03cb31 Switching to an SVG for CC license logo 2019-01-29 17:23:54 -05:00
Jeff Avallone
3fcf31bc48 Adjusting font baseline to avoid needing to transform it 2019-01-29 17:16:09 -05:00
Jeff Avallone
9d7da52ee3 Adding Pin rendering component 2019-01-28 18:35:55 -05:00
Jeff Avallone
4e27c4ef87 Adding HorizontalLayout 2019-01-28 18:27:40 -05:00
Jeff Avallone
4f1ad26635 Refactoring to work with multiple children correctly 2019-01-28 18:26:13 -05:00
Jeff Avallone
6c603b7958 Adding debug tooling for rendering component bounding boxes 2019-01-28 07:18:20 -05:00
Jeff Avallone
f71d707e23 Normalizing bounding boxes 2019-01-27 11:49:48 -05:00
Jeff Avallone
67d970c837 Moving dimension calculation to layout for SVG 2019-01-27 11:49:33 -05:00
Jeff Avallone
35efa7cdb0 Adding theme support for Text rendering component 2019-01-27 11:14:49 -05:00
Jeff Avallone
fe714f2363 Adding Box rendering component 2019-01-27 11:14:30 -05:00
Jeff Avallone
a118519c3a Extracting type mapping into shared module 2019-01-27 08:50:03 -05:00
Jeff Avallone
f16a51abcb Moving layout function into component module 2019-01-27 08:46:48 -05:00
Jeff Avallone
1ee3055f37 Calling layout on children before laying out node 2019-01-27 08:42:09 -05:00
Jeff Avallone
e70705be5f Extracting bounding box code into its own function 2019-01-27 08:39:49 -05:00
Jeff Avallone
754868b9d5 Converting rendering components to functional components 2019-01-27 08:30:05 -05:00
Jeff Avallone
d4aa207f75 Removing dead code 2019-01-27 08:24:47 -05:00
Jeff Avallone
b299d32fc3 Adding a layout pass to SVG image components
text nodes are the only elements that need to be "measured". The
dimensions of all other image components can be determined based on the
dimensions of their children. This adds a pre-rendering pass to work out
dimensions so multiple renders don't need to happen
2019-01-26 17:25:38 -05:00
Jeff Avallone
21c392752e Stubbing out parsing and starting on rendering flow 2019-01-26 16:46:49 -05:00
Jeff Avallone
3378c68aed Starting to add SVG components 2019-01-26 11:02:45 -05:00
Jeff Avallone
fcf9a354f4 Moving close button for Privacy modal to Message
This allow any Message to have a configurable close button. It also
makes the styling more robust
2019-01-19 13:41:42 -05:00
Jeff Avallone
f9b34ebd94 Moving modal styles to CSS 2019-01-19 13:26:13 -05:00
Jeff Avallone
ef8b3a4bde Removing unnecessary property 2019-01-19 13:13:37 -05:00
Jeff Avallone
d57a4c1147 Using a button for the close control and privacy policy modal 2019-01-19 13:10:40 -05:00
Jeff Avallone
9e0cf951d2 Tweaking styles in FormActions 2019-01-18 22:16:21 -05:00
Jeff Avallone
86552860f6 Missing semicolon 2019-01-18 22:16:11 -05:00
Jeff Avallone
1bb01ab8eb Allowing Privacy Policy link click to happen with modifier key 2019-01-18 16:33:02 -05:00
Jeff Avallone
2c8b779793 Opening the privacy policy as an overlay when possible
It still exists as a separate page, but will open as an overlay for a
simple click
2019-01-18 16:24:10 -05:00
Jeff Avallone
83de8ebcbc Splitting privacy policy into a separate component 2019-01-18 15:40:29 -05:00
Jeff Avallone
f776d19404 Putting a contoured outline on the favicon 2019-01-16 20:59:38 -05:00
Jeff Avallone
cfd7e1ab02 Tweaking mobile styling 2019-01-16 20:09:17 -05:00
Jeff Avallone
d41dad14a1 Adding install prompt link in the header 2019-01-16 20:09:04 -05:00
Jeff Avallone
67771e07b0 Removing left margin from fancy selects 2019-01-16 06:53:38 -05:00
Jeff Avallone
f0233ee030 Hiding content that requires JS when JS is disabled 2019-01-16 06:50:55 -05:00
Jeff Avallone
c7ea0659f4 Adding HTML lang attribute and description metadata 2019-01-16 06:35:43 -05:00
Jeff Avallone
325f01f034 Translating Loader component 2019-01-15 21:57:43 -05:00
Jeff Avallone
d48b48bffc Translating FormActions component 2019-01-15 21:48:52 -05:00
Jeff Avallone
c4a74ad244 Translating Form component 2019-01-15 21:42:41 -05:00
Jeff Avallone
3f692fc20b Translating the App component 2019-01-15 21:40:07 -05:00
Jeff Avallone
bbdc5a3b12 Reverting PWA install prompt
This protocol changed from when the old React implementation was built
and it doesn't work from a user-experience perspective now
2019-01-15 21:20:28 -05:00
Jeff Avallone
8c312a450c Integrating install prompt on index page 2019-01-15 21:08:07 -05:00
Jeff Avallone
e77763d0b0 Converting IndexPage to a class 2019-01-15 20:36:45 -05:00
Jeff Avallone
9200c1a8e3 Adding InstallPrompt component 2019-01-15 20:28:21 -05:00
Jeff Avallone
46c956e3da Adding manifest and offline support 2019-01-15 18:51:46 -05:00
Jeff Avallone
eab20afe1c Adding tests for App component 2019-01-15 17:46:43 -05:00
Jeff Avallone
7261b0b526 Making propTypes static 2019-01-13 21:30:06 -05:00
Jeff Avallone
bf44bce954 Moving propTypes into class definitions 2019-01-13 21:23:49 -05:00
Jeff Avallone
60449249d0 Adding tests for Form component 2019-01-13 18:26:32 -05:00
Jeff Avallone
c14aa078b1 Adding tests for FormActions component 2019-01-13 17:47:37 -05:00
Jeff Avallone
f1a2dfdd34 Updating tests 2019-01-13 11:56:07 -05:00
Jeff Avallone
3eb0689ff3 Preventing rendering with the wrong component 2019-01-13 11:51:45 -05:00
Jeff Avallone
5de72ffb97 Loading syntax-specific rendering module
Still mocked out for testing
2019-01-13 11:44:57 -05:00
Jeff Avallone
c3116bf5b6 Moving supported syntax list to gatsby-config 2019-01-13 11:33:33 -05:00
Jeff Avallone
152cf7f7b3 Cleanup 2019-01-13 11:00:38 -05:00
Jeff Avallone
89bac8953b Pulling SVG and PNG download link code into separate file 2019-01-13 10:57:58 -05:00
Jeff Avallone
42a1788c52 Moving link generation into FormActions 2019-01-13 10:53:07 -05:00
Jeff Avallone
f41518bd92 Moving FormActions rendering to App 2019-01-13 10:15:44 -05:00
Jeff Avallone
13cfcca85e React.Context was overkill for this purpose, not using it
Also using Gatsby's built-in location property
2019-01-12 21:47:36 -05:00
Jeff Avallone
2d754227b1 Updating tests for SentryBoundary 2019-01-12 13:36:09 -05:00
Jeff Avallone
d8ceec1c07 Adjusting Sentry integration to include extra info 2019-01-12 13:30:02 -05:00
Jeff Avallone
abe7879b08 Adding module loading flow 2019-01-12 12:49:49 -05:00
Jeff Avallone
8187865f1f Renaming SVG to Render 2019-01-12 12:32:00 -05:00
Jeff Avallone
1336862bce Removing unnecessary default value 2019-01-12 12:21:24 -05:00
Jeff Avallone
024eb57603 Renaming mutation to a more imperative name 2019-01-12 12:18:48 -05:00
Jeff Avallone
d589329883 Moving AppContext into its own component 2019-01-12 12:15:18 -05:00
Jeff Avallone
786cd06cd9 Moving app state management code into App context 2019-01-12 12:12:42 -05:00
Jeff Avallone
1f5da0c690 Improving Gatsby rendering solution
Now the form will be prerendered
2019-01-11 23:12:45 -05:00
Jeff Avallone
9a4f669c2d Adding initial shot at handling build issues 2019-01-11 23:07:17 -05:00
Jeff Avallone
a4450b34b3 Adding semi-functional rendering demo of app 2019-01-11 22:32:20 -05:00
Jeff Avallone
0606325d6d Giving locale files better names in built output 2019-01-11 21:02:07 -05:00
Jeff Avallone
befcac2087 Converting SentryError to a functional component 2019-01-10 20:58:37 -05:00
Jeff Avallone
b774babfb9 Reworking i18n error logging to make it less noisy
Also changing locale loading error handling to make the backend retry on
failure
2019-01-08 17:48:47 -05:00
Jeff Avallone
aca30c8df3 I forgot to configure enzyme-to-json
I thought those snapshots looked terrible
2019-01-08 07:13:09 -05:00
Jeff Avallone
1e4e5d82d1 Moving query for siteMetadata to Layout 2019-01-08 07:09:06 -05:00
Jeff Avallone
f14e018518 Improving test coverage for LocaleSwitcher 2019-01-06 17:12:28 -05:00
Jeff Avallone
2a77792165 Splitting locale matching into separate file to facilitate testing 2019-01-06 16:54:24 -05:00
Jeff Avallone
ba8461c281 More realistic faking of setState to improve coverage 2019-01-06 16:42:14 -05:00
Jeff Avallone
02f6f2d252 Cleaning up uses of StaticQuery 2019-01-06 16:39:29 -05:00
Jeff Avallone
8426eaa433 Revert "Adding a HOC for using StaticQuery"
This reverts commit 3b11fcb0b6.
2019-01-06 16:26:55 -05:00
Jeff Avallone
3b11fcb0b6 Adding a HOC for using StaticQuery 2019-01-06 13:56:25 -05:00
Jeff Avallone
bf35f26d5b Reworking internal component naming for clarity 2019-01-06 13:25:33 -05:00
Jeff Avallone
618b21bb93 Implementing translations 2019-01-06 13:03:07 -05:00
Jeff Avallone
e1c4cb9068 Adding i18next integration 2019-01-06 12:24:47 -05:00
Jeff Avallone
7d7916baf0 Applying Layout component in gatsby-browser 2019-01-05 20:16:29 -05:00
Jeff Avallone
837b8d77df Updating eslint rules and addressing issues 2019-01-05 12:27:13 -05:00
Jeff Avallone
8a3471b916 Adding Jest for testing 2019-01-04 18:38:49 -05:00
Jeff Avallone
6cff032efb Adding Sentry 2019-01-03 21:33:13 -05:00
Jeff Avallone
a5babf8965 Tweaking language on privacy policy page 2019-01-03 18:29:28 -05:00
Jeff Avallone
1655a7898e Adding 404 and privacy policy pages 2019-01-03 18:01:11 -05:00
Jeff Avallone
533475e613 Adding Message 2019-01-03 18:01:01 -05:00
Jeff Avallone
a7ebcd92bf Adding Footer 2019-01-03 18:00:39 -05:00
Jeff Avallone
3ce3a886ed Loading font through CSS to avoid font loading flash 2019-01-03 18:00:10 -05:00
Jeff Avallone
fb4a130b3c Adding buildId and banner to siteMetadata 2019-01-03 17:59:22 -05:00
Jeff Avallone
c572501d51 Adding Header component 2019-01-03 07:49:54 -05:00
Jeff Avallone
6f391264be Adding some basic styling 2019-01-03 07:14:20 -05:00
Jeff Avallone
bad4b4be73 Adding react-helmet and starting on a Layout component 2019-01-02 18:51:23 -05:00
Jeff Avallone
10bd2c7e36 Adding Gatsby 2019-01-01 20:27:53 -05:00
Jeff Avallone
02f33c6ae2 Clearing out old site code 2019-01-01 20:22:04 -05:00