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
[GRIFFIN-203] "Plaintext mode" for measure creation #446
Conversation
Created json/yaml measure creation flow Added ability to view measure as yaml
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.
pure awesomeness, aside some minor notes
if (response.code === '40901') { | ||
this.toasterService.pop("error", "Error!", "Measure name already exists!"); | ||
} else { | ||
this.toasterService.pop("error", "Error!", "Measure is not valid"); |
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.
AFAIK response typically contains valid error message that can be shown
there was similar issue in other place: https://github.com/apache/incubator-griffin/pull/423/files
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.
fixed
} | ||
} | ||
|
||
options: ITreeOptions = { |
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.
you don't have any tree component here, so this does not seem to be needed
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.
fixed
<div class="modal fade" id="confirm" role="dialog" #modal tabindex="-1" [ngClass]="{'in': visibleAnimate}" | ||
[ngStyle]="{'display': visible ? 'block' : 'none', 'opacity': visibleAnimate ? 1 : 0}" | ||
(click)="onContainerClicked($event)"> | ||
<div class="modal-dialog modal-xg modal-lg"> |
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.
this dialog looked not centered on screen record -- is that true or it's just me?
can you make it appear on center of the screen?
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 just didn't captured whole window, I've just checked and it's centered.
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.
Oh ok. Thanks for checking!
e07a7e1
to
209b40f
Compare
); | ||
} | ||
|
||
onInputChange() { |
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.
how frequently is it triggered? on every key press, or there is some throttle?
is parsing delay noticeable while typing?
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.
As I can see it's done on every change, but is not noticeable on my laptop. Not sure if it will affect others, but anyway it's much easier to edit measure in normal editor and just copy-past it here :)
LGTM |
Awesome! |
Thank you everyone for feedback, I'm not UI guy so structure was messed little bit :) I changed it to be consistent with other pages and now it looks much better. |
Great work, it works fine |
Created json/yaml measure creation flow:
Added ability to view measure as yaml:
I did not add any input validation, for now only server side validation is working. I'm not quite sure if copying validation from service side is a good choice.