Skip to content

Commit

Permalink
small surrounding flyout ui changes
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
  • Loading branch information
paulstn committed Oct 9, 2023
1 parent 7329721 commit 8e90df3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function DataGrid(props: DataGridProps) {
explorerFields={explorerFields}
pplService={pplService}
rawQuery={rawQuery}
onFlyoutOpen={() => {}} // TODO: change this button to a minimize icon
onFlyoutOpen={() => {}}
dataGridColumns={dataGridColumns}
dataGridColumnVisibility={dataGridColumnVisibility}
selectedIndex={rowIndex}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const FlyoutButton = forwardRef((props: FlyoutButtonProps, ref) => {
<>
<EuiButtonIcon
onClick={() => toggleDetailOpen()}
iconType={'inspect'}
iconType={detailsOpen || surroundingEventsOpen ? 'minimize' : 'inspect'}
aria-label="inspect document details"
/>
{flyout}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const SurroundingFlyout = ({

const flyoutBody = (
<EuiFlyoutBody>
<div className="obsExplorer">
<div>
{getInputForm('arrowUp', onChangeNewEvents, numNewEvents, 'new')}
<EuiSpacer size="s" />
<div>
Expand All @@ -286,13 +286,9 @@ export const SurroundingFlyout = ({
columnVisibility={dataGridColumnVisibility}
rowCount={newEventsData.length + oldEventsData.length + 1}
renderCellValue={renderCells}
sorting={{
columns: sortingFields.current, // TODO: change this to only have timestamp from new to old
onSort: () => {},
}}
toolbarVisibility={false}
rowHeightsOptions={rowHeightsOptions}
height={800}
height={'60vh'}
/>
<div>
{oldEventsError !== '' && (
Expand Down

0 comments on commit 8e90df3

Please sign in to comment.