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

[OPIK-901] [Activation rate] Add line highlights in activation rate code blocks #1201

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

andriidudar
Copy link
Contributor

Details

image

Issues

Resolves #

Testing

Documentation

@andriidudar andriidudar requested a review from a team as a code owner February 3, 2025 14:45
Copy link
Contributor

@aadereiko aadereiko left a comment

Choose a reason for hiding this comment

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

Nice implementation! I like the idea of commenting with #... to identify highlighted lines.

  1. Although, playing with it, I noticed that a user can't select text in highlighted lines.
  2. This one is up to you: it might make sense to highlight lines without sending lines. just to check by the plugin if there is # HIGLIGHT... and add the highlight

`os.environ["OPIK_API_KEY"] = "${masked ? maskAPIKey(apiKey) : apiKey}"`;
export const buildWorkspaceNameConfig = (workspaceName: string) =>
`os.environ["OPIK_WORKSPACE"] = "${workspaceName}"`;
// TODO lala workspace name
Copy link
Contributor

Choose a reason for hiding this comment

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

a comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@andriidudar andriidudar force-pushed the andriidudar/OPIK-901-line-highlights branch from 664a1dc to b4461e1 Compare February 4, 2025 10:42
@andriidudar
Copy link
Contributor Author

Nice implementation! I like the idea of commenting with #... to identify highlighted lines.

  1. Although, playing with it, I noticed that a user can't select text in highlighted lines.
  2. This one is up to you: it might make sense to highlight lines without sending lines. just to check by the plugin if there is # HIGLIGHT... and add the highlight
  1. Fixed
  2. In this case, the comments will be visible to users in the code editor.

Copy link
Contributor

@aadereiko aadereiko left a comment

Choose a reason for hiding this comment

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

Great work!

@ferc ferc merged commit 79b993e into main Feb 4, 2025
2 checks passed
@ferc ferc deleted the andriidudar/OPIK-901-line-highlights branch February 4, 2025 11:18
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