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: embed url service #1297

Merged
merged 3 commits into from
Apr 13, 2023
Merged

feat: embed url service #1297

merged 3 commits into from
Apr 13, 2023

Conversation

josephaxisa
Copy link
Contributor

No description provided.

Copy link
Contributor

@jkaster jkaster left a comment

Choose a reason for hiding this comment

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

This is looking great! I don't think we should throw an error on an invalid URL though. Perhaps have an .isValid property if it's not a recognized embed url

packages/embed-services/src/EmbedUrl.spec.ts Outdated Show resolved Hide resolved
packages/embed-services/src/EmbedUrl.ts Outdated Show resolved Hide resolved
Dashboard = 'DASHBOARD',
}

const THEMABLE_CONTENT: ContentType[] = [
Copy link
Contributor

Choose a reason for hiding this comment

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

I presume this is from a standard we use somewhere on the frontend for constant names?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, it's how I am used to doing it. I believe I saw @bryans99 doing it similarly as well. I can look through a style guide to make sure though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think Looker follows the Google style guide for TypeScript

@josephaxisa josephaxisa merged commit 0f71acf into main Apr 13, 2023
@josephaxisa josephaxisa deleted the jax/embed-url branch April 13, 2023 13:36
josephaxisa added a commit that referenced this pull request Apr 14, 2023
josephaxisa added a commit that referenced this pull request Apr 14, 2023
This was referenced May 10, 2023
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.

2 participants