-
Notifications
You must be signed in to change notification settings - Fork 8.5k
UI Polish for Session viewer frame + buttons #128188
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6793296
UI Polish for Session viewer frame + buttons
animehart 2369576
UI Update for Session Viewer + Toolbar
animehart eef4eec
added Left Borders on Details panel + Fix Details panel button behaviour
animehart 266d7a9
Merge branch 'main' into ui-polish-qanotes
mitodrummer 7adad7a
Details Panel UI Polish + PR Comments
animehart 5920826
Merge branch 'ui-polish-qanotes' of github.com:animehart/kibana into …
animehart 08d3a6e
Find results interaction UI Polish, Def/Min/Max width for details pan…
animehart f97eb92
merging with main , fix conflict
animehart 4de6e08
more conflict fixes
animehart 07b4422
removed unused variable
animehart 5532ea8
fix for failed checks on buildkite #1
animehart b872de2
fix conflict
animehart 2085602
Addressing PR comments
animehart ab4a89b
Merge branch 'master' into ui-polish-qanotes
animehart cb5c471
PR Comments + Search bar UI bug fix
animehart a0766b7
pr comments
animehart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ import { | |
| EuiFlexItem, | ||
| EuiResizableContainer, | ||
| EuiPanel, | ||
| EuiHorizontalRule, | ||
| } from '@elastic/eui'; | ||
| import { FormattedMessage } from '@kbn/i18n-react'; | ||
| import { SectionLoading } from '../../shared_imports'; | ||
|
|
@@ -92,127 +93,131 @@ export const SessionView = ({ sessionEntityId, height, jumpToEvent }: SessionVie | |
|
|
||
| return ( | ||
| <> | ||
| <EuiPanel color={'subdued'}> | ||
| <EuiFlexGroup> | ||
| <EuiFlexItem | ||
| data-test-subj="sessionView:sessionViewProcessEventsSearch" | ||
| css={styles.searchBar} | ||
| > | ||
| <SessionViewSearchBar | ||
| searchQuery={searchQuery} | ||
| setSearchQuery={setSearchQuery} | ||
| onProcessSelected={onProcessSelected} | ||
| searchResults={searchResults} | ||
| /> | ||
| </EuiFlexItem> | ||
|
|
||
| <EuiFlexItem grow={false} css={styles.buttonsEyeDetail}> | ||
| <SessionViewDisplayOptions | ||
| displayOptions={displayOptions} | ||
| onChange={handleOptionChange} | ||
| /> | ||
| </EuiFlexItem> | ||
|
|
||
| <EuiFlexItem grow={false} css={styles.buttonsEyeDetail}> | ||
| <EuiButton | ||
| onClick={toggleDetailPanel} | ||
| iconType="list" | ||
| data-test-subj="sessionView:sessionViewDetailPanelToggle" | ||
| <div css={styles.sessionViewerComponent}> | ||
| <EuiPanel css={styles.toolBar} hasShadow={false}> | ||
| <EuiFlexGroup> | ||
| <EuiFlexItem | ||
| data-test-subj="sessionView:sessionViewProcessEventsSearch" | ||
| css={styles.searchBar} | ||
| > | ||
| <FormattedMessage | ||
| id="xpack.sessionView.buttonOpenDetailPanel" | ||
| defaultMessage="Detail panel" | ||
| <SessionViewSearchBar | ||
| searchQuery={searchQuery} | ||
| setSearchQuery={setSearchQuery} | ||
| onProcessSelected={onProcessSelected} | ||
| searchResults={searchResults} | ||
| /> | ||
| </EuiButton> | ||
| </EuiFlexItem> | ||
| </EuiFlexGroup> | ||
| </EuiPanel> | ||
| <EuiResizableContainer> | ||
| {(EuiResizablePanel, EuiResizableButton) => ( | ||
| <> | ||
| <EuiResizablePanel | ||
| initialSize={isDetailOpen ? 70 : 100} | ||
| minSize="600px" | ||
| paddingSize="none" | ||
| > | ||
| {renderIsLoading && ( | ||
| <SectionLoading> | ||
| <FormattedMessage | ||
| id="xpack.sessionView.loadingProcessTree" | ||
| defaultMessage="Loading session…" | ||
| /> | ||
| </SectionLoading> | ||
| )} | ||
| </EuiFlexItem> | ||
|
|
||
| {error && ( | ||
| <EuiEmptyPrompt | ||
| iconType="alert" | ||
| color="danger" | ||
| title={ | ||
| <h2> | ||
| <FormattedMessage | ||
| id="xpack.sessionView.errorHeading" | ||
| defaultMessage="Error loading Session View" | ||
| /> | ||
| </h2> | ||
| } | ||
| body={ | ||
| <p> | ||
| <FormattedMessage | ||
| id="xpack.sessionView.errorMessage" | ||
| defaultMessage="There was an error loading the Session View." | ||
| /> | ||
| </p> | ||
| } | ||
| <EuiFlexItem grow={false} css={styles.buttonsEyeDetail}> | ||
| <SessionViewDisplayOptions | ||
| displayOptions={displayOptions} | ||
| onChange={handleOptionChange} | ||
| /> | ||
| </EuiFlexItem> | ||
|
|
||
| <EuiFlexItem grow={false} css={styles.buttonsEyeDetail}> | ||
| <EuiButton | ||
| onClick={toggleDetailPanel} | ||
| iconType="list" | ||
| data-test-subj="sessionView:sessionViewDetailPanelToggle" | ||
| fill={isDetailOpen} | ||
| > | ||
| <FormattedMessage | ||
| id="xpack.sessionView.buttonOpenDetailPanel" | ||
| defaultMessage="Detail panel" | ||
| /> | ||
| )} | ||
| </EuiButton> | ||
| </EuiFlexItem> | ||
| </EuiFlexGroup> | ||
| </EuiPanel> | ||
| <EuiHorizontalRule margin="none" /> | ||
| <EuiResizableContainer> | ||
| {(EuiResizablePanel, EuiResizableButton) => ( | ||
| <> | ||
| <EuiResizablePanel | ||
| initialSize={isDetailOpen ? 70 : 100} | ||
| minSize="600px" | ||
| paddingSize="none" | ||
| > | ||
| {renderIsLoading && ( | ||
| <SectionLoading> | ||
| <FormattedMessage | ||
| id="xpack.sessionView.loadingProcessTree" | ||
| defaultMessage="Loading session…" | ||
| /> | ||
| </SectionLoading> | ||
| )} | ||
|
|
||
| {hasData && ( | ||
| <div css={styles.processTree}> | ||
| <ProcessTree | ||
| sessionEntityId={sessionEntityId} | ||
| data={data.pages} | ||
| searchQuery={searchQuery} | ||
| selectedProcess={selectedProcess} | ||
| onProcessSelected={onProcessSelected} | ||
| jumpToEvent={jumpToEvent} | ||
| isFetching={isFetching} | ||
| hasPreviousPage={hasPreviousPage} | ||
| hasNextPage={hasNextPage} | ||
| fetchNextPage={fetchNextPage} | ||
| fetchPreviousPage={fetchPreviousPage} | ||
| setSearchResults={setSearchResults} | ||
| timeStampOn={displayOptions.timestamp} | ||
| verboseModeOn={displayOptions.verboseMode} | ||
| {error && ( | ||
| <EuiEmptyPrompt | ||
| iconType="alert" | ||
| color="danger" | ||
| title={ | ||
| <h2> | ||
| <FormattedMessage | ||
| id="xpack.sessionView.errorHeading" | ||
| defaultMessage="Error loading Session View" | ||
| /> | ||
| </h2> | ||
| } | ||
| body={ | ||
| <p> | ||
| <FormattedMessage | ||
| id="xpack.sessionView.errorMessage" | ||
| defaultMessage="There was an error loading the Session View." | ||
| /> | ||
| </p> | ||
| } | ||
| /> | ||
| </div> | ||
| )} | ||
| </EuiResizablePanel> | ||
| )} | ||
|
|
||
| {renderDetails ? ( | ||
| <> | ||
| <EuiResizableButton /> | ||
| <EuiResizablePanel | ||
| id="session-detail-panel" | ||
| initialSize={30} | ||
| minSize="200px" | ||
| paddingSize="none" | ||
| css={styles.detailPanel} | ||
| > | ||
| <SessionViewDetailPanel | ||
| selectedProcess={selectedProcess} | ||
| onProcessSelected={onProcessSelected} | ||
| /> | ||
| </EuiResizablePanel> | ||
| </> | ||
| ) : ( | ||
| <> | ||
| {/* Returning an empty element here (instead of false) to avoid a bug in EuiResizableContainer */} | ||
| </> | ||
| )} | ||
| </> | ||
| )} | ||
| </EuiResizableContainer> | ||
| {hasData && ( | ||
| <div css={styles.processTree}> | ||
| <ProcessTree | ||
| sessionEntityId={sessionEntityId} | ||
| data={data.pages} | ||
| searchQuery={searchQuery} | ||
| selectedProcess={selectedProcess} | ||
| onProcessSelected={onProcessSelected} | ||
| jumpToEvent={jumpToEvent} | ||
| isFetching={isFetching} | ||
| hasPreviousPage={hasPreviousPage} | ||
| hasNextPage={hasNextPage} | ||
| fetchNextPage={fetchNextPage} | ||
| fetchPreviousPage={fetchPreviousPage} | ||
| setSearchResults={setSearchResults} | ||
| timeStampOn={displayOptions.timestamp} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: think on the future we can replace to pass only one property |
||
| verboseModeOn={displayOptions.verboseMode} | ||
| /> | ||
| </div> | ||
| )} | ||
| </EuiResizablePanel> | ||
|
|
||
| {renderDetails ? ( | ||
| <> | ||
| <EuiResizableButton /> | ||
| <EuiResizablePanel | ||
| id="session-detail-panel" | ||
| initialSize={30} | ||
| minSize="200px" | ||
| paddingSize="none" | ||
| css={styles.detailPanel} | ||
| > | ||
| <SessionViewDetailPanel | ||
| selectedProcess={selectedProcess} | ||
| onProcessSelected={onProcessSelected} | ||
| /> | ||
| </EuiResizablePanel> | ||
| </> | ||
| ) : ( | ||
| <> | ||
| {/* Returning an empty element here (instead of false) to avoid a bug in EuiResizableContainer */} | ||
| </> | ||
| )} | ||
| </> | ||
| )} | ||
| </EuiResizableContainer> | ||
| </div> | ||
| </> | ||
| ); | ||
| }; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.