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

Cloud File Browser displays full tree in teams plan. #12208

Merged
merged 8 commits into from
Feb 5, 2025

Conversation

farmaazon
Copy link
Contributor

Pull Request Description

Fixes #12002 with one caveat - we are unable to enter projects dirs, so it was not implemented.

Screencast.From.2025-01-31.16-30-26.mp4

I resigned from displaying project, as I think better UX is without them.

Important Notes

Tested on cloud staging.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

Copy link

github-actions bot commented Jan 31, 2025

🧪 Storybook is successfully deployed!

📊 Dashboard:

Copy link
Contributor

@kazcw kazcw left a comment

Choose a reason for hiding this comment

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

This is a bit of a nitpick, but: I see that isLoading is used to prevent the stack from being observed (or, indirectly, from being racily-modified) while the initialization logic may be navigating to the user's directory. In my opinion it could be more maintainable to keep the intermediate state local to the initial-loading logic, and set the stack state only when the "final" initial value for it has been computed (by adding a parent argument to enterDirByName and adding a wrapper for queryClient.fetchQuery to the useBackend API for this sort of one-shot queries). This way stack would be safe to use any time its value is present, rather than guarding it with another variable.

)

const currentPath = computed(() => {
if (!currentUser.data.value) return
let root = backend?.rootPath(currentUser.data.value)
Copy link
Contributor

Choose a reason for hiding this comment

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

Currently the backend == null case should be unreachable here, but I think for clarity and maintainability it's better to check it explicitly than stringify a value that is technically nullable.

@farmaazon
Copy link
Contributor Author

Applied review, and fixed loading spinner; now, loading sequence looks like this:

Screencast.From.2025-02-03.12-12-59.mp4

@farmaazon farmaazon requested a review from kazcw February 3, 2025 11:15
.LoadingSpinner {
border: 4px solid;
border-radius: 100%;
border-color: rgba(255, 255, 255, 90%) #0000;
Copy link
Contributor

@kazcw kazcw Feb 4, 2025

Choose a reason for hiding this comment

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

I had a different border-radius and border-color from the general LoadingSpinner styles here--IMO these values look better for the component icon.

@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label Feb 5, 2025
@mergify mergify bot merged commit 2297dca into develop Feb 5, 2025
39 of 43 checks passed
@mergify mergify bot deleted the wip/farmaazon/all-files-in-cloud-browser branch February 5, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-gui CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Cloud file browse widget show all cloud files and folders
2 participants