Skip to content

Conversation

elizabetdev
Copy link
Contributor

@elizabetdev elizabetdev commented Sep 30, 2025

Closes HDX-2436.

This PR adds copy-to-clipboard buttons in RawLogTable for log line data and URLs, with improved button styling. It also adds row field buttons.

image

Copy link

changeset-bot bot commented Sep 30, 2025

🦋 Changeset detected

Latest commit: ce22e35

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/app Minor
@hyperdx/api Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview Comment Oct 6, 2025 5:50pm

Copy link
Contributor

github-actions bot commented Sep 30, 2025

E2E Test Results

2 tests failed • 23 passed • 3 skipped • 365s

Status Count
✅ Passed 23
❌ Failed 2
⚠️ Flaky 0
⏭️ Skipped 3

View full report →

[styles.wrapped]: wrapLinesEnabled,
})}
>
<Popover width={80} position="top-start" offset={5} opened={opened}>
Copy link
Contributor

Choose a reason for hiding this comment

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

For some reason I get glitches with the popover staying opened, usually when I click on the popover to open a side panel row. Is it because there's a on click trigger we didn't disable?

image

const rowWhere = getRowWhere(row);
const currentUrl = new URL(window.location.href);
// Add the row identifier as query parameters
currentUrl.searchParams.set('rowWhere', rowWhere);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to add rowSource here as well, though it works without it. @brandon-pereira I saw you might have touched this recently, any chance you know more? (I know the param existed before you joined, but I've forgotten the context of that param by now!)


const copyRowData = async () => {
const rowWhere = getRowWhere(row);
await navigator.clipboard.writeText(rowWhere);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to copy the row data instead of the rowWhere data imo. Maybe JSON.stringify(row)? (I'm not sure what the row object looks like here, but that seems like a pretty sane behavior)

cell.getContext(),
)}
<div className={styles.fieldTextContainer}>
<DBRowTableFieldWithPopover
Copy link
Contributor

Choose a reason for hiding this comment

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

For some reason I'm seeing a bug where if I hover over a cell with a popover and then try to scroll rapidly, I get a double scroll bar pop up. This doesn't happen in the main branch so I suspect it's something triggered by this popover. This might be a bit tricky to debug though, I suspect something weird in how heights are being calculated momentarily with the popover?

Kapture.2025-10-01.at.15.35.49.mp4

…RowTableFieldWithPopover and SearchPage styles
@brandon-pereira
Copy link
Contributor

Seeing an issue where the table header goes on top of the modal when open
Screenshot 2025-10-03 at 3 02 42 PM

@@ -0,0 +1,132 @@
import React, { useRef, useState } from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

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

Love the addition of these components and slowly moving things out of DBRowTable, could we put these components in a folder called DBTable like I did in this PR? https://github.com/hyperdxio/hyperdx/pull/1232/files#diff-4990739d2290c82fba13c3caa553b25a35eadda265e594b9276f3b367fa108c2

We can then drop DBRowTable from the File name.

It will take a while to get some structure, but this could be a first starting point.

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.

3 participants