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(logs): share an operation via URL #2217

Merged
merged 22 commits into from
May 31, 2024
Merged

Conversation

bodinsamuel
Copy link
Collaborator

@bodinsamuel bodinsamuel commented May 28, 2024

Describe your changes

Fixes NAN-1013
Fixes NAN-1003
Contributes to NAN-908

  • Allow to share an operation details via URL
    We just append a query param and when it's there we open the Drawer back (datadog style)

  • Update copybutton with appropriate new icon

How to test?

  • Open the UI
  • Open an operation
  • Copy the URL into a new tab
  • Drawer should open automatically

@bodinsamuel bodinsamuel self-assigned this May 28, 2024
return (
<Drawer direction="right" snapPoints={[drawerWidth]} handleOnly={true} noBodyStyles={true}>
<Drawer direction="right" snapPoints={[drawerWidth]} handleOnly={true} noBodyStyles={true} onOpenChange={(v) => setTimeout(() => onOpenChange(v), 500)}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The drawer has an issue emilkowalski/vaul#361

@bodinsamuel bodinsamuel changed the title feat(logs): share an operation URL feat(logs): share an operation via URL May 29, 2024
Base automatically changed from feat/logs-message-pagination to master May 29, 2024 13:49
@bodinsamuel bodinsamuel marked this pull request as ready for review May 30, 2024 16:00
Copy link
Collaborator

@TBonnin TBonnin left a comment

Choose a reason for hiding this comment

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

works as described.
There is a small artifact that appears by the search logs text area before the drawer content fully load. Happens in both FF and Chrome

Screen.Recording.2024-05-30.at.23.55.12.mov

@bodinsamuel
Copy link
Collaborator Author

There is a small artifact that appears by the search logs text area before the drawer content fully load.

It's the Skeleton. Locally it loads too fast to be relevant but in prod it can be nice, I'll double check with gab

@bodinsamuel bodinsamuel merged commit 68903dc into master May 31, 2024
22 checks passed
@bodinsamuel bodinsamuel deleted the fix/log-operation-share branch May 31, 2024 09:00
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