-
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
[Vis: Default Editor] Euificate table options tab #46013
Conversation
This comment has been minimized.
This comment has been minimized.
Pinging @elastic/kibana-app |
This comment has been minimized.
This comment has been minimized.
@elasticmachine merge upstream |
This comment has been minimized.
This comment has been minimized.
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.
Just one small text change, otherwise LGTM
src/legacy/core_plugins/vis_type_table/public/components/table_vis_options.tsx
Outdated
Show resolved
Hide resolved
function () { | ||
if (!$scope.vis) return; | ||
const params = $scope.editorState.params; | ||
$scope.metricsAtAllLevels = params.showPartialRows || params.showMetricsAtAllLevels; |
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.
I didn't find a place where metricsAtAllLevels
variable is read. Moreover there is the same logic in vis type definition - hierarchicalData method. So I didn't migrate this code.
💚 Build Succeeded |
defaultMessage: 'Rows per page', | ||
})} | ||
paramName="perPage" | ||
value={stateParams.perPage} |
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.
I suppose this value could have a min
bound 1
with validation also
💚 Build Succeeded |
src/legacy/core_plugins/vis_type_table/public/table_vis_type.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/vis_type_table/public/components/utils.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/vis_type_table/public/components/utils.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/vis_type_table/public/components/utils.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/vis_type_table/public/components/table_vis_options.tsx
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/vis_type_table/public/components/table_vis_options.tsx
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/vis_type_table/public/components/table_vis_options.tsx
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/vis_type_table/public/components/table_vis_options.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed |
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!
Tested locally on Chrome/Windows.
💔 Build Failed |
💚 Build Succeeded |
@elasticmachine merge upstream |
💚 Build Succeeded |
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, two small remarks about the structure of the panel
<h3> | ||
<FormattedMessage | ||
id="visTypeTable.params.showMetricsLabel.optionsTitle" | ||
defaultMessage="Options" |
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.
In Markdown the only panel is called "Settings" - not sure which one is better, do we even need one if there is just a single panel
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.
Let's better remove it for consistency, like such titles are skipped in Controls
, Coordinate map
and Tag cloud
. Such titles are actually duplicates the tab name - Options
</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="s" /> | ||
<NumberInputOption |
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.
We could put a tooltip here to explain that leaving this empty means it will use the amount of buckets in the response.
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.
Done.
@snide , please, confirm these changes.
💚 Build Succeeded |
@elasticmachine merge upstream |
💚 Build Succeeded |
* Euificate table options tab * Add validation * Use SchemaConfig for dimensions * Update snapshots
Summary
EUIfication of options tab for
Data Table
vis.Part of #38273, #16639.
This PR contains:
table-vis-params
directive;TableVisParams
;SwitchOption
: renamedataTestSubj
todata-test-subj
.Screenshots:
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Documentation was added for features that require explanation or tutorialsFor maintainers
[ ] This was checked for breaking API changes and was labeled appropriately[ ] This includes a feature addition or change that requires a release note and was labeled appropriately