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

Use push flyout for Discover document flyout #166406

Merged
merged 51 commits into from
Apr 26, 2024
Merged
Changes from 7 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
cadd8d8
Use push flyout for Discover document flyout
lukasolson Sep 13, 2023
23dc630
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Sep 25, 2023
58cc26e
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Sep 26, 2023
b164831
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Sep 27, 2023
cea1288
Add export
lukasolson Sep 27, 2023
deaa9ee
Merge branch 'unified-doc-viewer/push-flyout' of github.com:lukasolso…
lukasolson Sep 27, 2023
70d7127
Merge branch 'main' into unified-doc-viewer/push-flyout
kibanamachine Sep 29, 2023
083921c
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Jan 12, 2024
54d24b6
Use resizable flyout
lukasolson Jan 12, 2024
a9072e4
Merge branch 'unified-doc-viewer/push-flyout' of github.com:lukasolso…
lukasolson Jan 12, 2024
b583a9d
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Jan 12, 2024
ab29999
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Jan 16, 2024
8e70fb3
Add i18n
lukasolson Jan 16, 2024
0b97736
Add min/max & use ownFocus=true
lukasolson Jan 17, 2024
3b4cb11
Merge branch 'unified-doc-viewer/push-flyout' of github.com:lukasolso…
lukasolson Jan 17, 2024
28483cd
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Jan 17, 2024
5e9b816
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Jan 23, 2024
e8028d9
Text & size changes
lukasolson Jan 23, 2024
2d2eb32
Merge branch 'unified-doc-viewer/push-flyout' of github.com:lukasolso…
lukasolson Jan 23, 2024
ddf3694
Merge branch 'main' into unified-doc-viewer/push-flyout
stratoula Jan 26, 2024
dfebc40
Undo text changes
lukasolson Jan 30, 2024
9942d54
Merge branch 'unified-doc-viewer/push-flyout' of github.com:lukasolso…
lukasolson Jan 30, 2024
6ca57ec
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Jan 30, 2024
a83c461
Merge branch 'main' of github.com:elastic/kibana into unified-doc-vie…
lukasolson Jan 31, 2024
46d4424
Persist flyout width on resize
lukasolson Jan 31, 2024
8c1bdec
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 3, 2024
865fed9
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 5, 2024
785c75f
Responsive table/flyout actions
lukasolson Apr 5, 2024
a5d409a
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 8, 2024
8b3d9f8
Use breakpoints for mobile screen detection
lukasolson Apr 8, 2024
1de9a94
Add some minor touchups around the Unified Doc Viewer push flyout
davismcphee Apr 10, 2024
da63a18
Merge pull request #20 from davismcphee/unified-doc-viewer-push-flyou…
lukasolson Apr 10, 2024
f488e70
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 10, 2024
816fafc
Merge branch 'unified-doc-viewer/push-flyout' of github.com:lukasolso…
lukasolson Apr 10, 2024
0156206
Review feedback
lukasolson Apr 10, 2024
8ab3fd7
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 11, 2024
b268e75
Design updates
lukasolson Apr 11, 2024
88c7b05
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 12, 2024
ec72196
Update tests
lukasolson Apr 15, 2024
e1f6667
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 15, 2024
8e362f3
Fix functional test
lukasolson Apr 15, 2024
42d6612
Remove .only
lukasolson Apr 15, 2024
4e995f7
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 16, 2024
8cfa359
Break tests into separate cases
lukasolson Apr 16, 2024
40be3e2
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 22, 2024
8866baf
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 22, 2024
f86a39d
Remove closing flyout
lukasolson Apr 22, 2024
9abcf27
Merge branch 'unified-doc-viewer/push-flyout' of github.com:lukasolso…
lukasolson Apr 22, 2024
8d69a43
Remove close flyout
lukasolson Apr 23, 2024
6f462be
Merge branch 'main' into unified-doc-viewer/push-flyout
lukasolson Apr 24, 2024
f48a840
Review feedback
lukasolson Apr 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ import {
EuiFlexItem,
EuiFlyout,
EuiFlyoutBody,
EuiFlyoutFooter,
EuiFlyoutHeader,
EuiTitle,
EuiSpacer,
EuiPortal,
EuiPagination,
keys,
EuiButtonEmpty,
} from '@elastic/eui';
import type { Filter, Query, AggregateQuery } from '@kbn/es-query';
import type { DataTableRecord } from '@kbn/discover-utils/types';
Expand Down Expand Up @@ -113,7 +115,9 @@ export function DiscoverGridFlyout({
<EuiPortal>
<EuiFlyout
onClose={onClose}
type="push"
size="m"
pushMinBreakpoint="xl"
data-test-subj="docTableDetailsFlyout"
onKeyDown={onKeyDown}
ownFocus={false}
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 ownFocus should be true now, this would not apply for the push, but for the overlay style

Suggested change
ownFocus={false}
ownFocus={true}

Expand Down Expand Up @@ -183,6 +187,15 @@ export function DiscoverGridFlyout({
textBasedHits={isPlainRecord ? hits : undefined}
/>
</EuiFlyoutBody>
<EuiFlyoutFooter>
Copy link
Member Author

Choose a reason for hiding this comment

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

From the EUI docs (https://elastic.github.io/eui/#/layout/flyout#push-versus-overlay):

Also, it is good to include a close button in the footer for a larger hit target than the small close button provides.

<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiButtonEmpty iconType="cross" onClick={onClose} flush="left">
Close
Copy link
Member

Choose a reason for hiding this comment

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

yes, this make sense, one ask, pls add i18n for Close 🙏

</EuiButtonEmpty>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlyoutFooter>
</EuiFlyout>
</EuiPortal>
);
Expand Down