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

Local Dashboard fixes #10958

Merged
merged 29 commits into from
Sep 8, 2024
Merged

Local Dashboard fixes #10958

merged 29 commits into from
Sep 8, 2024

Conversation

somebody1234
Copy link
Contributor

@somebody1234 somebody1234 commented Sep 3, 2024

Pull Request Description

  • Fix most of https://github.com/enso-org/cloud-v2/issues/1459
    • Prevent click + click from triggering rename on Windows and Linux. Behavior is preserved on macOS.
    • Fix text in Drive when root folder is empty
    • Properly remove the "Drop here to upload box" after a file is dropped
    • "Copy as path" now unconditionally uses / for path delimiters, even on Windows
    • Duplicating a project in the root folder on Windows no longer errors
    • Extra folders in the sidebar now (correctly) show folder name, rather than path, on Windows
    • Mouse pointer when dragging to a folder is now move, not copy

Not addressed:

  • [no-repro] Tooltips should have some latency before showing up
    • This should already be the case, although it may work weirdly (once the tooltip opens, there is no delay on subsequent tooltips opening until the last tooltip closes.)
  • [no-repro] Ctrl-click should add to selection
  • Column width should be resizable
    • This requires a refactor and therefore is considered out of scope for this PR
  • [no-repro] Choosing root folder needs a file browser
  • [no-repro] Choosing root folder doesn't do anything get the same list as we had before
  • [no-repro] Open in explorer didn't work in a file but did on project - possibly fixed by path changes.
  • [no-repro] Opening an enso-project by double clicking resulted on it being renamed with a (2)

Related changes:

  • Make "root directory" picker's file browser default to the current root directory

Important Notes

None

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.

@PabloBuchu
Copy link
Contributor

| [no-repro] Ctrl-click should add to selection
Does it mean it works for you? I also can't select multiple things with cmd/ctrl maybe key mapping is bugged?

| Opening an enso-project by double clicking resulted on it being renamed with a (2)
Looks bugged to me but maybe this needs a separate issue?

Screen.Recording.2024-09-03.at.12.12.20.mp4

@somebody1234
Copy link
Contributor Author

I also can't select multiple things with cmd/ctrl maybe key mapping is bugged?

maybe - editing an asset's name uses the same shortcut (cmd+click) - does that work for you?

@somebody1234
Copy link
Contributor Author

ahhh, double clicking like that...

@PabloBuchu
Copy link
Contributor

@somebody1234
Copy link
Contributor Author

@PabloBuchu some minor re-QA might be needed, for the double clicking to open. steps to repro:

  • set your Local root directory to a non-default value
  • double click a file. currently errors on develop since the file was uploaded to the default root directory so it is not present in the FE's root directory.
  • also refresh to make sure we don't repeatedly upload the new file every time we refresh (due to changes to when the file is uploaded.)

@PabloBuchu
Copy link
Contributor

@somebody1234 I think looks good

Copy link
Contributor

@MrFlashAccount MrFlashAccount left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -145,6 +147,30 @@ function DashboardInner(props: DashboardProps) {
const openProjectMutation = projectHooks.useOpenProjectMutation()
const renameProjectMutation = projectHooks.useRenameProjectMutation()

useQuery({
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better to use usePrefetchQuery here: https://stackoverflow.com/a/77486960

@somebody1234 somebody1234 added the CI: Ready to merge This PR is eligible for automatic merge label Sep 6, 2024
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.

Based on the tanstack-query changelogs, this version update shouldn't cause any problems for the GUI

@somebody1234 somebody1234 removed the CI: Ready to merge This PR is eligible for automatic merge label Sep 6, 2024
@somebody1234 somebody1234 added the CI: Ready to merge This PR is eligible for automatic merge label Sep 6, 2024
@mergify mergify bot merged commit 9ec6029 into develop Sep 8, 2024
36 checks passed
@mergify mergify bot deleted the wip/sb/dashboard-local-fixes branch September 8, 2024 06:54
jdunkerley pushed a commit that referenced this pull request Sep 9, 2024
- Fix most of enso-org/cloud-v2#1459
- Prevent click + click from triggering rename on Windows and Linux. Behavior is preserved on macOS.
- Fix text in Drive when root folder is empty
- Properly remove the "Drop here to upload box" after a file is dropped
- "Copy as path" now unconditionally uses `/` for path delimiters, even on Windows
- Duplicating a project in the root folder on Windows no longer errors
- Extra folders in the sidebar now (correctly) show folder name, rather than path, on Windows
- Mouse pointer when dragging to a folder is now move, not copy

Not addressed:
- [no-repro] Tooltips should have some latency before showing up
- This should already be the case, although it may work weirdly (once the tooltip opens, there is no delay on subsequent tooltips opening until the last tooltip closes.)
- [no-repro] Ctrl-click should add to selection
- Column width should be resizable
- This requires a refactor and therefore is considered out of scope for this PR
- [no-repro] Choosing root folder needs a file browser
- [no-repro] Choosing root folder doesn't do anything get the same list as we had before
- [no-repro] Open in explorer didn't work in a file but did on project - possibly fixed by path changes.
- [no-repro] Opening an enso-project by double clicking resulted on it being renamed with a (2)

Related changes:
- Make "root directory" picker's file browser default to the current root directory

# Important Notes
None

(cherry picked from commit 9ec6029)
jdunkerley pushed a commit that referenced this pull request Sep 10, 2024
- Fix most of enso-org/cloud-v2#1459
- Prevent click + click from triggering rename on Windows and Linux. Behavior is preserved on macOS.
- Fix text in Drive when root folder is empty
- Properly remove the "Drop here to upload box" after a file is dropped
- "Copy as path" now unconditionally uses `/` for path delimiters, even on Windows
- Duplicating a project in the root folder on Windows no longer errors
- Extra folders in the sidebar now (correctly) show folder name, rather than path, on Windows
- Mouse pointer when dragging to a folder is now move, not copy

Not addressed:
- [no-repro] Tooltips should have some latency before showing up
- This should already be the case, although it may work weirdly (once the tooltip opens, there is no delay on subsequent tooltips opening until the last tooltip closes.)
- [no-repro] Ctrl-click should add to selection
- Column width should be resizable
- This requires a refactor and therefore is considered out of scope for this PR
- [no-repro] Choosing root folder needs a file browser
- [no-repro] Choosing root folder doesn't do anything get the same list as we had before
- [no-repro] Open in explorer didn't work in a file but did on project - possibly fixed by path changes.
- [no-repro] Opening an enso-project by double clicking resulted on it being renamed with a (2)

Related changes:
- Make "root directory" picker's file browser default to the current root directory

# Important Notes
None

(cherry picked from commit 9ec6029)
jdunkerley pushed a commit that referenced this pull request Sep 10, 2024
- Fix most of enso-org/cloud-v2#1459
- Prevent click + click from triggering rename on Windows and Linux. Behavior is preserved on macOS.
- Fix text in Drive when root folder is empty
- Properly remove the "Drop here to upload box" after a file is dropped
- "Copy as path" now unconditionally uses `/` for path delimiters, even on Windows
- Duplicating a project in the root folder on Windows no longer errors
- Extra folders in the sidebar now (correctly) show folder name, rather than path, on Windows
- Mouse pointer when dragging to a folder is now move, not copy

Not addressed:
- [no-repro] Tooltips should have some latency before showing up
- This should already be the case, although it may work weirdly (once the tooltip opens, there is no delay on subsequent tooltips opening until the last tooltip closes.)
- [no-repro] Ctrl-click should add to selection
- Column width should be resizable
- This requires a refactor and therefore is considered out of scope for this PR
- [no-repro] Choosing root folder needs a file browser
- [no-repro] Choosing root folder doesn't do anything get the same list as we had before
- [no-repro] Open in explorer didn't work in a file but did on project - possibly fixed by path changes.
- [no-repro] Opening an enso-project by double clicking resulted on it being renamed with a (2)

Related changes:
- Make "root directory" picker's file browser default to the current root directory

# Important Notes
None

(cherry picked from commit 9ec6029)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge g-dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants