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 08/26/2024 #10946

Merged
merged 11 commits into from
Sep 6, 2024
Merged

Conversation

somebody1234
Copy link
Contributor

@somebody1234 somebody1234 commented Sep 2, 2024

Pull Request Description

  • Address part of https://github.com/enso-org/cloud-v2/issues/1453

    • Many of the other issues are addressed in other PRs.
    • Username in "Set username" dialog defaults to user email
    • Hide "Share with" column for Free and Solo plans
    • Reorder categories in left sidebar
      • Previous: Cloud, My Files, Recent, Trash, ...Users, ...Teams
      • New: Cloud, Me (formerly My Files), ...Users, Teams, Recent, Trash
  • Fix In the local projects list, columns can be removed but cannot be re-added #10968

    • Show column toggles on Local category too (previously was explicitly specialcased to only be visible on Cloud categories as a remnant of the old design with the backend switcher at the top)
      • Added to this PR as this PR already touches the column toggles

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

PabloBuchu commented Sep 3, 2024

  1. Set organization name modal is still not being dismissed after submit. Is this fixed somewhere else?
  2. Lets hide share with also for team (sorry if I wasnt clear). The column only makes sense for enterprise. Lets hide it behind devtools
  3. Trash still has Users and Teams. Is this fixed somewhere else?
  4. Same for asset panel. Should I qa it somewhere else?
  5. striping @domain.com is intentional in username? Lets make it to be == with email
Screenshot 2024-09-03 at 11 22 33

@somebody1234
Copy link
Contributor Author

somebody1234 commented Sep 3, 2024

  1. Settings improvements #10924

  2. Fix permissions for Asset Panel for Team-owned assets #10929

2, 3, 5: will do.

for 3... i think maybe this should be fixed on the BE side? might need further discussion

@somebody1234
Copy link
Contributor Author

2, 5 fixed, as mentioned above i'm not sure about 3. maybe it should be fixed separately.

@PabloBuchu
Copy link
Contributor

ok lets discuss trash on channel ✅

@@ -74,9 +76,28 @@ export default class LocalStorage {

/** Register runtime behavior associated with a {@link LocalStorageKey}. */
static registerKey<K extends LocalStorageKey>(key: K, metadata: LocalStorageKeyMetadata<K>) {
if (!IS_DEV_MODE) {
invariant(
Copy link
Contributor

Choose a reason for hiding this comment

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

this one looks... silly. I do want to know that before we deploy to prod :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, good point... i was hiding it because it was (incorrectly) showing up on HMR refresh. any thoughts? i could instead have it e.g. throw and error and catch it to capture the stack trace... it's hacky but should more or less work...

Copy link
Contributor

@MrFlashAccount MrFlashAccount Sep 6, 2024

Choose a reason for hiding this comment

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

Maybe we can utilize this API to avoid incorrect behavior during HMR? https://vitejs.dev/guide/api-hmr

But this might not be sufficient: we need to make sure that the key is exact the same. (the key is coming from the same module)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure it's an option, yeah. especially since (afaict) you'd have to pass in import.meta.hot from the module that is calling .register, which means exposing implementation details to implementors.

right now i'm pushing an implementation based on stack traces instead, let me know your thoughts i guess?

Copy link
Contributor

Choose a reason for hiding this comment

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

In dev mode, I'm okay with that.

FWIW, to get access to the stack trace, you can call new Error().stack instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah XD i was throwing a new error and then wondering why i was catching it when i could just access its stack directly

@somebody1234 somebody1234 added the CI: Ready to merge This PR is eligible for automatic merge label Sep 6, 2024
@mergify mergify bot merged commit 3420a05 into develop Sep 6, 2024
36 checks passed
@mergify mergify bot deleted the wip/sb/dashboard-improvements-08-26 branch September 6, 2024 15:13
somebody1234 added a commit that referenced this pull request Sep 8, 2024
- Address part of enso-org/cloud-v2#1453
- Many of the other issues are addressed in other PRs.
- Username in "Set username" dialog defaults to user email
- Hide "Share with" column for Free and Solo plans
- Reorder categories in left sidebar
- Previous: Cloud, My Files, Recent, Trash, ...Users, ...Teams
- New: Cloud, Me (formerly My Files), ...Users, Teams, Recent, Trash

- Fix #10968
- Show column toggles on Local category too (previously was explicitly specialcased to only be visible on Cloud categories as a remnant of the old design with the backend switcher at the top)
- Added to this PR as this PR already touches the column toggles

None
jdunkerley pushed a commit that referenced this pull request Sep 9, 2024
- Address part of enso-org/cloud-v2#1453
- Many of the other issues are addressed in other PRs.
- Username in "Set username" dialog defaults to user email
- Hide "Share with" column for Free and Solo plans
- Reorder categories in left sidebar
- Previous: Cloud, My Files, Recent, Trash, ...Users, ...Teams
- New: Cloud, Me (formerly My Files), ...Users, Teams, Recent, Trash

- Fix #10968
- Show column toggles on Local category too (previously was explicitly specialcased to only be visible on Cloud categories as a remnant of the old design with the backend switcher at the top)
- Added to this PR as this PR already touches the column toggles

# Important Notes
None

(cherry picked from commit 3420a05)
mergify bot pushed a commit that referenced this pull request Sep 9, 2024
jdunkerley pushed a commit that referenced this pull request Sep 10, 2024
- Address part of enso-org/cloud-v2#1453
- Many of the other issues are addressed in other PRs.
- Username in "Set username" dialog defaults to user email
- Hide "Share with" column for Free and Solo plans
- Reorder categories in left sidebar
- Previous: Cloud, My Files, Recent, Trash, ...Users, ...Teams
- New: Cloud, Me (formerly My Files), ...Users, Teams, Recent, Trash

- Fix #10968
- Show column toggles on Local category too (previously was explicitly specialcased to only be visible on Cloud categories as a remnant of the old design with the backend switcher at the top)
- Added to this PR as this PR already touches the column toggles

# Important Notes
None

(cherry picked from commit 3420a05)
jdunkerley pushed a commit that referenced this pull request Sep 10, 2024
)

Closes: enso-org/cloud-v2#1473

This PR fixes a bug introduced in #10946

(cherry picked from commit 1fdaf37)
jdunkerley pushed a commit that referenced this pull request Sep 10, 2024
- Address part of enso-org/cloud-v2#1453
- Many of the other issues are addressed in other PRs.
- Username in "Set username" dialog defaults to user email
- Hide "Share with" column for Free and Solo plans
- Reorder categories in left sidebar
- Previous: Cloud, My Files, Recent, Trash, ...Users, ...Teams
- New: Cloud, Me (formerly My Files), ...Users, Teams, Recent, Trash

- Fix #10968
- Show column toggles on Local category too (previously was explicitly specialcased to only be visible on Cloud categories as a remnant of the old design with the backend switcher at the top)
- Added to this PR as this PR already touches the column toggles

# Important Notes
None

(cherry picked from commit 3420a05)
jdunkerley pushed a commit that referenced this pull request Sep 10, 2024
)

Closes: enso-org/cloud-v2#1473

This PR fixes a bug introduced in #10946

(cherry picked from commit 1fdaf37)
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In the local projects list, columns can be removed but cannot be re-added
3 participants