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

SLM Twig UI #16911

Merged
merged 5 commits into from Apr 17, 2024
Merged

SLM Twig UI #16911

merged 5 commits into from Apr 17, 2024

Conversation

cconard96
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -

Based on #16910.

  • Migrate UI code for SLM/SLA/OLA related code to Twig
  • A fair amount of de-duplication of UI code

UX change for escalation levels list. I'm not sure if it changed with a previous Twig PR since it reuses UI code from rules, or was always like this, but the escalation levels list looked too crowded and wasn't easy for me (someone who doesn't use service levels) to understand what was going on.

Before (Without any criteria or actions):
Selection_291

After (With a criteria and action):
Selection_292

The change makes the list cleaner but also means that the criteria and actions cannot be added/changed from the escalation level list anymore. You have to click the escalation level link to open its form.

@cconard96 cconard96 force-pushed the ui/slm branch 2 times, most recently from 70e86ac to e3a65f2 Compare April 10, 2024 01:31
Copy link
Contributor

@orthagh orthagh left a comment

Choose a reason for hiding this comment

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

Some issues may be in the main branch directly. I didn't have the time to investigate more.

  • form for adding an escalation level seems to lose the relation with the parent SLA/OLA
  • I got an incoherence between the number of tickets counted in the tab (32) vs the tab content (no data).
  • general advice: if you find a number dropdown without any special option (like the one for maximum time), replace it with a simple input[type=number]

Regarding the UI/UX, nothing to say

@cconard96 cconard96 added the ui label Apr 11, 2024
@cconard96
Copy link
Contributor Author

* form for adding an escalation level seems to lose the relation with the parent SLA/OLA

Fixed

* I got an incoherence between the number of tickets counted in the tab (32) vs the tab content (no data).

Doesn't seem related. This tab also triggers a deprecation warning. It looks like the way this tab is handled was changed a few times in the last year or two.
This tab is still using raw HTML, so I'll probably address the issue it at some point in this project.

src/CommonDBTM.php Outdated Show resolved Hide resolved
src/LevelAgreement.php Outdated Show resolved Hide resolved
src/LevelAgreementLevel.php Outdated Show resolved Hide resolved
@trasher trasher merged commit 521c214 into glpi-project:main Apr 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants