Skip to content
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

[frontend]Storage Browser initial layout implementation #3397

Merged
merged 5 commits into from
Aug 1, 2023

Conversation

nidhibhatg
Copy link
Collaborator

@nidhibhatg nidhibhatg commented Jul 14, 2023

What changes were proposed in this pull request?

  • Setup Storage browser react page under enable_new_storage_browser flag
  • Common header that could be used for all pages under hue 5

How was this patch tested?

  • Manually

Please review Hue Contributing Guide before opening a pull request.

Copy link
Collaborator

@Harshg999 Harshg999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, few comments.

desktop/core/src/desktop/conf.py Show resolved Hide resolved
desktop/core/src/desktop/models.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@bjornalm bjornalm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. It is complex getting this setup but this looks good.

@@ -17,6 +17,9 @@ export async function loadComponent(name) {
case 'FileChooserWithButton':
return (await import('./FileChooser/FileChooserWithButton/FileChooserWithButton')).default;

case 'StorageBrowserPage':
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Move up to "Page specific components here" section

@@ -520,6 +521,9 @@ def listdir_paged(request, path):
filter=? - Specify a substring filter to search for in
the filename field.
"""
if ENABLE_NEW_STORAGE_BROWSER.get():
return render('storage_browser.mako', request, {})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this is needed to get the new react app started, but additional routing within the new storage browser should probably be handed by a browser based router like the react router. Lets discuss once we get there.

desktop/core/src/desktop/models.py Outdated Show resolved Hide resolved
Copy link
Contributor

@JohanAhlen JohanAhlen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Fix the interface import statement and then good to go!

@@ -75,6 +75,14 @@
database: string;
}

interface BrowserInterpreter {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to imports above from config/types.ts (if needed)

@nidhibhatg nidhibhatg enabled auto-merge (squash) August 1, 2023 05:32
Copy link
Collaborator

@tabraiz12 tabraiz12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nidhibhatg nidhibhatg merged commit 0c47195 into master Aug 1, 2023
3 checks passed
@nidhibhatg nidhibhatg deleted the nidhi_filebrowser_layout branch August 1, 2023 06:21
tabraiz12 pushed a commit that referenced this pull request Oct 4, 2023
* [frontend]Storage Browser initial layout implementation

* [frontend]Fixed python styling

* [frontend]Changed feature flag to enable_new_storage_browser

* [frontend]Moved models.py changes to UI and improvements

* [frontend]Added data-browser icon and improvements

(cherry picked from commit 0c47195)
wing2fly pushed a commit that referenced this pull request Mar 6, 2024
…3397)

* [frontend]Storage Browser initial layout implementation

* [frontend]Fixed python styling

* [frontend]Changed feature flag to enable_new_storage_browser

* [frontend]Moved models.py changes to UI and improvements

* [frontend]Added data-browser icon and improvements

(cherry picked from commit 0c47195)
(cherry picked from commit bc07c22)
Change-Id: I10899ac6c6d7d92844d400fb3303eb9d9351b6e5
(cherry picked from commit 5afbef3)
athithyaaselvam pushed a commit that referenced this pull request Mar 14, 2024
…3397)

* [frontend]Storage Browser initial layout implementation

* [frontend]Fixed python styling

* [frontend]Changed feature flag to enable_new_storage_browser

* [frontend]Moved models.py changes to UI and improvements

* [frontend]Added data-browser icon and improvements

(cherry picked from commit 0c47195)
(cherry picked from commit bc07c22)
Change-Id: I10899ac6c6d7d92844d400fb3303eb9d9351b6e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants