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

[Vis: Default editor] EUIficate Markdown tab #42677

Merged
merged 11 commits into from
Aug 13, 2019

Conversation

maryia-lapata
Copy link
Contributor

@maryia-lapata maryia-lapata commented Aug 6, 2019

Summary

A part of #38273.
EUIfication of the Options tab in the Markdown vis.

Before After

Error message:

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@maryia-lapata maryia-lapata added Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Vis Editor Visualization editor issues v8.0.0 v7.4.0 labels Aug 6, 2019
@maryia-lapata maryia-lapata requested a review from a team as a code owner August 6, 2019 11:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@maryia-lapata maryia-lapata added the release_note:skip Skip the PR/issue when compiling release notes label Aug 6, 2019
rows={20}
fullWidth={true}
data-test-subj="markdownTextarea"
// resize="none"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll uncomment this when elastic/eui#2201 is resolved.

@timroes timroes mentioned this pull request Aug 6, 2019
10 tasks
@elasticmachine

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Just a couple suggestions for enhancements.

@elasticmachine

This comment has been minimized.

@elasticmachine

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

value={value}
onChange={ev => setValue(paramName, ev.target.valueAsNumber)}
value={stateValue}
// @ts-ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll uncomment this once elastic/eui#2211 is available.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

One more suggestion since the popout icon is so big compared to the text.

Other than that, LGTM

});

const onChangeHandler = (
{ target: { valueAsNumber } }: React.ChangeEvent<HTMLInputElement>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't forget to remove this type after add definition in EUI

import { RangeOption } from '../../kbn_vislib_vis_types/public/controls/range';
import { MarkdownVisParams } from './markdown_fn';

function MarkdownOptions({ stateParams, setValue }: VisOptionsProps<MarkdownVisParams>) {

This comment was marked as resolved.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. done.

@elasticmachine

This comment has been minimized.

@elasticmachine

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@maryia-lapata
Copy link
Contributor Author

@flash1293, @timroes, @wylieconlon could someone please review this PR?

Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

I was wondering, since that panel kind of looks very cluttered compared to our other visualizations, if it would make sense to split up the actual "Markdown" panel and create another panel under that with "Styling" or "Options" that would contain the font and links settings? @cchaos your thoughts on that?

@cchaos
Copy link
Contributor

cchaos commented Aug 12, 2019

@timroes A second panel works for me!

@maryia-lapata
Copy link
Contributor Author

@timroes, @cchaos let me merge this PR and make a second panel in a separate PR 🙂.

Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

In that case PR looks good to me. Tested on Chrome Linux

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@maryia-lapata maryia-lapata merged commit c1acf71 into elastic:master Aug 13, 2019
@maryia-lapata maryia-lapata deleted the markdown-options branch August 13, 2019 07:48
maryia-lapata added a commit that referenced this pull request Aug 13, 2019
* Migrate Markdown tab

* Code review comments

* Apply TS

* Add validation for Range control

* Apply comments

* Move type to a separate file

* Update markdown_options.tsx
jloleysens added a commit to jloleysens/kibana that referenced this pull request Aug 13, 2019
…p-metrics-selectall

* 'master' of github.com:elastic/kibana: (27 commits)
  [ML] Data Frames: Analytics job creation. (elastic#43102)
  [Vis Default editor] Fix issue with Rollup (elastic#42430)
  [Vis: Default editor] EUIficate Markdown tab (elastic#42677)
  [New Platform Migration Phase I]: update dateHisogramInterval & parseEsInterval imports (elastic#42917)
  [Infra UI] Add AWS metrics to node detail page (elastic#42153)
  update apm index pattern (elastic#43106)
  [SIEM] Toggle Column / Code Coverage and Cypress (elastic#42766)
  skip failing test (elastic#43163)
  [code] Add option to turn the go dependency download on/off. (elastic#43096)
  disable visual regression jobs
  Removed dead code (elastic#42774)
  fixes csv export of saved searches that have _source field (elastic#43123)
  Export missing Context types (elastic#43051)
  Update dependency supports-color to v7 (elastic#43064)
  switch to icon type string instead of node (elastic#43111)
  [Maps] Enable borders for icon symbols (elastic#43066)
  [ftr] enable visualRegression jobs (elastic#42989)
  [ML] Converting single to multi metric job (elastic#42532)
  fix(NA): dont clean dll module if it is a package json file (elastic#42904)
  [Logs UI] Add link from the sample web logs to the Logs UI (elastic#42635)
  ...
chrisronline pushed a commit to chrisronline/kibana that referenced this pull request Aug 15, 2019
* Migrate Markdown tab

* Code review comments

* Apply TS

* Add validation for Range control

* Apply comments

* Move type to a separate file

* Update markdown_options.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:Vis Editor Visualization editor issues release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants