-
Notifications
You must be signed in to change notification settings - Fork 44
Explore folders feature #55
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
Open
david-wagih
wants to merge
15
commits into
facebookresearch:seamlisten
Choose a base branch
from
david-wagih:explore-folders-feature
base: seamlisten
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7b7e8cd
add Notebook component to explore folders better
david-wagih 3c6453f
implement the process folders logic
david-wagih 27eea00
resolve the comments and fix the response structure of processing a f…
david-wagih 5ff11cc
using path Apis instead of os.path
david-wagih e999e59
Update stopes/ui/seamlisten/backend/app/fileviewer.py
david-wagih 7b8385e
fix the comments needed
david-wagih 00c5618
fix the explore folder feat problem and make sure it used relative paths
david-wagih b8a804d
fix all issues related to tree view and adding download button
david-wagih 9be834d
fix errors in fileviewer file
david-wagih b827766
remove unused imports
david-wagih 3089b21
fix the styling of the tree view
david-wagih 847f87c
enhance the styling of the download button
david-wagih 36edd8a
fix some bugs related to expanding folders
david-wagih 42edb3f
Update stopes/ui/seamlisten/backend/app/fileviewer.py
david-wagih 9a21bce
Update stopes/ui/seamlisten/backend/app/fileviewer.py
david-wagih 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
67 changes: 67 additions & 0 deletions
67
stopes/ui/seamlisten/react_app/src/components/Notebook.css
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| /* Notebook container */ | ||
| .notebook-container { | ||
| display: flex; | ||
| border: 1px solid #ccc; | ||
| border-radius: 5px; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| /* Folder navigation panel */ | ||
| .folder-navigation { | ||
| flex: 1; | ||
| padding: 10px; | ||
| background-color: #f5f5f5; | ||
| } | ||
|
|
||
| /* Folder item */ | ||
| .folder-item { | ||
| padding: 8px; | ||
| cursor: pointer; | ||
| border-radius: 3px; | ||
| margin-bottom: 5px; | ||
| transition: background-color 0.2s; | ||
| } | ||
|
|
||
| .folder-item:hover { | ||
| background-color: #e0e0e0; | ||
| } | ||
|
|
||
| .selected { | ||
| background-color: #2196f3; | ||
| color: white; | ||
| font-weight: bold; | ||
| } | ||
|
|
||
| /* Notebook content panel */ | ||
| .notebook-content { | ||
| flex: 3; | ||
| padding: 10px; | ||
| border-left: 1px solid #ccc; | ||
| } | ||
|
|
||
| /* File viewer */ | ||
| .file-viewer { | ||
| padding: 10px; | ||
| background-color: #fff; | ||
| border: 1px solid #ccc; | ||
| border-radius: 5px; | ||
| min-height: 200px; | ||
| overflow: auto; | ||
| } | ||
|
|
||
| /* File content */ | ||
| pre { | ||
| white-space: pre-wrap; | ||
| font-family: monospace; | ||
| } | ||
|
|
||
| /* Default text style */ | ||
| div { | ||
| font-family: Arial, sans-serif; | ||
| } | ||
|
|
||
| /* Centered text */ | ||
| .text-center { | ||
| text-align: center; | ||
| } | ||
|
|
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.