-
Notifications
You must be signed in to change notification settings - Fork 356
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
Adding view full log in alerts button #2862
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ def render_validation_result(result, details) | |
level = :error | ||
end | ||
|
||
render_flash_json(msg, level) | ||
render_flash_json(msg, level, :long_alert => true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nowsg is unlimited, perhaps ruby should still truncate to some large limit here, to avoid sending megabyte responses to UI. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cben so truncate at 500 chars here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this addressed by https://github.com/ManageIQ/manageiq/pull/16550/files#diff-f9cace1fe4fdcec66f962b23f2110fd6R337 now? (I think it is, making sure :).) |
||
end | ||
|
||
def create | ||
|
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 should not depend on options here,
we can deduce that we need the new feature if msg is longer then some value:
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.
thing is @himdel didn't want to hardcode the length thats why we added the options. (it's enough as is we hardcode it in the backend)
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.
It is still hard coded to
200
in manageiq L94or am I missing something ?
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.
Thats what I said..
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.
Currently the text in the line is too long ... so something is wrong here :-)
I would expect a flash to look like that:
Short view (only one or two lines in small screens)
Long view (show full message)
@nimrodshn @ohadlevy @himdel WDYT ?
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.
@yaacov it still only show's one line (regardless of the screen) , how short do you want the msg to be? half a line?
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.
@nimrodshn
If
text-overflow: ellipsis;
does not work here (see gif in description) then you can go back totrancate
by some constant, IMHO it's ok for this length to be more then one line on smaller screens, and it's also ok for this short version to be more short for some locales ( e.g. Chinese ), see above example.@himdel WDYT ?
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.
see above example.
If you look carefully you can see I show two lines in that example.
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 is problematic on small devices, you sometimes want to show more then one line:
Big screen, one line is enough for short message:
Small screen, you may want two or three lines for short message:
If you show only one line:
This is not what I as user want to see :-)
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.
@yaacov Is this really a problem if the user can still expand the message to full length? Would your issue be solved if this was 2 lines instead of one?
As for https://github.com/ManageIQ/manageiq-ui-classic/pull/2862/files#r156909937 .. I'm not quite understanding what the issue is (or missing a screenshot where it goes wrong).