-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate file browser to modular component construction with parent and child API access. #11
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
Merged
Merged
Changes from 61 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
2ea880f
Add file browser context.
vishalpalaniappan 0c695a2
Load workspace sample tree.
vishalpalaniappan f5b79e8
Merge branch 'main' into modular-filebrowser
vishalpalaniappan 9798843
Restructure files.
vishalpalaniappan 1cf39e7
Begin adding reducer pattern.
vishalpalaniappan c3266ea
Breaking: Start gutting component to rebuild it.
vishalpalaniappan 22cea37
Load workspace tree.
vishalpalaniappan a160d22
Move component to API and reducer.
vishalpalaniappan 10c48cf
Remove unncessary log.
vishalpalaniappan a377e27
Load tree from args.
vishalpalaniappan b2a26e8
Remove outdated sample trees.
vishalpalaniappan 4cb1a05
Updated stories.
vishalpalaniappan a3472a4
Switch to selecting node using UID.
vishalpalaniappan 1494b74
Select tree node after timeout from parent.
vishalpalaniappan bf13a02
Save node to useDraggable.
vishalpalaniappan 1758378
Remove unused log statement.
vishalpalaniappan 807670d
Use uid for key.
vishalpalaniappan b5ac9e2
Modify editor to use tabs provided by file browser tree.
vishalpalaniappan f6a0ba2
Small refactor.
vishalpalaniappan 2260caa
Remove unused variable.
vishalpalaniappan 6f42a45
Use generated preview for tree node.
vishalpalaniappan b06dad7
Rename dndkit types and add check to ensure unique uid of tabs.
vishalpalaniappan 3843a4b
Add functionality to invoke callback on file select.
vishalpalaniappan 3679684
Cleanup helper.js.
vishalpalaniappan 8fe9c68
Add functionality to insert tab at specific location if it was provided.
vishalpalaniappan b3fd0c7
Save preview in draggable info.
vishalpalaniappan 99edfd1
Update stories to use more accurate drag position and preview saved i…
vishalpalaniappan 9c118e4
Fix incorrect id for tree node.
vishalpalaniappan 7d68c59
Remove redundant preview api call.
vishalpalaniappan ae21b18
Remove unused import.
vishalpalaniappan 6099355
Small refactor.
vishalpalaniappan 9058d16
Remove unused imports.
vishalpalaniappan 680a3fe
Set unique ids for dnd components and cleanup.
vishalpalaniappan 2eb5d89
Use correct uids.
vishalpalaniappan 2214894
Update dev version.
vishalpalaniappan e283188
Add scroll bar for tabs.
vishalpalaniappan 9a13995
Improve style.
vishalpalaniappan 2d13ff3
Fix style for file browser.
vishalpalaniappan 6993ed1
Improve styling.
vishalpalaniappan 7c1fc4d
Fix styling.
vishalpalaniappan bc8dadd
Remove redundant styles in tree.scss.
vishalpalaniappan e13d88b
Remove viewer component and boostrap library dependencies.
vishalpalaniappan 575547c
Reset reducer state to address issues with strict mode and remove out…
vishalpalaniappan 225181c
Remove index from exported modules.
vishalpalaniappan b98224e
Avoid mutating state directly.
vishalpalaniappan bc44d07
Wrap selectFile with useCallback.
vishalpalaniappan 8872dd8
Set unique id based on parentId for when there are multiple editors.
vishalpalaniappan 7f08ba2
Switch to absolute coordinates so monaco editor automatically fills h…
vishalpalaniappan 48c5514
Minor changes to set some options.
vishalpalaniappan 01b33dd
Disable automatic layout to avoid resizeobserver loop bug.
vishalpalaniappan 2ed1599
Revert automatic layout change.
vishalpalaniappan e45511a
Disable automatic layout and manually layout editor.
vishalpalaniappan ff48557
Add UID to initial state of file browser and editor.
vishalpalaniappan fef5042
Use generated state UID as Parent ID.
vishalpalaniappan e6b6860
Set unique key.
vishalpalaniappan 3adcfa9
Fix flattened tree type.
vishalpalaniappan 6ed2f54
Add default case.
vishalpalaniappan 4893f56
Return state.
vishalpalaniappan e57a006
Remove unused function call.
vishalpalaniappan 4ab175e
Clear trees if there are no nodes in collapsed tree.
vishalpalaniappan 57bdbe7
Remove outdated api call.
vishalpalaniappan 1d79161
Disable minimap and remove uplicate scroll beyond last line.
vishalpalaniappan a560289
Clone payload before mutating it.
vishalpalaniappan 049f0fd
Close tab on center mouse click.
vishalpalaniappan e1b3621
Reduce size of tree nodes and tabs.
vishalpalaniappan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.