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

feat: Add pylon to rill developer #5359

Merged
merged 4 commits into from
Aug 14, 2024

Conversation

AdityaHegde
Copy link
Collaborator

With the new login/logout within rill developer we also can support pylon chat support in there.

This PR adds it to the avatar dropdown and deploy screen when there is a failure.

Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

UXQA –

  1. When you're logged-out of Rill Developer, the "Contact Rill Support" button doesn't work because there's no email address to use to initialize the Pylon chat. Like the Cloud UI, we should hide it for now. Unless @ericokuma @mindspank @AndrewRTsao @jkhwu have something else in mind.
  2. I notice we have duplication between the legacy Rill Developer footer & the menu in the Local Avatar Button. @ericokuma @mindspank, can we remove "Documentation" and "Ask a question" from the legacy footer? And can we move "Report an issue" from the legacy footer to the avatar menu?

@@ -1,4 +1,4 @@
import type { V1User } from "../../client";
import type { V1User } from "@rilldata/web-admin/client";
Copy link
Contributor

Choose a reason for hiding this comment

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

web-common should not import anything from web-local or web-admin. Now that Rill Developer has more interaction with the admin server, I wonder if we should move the web-admin/client to web-common and rename web-admin to web-cloud for clarity. (Though this should certainly happen in a separate PR.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed we should hide Pylon if they're logged out. Two options that come to mind:

  1. We simply hide the Contact Rill Support button (and/or use the previous link to community)
  2. We keep the Contact Rill Support button but let them email [email protected] instead (we could trigger an email form while requiring them to share an email address)

If trivial, I think option 2 might be better to help build engagement (and we would still retain attribution) but will let Product make the final call.

Copy link
Collaborator Author

@AdityaHegde AdityaHegde Aug 14, 2024

Choose a reason for hiding this comment

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

@ericpgreen2 Ya makes sense. Updated to not use admin's model. For moving clients to common, I disagree. We can only use those clients on cloud. Any communication has to go through the local server.

@AndrewRTsao Hiding the button for now. We can do a follow up to send an email in cloud as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's fine to remove the duplicated entries in the footer

Comment on lines +3 to +8
export type UserLike = {
email: string;
displayName: string;
photoUrl: string;
};

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice solution to the import problem. Mind just adding a comment to explain the situation?

@AdityaHegde AdityaHegde merged commit e2cec13 into main Aug 14, 2024
4 checks passed
@AdityaHegde AdityaHegde deleted the adityahegde/rill-developer-pylon-integration branch August 14, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants