Commit graph

22 commits

Author SHA1 Message Date
Sukhwinder Dhillon
b5040b2fae EventRenderer: Fix soft_state event visual
- Only the CheckAttempt visual must be skipped in case $layout is minimal|header, not the whole condition body.
2025-06-13 08:13:12 +02:00
Johannes Meyer
30658ef116 hosts/services: Fix that overdue items do not appear as such
fixes #1193
2025-05-26 10:31:51 +02:00
Johannes Rauh
b10044bb8d Handle unicode in contact and contactgroup names 2025-04-28 15:29:58 +02:00
Johannes Meyer
234569a29f StateListItem: Don't assume a limit for affected children 2025-03-28 16:53:16 +01:00
Johannes Meyer
21c8191a09 Ensure compatiblity with Icinga/ipl-web#258 2025-03-28 16:43:49 +01:00
Sukhwinder Dhillon
066702fb49 EventRenderer: Don't show check attempts in header and minimal layout 2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
20d74a685f GridRenderer::assembleVisual(): Fix visual link
- Don't show all objct if the group is emplty
2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
2b060a4f2a Cleanup phpstan baseline and fix code sniffer issues
- Baseline: Nothing new added, only obsolete paths removed

Phpstan now uses single instead of double quotes for messages. Thats why each message is updated.
2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
95a6992bb0 Remove superfluous span wrapper without attribute of Text 2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
62b9c24e45 Define Php generics and phpdoc 2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
80fc6a4229 Cleanup css and php code 2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
3035bb0538 Update trait TicketLinks and (Comment/Downtime)Renderer class
TicketLinks: Add setter to disable ticket links. By default, ticket links should be created.
Comment/DowntimeRenderer: Add setter noObjectLink()
CommentRenderer: Add setter noSubjectLink(), only used for the comment-popup
2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
0d9bcc985f Rename HistoryRenderer to EventRenderer
- use `NotificationRenderer` instance as class property

NotificationRenderer:
- Make the phraseForType() method non-static and protected, as it is only used internally.
2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
9febe3bf36 Introduce class ObjectTable and ObjectGrid
- Update css
2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
1c36123a87 Introduce (Host|Service)(Grid)groupRenderer
- Fix and remove obsolete css
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
183d5ee7ba Introduce HistoryRenderer
- Remove now obsolete ItemList classes
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
3252ff8925 Introduce class LoadMoreObjectList and NotificationRenderer
- Remove now obsolete ItemList classes
- Fix load-more element's css
- LoadMore: Replace `list-item` css class with new `item-layout` class, as this class is now responsible for list items
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
c15f32a43f Introduce DowntimeRenderer
- Use it for ObjectList and ObjectHeader
- Remove now unused code and css
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
c55f1dceb8 Introduce TicketLinkObjectList and CommentRenderer
TicketLinkObjectList: This class creates object list with ticket links using TicketLinks trait
CommentRenderer: Defines the rendering rules for Comment object
Cleanup css and unused classes
Adjust comment-popup.less
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
bfe1681859 Introduce User/UsergroupRenderer
- Use it in ObjectList and ObjectHeader
- Remove now superfluous (User/Usergroup)Table(Row) classes and css
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
36ce426bbe Introduce Host/Service Renderer
- Use these renderers in ObjectHeader and ObjectList class
- Remove now superfluous Host/ServiceList and ListItem classes
- DetailsAction: Change visibility of url setter to public (These are called in controller now)
2025-03-28 16:13:16 +01:00
Johannes Meyer
c0b0f82daa Introduce class RedundancyGroupRenderer 2025-03-28 16:13:16 +01:00