-
Notifications
You must be signed in to change notification settings - Fork 282
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
Provide migration hook #5046
Provide migration hook #5046
Conversation
6b9292a
to
c49e303
Compare
9091615
to
01f2f69
Compare
e82ad07
to
7c78594
Compare
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.
Collapse Toggle Icons
Please invert the arrow direction. We use. icons to reflect actions not states. So, caret-down
when collapsed and vice versa.
List Item "Migrate" Button
Please apply the style from the mockups
Disabled style
The buttons still look clickable, even when they are disabled.
Apply All Button
"Apply All" is too generic. Please provide a clearer label, like "Migrate all modules".
Visual aligment
Collapse state won't be conserved on auto-refresh
Collapse button position
While it makes sense to have the collapse button stay in place for interaction reasons (button doesn't "jump"), clarity suffers from a structural aspect, when the migration list is expanded. Please move the button to the bottom of the list.
Collapse button width
The button doesn't need span the full width. It's doesn't make a difference at first, but when focussed it looks awkward. Probably display: inline-block
will easily fix this.
The mockups uses the style of an
A |
7c78594
to
438f7aa
Compare
796bc49
to
f54df07
Compare
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.
Not sure about the reason, but your branch messes with the Icinga DB list items
- I find it acceptable to label to the list item Button "Apply" since we're talking about a list of (pending) migrations, though it differs from the mockups.
Following this reasoning it doesn't make sense to label the "global" button this way, though. "Apply All Modules" just doesn't make sense, since you aren't list modules.
"Apply All Module Migrations" would be correct. I would rather go for "Apply all", though.
- Please remove the button background according to the mockups. It's less about default styles than visual clarity in this case and the button shape makes the element too distracting from the headline and the content.
Your point makes actually sense, sometimes I'm living too much in Icinga Db Web world. 😅 Maybe we should address this globally for icingaweb2 in a different context. |
Co-authored-by: Johannes Meyer
0a57b35
to
9c6d930
Compare
outdated
For testing this hook you can use these PRs from Reporting and X509. But make sure you have created some report schedules with the master branch beforehand.
You can also use this example hook to test PHP code migrations:
resolves #5043