-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Search][DLS] UX improvements #193945
[Search][DLS] UX improvements #193945
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general.
There are a few changes needed before merging.
packages/kbn-search-index-documents/components/documents_overview.tsx
Outdated
Show resolved
Hide resolved
...ents/search_index/components/access_control_index_selector/access_control_index_selector.tsx
Outdated
Show resolved
Hide resolved
...ublic/applications/enterprise_search_content/components/search_index/sync_jobs/sync_jobs.tsx
Outdated
Show resolved
Hide resolved
...ublic/applications/enterprise_search_content/components/search_index/sync_jobs/sync_jobs.tsx
Outdated
Show resolved
Hide resolved
defaultMessage: 'Browse document level security syncs', | ||
} | ||
), | ||
error: errorOnAccessSync ? true : false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NitPick- non blocking: errorOnAccessSync
and errorOContentSync
should be enough. Ternary operator ( something ? return1 : return2;
) is not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Already fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one small nitpick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job on this and cleaning up some UI things.
I think we will want to revisit the mappings page layout so the dropdown doesn't sit above the rest of the other options. But I know that might be a bigger change than it seems.
My other question is around the copy here:
Do we want to always say Access control? Or Document level security?
I also think the description is a little vague. Is this dropdown simply targeting either the content index or the DLS index in all the various tabs? I wonder if we can then be more explicit in the description or title with this.
For example:
Overview:
Content syncs: Browse recent syncs with the content index
Access control syncs: Browse recent syncs with the document level security index
Documents:
Content index: Browse documents from the content index
Access control index: Browse documents from the document level security index
Let me know if you've discussed this already or if you think these are not blockers and I'll approve so we can move forward.
Nice work on getting more PRs in!!
Good point @mdefazio. I'm curious what @leemthompo thinks about this. |
"Access Control" is the type of sync, and "Access Control Lists" are the output of one of those syncs. These are used for the Document-Level Security feature. My suggestion would be:
I'm not sure I'd mention DLS/Document Level Security in any it. |
Big ++ to @seanstory's suggestions. If we wanted to link access control syncs to DLS maybe a tooltip would be a lightweight way of doing so? :) |
This is how it looks like this tooltip suggested by @leemthompo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the updates!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for jumping on this, Jose!
Personally I find tooltips make an already complex page (with drop-down, table, etc ) even busier, but that's just my 2 🪙
|
Agree with @danajuratoni's copy edits and I also think the tooltip might be a little clunky in this spot now that I see the preview. |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @JoseLuisGJ |
Starting backport for target branches: 8.x |
## Summary This PR add several changes ir order to bring more consistency and better UX managing _Content Indices_ and _Access Control Indices_: - The `AccessControlIndexSelector ` will have always a `min-width` to display without line breaks the content for better reading - Remove ~~_Browse documents_~~ title in Documents section and ~~_Sync rules_~~. - Same gutter and space for each tab section content using a more condensed design - _~~Index~~ Mappings_ tabbed name section has been renamed simple _Mappings_ - The Overview table sync now is managed by the same `<AccessControlIndexSelector/>` as it is in _Documents_ and _Mappings_ sections - The `<AccessControlIndexSelector/>` componen now can be more cusomized, passing custom title and description, error status, _fullWidth_ and some more. - The `search_index.tsx` file for rendering indices was fixed to use same spacing and tabs size ![CleanShot 2024-09-24 at 15 41 47](https://github.com/user-attachments/assets/02bf764d-672a-4b7b-b861-23d98502b912) --------- Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit 4e65fd2)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Search][DLS] UX improvements (#193945)](#193945) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"José Luis González","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-04T13:57:04Z","message":"[Search][DLS] UX improvements (#193945)\n\n## Summary\r\n\r\nThis PR add several changes ir order to bring more consistency and\r\nbetter UX managing _Content Indices_ and _Access Control Indices_:\r\n- The `AccessControlIndexSelector ` will have always a `min-width` to\r\ndisplay without line breaks the content for better reading\r\n- Remove ~~_Browse documents_~~ title in Documents section and ~~_Sync\r\nrules_~~.\r\n- Same gutter and space for each tab section content using a more\r\ncondensed design\r\n- _~~Index~~ Mappings_ tabbed name section has been renamed simple\r\n_Mappings_\r\n- The Overview table sync now is managed by the same\r\n`<AccessControlIndexSelector/>` as it is in _Documents_ and _Mappings_\r\nsections\r\n- The `<AccessControlIndexSelector/>` componen now can be more\r\ncusomized, passing custom title and description, error status,\r\n_fullWidth_ and some more.\r\n- The `search_index.tsx` file for rendering indices was fixed to use\r\nsame spacing and tabs size\r\n\r\n![CleanShot 2024-09-24 at 15 41\r\n47](https://github.com/user-attachments/assets/02bf764d-672a-4b7b-b861-23d98502b912)\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"4e65fd2ece8e8211705db6d613a7c7ce59608e76","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:EnterpriseSearch","v8.16.0","backport:version"],"title":"[Search][DLS] UX improvements","number":193945,"url":"https://github.com/elastic/kibana/pull/193945","mergeCommit":{"message":"[Search][DLS] UX improvements (#193945)\n\n## Summary\r\n\r\nThis PR add several changes ir order to bring more consistency and\r\nbetter UX managing _Content Indices_ and _Access Control Indices_:\r\n- The `AccessControlIndexSelector ` will have always a `min-width` to\r\ndisplay without line breaks the content for better reading\r\n- Remove ~~_Browse documents_~~ title in Documents section and ~~_Sync\r\nrules_~~.\r\n- Same gutter and space for each tab section content using a more\r\ncondensed design\r\n- _~~Index~~ Mappings_ tabbed name section has been renamed simple\r\n_Mappings_\r\n- The Overview table sync now is managed by the same\r\n`<AccessControlIndexSelector/>` as it is in _Documents_ and _Mappings_\r\nsections\r\n- The `<AccessControlIndexSelector/>` componen now can be more\r\ncusomized, passing custom title and description, error status,\r\n_fullWidth_ and some more.\r\n- The `search_index.tsx` file for rendering indices was fixed to use\r\nsame spacing and tabs size\r\n\r\n![CleanShot 2024-09-24 at 15 41\r\n47](https://github.com/user-attachments/assets/02bf764d-672a-4b7b-b861-23d98502b912)\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"4e65fd2ece8e8211705db6d613a7c7ce59608e76"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193945","number":193945,"mergeCommit":{"message":"[Search][DLS] UX improvements (#193945)\n\n## Summary\r\n\r\nThis PR add several changes ir order to bring more consistency and\r\nbetter UX managing _Content Indices_ and _Access Control Indices_:\r\n- The `AccessControlIndexSelector ` will have always a `min-width` to\r\ndisplay without line breaks the content for better reading\r\n- Remove ~~_Browse documents_~~ title in Documents section and ~~_Sync\r\nrules_~~.\r\n- Same gutter and space for each tab section content using a more\r\ncondensed design\r\n- _~~Index~~ Mappings_ tabbed name section has been renamed simple\r\n_Mappings_\r\n- The Overview table sync now is managed by the same\r\n`<AccessControlIndexSelector/>` as it is in _Documents_ and _Mappings_\r\nsections\r\n- The `<AccessControlIndexSelector/>` componen now can be more\r\ncusomized, passing custom title and description, error status,\r\n_fullWidth_ and some more.\r\n- The `search_index.tsx` file for rendering indices was fixed to use\r\nsame spacing and tabs size\r\n\r\n![CleanShot 2024-09-24 at 15 41\r\n47](https://github.com/user-attachments/assets/02bf764d-672a-4b7b-b861-23d98502b912)\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"4e65fd2ece8e8211705db6d613a7c7ce59608e76"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: José Luis González <[email protected]>
## Summary This PR add several changes ir order to bring more consistency and better UX managing _Content Indices_ and _Access Control Indices_: - The `AccessControlIndexSelector ` will have always a `min-width` to display without line breaks the content for better reading - Remove ~~_Browse documents_~~ title in Documents section and ~~_Sync rules_~~. - Same gutter and space for each tab section content using a more condensed design - _~~Index~~ Mappings_ tabbed name section has been renamed simple _Mappings_ - The Overview table sync now is managed by the same `<AccessControlIndexSelector/>` as it is in _Documents_ and _Mappings_ sections - The `<AccessControlIndexSelector/>` componen now can be more cusomized, passing custom title and description, error status, _fullWidth_ and some more. - The `search_index.tsx` file for rendering indices was fixed to use same spacing and tabs size ![CleanShot 2024-09-24 at 15 41 47](https://github.com/user-attachments/assets/02bf764d-672a-4b7b-b861-23d98502b912) --------- Co-authored-by: Elastic Machine <[email protected]>
Summary
This PR add several changes ir order to bring more consistency and better UX managing Content Indices and Access Control Indices:
AccessControlIndexSelector
will have always amin-width
to display without line breaks the content for better readingBrowse documentstitle in Documents section andSync rules.IndexMappings tabbed name section has been renamed simple Mappings<AccessControlIndexSelector/>
as it is in Documents and Mappings sections<AccessControlIndexSelector/>
componen now can be more cusomized, passing custom title and description, error status, fullWidth and some more.search_index.tsx
file for rendering indices was fixed to use same spacing and tabs sizeChecklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers