pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
172 stars 125 forks source link

Icons swapped in formcreator 2.13.0-beta.2 in simplified interface GLPI 10 #2824

Closed bolivarf closed 2 years ago

bolivarf commented 2 years ago

Forms that come without icons from older versions of formcreator have the fa-question-circle icon and FAQs have the fa-clipboard-list icon should be the other way around.

To Reproduce Steps to reproduce the behavior: 1 Create three forms for a category of frequently asked questions, the first since it could not be imported from previous schemes, just give it a title, faq category and export, edit the file and eliminate the fields "icon":0,"icon_color":"", "background_color":"", deleting the current form, import it again. The second just give it a title and the third change the icon 2 Create a FAQ in the category used by the forms

  1. See error in simplified interface -> forms

Expected behavior That the forms without previous icons have the icon of fa-clipboard-list or the icon fa-edit or neither and the FAQ the icon of fa-question-circle like the rest of GLPI

Screenshots result Captura desde 2022-06-04 12-55-59 Captura desde 2022-06-04 12-59-31

expected Captura desde 2022-06-04 12-55-59-spec

GLPI / Plugins (please complete the following information):

Desktop (please complete the following information):

btry commented 2 years ago

Hi

A fix has been merged this week, fixing a problem when forms are displayed instead of faq, in separated KB mode. It may help to solve this issue. Can you test the latest revision of the branch support/2.13.0 ?

bolivarf commented 2 years ago

hi no problem i can try that branch

bolivarf commented 2 years ago

hello what is the branch is this https://github.com/pluginsGLPI/formcreator/tree/support/2.13.0

bolivarf commented 2 years ago

It says that it is 2.13.0-beta.2 and when it is active it does not appear in the simplified interface as if it were deactivated

btry commented 2 years ago

Check the status in the plugins page. If it ask you to run composer or yarn then you must do it. If you don't know these tools, then wait next week, i'll provide yo you a build

bolivarf commented 2 years ago

Loading composer repositories with package information Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Nothing to install, update or remove Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead. Package patchwork/jsqueeze is abandoned, you should avoid using it. No replacement was suggested. Generating optimized autoload files 31 packages you are using are looking for funding. Use the composer fund command to find out more!

bolivarf commented 2 years ago

yarn install v1.22.19 [1/4] Resolving packages... success Already up-to-date. Done in 0.36s

bolivarf commented 2 years ago

Composer version 2.3.6 2022-06-01 21:57:13

bolivarf commented 2 years ago

copy the vendor folder from the old plugin and run composer again, the plugin works in the normal interface but does not appear in the simplified interface.

composer install --no-dev Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Package operations: 0 installs, 2 updates, 0 removals

bolivarf commented 2 years ago

GLPI's Helpdesk Captura desde 2022-06-04 16-40-10

Service catalog simplified Captura desde 2022-06-04 16-40-46

Service catalog extended Captura desde 2022-06-04 16-39-41

It doesn't seem to work in GLPI's Helpdesk mode, the other two modes I don't see the difference.

btry commented 2 years ago

In glpi helpdesknmode, formcreator does not changes the menus of GLPI (there were changes unti beta 1 or 2, then reverted back to behaviour of 2.12.0. some people were disturbed by that.

Simplified and extended service catalog differ only when displaying tickets. One show essential info, the other shows more.

Then the plugin is active and seems to work well as far as I see.

bolivarf commented 2 years ago

in previous versions the menu does not change but there is a new menu that called the forms here there is no way to use a form

bolivarf commented 2 years ago

image old glpi

btry commented 2 years ago

In gkpi helpdesknmode you don't have access to forms (this is the regular solicited interface). Forms are accessible from normal interface, in assistance > forms.

In service catalog, click on "seek assistance".

I'm not having a computer right now then I answer using my memory, then I might be inaccurate about some minor things.

bolivarf commented 2 years ago

the problem is not the normal interface, it is the simplified one because there are users who do not have privileges for the normal interface and must be able to fill out forms as they could in previous versions of GLPI from 0.x.x to 9.x.x

btry commented 2 years ago

Ah yes ! I got the point.

I'll do a fix next week.

bolivarf commented 2 years ago

OK thank you so much

bolivarf commented 2 years ago

anyway it seems that they are using some libraries that are no longer supported

btry commented 2 years ago

Hi

Here is a fix for the menu entry: 5a07a70c066039d8c160608ce23077d96afc5bb5

btry commented 2 years ago

and an other to un-swap the icons: 42a45579

bolivarf commented 2 years ago

Hi The icons are fine, the name of the menu does not convince me much, but it could be fine.

Captura desde 2022-06-12 21-12-39

bolivarf commented 2 years ago

For me this would make more sense, but it's just my opinion, I don't know what others may think Captura desde 2022-06-12 22-20-19 .

btry commented 2 years ago

Hi

I agree, I'll change it to "Forms" like it was in 2.12.

commit: 07d27926

bolivarf commented 2 years ago

Hi and thanks The icon should also change based on the menu title, maybe not the one I put in the screenshot example, but something that better represents forms.

btry commented 2 years ago

Forms are used to fill a request for assistance or declare an incident. A headset icon has been selected because it is used in GLPI (10) for ticketing (see screenshot below).

image

bolivarf commented 2 years ago

ok I understand, thanks.

bolivarf commented 2 years ago

Although in the support menu of the normal view, the form option has another icon.

btry commented 2 years ago

Here ?

image

bolivarf commented 2 years ago

Yes, there should be no consistency.

btry commented 2 years ago

In this case forms are one of several possibilities (tickets, changes, ..., forms). This is a menu item, not a menu. It is bettter to have a more specialized icon as the headset is already used in the higher level.

bolivarf commented 2 years ago

Ok it's fine

bolivarf commented 2 years ago

You might also think there are other assistance options. Captura desde 2022-06-13 06-05-06

btry commented 2 years ago

Which context for this screenshot ? Self service with service catalog disabled ?

bolivarf commented 2 years ago

It is for end users, they can request services, they can see frequently asked questions, they can get answers to common problems or they can make requirements for which they have to fill out forms, some of these forms need approval as privileges to access a program and these being Homologated can create one or more cases, they can request equipment on loan. There is also a second level of users who, without being technology users, can provide services such as human resources personnel who can switch between their basic user profile and support user to meet requirements, for example, some type of registration by the which other user should fill out a form with the requested requirements

btry commented 2 years ago

HI

This does not helps me. I guess this is a self service with service catalog disabled. Do you confirm ?

bolivarf commented 2 years ago

if you mean the formcreator mode in the entity it is HelpDesk, if you mean the view it is simplified view

bolivarf commented 2 years ago

image

btry commented 2 years ago

OK.

In this mode we need to maintain access ti ticket creation along access to forms.

In this case, "seek assistance" is not appropriate as it would confuse with "Create ticket".

In short : "seek assistance should show only when it is tie only way to create a request (of any type).

bolivarf commented 2 years ago

that's correct

bolivarf commented 2 years ago

There is one feature that I came up with for the formcreator and that is forms without answers, only targets could work as a way to replace creating custom tickets, cases or problems.

btry commented 2 years ago

Open a new issue to discuss about that. Follow the rule 1 topic or bug = 1 issue.

bolivarf commented 2 years ago

sorry, you're right

btry commented 2 years ago

Hi

Are the issues with menus solved ? Can I close ?

bolivarf commented 2 years ago

Yes, thank you very much, it's solved.