Skip to content
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

Use new BaseObjectHeader class to create detail view header #1104

Open
wants to merge 11 commits into
base: dependencies
Choose a base branch
from

Conversation

sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Dec 3, 2024

No description provided.

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Dec 3, 2024
@sukhwinder33445 sukhwinder33445 marked this pull request as draft December 3, 2024 15:26
@sukhwinder33445 sukhwinder33445 changed the title Create detail view header with object header class Use new BaseObjectHeader class to create detail view header Dec 3, 2024
@sukhwinder33445 sukhwinder33445 force-pushed the create-detail-view-header-with-object-header-class branch 7 times, most recently from b5c9062 to 3382816 Compare December 9, 2024 14:53
@sukhwinder33445 sukhwinder33445 force-pushed the create-detail-view-header-with-object-header-class branch from 3382816 to 9c4b4de Compare December 10, 2024 09:37
@sukhwinder33445 sukhwinder33445 force-pushed the create-detail-view-header-with-object-header-class branch from 9c4b4de to 47f5a74 Compare December 18, 2024 15:10
@sukhwinder33445 sukhwinder33445 force-pushed the create-detail-view-header-with-object-header-class branch 2 times, most recently from 6ebc500 to 7a39522 Compare January 8, 2025 15:14
@sukhwinder33445 sukhwinder33445 self-assigned this Jan 8, 2025
@sukhwinder33445 sukhwinder33445 marked this pull request as ready for review January 8, 2025 15:14
- Adjust RedundancyHeader class
- Use this class to create object header for host and service
- Remove previous implementation
- Add required changes to `object-header.less`
- StateList: Remove now unused NoSubjectLink
- Introduce trait CommentHeaderUtils
- Introduce trait DowntimeHeaderUtils
- Introduce EventHeaderUtils
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't looked at everything yet, CSS not at all even.

Though, I'm already quite puzzled anyway. My expectation, and I told you this many times, was that nothing (or only with good reasoning) must change in the UI. As can be seen on the screenshots in my comments, this isn't the case.

->setDetailActionsDisabled()
->setCaptionDisabled()
->setNoSubjectLink());
$this->addControl(new CommentHeader($this->comment));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

{
$detail = new DowntimeDetail($this->downtime);
$this->addControl(new DowntimeHeader($this->downtime));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image
After
image

->setCaptionDisabled()
->setNoSubjectLink()
->setDetailActionsDisabled());
$this->addControl(new EventHeader($this->event));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

$this->addContent(Html::tag('h2', null, t('Hosts')));
} else {
$this->addControl(new HostgroupTableRow($hostgroup));
$this->addControl(new HostgroupHeader($hostgroup));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

->setViewMode('objectHeader')
->setDetailActionsDisabled()
->setNoSubjectLink());
$this->addControl(new ServiceHeader($this->service));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

$this->addContent(Html::tag('h2', null, t('Services')));
} else {
$this->addControl(new ServicegroupTableRow($servicegroup));
$this->addControl(new ServicegroupHeader($servicegroup));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

@@ -40,7 +40,7 @@ public function init()

public function indexAction()
{
$this->addControl(new UserTableRow($this->user));
$this->addControl(new UserHeader($this->user));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

@@ -40,7 +40,7 @@ public function init()

public function indexAction()
{
$this->addControl(new UsergroupTableRow($this->usergroup));
$this->addControl(new UsergroupHeader($this->usergroup));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

->setNoSubjectLink()
->setObjectLinkDisabled()
->setDetailActionsDisabled();
$comment = new CommentHeader($comment, false, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before
image

After
image

@nilmerg nilmerg removed the request for review from raviks789 February 5, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants