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

UI for creating & managing shares for tables and explorations #3127

Merged
merged 17 commits into from Aug 10, 2023

Conversation

pavish
Copy link
Member

@pavish pavish commented Aug 3, 2023

Fixes #3035

This PR

  • Allows users to share tables and queries from the UI

Demo

Screenshots

Flow: Sharing an entity

When table isn't shared
Screenshot 2023-08-03 at 6 15 04 AM

After sharing the table
Screenshot 2023-08-03 at 6 15 16 AM

Flow: Viewing shared entity using the link

Table
Screenshot 2023-08-03 at 6 16 04 AM

Exploration
Screenshot 2023-08-03 at 6 17 35 AM

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the develop branch of the repository
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no
    visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@pavish pavish changed the title UI for creating & managing shares for tables and queries UI for creating & managing shares for tables and explorations Aug 3, 2023
@pavish pavish added the pr-status: review A PR awaiting review label Aug 3, 2023
@pavish
Copy link
Member Author

pavish commented Aug 3, 2023

@ghislaineguerin and @kgodey I've requested your reviews for the UX for sharing tables & explorations.

Please take a look at the video for demonstration of the feature.

@pavish pavish added this to the v0.1.3 milestone Aug 3, 2023
@pavish
Copy link
Member Author

pavish commented Aug 3, 2023

This PR is marked as a draft because it depends on another PR which isn't merged it. But it is ready for review.

@ghislaineguerin
Copy link
Contributor

Thank you, @pavish . I think this is pretty straightforward. I don't see anything at this point that needs to be changed. I believe the options to create a link, and then to disable and regenerate, are very easy to understand.

Let's please ensure that we're using title case in the action buttons, as I believe we do that elsewhere. If you look at the 'Links' section in the inspector, we have 'Create Link,' where 'Link' is in uppercase.

I also don't know if we want (and this is something just to consider) to show somewhere in the table properties that this table is currently shared. The only way to know the status is to open the share button.

@kgodey
Copy link
Contributor

kgodey commented Aug 8, 2023

@pavish The UI looks good to me, nice work!

Like @ghislaineguerin, I also have a question about what the "Share" button will look like when there's already a link created. I assume it will change state somehow to show that the table / exploration is shared. I'd like to see that too.

@seancolsen
Copy link
Contributor

Re-assigned to @rajatvijay for review per discussion.

Copy link
Contributor

@dmos62 dmos62 left a comment

Choose a reason for hiding this comment

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

Backend changes approved.

@pavish
Copy link
Member Author

pavish commented Aug 9, 2023

@ghislaineguerin and @kgodey

Thanks for your reviews.

what the "Share" button will look like when there's already a link created. I assume it will change state somehow to show that the table / exploration is shared. I'd like to see that too.

This is currently not handled. The user will only know if the table is already shared or not when they open the dropdown.

I thought of a change in color, or a dot notification, both of which require a UX pattern which we haven't established uniformly, and I ultimately decided to get the feature completed and handle this later.

We can handle this as a separate issue for the next release. Does that sound good?

Let's please ensure that we're using title case in the action buttons, as I believe we do that elsewhere. If you look at the 'Links' section in the inspector, we have 'Create Link,' where 'Link' is in uppercase.

Yes, thanks Ghislaine. I'll make these changes.

Base automatically changed from shareable_links_queries to develop August 9, 2023 16:02
@pavish pavish marked this pull request as ready for review August 9, 2023 16:03
@kgodey
Copy link
Contributor

kgodey commented Aug 9, 2023

We can handle this as a separate issue for the next release. Does that sound good?

Yes, but please make an issue to track it.

Copy link
Contributor

@rajatvijay rajatvijay left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@pavish pavish added this pull request to the merge queue Aug 10, 2023
Merged via the queue into develop with commit 263f6b0 Aug 10, 2023
21 checks passed
@pavish pavish deleted the share_creation_ui branch August 10, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-status: review A PR awaiting review
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Implement frontend flow: User sharing an entity
6 participants