Skip to content

Conversation

@GregorShear
Copy link
Contributor

@GregorShear GregorShear commented Dec 11, 2025

Issues

#1839

Changes

  • simplifies data plane table in settings page
  • upon clicking a row in the table, summon a dialog with details

Tests

Manually tested

  • scenarios you manually tested

Automated tests

  • unit testing covered

Playwright tests ran locally

  • Admin
  • Captures
  • Collections
  • HomePage
  • Login
  • Materialization

Screenshots

Screen.Recording.2025-12-11.at.4.52.33.PM.mov

@GregorShear GregorShear requested a review from a team as a code owner December 11, 2025 21:32
@GregorShear GregorShear linked an issue Dec 11, 2025 that may be closed by this pull request
Comment on lines 43 to 59
<Stack direction="row" spacing={1}>
<TextField
value={value || ''}
disabled
size="small"
fullWidth
sx={{
'flex': 1,
'& .MuiInputBase-input': {
fontWeight: 500,
fontFamily: 'Monospace',
fontSize: 12,
},
}}
/>
<CopyToClipboardButton writeValue={value} />
</Stack>
Copy link
Member

Choose a reason for hiding this comment

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

I think we could just use SingleLineCode here and get generally the same experience. It looks much more like a box and does not follow the design principles of our forms but a somewhat common pattern for values users might need to copy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My thinking is to differentiate from form fields that the user has to edit vs uneditable values to copy

value={row.gcp_service_account_email}
/>
) : null}
<TechnicalEmphasis>{splitCidrBlocks.ipv4}</TechnicalEmphasis>
Copy link
Member

Choose a reason for hiding this comment

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

What is the UX through behind making these no longer easy to copy? So we can easily tell the user to always open the dialog and everything they could need to copy is there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is to simplify the table UX - easier to parse, and clicking anywhere on a row does a single thing: opens the dialog box

Copy link
Member

@travjenkins travjenkins left a comment

Choose a reason for hiding this comment

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

some changes needed

Copy link
Member

@travjenkins travjenkins left a comment

Choose a reason for hiding this comment

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

things need broken apart and some areas we can reuse already existing components.

@GregorShear
Copy link
Contributor Author

Added the "private" badge

Screenshot 2025-12-17 at 12 14 12 PM

Copy link
Member

Choose a reason for hiding this comment

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

We don't really use barrel files. You can just import directly.

Copy link
Contributor Author

@GregorShear GregorShear Dec 17, 2025

Choose a reason for hiding this comment

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

I'll remove it, but I like that it communicates that some of the internal exported components aren't necessarily designed for use outside of this directory (like the CopyIconIndicator - maybe it's useful elsewhere but I haven't put that thought into it yet)

I also appreciate this grouping

import {
    DataPlaneDialogField,
    ToggleField,
} from 'src/components/tables/DataPlanes/DialogFields';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(i get this is basically philosophical, just curious if there's reasoning behind the convention)

Comment on lines 594 to 597
case 'error':
return (
<WarningCircle style={{ color: theme.palette.error.main }} />
);
Copy link
Member

Choose a reason for hiding this comment

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

What is the thought behind removing the ability to visually show the use an error? Just that we're not really expecting it to ever happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

basically yes - happy to add this back in if we start seeing failures in the logs, but YAGNI i think?

Copy link
Member

Choose a reason for hiding this comment

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

I would leave it in there while we have the event and then if we don't see it for a month we can remove this support.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay - i put it back in there

Copy link
Member

@travjenkins travjenkins left a comment

Choose a reason for hiding this comment

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

I think this should be the last round of changes

export const logRocketEvent = (
event: CustomEvents | KnownEvents | string,
// (string & {}) preserves autocomplete for CustomEvents and KnownEvents while allowing arbitrary strings
event: CustomEvents | KnownEvents | (string & {}),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(string & {}) gives us back this autocomplete

Screenshot 2025-12-17 at 5 43 11 PM

Copy link
Member

@travjenkins travjenkins left a comment

Choose a reason for hiding this comment

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

lgtm

@GregorShear GregorShear merged commit 52b3498 into main Dec 18, 2025
6 checks passed
@GregorShear GregorShear deleted the greg/1839-refined-data-plane-view branch December 18, 2025 20:09
@travjenkins travjenkins added the change:planned This is a planned change label Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:planned This is a planned change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refined data plane view

3 participants