-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Tech/overhaul ui #4086
Merged
Merged
WIP Tech/overhaul ui #4086
Changes from 250 commits
Commits
Show all changes
421 commits
Select commit
Hold shift + click to select a range
ab1db54
ADD support for cyclic objects in channel && CLEANUP
ndelangen 51c6abb
capture keypress and render key on screen as well as fix the UI for keys
Jessica-Koch be2f4ab
add ability to render keyboard shortcuts and set state to new state
Jessica-Koch 31c9f3d
ADD decycling & support for functions, infinity, regex, instanced obj…
ndelangen 651ca3e
IMPLEMENT API V2 && MIGRATE actions to use it && CLEANUP actions to m…
ndelangen 727cfcf
CLEANUP
ndelangen 375e6a6
CLEANUP async addition of stories (still needs a proper api to work w…
ndelangen 6c27512
FIX panels && FIX a few missing key warnings
ndelangen b7a4686
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen d4fd159
REFACTOR stringify & parse & isJSON into a separate lib
ndelangen 16c3724
MOVE code to separate package (telejson)
ndelangen 554d805
#3984 add tests to key parsing functions
Jessica-Koch 723309e
fix test
Jessica-Koch 91b20fd
Fix issues with notes addon loading
chinchiheather f905a5b
Set selected state of tab according to route
chinchiheather 2fa8912
Remove mobx in favor of custom store with React context
alexandrebodin 9a53c03
Split manager into more readable modules
alexandrebodin 37bfeda
#3984 keys now appear in the modal
Jessica-Koch 31cf0df
Merge branch 'tech/overhaul-ui' of https://github.com/storybooks/stor…
Jessica-Koch 936705e
#3984 add tests and utiltity function to verify uniqueness of key sho…
Jessica-Koch ba707f9
#3984 add default props to the keyboard , ability to clear input and…
Jessica-Koch f4282e5
#3984 consolidate buttons into one button with a case statemnet
Jessica-Koch 71368d2
#3984 add ability to restore defaults, determine who changed the shor…
Jessica-Koch 13781c3
Merge branch 'next' into tech/overhaul-ui
ndelangen fd5c863
FIX versions
ndelangen 35a2728
FIX syntaxhighlighting ( I think v10 is broken release )
ndelangen e31e90f
Merge branch 'next' into tech/overhaul-ui
ndelangen 0e38b7b
Merge branch 'next' into tech/overhaul-ui
ndelangen dbc7d86
Merge branch 'next' into tech/overhaul-ui
ndelangen ce8d306
Merge branch 'tech/overhaul-ui' of https://github.com/storybooks/stor…
Jessica-Koch 313e741
#3984 reduce number of keys and now input sets state, correctly throw…
Jessica-Koch 8b33fe8
Merge branch 'next' into tech/overhaul-ui
ndelangen 17b555b
ADD toolbar hotkey
ndelangen a97ae81
FIX panel selection
ndelangen 57ee1f4
FIX treeview sorting (not sort stories, only groups and roots)
ndelangen 98c2d84
Merge branch 'next' into tech/overhaul-ui
ndelangen de53d2e
#3984 add tests to shortcuts file
Jessica-Koch d9a6bd4
#3984 save keyboard shortcuts to localstorage
Jessica-Koch da5cb07
#3984 nav menu changes when local storage items change
Jessica-Koch e6e2149
#3984 update tests and localstorage mock
Jessica-Koch 4eb4f36
#3984 fix error in restore defaults
Jessica-Koch bd17cde
Merge branch 'next' into tech/overhaul-ui
ndelangen 392f478
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen 749eeb4
FIX missing keyboard shortcuts on first init
ndelangen 3e9fd24
FIX SafeTab and REFACTOR panelSelection
ndelangen a6b5506
FIX routing & layout
ndelangen a91b9be
CLEANUP
ndelangen bae5a23
FIX issue with knobs and possibly more addons
ndelangen 06dbef4
Merge branch 'next' into tech/overhaul-ui
ndelangen 82553f0
FIX babel options for manager, unsure why it's suddenly broken here..
ndelangen 11e173a
FIX mobile viewport
ndelangen fe0eb14
CHANGE build & dev-serve so both webpack compilation happen in the sa…
ndelangen 38f6f1f
Merge branch 'next' into tech/overhaul-ui
ndelangen c36873c
REFACTOR dev-serve to output less noise
ndelangen 84dd84d
CLEANUP
ndelangen 4c8e7b7
Merge branch 'next' into tech/overhaul-ui
ndelangen db855ec
FIX issues with legacy support of urls && REFACTOR stories api
ndelangen e25388e
FIX backgrounds addon
ndelangen 628412a
Merge branch 'next' into tech/overhaul-ui
ndelangen bf45f06
Treeview fixes (very un-optimised)
ndelangen 3230164
#3984 add toggle toolbar state
Jessica-Koch efbf470
Merge branch 'next' into tech/overhaul-ui
ndelangen 63a9ac6
Merge branch 'tech/overhaul-ui' of https://github.com/storybooks/stor…
Jessica-Koch aab7aa2
Merge branch 'next' into tech/overhaul-ui
ndelangen d2e74b9
CLEANUP babelrc
ndelangen 5f05fe9
CLEANUP manager.context & root component
ndelangen ad7a379
FIX lockfile
ndelangen 7a41be7
ADD memoization in router for parsing componentParams
ndelangen ff383c5
WIP - CHANGE dependencies on react & react-dom to regular dependencies
ndelangen 180b5fb
OPTIMIZE the ui
ndelangen 362623c
OPTIMIZE treeview & explorer more
ndelangen 7e52277
OPTIMIZE more treeview & explorer
ndelangen fe7b28c
#3984 fix linting errors
Jessica-Koch 330a16c
#3984 fix linting errors
Jessica-Koch b806539
REFACTOR addon-cssresources
ndelangen 4ef4c23
Upgrade emotion@10.0.2
lifeiscontent efc9e21
Update dependencies for knobs
lifeiscontent b8be2f4
fix build
lifeiscontent 7c3b15d
CLEANUP && FIX issue if there are no cssresources
ndelangen 3b2aaa6
CLEANUP
ndelangen f940f87
REFACTOR viewports to use addParameters & only render tool
ndelangen 1ee249f
REFACTOR addon-background
ndelangen a9ee8a5
Merge branch 'next' into tech/overhaul-ui
ndelangen b189e7b
FIX lockfile
ndelangen 87de564
OPTIMIZE treeview state
ndelangen 9f65a57
UPGRADE addon-background usage to use parameters everywhere
ndelangen e735ede
#3984 clear input when focusing, save on blur, and restores default v…
Jessica-Koch 1b0da95
#3984 change event handler
Jessica-Koch ba4780d
Merge branch 'next' into tech/overhaul-ui
ndelangen 9bfcd1a
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen 9eb3cae
Merge branch 'next' into tech/overhaul-ui
ndelangen 07bfcc5
#3984 persist keyboard shortcuts, update styles, add success handler
Jessica-Koch f793237
REFACTOR addon-notes
ndelangen 2fbace1
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen ec82d04
REFACTOR a11y addon && FIX issues with decorators reloading
ndelangen a1762d7
MODIFY option to use addParameters
ndelangen 2761750
FIX a11y issue
ndelangen 4c5345d
migrated to ts
kroeder a8bf858
REFACTOR state management
ndelangen 43e3bda
Merge commit '4c5345d15cadb33e0277d399963c27bcee3b7623' into tech/ove…
ndelangen deb174f
FIX option in story to hide panels
ndelangen ba3de9b
#3984 reduce code redundancy
Jessica-Koch 22059f9
FIX iframe business, get the iframe once
ndelangen c066e41
IMPROVE typescript types on addon-notes
ndelangen ab06d36
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen 7d7d21e
WIP
ndelangen a9d3564
REFACTOR addon-links
ndelangen 63da588
REFACTOR addon-googleAnalytics && ADD error tracking and missing stor…
ndelangen 51c176c
CLEANUP
ndelangen 2fae294
Merge branch 'pr/lifeiscontent/4925' into tech/overhaul-ui
ndelangen 6285702
Merge branch 'next' into tech/overhaul-ui
ndelangen 9b229e3
#3984 fix code so that it detcts modifier keys and keypresses
Jessica-Koch 03522a5
#3984 fix pushing duplicate keys
Jessica-Koch 3b7de6d
#3984 fix doubly adding key shortcuts to api
Jessica-Koch 2f0bc49
Merge branch 'next' into tech/overhaul-ui
ndelangen d005878
CMS-19849 refactor shortcuts to depend on arrays to respect ordering
fe9e681
CMS-19849 add error handling
9f0a497
Merge branch 'next' into tech/overhaul-ui
ndelangen d7bfb78
FIX some typescript issues
ndelangen 9229165
FIX more typescript things
ndelangen 9a811a4
#3984 fix error when clicking modifiers, adjust styles and fix error …
Jessica-Koch c6e012e
Merge branch 'next' into tech/overhaul-ui
ndelangen 35abf09
FIX linting
ndelangen e048a7c
FIX more linting && FIX cyclic dependencies
ndelangen 1354b4b
FIX snapshots
ndelangen 0293514
MIGRATE storyshots to use new API with build-in context && update sna…
ndelangen af4b8d4
FIX tests
ndelangen 656ba78
Not particularly successful attemps to get panel test passing
68f62c0
Remove deprecated URL APIs as they will no longer work
b5c2b95
FIX tests
ndelangen deade9d
FIX tests
ndelangen ee4e696
FIX tests
ndelangen 0ddb2db
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen f1d76a8
Merge branch 'next' into tech/overhaul-ui
ndelangen 450c3a3
FIX random emotion issue by updating version
tmeasday b89a143
Revert "Remove deprecated URL APIs as they will no longer work"
tmeasday f080c5e
Merge 4848-new-example-format into tech/overhaul-ui
tmeasday 9b2e424
Fix up parameters examples
tmeasday e8dc531
Change .examples -> .stories
tmeasday 77afeea
Added a test for url module
tmeasday a2a1fe3
Added a test for queryParams ?
tmeasday ffcf018
Added tests for stories core api
tmeasday 24d3163
#3984 fix tests
Jessica-Koch 7513450
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
Jessica-Koch 4707a26
Added `selectStory` test
tmeasday 45ef6a8
Merge branch 'next' into tech/overhaul-ui
ndelangen 3f4a31b
remove getUrlData
tmeasday 53c727c
FIX up core/stories.js and tests
tmeasday 7e6f5f7
Merge branch 'next' into tech/overhaul-ui
ndelangen f2e8263
FIX lockfile && FIX snapshots
ndelangen 20ba220
FIX storyshots
ndelangen 1c899c9
FIX storyshots
ndelangen d353b9f
Use module.hot.dispose to do previousExports.
tmeasday 204b205
Support legacy query params in url.js
tmeasday c8cf226
Added new id generation code
tmeasday 2f45912
Use id to route legacy urls
tmeasday 38f6210
Fix up stories to use new componentId
tmeasday 6e1bed8
Got url tests passing
tmeasday dbbd061
Added id to storystore
tmeasday 0d7d8d2
Use new storyId format for story_store
tmeasday 279d764
Change `componentId` => `storyId`
tmeasday a9e4399
Fix tests
tmeasday 751b847
FIX tests
ndelangen 464a743
FIX tests
ndelangen 72df955
FIX tests
ndelangen 037eb83
FIX tests
ndelangen 18c6333
FIX tests
ndelangen 337cc2b
FIX tests
ndelangen 3aa88f9
FIX tests
ndelangen 2afab93
FIX tests
ndelangen f55a605
REMOVE tests, as it's no longer implemented here, instead in channel
ndelangen 02b368a
FIX tests
ndelangen 27be672
REMOVE test that is essentially a duplicate of our story
ndelangen 362e41b
CLEANUP
ndelangen 8f895f3
CHANGE to use yarn everywhere
ndelangen 2bb5172
FIX first-child issue && ADD new Heading type
ndelangen a600edb
FIX snapshots
ndelangen a2a7823
Merge branch 'next' into tech/overhaul-ui
ndelangen e14315e
FIX linting
ndelangen 810e24e
FIX lockfile for docs
ndelangen 0e905b5
REMOVE a ton of cruft from snapshots (reset & divs)
ndelangen 0534738
REMOVE emotion from snapshots, as they become too big, and they provi…
ndelangen 28a50f4
FIX tests
ndelangen 40b515f
#3984 create success and failure error messages
Jessica-Koch b52531e
#3984 add submit actions to tab and enter keys as well as reimplement…
Jessica-Koch 547e124
Merge branch 'tech/overhaul-ui' into tech/overhaul-ui-new-story-format
ndelangen 66bd01a
Merge pull request #5058 from storybooks/tech/overhaul-ui-new-story-f…
ndelangen ff46acb
Merge branch '5.0.0' into tech/overhaul-ui
ndelangen 0c400dd
FIX reset
ndelangen cde44cb
FIX color after reset fix
ndelangen 0e978e2
REFACTOR to Typography component
ndelangen a567b5d
ADD parent field to story_store data
6ac24f3
Use parent field for treeview utils
75306ba
CLEANUP && FIX Tabs
ndelangen ad16519
Merge branch '5.0.0' into tech/overhaul-ui
ndelangen 15fc398
RENAME Link to link
ndelangen 934aaf1
Merge branch '5.0.0' into tech/overhaul-ui
ndelangen f2fd91d
FIX gap in layout && FIX lib/addons
ndelangen 0093826
FIX arrow keys shortcuts
ndelangen 19ab87f
FIX filter disappear when 0 results
ndelangen 05f0ca1
#3984 shortcuts are limited to 3 characters
Jessica-Koch 6b34fa4
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
Jessica-Koch 2593256
FIX layout events handling
ndelangen 8e5b94d
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen 53a51b2
REMOVE scrollbar in tabs list
ndelangen 6c9e73e
CLEANUP deprecated APIs
ndelangen 1eef24f
RENAME selectedAddonPanel to selectedPanel
ndelangen 0b70afd
FIX snapshots
ndelangen 552d64b
FIX parameter merging
ndelangen e0dee7e
FIX skipping tests feature in storyshots
ndelangen 1a271ba
IMPROVE warnings
ndelangen 7f5d1e8
CHANGE core event names to uppercase && OPTIMISE app render
ndelangen 673f015
Merge remote-tracking branch 'origin/tech/overhaul-ui' into tech/over…
020d02e
#3984 merge conflict
Jessica-Koch 58adafe
#3984 remove hidden input field
Jessica-Koch ead61d8
Use correct prop in explorer.js
5ecc23e
Fix up key warning in addons panel
16bc330
Add notifications API
516693d
More useful error
aa64e3b
Revert "Use correct prop in explorer.js"
c4bd65c
Clear the update notification when the about page renders
b5e8125
Allow adding notifications
9b4b892
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
Jessica-Koch 4409700
#3984 remove unnecessary console statements
Jessica-Koch 1580b5e
Add versions module and use it to set the versions notification
6c127f9
Get version for about page from store
7faeba6
#3984 add more test
Jessica-Koch 075e3ab
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
Jessica-Koch 2f7f5f4
Add API for getting latest/current version
a6173bf
Only highlight the menu button if there's a version update
66c5c90
Merge remote-tracking branch 'origin/tech/overhaul-ui' into tech/over…
20d14ab
Final couple that I missed
85182cd
Merge pull request #5072 from storybooks/tech/overhaul-ui-new-storyId
d73653d
FIX grid
ndelangen 93a193b
Merge tech/overhaul-ui
ndelangen a00419b
Merge branch '5.0.0' into tech/overhaul-ui
ndelangen 4022285
UPGRADE dependencies
ndelangen d9f3043
FIX snapshots
ndelangen 41cc707
REFACTOR story_store
ndelangen 02bf47f
IMPROVE jest.init so it filters some errors (not failing a test over …
ndelangen 3540112
Merge branch '5.0.0' into tech/overhaul-ui
ndelangen 63d574b
FIX story_store tests
ndelangen 009bc8d
Use version endpoint to get version info
cf390de
Handle missing latest version on about pages
7cacf4b
Fix stories tests
2178a07
Merge branch '5.0.0' into tech/overhaul-ui
ndelangen ea04c1f
Simplify treeview a little and handle input prop changes
648113b
Merge pull request #5163 from storybooks/tmeasday/fix-treeview-reacti…
ndelangen b64a083
Merge branch 'tech/overhaul-ui' of github.com:storybooks/storybook in…
ndelangen 75d9cf5
Merge branch '5.0.0' into tech/overhaul-ui
ndelangen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@ndelangen | ||
TODO: | ||
- [x] FIX navigate by keyboard shortcut | ||
- [x] FIX addon-storysource click navigate | ||
- [x] FIX addon-links | ||
- [x] FIX addon-actions | ||
- [ ] FIX when reloading page selected story should stay (this happens when there's a mismatch between hierarchySeparators) | ||
|
||
- [ ] INVESTIGATE if addon-storysource can use router directly over state method | ||
- [ ] DISCUSS moving router into a separate package | ||
|
||
- [ ] TEST other examples (vue with it's different `decorateStory`) | ||
|
||
- [x] FIX HMR - stick with story in url | ||
- [x] FIX HMR - HMR in ejected iframe | ||
- [ ] FIX HMR - keep state of explorer | ||
|
||
- [x] FIX http://localhost:9011/?path=/components/Core-Errors-storyErrors (should error) | ||
- [ ] FIX https://deploy-preview-4086--storybooks-official.netlify.com/?selectedKind=Addons%7Ca11y&selectedStory=Invalid%20contrast&full=0&addons=1&stories=1&panelRight=0&addonPanel=%40storybook%2Faddon-a11y%2Fpanel (should redirect correctly) | ||
|
||
- [x] OPTIMIZE double selectStory event | ||
- [x] OPTIMIZE selectStory event at fullscreen switch | ||
- [ ] unify SET_CURRENT_STORY & SELECT_STORY | ||
|
||
- [x] FIX eslint | ||
- [ ] ADD unit tests | ||
|
||
- [x] REMOVE zoom level text & ADD reset button | ||
- [x] REMOVE grid-lines or move into addons / toggle | ||
- [x] FIX refresh when toggle panel or nav | ||
- [ ] FIX main is weird when entry page is settings after switching to components | ||
- [x] FIX delay in resizing panels because of transition | ||
|
||
- [ ] ADD postMessage to ejected iframe | ||
|
||
- [x] REMOVE toNested | ||
- [ ] ADD explorer hover over items | ||
- [ ] ADD support for rootSeparators in explorer | ||
- [ ] ADD auto-open of selection in explorer | ||
- [ ] ADD explorer empty message | ||
- [ ] ADD highlighting of the search results | ||
- [ ] TRY - when you click on a group, maybe select first renderable child - in an option? | ||
|
||
- [ ] ADD fetching of data for version notification | ||
- [ ] ADD storage of version info in localStorage | ||
|
||
Dom's changes | ||
- [x] ADD tools/hotkeys button | ||
- [x] ADD UI to go fullscreen and toggle panels | ||
- [ ] CHANGE styles of explorer | ||
- [ ] CHANGE styles of notifications | ||
- [x] CHANGE styles of main (preview+panel) | ||
- [ ] CHANGE toolbar | ||
- [ ] ADD shortcut for toggle toolbar | ||
- [ ] ADD shortcut for zoom | ||
- [ ] ADD shortcut for toggle grid | ||
- [ ] ADD tools to TabsBar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
require('./manager'); | ||
require('./dist/register'); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove before merge