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

Upgrade Checker - Design PR #25

Merged
merged 12 commits into from
Dec 3, 2018

Conversation

cchaos
Copy link

@cchaos cchaos commented Nov 29, 2018

I apologize for any bad JavaScript, hopefully, you can understand the intent and do a clean up.

Here were a few items that still need to finalized:

1. Overview stats & all clear message

(Gail is working on text changes)

2. All clear message per deprecation tabs

I added an all clear message if there are no issues in these tabs, however, it's not quite hooked up right because it will show if you remove all severity types via the filters.

3. Extra list functionality

I added a filter bar and expand/collapse buttons to the top of the lists that need to actually be hooked up (if possible).

4. Action buttons

I couldn't move the action buttons so I added a placeholder location "Action button here".

screen shot 2018-11-29 at 13 24 09 pm

5. Severity indicators

It looked like each severity had it's own description that didn't change base on the issue type, so instead of displaying this description repetitively, I moved the description to be a tooltip around the badge.

Also, since only the 'by index' grouping actually has multiple issues and severities, I removed the numbers from the other groupings. However, I think you can go ahead and list all severities when grouping by index instead of just showing the highest severity.

A couple questions:

a. Are you thinking of adding any pagination to the list of issues?
b. Is there any way to format the details? It's really hard to read as a long string
c. Can the details be really long? Should we consider truncating those?

I still need to:

  • Style the all clear states, they're good as placeholders for now
  • Browser check

- Couldn’t do the conversion within the cell because it only passed color
- Added placeholder for moving action button up into accordion header
- Removed repetitive message name outputs
- Slightly better listing of each message when sorting by index
- Only showing number of severity when sorting by index
  - Still need to allow showing all severity levels
- Added indice count when sorting by issue
@joshdover
Copy link
Owner

Wow this looks 1000x better. Answers to your questions:

a. Are you thinking of adding any pagination to the list of issues?

Hadn't thought about pagination, but could be added easily. Anything you think we should do specifically for that or do you think using the EUI pagination component works well for this page?

b. Is there any way to format the details? It's really hard to read as a long string

The details string comes straight from Elasticsearch, so we don't have much control here. We could definitely suggest some changes to the format though. Once we have ES actually returning real data, we'll be able to see what those details messages look like.

c. Can the details be really long? Should we consider truncating those?

Unknown so far. The ES team has started to implement a few checks for 6.x and so far there aren't any long ones, but they have a lot of deprecations to catch up on still. I'll keep an eye on these as they go in and either see if we can't make them short or adapt our UI if needed (maybe truncated with a "Expand" button?). Though it might make sense to just go ahead and implement a UI solution now so its more future-proof. What do you think?


Couple of my questions:

  • Should both summary tiles on the front page ("2 cluster issues") be present if there is say 1 index issue and 0 cluster issues or should only the index one be shown in that case?
  • For the action button, there is one problem. We won't have a single action button that fixes an issue for multiple indices. This pattern won't quite work since we have multiple indices that each need to be addressed individually:

image

I think we either need to add the action button when you group by index and/or we need to move the action button into the table of indices so the admin can take the action for each index. Thoughts?

@cchaos
Copy link
Author

cchaos commented Dec 3, 2018

a. Pagination: Yes, I just using the EuiPagination component will work
c. I agree, that having the table row expand to show all would be the best way to truncate that.


  1. Yes, both stats should be present even if one has 0 issues.
  2. It's fine to move the action button to be per index

@joshdover
Copy link
Owner

Great, I can make those changes! Do you want me to go ahead and merge this and start updating it? We can pull in the "all clear" states later.

@cchaos
Copy link
Author

cchaos commented Dec 3, 2018

Yep, sounds good! Thanks @joshdover !

@joshdover joshdover merged commit bcb8732 into joshdover:upgrade-checkup Dec 3, 2018
@cchaos cchaos deleted the joshdover-upgrade-checkup branch March 7, 2019 17:14
joshdover pushed a commit that referenced this pull request Jun 12, 2021
* 💄 Hack to fix suggestion box

* 🐛 Fix validation messages

* 🐛 Relax operations check for managedReferences

* Change completion params

* 🏷️ Fix missing arg issue

* ✨ Add more tinymath fns

* 🐛 Improved validation around math operations + multiple named arguments

* 🐛 Use new onError feature in math expression

* ♻️ Refactor namedArguments validation

* 🐛 Fix circular dependency issue in tests + minor fixes

* Move formula into a tab

* 🔥 Leftovers from previous merge

* ✨ Move over namedArgs from previous function

* ✅ Add tests for transferable scenarios

* ✅ Fixed broken test

* ✨ Use custom label for axis

* Allow switching back and forth to formula tab

* Add a section for the function reference

* Add modal editor and markdown docs

* Change the way math nodes are validated

* Use custom portal to fix monaco positioning

* Fix model sharing issues

* Provide signature help

* 🐛 Fix small test issue

* 🐛 Mark pow arguments as required

* 🐛 validate on first render only if a formula is present

* 🔥 Remove log10 fn for now

* ✨ Improved math validation + add tests for math functions

* Fix mount/unmount issues with Monaco

* [Lens] Fully unmount React when flyout closes

* Fix bug with editor frame unmounting

* Fix type

* Add tests for monaco providers, add hover provider

* Add test for last_value

* Usability improvements

* Add KQL and Lucene named parameters

* Add kql, lucene completion and validation

* Fix autocomplete on weird characters and properly connect KQL

* Highlight functions that have additional requirements after validating

* Fix type error and move help text to popover

* Fix escape characters inside KQL

* 🐛 Fix dataType issue when moving over to Formula

* Automatically insert single quotes on every named param

* Only insert single quotes when typing kql= or lucene=

* Reorganize help popover

* Fix merge issues

* Update grammar for formulas

* Fix bad merge

* Rough fullscreen mode

* Type updates

* Pass through fullscreen state

* Remove more chrome from full screen mode

* Fix minor bugs in formula typing

* 🐛 Decouple column order of references and output

* 🔧 Fix tests and types

* ✅ Add first functional test

* Fix copying formulas and empty formula

* Trigger suggestion prompt when hitting enter on function or typing kql=

* 🐛 Prevent flyout from closing while interacting with monaco

* refactoring

* move main column generation into parse module

* fix tests

* refactor small formula styles and markup

* documentation

* adjustments in formula footer

* Formula refactoring (#12)

* refactoring

* move main column generation into parse module

* fix tests

* more style and markup tweak for custom formula

* Fix tests

* [Expressions] Use table column ID instead of name when set

* [Lens] Create managedReference type for formulas

* Fix test failures

* Fix i18n types

* fix fullscreen flex issues

* Delete managedReference when replacing

* refactor css and markup; add button placeholders

* [Lens] Formulas

* Tests for formula

Co-authored-by: Marco Liberati <[email protected]>

* added error count placeholder

* Add tooltips

* Refactoring from code review

* Fix some editor issues

* Update ID matching to match by name sometimes

* Improve performance of Monaco, fix formulas with 0, update labels

* Improve performance of full screen toggle

* Fix formula tests

* fix stuff

* Add an extra case to prevent insertion of duplicate column

* Simplify logic and add test for output ID

* add telemetry for Lens formula (#15)

* Respond to review comments

* ✨ Improve the signatures with better documentation and examples

* adjust border styles to account for docs collapse

* refactor docs markup; restructure docs obj; styles

* Fix formula auto reordering (#18)

* fix formula auto reordering

* add unit test

* Fix and improve suggestion experience in Formula (#19)

* ✨ Revisit documentation and suggestions

* 👌 Integrated feedback

* ✨ Add query validation for quotes

* Usability updates & type fixes

* add search to formula

* fix form styles to match designs

* fix text styles; revert to Markdown for control

* 👌 Integrated more feedback

* improve search

* improve suggestions

* improve suggestions even more

* 🐛 Fix i18n issues (#22)

* Persist formula on leave, fix fullscreen and popovers

* Fix documentation tests

* 🏷️ fix type issue

* 🐛 Remove hidden operations from valid functions list

* 🐛 Fix empty string query edge case

* 🐛 Enable more suggestions + extends validation

* Fix tests that depended on setState being called without function

* Error state and text wrapping updates

* ✨ Add new module to CodeEditor for brackets matching (#25)

* Fix type

* show warning

* keep current quick function

* ✨ Improve suggestions within kql query

* 📷 Fix snapshot editor test

* 🐛 Improved suggestion for single quote and refactored debounce

* Fix lodash usage

* Fix tests

* Revert "keep current quick function"

This reverts commit ed47705.

* Improve performance of dispatch by using timeout

* Improve memoization of datapanel

* Fix escape characters

* fix reduced suggestions

* fix responsiveness

* fix unit test

* Fix autocomplete on nested math

* Show errors and warnings on first render

* fix transposing column crash

* Update comment

* 🐛 Fix field error message

* fix test types

* 📝 Fix i18n name

* 💄 Manage wordwrap via react component

* Fix selector for palettes that interferes with quick functions

* Use word wrapping by default

* Errors for managed references are handled at the top level

* 🐛 Move the cursor just next to new inserted text

* ⚗️ First pass for performance

* 🐛 Fix unwanted change

* ⚡ Memoize as many combobox props as possible

* ⚡ More memoization

* Show errors in hover

* Use temporary invalid state when moving away from formula

* Remove setActiveDimension and shouldClose, fixed by async setters

* Fix test dependency

* do not show quick functions tab

* increase documentation popover width

* fix functional test

* Call setActiveDimension when updating visualization

* Simplify handling of flyout with incomplete columns

* Fix test issues

* add description to formula telemetry

* fix schema

* Update from design feedback

* More review comments

* Hide callout border from v7 theme

Co-authored-by: dej611 <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Joe Reuter <[email protected]>
Co-authored-by: Michael Marcialis <[email protected]>
Co-authored-by: Joe Reuter <[email protected]>
Co-authored-by: Marco Liberati <[email protected]>
Co-authored-by: Marco Liberati <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants