Commit graph

118 commits

Author SHA1 Message Date
Johannes Meyer
940abdada6 Use the plug icon to indicate objects in downtime 2021-12-17 13:10:19 +01:00
Johannes Meyer
4d7df037d3 Drop Component\StateBall and use ipl\Web\Widget\StateBall instead 2021-12-17 13:10:19 +01:00
Johannes Meyer
ad2ea6f8c5 NodeTile: Add plural support to the Children label
closes Icinga/L10n#18
2021-12-13 15:28:50 +01:00
Johannes Meyer
49ebbc4cdb Apply state overrides on demand instead of directly
Internally non-process children are only instantiated once.
This means when applying state overrides directly they're
used everywhere and do not differ between the containing
process. State overrides are now applied explicitly and
on demand, decoupling them from children.
2020-07-01 08:54:34 +02:00
Johannes Meyer
a8149a1983 ui: Use rule widget to show real state transformation instead
Showing the override rules only in tree view but not in tile
view is one problem. Another one however are rules for all
states which then are difficult to decipher while not providing
much benefit.

The flash to indicate the real state also is not intuitive enough.

That's why this change combines both widgets in a single one. This
makes it more clear what the actual state is, what happened to it,
and does not cobble the view with too much state balls.
2020-06-26 14:11:40 +02:00
Johannes Meyer
0c7fca926f config: Use an extra line to store state overrides
Storing overrides as part of a node's name leads to way too complicated
code. A separate field is not only better for compatibility but also
more straightforward to process.
2020-06-26 14:08:05 +02:00
Christian Menapace
98b6b2c6d0 Add Service Override 2020-06-26 11:32:09 +02:00
Ravi Kumar Kempapura Srinivasa
49bc0dd363 Use the correct state-balls for critical/down-handled nodes in TreeRenderer::render()
Use the state-balls that are added for critical/down-handled nodes in TreeRenderer::render(), in case the nodes are critical/down and handled.
2020-05-27 08:23:41 +02:00
Ravi Kumar Kempapura Srinivasa
b3686906a5 Use the correct state-balls for critical/down-handled nodes in NodeTile::render()
Use the state-balls that are added for critical/down-handled nodes in NodeTile::render(), in case the nodes are critical/down and handled.
2020-05-27 08:23:16 +02:00
Ravi Kumar Kempapura Srinivasa
1bc6bf6236 Use gray tiles and state-balls for the entire branch of empty BpNode
The node state is recursively calculated in case the node contains only BpNodes as its children and are empty. The gray tiles and state-balls are used for the entire branch if the children are empty.
2020-05-11 11:45:33 +02:00
Ravi Kumar Kempapura Srinivasa
51c7fdf6c9 Fix 'Trying to access a missing business process node <$name>'
If the imported node is empty or was deleted at a later time, then in NodeTile::render() $link should not be rendered. Also, NodeTile::addDetailsAction() should not add a `href` to this tile.
2020-05-11 11:45:05 +02:00
mdkamijo
3ffbce0709
Make it possible to delete imported nodes (#248)
It is possible to import process nodes from other processes. But there
are no way, via the GUI, to remove the imported process nodes from the
current process/process node.
This commit makes it possible to remove imported process nodes, no matter
where which process they comes from.
2020-02-26 14:53:34 +01:00
Eric Lippmann
5395b42bab Fix URL param overrides upon rendering
Before, we used setParams() instead of with() to populate the parameters
which is especially problematic with imported nodes where the config
paramter got overriden for every subsequent node.

fixes #228
2020-02-26 14:18:40 +01:00
Eric Lippmann
125bf37ba8 Fix superfluous base target overrides
* Fix drill down of the tile/tree action icon links
* Set base target only on parent containers

This also fixes the dashboard integration where we only override the
base target of the div.tiles containers.

fixes #243
2020-02-26 14:17:39 +01:00
Eric Lippmann
a2854e8cf4 Use display_name as alias for host and service nodes 2020-02-05 15:01:22 +01:00
Johannes Meyer
b932fa8415 TreeRenderer: Open info urls in a new tab
refs #187
2019-02-28 11:19:13 +01:00
Johannes Meyer
cad29d4d32 NodeTile: Add current path to the add action url
fixes #212
2019-02-28 09:12:38 +01:00
Johannes Meyer
2a82b326fe TreeRenderer: Use the correct action urls for imported nodes
refs #209
2019-02-28 08:19:37 +01:00
Johannes Meyer
a941052efa NodeTile: Don't show action links for imported nodes
refs #209
2019-02-28 07:48:42 +01:00
Johannes Meyer
885064b577 Provide links to jump to an imported node's source configuration
refs #209
2019-02-28 07:48:35 +01:00
Johannes Meyer
670a29e5f7 Breadcrumb: Show a node's state 2019-02-26 13:15:14 +01:00
Johannes Meyer
3431540700 NodeTile: Don't use a node's identifier if it's the same config anyway 2019-02-25 14:23:41 +01:00
Johannes Meyer
eaf5b85538 Change how imported nodes are recognized
Since configurations are cached this cannot be done by using
a flag. Instead the rendering and path aggregation are now able
to distinguish nodes themselves.
2019-02-25 13:58:18 +01:00
Johannes Meyer
0d262bf0d0 Renderer: Don't fail while generating ids for unbound nodes 2019-02-22 14:11:03 +01:00
Johannes Meyer
40c406ac9e TreeRenderer: Render the info_url action where all other action urls are 2019-02-22 12:26:24 +01:00
Johannes Meyer
1529ec4602 NodeTile: Hash ids the same way as in the tree view 2019-02-22 12:26:24 +01:00
Johannes Meyer
a1bb91a999 js: Remove redundant handling for non-node tiles 2019-02-22 12:26:24 +01:00
Johannes Meyer
728d4cb2ae TreeRenderer: Show the correct icon for monitored nodes at the root level 2019-02-22 12:26:24 +01:00
Johannes Meyer
c73cd65f6f js: Correctly identify a node's parent in case of first level sub-trees 2019-02-22 12:26:24 +01:00
Johannes Meyer
673135c0f3 Don't redirect after a successful move action but refresh 2019-02-22 12:26:24 +01:00
Johannes Meyer
6cdaa48f68 TileRenderer: Use the correct action urls for imported nodes 2019-02-22 12:26:24 +01:00
Johannes Meyer
c19854d05c TileRenderer: Make the navigation through imported nodes fluent 2019-02-22 12:26:24 +01:00
Johannes Meyer
431a5e0085 Streamline usage of a node's name 2019-02-22 12:26:24 +01:00
Johannes Meyer
2799eff860 lib: Temporarily integrate the StateBall from ipl\Web\Widget 2019-02-22 12:26:24 +01:00
Johannes Meyer
a9ed7f66a4 Breadcrumb: Show a configuration's name again, "Root" is too vague 2019-02-22 12:26:24 +01:00
Johannes Meyer
7a8c48c7e8 Fix a few style issues 2019-02-22 12:26:24 +01:00
Johannes Meyer
00b88055f7 BpConfig: Delay processing of imported configurations
Solves the issue that two processes cannot import each other
2019-02-22 12:26:24 +01:00
Johannes Meyer
0194f9afe9 tree: Don't allow to change imported nodes
The remaining ui and navigation flow doesn't
incorporate differing bp configurations
2019-02-22 12:26:24 +01:00
Johannes Meyer
2123b41f83 Properly integrate imported nodes
* Fixed navigation flow
* Full tree rendering
2019-02-22 12:26:24 +01:00
Johannes Meyer
fb8c3c5a33 Redesign breadcrumbs 2019-02-22 12:26:24 +01:00
Johannes Meyer
fba4235a6a TileRenderer: Fix invalid call to attributes() 2019-02-22 12:26:24 +01:00
Johannes Meyer
d880291c02 TreeRenderer: Restructure node layout 2019-02-22 12:26:24 +01:00
Johannes Meyer
bb62fe7048 TreeRenderer: Properly render sub-processes if viewed individually 2019-02-22 12:26:24 +01:00
Johannes Meyer
35fe4cb943 Tree-/TileRenderer: Use a literal bool for data-sortable-disabled 2019-02-22 12:26:24 +01:00
Johannes Meyer
fe8f4d8c15 js: Don't permit to create loops 2019-02-22 12:26:24 +01:00
Johannes Meyer
493328ff20 Make moving non-root tiles working again 2019-02-22 12:26:24 +01:00
Johannes Meyer
b795d278ee TreeRenderer: Properly render empty processes 2019-02-22 12:26:24 +01:00
Johannes Meyer
98f2ed8f48 TreeRenderer: Remove obsolete placeholder element 2019-02-22 12:26:24 +01:00
Johannes Meyer
877f86a746 js: Allow to move nodes between processes 2019-02-22 12:26:24 +01:00
Johannes Meyer
48ba2a7bba TreeRenderer: Render add button as action link in the top right 2019-02-22 12:26:24 +01:00