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

Dashboard improvements (from 24 September 2024 + 30 September 2024) #11219

Merged
merged 49 commits into from
Oct 9, 2024

Conversation

somebody1234
Copy link
Contributor

@somebody1234 somebody1234 commented Oct 1, 2024

Pull Request Description

  • Close https://github.com/enso-org/cloud-v2/issues/1508
    • ⚠️ Labels modal - add selection indicator where user can (de)select multiple labels
      • Checkboxes currently still cause the dialog to (incorrectly) close
    • Edit datalink -> select enso secret -> options are too narrow for enso path. Strip enso://Users(Teams), if possible make the options list longer on the left side
      • Added (or rather, re-enabled via CSS) horizontal scroll instead
    • Make Versions, Sessions, Settings as tabs similar to documentation panel in graph editor
    • Edit description in context menu should open asset panel with description input active
    • Edit secret should be moved to asset panel (same like datalink)
    • Dim background when "edit description", "edit secret", or "edit datalink" are clicked/triggered via shortcut to highlight input
    • Hide unused (= no backend support) columns and icons: accessed by projects and accessed data
  • Partial frontend fixes for https://github.com/enso-org/cloud-v2/issues/1529
    • (1) Fix settings title being horizontally centered and split on multiple lines
    • (2) ❌ backend issue
    • (3) ❌ out of scope
    • (4) ❌ backend issue
    • (5) ❌ out of scope
    • (6) ❌ out of scope
    • (7) ❌ backend issue
    • (8) ❌ already fixed in Fix rest of user/team permissions checks and "new label" dialog #11126
    • (9) ❌ out of scope (potentially requires a way to trigger a tooltip on a disabled button)
    • (10) ❌ out of scope
    • (11) ❌ out of scope
    • (12) ❌ out of scope
    • (13) URL encode enso:// URLs in "copy as path"
    • (14) Double click on datalink make asset open and close (not sure if this has already been fixed)
    • (15) Clicking anywhere on Asset Panel no longer deselects assets (not sure if this has already been fixed)
    • (16) ❌ addressed in Dashboard improvements (8 Oct 2024) #11268
    • (17) Make list of labels in Asset Panel (right sidebar) horizontal instead of (incorrectly) vertical
    • (18) Only show "Billing" settings tab for organization admins
    • Use "workspace" instead of "network" icon for project tabs
  • Other fixes:
    • Fix Asset Panel (right sidebar) not being able to be toggled off if it is temporarily open (when triggered from editing description, or editing secret, or editing datalink)
    • Make "cancel" and "reset" buttons default to outline variant, instead of ghost variant
    • Fix style of dropdown
    • Change Datalink editor dialog so that object keys are above inputs, not beside them. This gives inputs much more horizontal space for children of deeply nested objects.

Issues left to fix:

  • Checkboxes currently still cause the dialog to (incorrectly) close
  • "Edit description" actions etc. do not properly focus inputs

Issues left to do (out of scope):

  • Show username of user currently using a project (possibly as tooltip?) if the project is currently disabled.
  • Dropdown and autocomplete entries should be in their own dialog, so that they can escape the parent dialog if they are too long

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.

…rk as disabled buttons do not show tooltips)
@PabloBuchu
Copy link
Contributor

The labels modal. When I hit + next to the asset I get list of all labels (with marked checkboxes) thats ok but:

  1. When I hit create new labels is being created (✅ ) but it is not being associated to the asset I was editing (🔴 ) and the modal is g
  2. Please align colors
Screenshot 2024-10-04 at 10 40 32 one (🔴 ). The newly created label should be appended to the list and associated with asset.
  1. Edit datalink -> Username -> Switch from Text to Enso Secret -> kboom (also no list secrets request is being send)
Screenshot 2024-10-04 at 10 43 06
  1. Asset Panel -> Edit description -> Enter text -> Submit -> Text disapears although after reload all is preserved so the requests is being send properly
  2. | Edit description in context menu should open asset panel with description input active
    Can we make the input with active cursor?
  3. | Edit secret should be moved to asset panel (same like datalink)
    Yeah that works. Can we unify the forms? Make it to look the same as datalinks?

@somebody1234
Copy link
Contributor Author

somebody1234 commented Oct 4, 2024

  1. done locally
  2. done locally
  3. will investigate soon
  4. will be fixed on next PR
  5. done locally
  6. done locally (?) more or less at least

@somebody1234
Copy link
Contributor Author

3: weird, cannot repro?

@PabloBuchu
Copy link
Contributor

  1. Sorry but can we use just the same styles for the forms in asset panel? now they look completely different
Screenshot 2024-10-07 at 10 07 01 Screenshot 2024-10-07 at 10 07 06 2. Edit secret -> why reset button? (it resets name and name is readonly) `Update` is enough 3. Here is video for `3.` this looks serious:
Screen.Recording.2024-10-07.at.10.04.26.mp4

@somebody1234
Copy link
Contributor Author

@PabloBuchu issues should be fixed. the datalink input in the sidebar isn't perfect, but there is a follow on branch that should properly fix this stuff

@PabloBuchu
Copy link
Contributor

In secret form you renamed Reset to Cancel but it works the same it clears the name and only way to bring it back is to reload. Lets remove the Cancel button completelty (also in the datalink form it does nothing there as well). Else looks good so I will leave ✅
Screenshot 2024-10-08 at 12 50 14

@somebody1234
Copy link
Contributor Author

somebody1234 commented Oct 8, 2024

clears the name

yeah my bad. it shouldn't clear the name but will probably fix in the next PR then (which already includes various fixes for forms)

@somebody1234 somebody1234 added the CI: Ready to merge This PR is eligible for automatic merge label Oct 8, 2024
@mergify mergify bot merged commit 7a00e6e into develop Oct 9, 2024
37 checks passed
@mergify mergify bot deleted the wip/sb/dashboard-improvements-2024-09-24 branch October 9, 2024 09:10
mergify bot pushed a commit that referenced this pull request Oct 21, 2024
- ⚠️ Follow up to #11219. MUST NOT be merged in before that PR.

- Changes:
- Add optional overlay to `Popover`s
- Add and use `useAssetPassiveListener` everywhere to get reactive updates to asset state even outside Asset Panel
- `setItem` has been removed in favor of simply waiting for invalidations
- Migrate more `Modal`s to `Popover`s
- Migrate more inputs to `Form`s
- Periodically refetch Datalink in Asset Panel
- Show optimistic state for asset description (adding this because it is trivial to add)
- Remove usages of `get*` as mutations throughout the entire codebase - replace with `fetchQuery`
- Fixes most of rest of enso-org/cloud-v2#1529
- (1) ℹ️ fixed in #11219
- (2) ❌ backend issue
- (3) ❌ out of scope
- (4) ❌ backend issue
- (5) ❌ out of scope
- (6) ❌ [wontfix]? i think this is intentional, it's not so much slow scrolling and moreso snapped scrolling
- (7) ❌ backend issue
- (8) ℹ️ fixed in #11126
- (9) ❌ out of scope (potentially requires a way to trigger a tooltip on a disabled button)
- (10) ❌ (will check later) Make sure you are not able to open a project opened by another user: cmd + click is not always working.
- (11) Drag from team space to user space should copy asset
- (12) ❌ (will check later) Drag from user space to team should move (and swap ownership)
- (13) ℹ️ fixed in #11219
- (14) ℹ️ fixed somewhere (?)
- (15) ℹ️ fixed somewhere (?)
- (16) Show correct (and up-to-date) description for projects
- (17) ℹ️ fixed in #11219
- (18) ℹ️ fixed in #11219
- Fix enso-org/cloud-v2#1535
- Completely remove optimistic UI for "copy asset"
- Fix enso-org/cloud-v2#1541
- Make selection brush work again
- Unintentionally regressed in 51733ee#diff-f3e29bffcda342ab6a9dbafc58dde88ce26638eaecda1f17f40ca7e319c90cc8L89

# Important Notes
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 x-new-feature Type: new feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants