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

style(weave): style try in playground, hide button in peek view in playground #3075

Merged
merged 5 commits into from
Nov 27, 2024

Conversation

jwlee64
Copy link
Contributor

@jwlee64 jwlee64 commented Nov 25, 2024

Description

Screenshot 2024-11-25 at 11 45 11 AM

Testing

How was this PR tested?

@jwlee64 jwlee64 requested review from a team as code owners November 25, 2024 19:44
@circle-job-mirror
Copy link

circle-job-mirror bot commented Nov 25, 2024

@jwlee64 jwlee64 changed the title style(weave): style try in plyground, hide button in peek view in playground style(weave): style try in playground, hide button in peek view in playground Nov 26, 2024
@@ -77,6 +77,10 @@ const useCallTabs = (call: CallSchema) => {
const {entity, project, callId} = call;
const weaveRef = makeRefCall(entity, project, callId);

const {isPeeking} = useContext(WeaveflowPeekContext);
const showTryInPlayground =
!isPeeking || !window.location.pathname.includes('/weave/playground');
Copy link
Collaborator

Choose a reason for hiding this comment

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

fragile dependency on URL

@jwlee64 jwlee64 merged commit 6165c0f into master Nov 27, 2024
119 of 120 checks passed
@jwlee64 jwlee64 deleted the style-try-in-pg branch November 27, 2024 19:45
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants