Vyacheslav Matyukhin
cf96d1b2d9
fix playground focus issue
2022-06-18 19:47:05 +03:00
Ozzie Gooen
60213d8321
Merged with develop
2022-06-17 16:01:30 -07:00
Ozzie Gooen
0bd407d3f4
Merge branch 'develop' into vscode
...
* develop:
fix SquigglePlayground in storybook
Ran formatter
Added scaleMultiply to docs
Added scaleMultiply
useSquiggle and useSquigglePartial hooks
v0.2.11
fix: Make lodash a dependency, rather than a dev dependency
Ran formatting
Normalize after trunctae
Ran formatter
Added descriptions to last API types
Fixed link that was breaking build
Small edits to guides section
More progress on DistGeneric
Ran format
Added key math variables, all lowercase
Removed the definitions tags in documentation
Minor cleanup on distributions
Lots of documentation tweaks
2022-06-17 15:57:36 -07:00
Ozzie Gooen
38a0e78873
Refactors to address CR
2022-06-17 15:47:37 -07:00
Ozzie Gooen
a563898a5f
Merge with develop
2022-06-17 12:45:42 -07:00
Vyacheslav Matyukhin
588cf0cb27
fix SquigglePlayground in storybook
2022-06-17 22:25:36 +03:00
Ozzie Gooen
342b5ba17b
Tiny css cleanup
2022-06-17 07:45:58 -07:00
Ozzie Gooen
8e7756fe35
Added Module type display and better error message if no type is found
2022-06-17 07:42:44 -07:00
Ozzie Gooen
f156840d65
Added toggle to optionally display code editor
2022-06-17 07:31:59 -07:00
Vyacheslav Matyukhin
618028d772
vscode extension
...
also:
- don't bundle react and react-dom with webpack
- controlled mode for SquigglePlayground
2022-06-17 00:37:20 +03:00
Vyacheslav Matyukhin
e8e8a06f7a
useSquiggle and useSquigglePartial hooks
2022-06-16 13:05:48 +03:00
Vyacheslav Matyukhin
2842965913
fix react-ace/tailwind css collision ( fixes #672 )
...
Also: fix preflight configuration
2022-06-14 11:57:28 +03:00
Vyacheslav Matyukhin
4d64f831b0
format main.css and prettierignore base.css
2022-06-10 00:46:38 +03:00
Vyacheslav Matyukhin
d812084614
scoped tailwind preflight, top-level .squiggle wrapper
2022-06-09 23:57:45 +03:00
Ozzie Gooen
d125664e57
Added stdev to table of stats, when needed
2022-06-06 12:25:09 -07:00
Vyacheslav Matyukhin
958c187e82
Various components cleanups
...
- coding style (let -> const, etc.)
- avoid double typing of component props, it's not necessary
- consistent non-default exports everywhere (except for
SquigglePlayground since I'm not 100% sure it's not used somewhere
else)
- extract common components in SquigglePlayground to avoid copy-paste
- other minor improvements
2022-06-04 23:38:16 +03:00
Ozzie Gooen
7f3cacae59
Merge pull request #622 from quantified-uncertainty/May-tailwind-refactor
2022-06-02 05:17:04 -07:00
Ozzie Gooen
793c42ce20
Merge pull request #599 from quantified-uncertainty/toPointSet-fn
2022-06-02 05:16:32 -07:00
Ozzie Gooen
4bad537a5d
Format
2022-06-01 21:44:46 -07:00
Ozzie Gooen
6aef52ef79
Added resultType for error message
2022-06-01 21:41:24 -07:00
Ozzie Gooen
800a832a06
Formatted, converted tab to component
2022-06-01 20:13:19 -07:00
Ozzie Gooen
88adccf2e7
Added max widths to settings pages
2022-06-01 20:04:50 -07:00
Ozzie Gooen
70eecde587
Refactored SquigglePlayground a bit
2022-06-01 19:42:03 -07:00
Ozzie Gooen
43643124e0
Refactored Alert, added more to Playground forms
2022-06-01 13:13:16 -07:00
Ozzie Gooen
6b7b3b049a
Minor tweaks
2022-05-31 16:01:13 -07:00
Ozzie Gooen
c453794e96
Simple styling for arrays
2022-05-31 14:14:55 -07:00
Ozzie Gooen
ddc8763f77
Minor styling to functions, strings, numbers
2022-05-30 20:33:47 -07:00
Ozzie Gooen
5e0dc6e4ed
Minor adjustments to code tabs
2022-05-30 16:40:32 -07:00
Ozzie Gooen
1213ca2bf0
Cleaning up Playground toolbar
2022-05-30 16:29:46 -07:00
Ozzie Gooen
d6bc942265
Added simple pill for code-settings toggle
2022-05-30 14:09:59 -07:00
Ozzie Gooen
6b80118e7e
Added lots of tailwind styling
2022-05-30 13:10:25 -07:00
Ozzie Gooen
afbc0199aa
Added tailwind/form
2022-05-30 06:40:03 -07:00
Sam Nolan
7f54bdce30
Fix typescript errors about children
2022-05-30 13:23:12 +10:00
Sam Nolan
ed6eb54165
Move from styled-components to tailwind
2022-05-30 11:30:10 +10:00
Ozzie Gooen
c2b90b7023
ToDiscretePointSet
2022-05-27 14:03:41 -04:00
Ozzie Gooen
d0102ae4f2
Changed graph axis to use .9-s format
2022-05-27 08:26:10 -04:00
Ozzie Gooen
b2c4f4f959
Merged with develop
2022-05-27 07:37:55 -04:00
Ozzie Gooen
4eac2f59be
Ran formatter
2022-05-27 07:32:03 -04:00
Ozzie Gooen
8482a51332
Minor fixes to get build to pass
2022-05-27 07:23:17 -04:00
Ozzie Gooen
afb7613bcc
Added simple input component for SquigglePlayground
2022-05-26 18:39:06 -04:00
Ozzie Gooen
7f6fe1a0aa
Minor component cleanup
2022-05-26 17:39:28 -04:00
Ozzie Gooen
30dc66db7c
Ran prettier
2022-05-26 17:21:17 -04:00
Ozzie Gooen
f5474030ec
Added number function to SquiggleChart
2022-05-26 17:18:10 -04:00
Ozzie Gooen
d38caff28f
Minor cleanup
2022-05-26 16:16:40 -04:00
Ozzie Gooen
f393cfda9f
Simple line chart for Functions
2022-05-26 14:41:58 -04:00
Ozzie Gooen
c9a54d4c14
First attempt at playground configurable toggles
2022-05-26 10:08:19 -04:00
Ozzie Gooen
554e50901e
Added VariableBox for functiona and function declaration
2022-05-26 08:30:37 -04:00
Ozzie Gooen
d630f7335d
Minor fixes
2022-05-26 08:23:43 -04:00
Ozzie Gooen
298d3923bc
Fixed bug caused by bad genType format of Declaration
2022-05-25 19:27:15 -04:00
Ozzie Gooen
3404534b10
Found some of the problem, will debug that next
2022-05-25 13:11:35 -04:00
Ozzie Gooen
5d8f07c1b4
Minor fixes
2022-05-25 10:55:03 -04:00
Ozzie Gooen
c5673fd1b1
Trying to add squigglechart types for declaration
2022-05-24 19:14:13 -04:00
Ozzie Gooen
533c97c41c
Added very simple lambdaDeclaration to React components
2022-05-24 17:23:37 -04:00
Ozzie Gooen
6af2e242f8
Simple better format for Duration toString
2022-05-22 22:11:28 -04:00
Ozzie Gooen
f1d2a1a12f
Added better Duration toString and Date makeWithYear functionality
2022-05-22 21:40:06 -04:00
Ozzie Gooen
364190dc7b
Simple dateTime integration
2022-05-22 18:37:07 -04:00
Ozzie Gooen
9ac99c781c
Responded to CR
2022-05-15 15:58:37 -04:00
Ozzie Gooen
b63136080b
Formatting
2022-05-15 15:29:54 -04:00
Ozzie Gooen
56728c7ea5
Removed unneeded code
2022-05-15 15:23:58 -04:00
Ozzie Gooen
91ccd333e0
Minor refactors
2022-05-15 15:21:00 -04:00
Ozzie Gooen
b015c20fa4
Cached FunctionChart percentiles calculation
2022-05-15 14:39:50 -04:00
Sam Nolan
d31619baa5
Merge pull request #524 from quantified-uncertainty/react-keys
...
Add react keys to remove warnings
2022-05-13 11:47:34 -04:00
Sam Nolan
006204f1ac
Add react keys to remove warnings
2022-05-13 15:40:52 +00:00
Sam Nolan
ae2ee48511
Memo the sampling of functions
2022-05-13 15:19:16 +00:00
Sam Nolan
8d391f789d
Keep props consistent
2022-05-10 16:16:36 +00:00
Sam Nolan
70ea9c1b14
Make optional arguments actually optional
2022-05-10 16:08:12 +00:00
Sam Nolan
07b93e5080
Merge branch 'develop' into function-charts
2022-05-10 15:57:59 +00:00
Sam Nolan
e058e315ad
Function charting
2022-05-10 15:52:13 +00:00
Sam Nolan
ca09650151
Fix number formatting for summary tables
2022-05-09 19:55:57 +00:00
Sam Nolan
aab6ac4940
Add an optional simple summary table
2022-05-09 19:21:54 +00:00
Sam Nolan
19ebc322ad
Merge branch 'develop' into component-stats
2022-05-09 18:30:09 +00:00
Sam Nolan
2860f28e32
Merge bindings function
...
Value: [0.0001 to 0.005]
2022-05-09 14:18:50 +00:00
Ozzie Gooen
e866ff062c
Merge pull request #486 from quantified-uncertainty/no-types-arrays
...
Always puts new elements on different lines.
2022-05-04 18:51:47 -04:00
Sam Nolan
3898753b00
Change gradient of one color to solid color
2022-05-04 22:35:04 +00:00
Sam Nolan
a25c83edf8
Always puts new elements on different lines.
...
Closes #480
2022-05-04 21:55:22 +00:00
Sam Nolan
6112487b78
Merge pull request #434 from quantified-uncertainty/reducer-dev
...
Reducer dev
2022-05-02 19:19:06 -04:00
Sam Nolan
6e72b89f7f
Add array string and function viewers
2022-05-02 21:59:56 +00:00
Sam Nolan
75a55de373
Recurse showTypes
2022-05-02 21:55:43 +00:00
Sam Nolan
5df9d0e51b
Pass showTypes and showControls in playground
2022-05-02 21:51:58 +00:00
Sam Nolan
da8a834b7e
Allows hiding controls
2022-05-02 21:33:34 +00:00
Sam Nolan
b9bde840b5
Merge pull request #460 from quantified-uncertainty/partial-storybook
...
Add partial functionality to storybook and update partial bindings async
2022-05-02 17:11:00 -04:00
Sam Nolan
0d14216e9f
Refactor and rename lambda in partial
2022-05-02 21:05:59 +00:00
Sam Nolan
202cb80ebf
Merge pull request #458 from quantified-uncertainty/real-log-scales
...
Real log scales
2022-05-02 17:01:17 -04:00
Sam Nolan
06c479b547
Make error message more descriptive
2022-05-02 20:54:33 +00:00
Sam Nolan
5fc829efc9
Refactor and shrink effect code
2022-05-02 20:52:55 +00:00
Sam Nolan
7e05d63009
Make a tooltip to restrict users from log scales
2022-05-02 20:40:15 +00:00
Sam Nolan
47b67a9efb
Add Patrial storybook and update partial bindings async
2022-05-02 19:58:24 +00:00
Sam Nolan
17a5f948fe
Format and fix CI bugs
2022-05-02 18:59:52 +00:00
Sam Nolan
71fc314930
Hotfix playground chart
...
Value: [0.001 to 0.01]
2022-05-02 18:54:41 +00:00
Sam Nolan
d660845d37
Merge branch 'develop' into real-log-scales
2022-05-02 18:48:02 +00:00
Sam Nolan
f4085e93ad
Real log scales
2022-05-02 18:29:59 +00:00
Sam Nolan
8df5a661fb
Merge branch 'develop' into mobile-support
2022-05-02 17:09:23 +00:00
Sam Nolan
8452995c31
Lint components
2022-05-02 17:01:09 +00:00
Sam Nolan
213808d3aa
Using useSize size to size charts to make them usable
2022-05-02 16:59:54 +00:00
Sam Nolan
a542325f31
A simple showTypes prop
2022-05-02 15:59:37 +00:00
Sam Nolan
e8239bf049
Merge branch 'develop' into mobile-support
2022-05-02 15:37:39 +00:00
Sam Nolan
0bc016632f
Mobile support
2022-05-02 15:36:20 +00:00
Sam Nolan
d6cec6886c
Clean up the props, removing unused and making some optional
2022-04-30 18:40:18 +00:00
Sam Nolan
64fbe05f3a
Basic stats table. Unformatted
2022-04-30 15:16:13 +00:00
Sam Nolan
99b9bc6b1e
Merge pull request #439 from quantified-uncertainty/remove-si-postfix
...
Remove si postfix from chart axis
2022-04-29 18:04:31 -04:00
Sam Nolan
3117dd81d6
Remove si prefix from chart axis
2022-04-29 21:16:22 +00:00
Sam Nolan
d09dbeb812
Format components code
2022-04-29 20:59:37 +00:00
Sam Nolan
2131e4eac1
Rename imports to jsImports in components
2022-04-29 20:58:06 +00:00
Sam Nolan
b710289096
Rename parameters to imports
2022-04-29 20:29:42 +00:00
Sam Nolan
39be07cac0
Add parameters to components interface
2022-04-29 19:02:43 +00:00
Sam Nolan
8f879b7168
Merge branch 'develop' into squiggle-editor-bindings
2022-04-29 13:51:31 +00:00
Sam Nolan
454ac0c252
Add bindings to Squiggle Editor
2022-04-29 13:50:57 +00:00
Quinn Dougherty
3e124cd91c
fixed width stuff, playground, and fonts after antd factor-out
...
Value: [1e-3 to 2e-2]
2022-04-28 18:25:01 -04:00
Quinn Dougherty
fde75d4bc3
No antd and everything compiles
...
Value: [1e-3 to 3e-2]
2022-04-28 17:54:43 -04:00
Sam Nolan
00f862725c
Add Dictionary Viewer and Recursive Array viewer
2022-04-28 18:59:15 +00:00
Sam Nolan
86e3d5865e
Change components to return result rather than environment
2022-04-23 15:02:44 -04:00
Sam Nolan
9ea7d23489
Fix Squiggle components build
2022-04-21 19:07:24 -04:00
Ozzie Gooen
8a29205247
Refactored if statement into switch
2022-04-15 18:13:59 -04:00
Ozzie Gooen
012a1e4793
Added storybook stories for most SquiggleChart Types
2022-04-15 17:14:07 -04:00
Ozzie Gooen
3d10d8e6a5
Bug fix to get docs to show correctly
2022-04-15 14:51:08 -04:00
Ozzie Gooen
e7d5fb4ad8
Changing styles of Playground
2022-04-14 20:16:15 -04:00
Ozzie Gooen
478bbf5740
First attempt at handling arrays and records
2022-04-13 19:37:59 -04:00
Sam Nolan
60a345dd6d
Implement mx for distributions
2022-04-12 17:39:38 +10:00
Sam Nolan
21458227ce
Respond to reducer playground PR comments
2022-04-12 16:02:34 +10:00
Sam Nolan
440bfabffa
Run prettier on monorepo + fix crashing playground
2022-04-12 15:41:36 +10:00
Sam Nolan
0d9e8c64c3
Merge branch 'staging' into reducer-playground
2022-04-11 16:21:51 +10:00
Sam Nolan
cb07f5f68a
A playground based on reducer
2022-04-11 16:16:29 +10:00
Sam Nolan
79ac1700d1
Include a playground in the squiggle website
2022-04-11 09:14:39 +10:00
Ozzie Gooen
005d617dcf
Changed size of discrete component points
2022-04-08 07:47:56 -04:00
Ozzie Gooen
b85c4f9a6b
Separated out parts of SquiggleChart, and renamed files around
2022-04-07 13:26:47 -04:00
Ozzie Gooen
382733e6f3
Show errors in FunctionChart
2022-04-07 11:26:18 -04:00
Ozzie Gooen
f63c775cb6
Simple implementation of function hover working
2022-04-07 09:53:45 -04:00
Ozzie Gooen
624e788094
Cleaning axis of vega graphs
2022-04-07 07:56:17 -04:00
Ozzie Gooen
f8af290bcf
Responded to code review comments
2022-04-07 07:28:33 -04:00
Ozzie Gooen
2d12e6b3ef
Small padding increase to SquiggleEditor Input
2022-04-06 21:51:04 -04:00
Ozzie Gooen
7d086a9cde
Added simple error component to SquiggleChart, when return is error
2022-04-06 21:37:08 -04:00
Ozzie Gooen
d5c183e7ee
SquiggleChart accepts a height, and doesn't have a hover, because it was broken for mixed distributions
2022-04-06 20:46:22 -04:00
Ozzie Gooen
4d0a522e96
Moved NumberShower to its own Storybook, and slight cleanup to other code.
2022-04-06 17:51:24 -04:00
Sam Nolan
e1295e4f0f
Fix PR comments:
...
- change the onChange handler to return onChange rather than onBlur
- Change the vega component to a checkbox
- Create new IDs + check whether it works with multiple editors
- Multiple line squiggle editors (noticed this was an issue)
- Remove ace imports that are not used
2022-04-06 11:18:18 +10:00
Sam Nolan
427c5d5615
Fix component PR comments
...
- use isFinite
- Refactor default props
- Fix height of single line
- Remove codejar dependency
2022-04-05 13:37:47 +10:00
Sam Nolan
097baadb04
Format and fix build error
2022-04-04 16:58:05 +10:00
Sam Nolan
de1c1d4e7e
Fix build issues
2022-04-04 14:53:55 +10:00
Sam Nolan
9e472d57e9
Add style-loader and Playground to index
2022-04-02 20:36:33 +11:00
Sam Nolan
628c2ce914
Remove y-axis
2022-04-02 12:46:19 +11:00
Sam Nolan
1d735263ed
Make width optional for text editor
2022-04-01 21:34:37 +11:00
Sam Nolan
423f1cbe98
Add width property
2022-04-01 17:29:37 +11:00
Sam Nolan
d18479e426
Fix performance regression by reducing settings
...
Fixes #112
2022-04-01 17:15:38 +11:00
Sam Nolan
59801f1f81
Remove sliders on graph for selects
2022-04-01 16:16:24 +11:00
Sam Nolan
4c1daab09f
Add padding, remove undefined and fix CI
2022-04-01 13:16:06 +11:00
Sam Nolan
c6c96a3e24
Move Playground to components
2022-04-01 11:26:26 +11:00
Sam Nolan
9d189d489a
Removes the action bubble from vega charts
2022-03-31 10:19:01 +11:00
Sam Nolan
41db968e99
Fix XSS issue with Squiggle Editor
2022-03-30 21:39:32 +11:00
Ozzie Gooen
2664ab68ed
Merge pull request #72 from QURIresearch/components-in-docs
...
Components in docs
2022-03-25 08:19:23 -04:00
Ozzie Gooen
4a62681209
Cleanup to documentation, changes to distribution colors
2022-03-25 08:13:56 -04:00
Sam Nolan
c4b6a8d097
Fix functions not rendering
...
Fixes #59
2022-03-25 15:35:32 +11:00
Sam Nolan
543dde9144
Reference lang source code directly from components
2022-03-25 10:27:17 +11:00
Sam Nolan
697bb85346
Extrapolate on the reason for ts-ignore
2022-03-23 11:51:04 +11:00
Sam Nolan
15c9fbd13b
Add prettier and format
2022-03-23 11:38:01 +11:00
Sam Nolan
f122b5fd7f
Add squiggle notebooks
2022-03-22 13:33:28 +11:00
Sam Nolan
73114c6a47
Allow settings to be edited by component users
2022-03-01 18:43:35 +11:00
Sam Nolan
46265ec884
Add documentation and improve components
2022-03-01 10:59:48 +11:00
Sam Nolan
212f53a940
Add storybook
2022-02-27 15:41:30 +11:00