-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add actions to process task #12151
Comments
Combobox should support adding custom values, and will probably be supported soon. |
Waiting for #12272 to ensure we implement this in the same way. |
Great work! 👏 🚀 I have some feedback on the user experience and UI for this feature. The saving challenge Suggestion: Could we fix the issue above by implementing auto-saving when selecting a predefined action? Note: It's easy to forget to save since I can select an option and navigate to another place without getting a warning about unsaved changes Figure 1: Shows that the save button is disabled after a predefined action is selected. Custom Actions Suggestion: What about splitting the view? Ex. using tabs for predefined and custom actions? @Annikenkbrathen. Figure 2: Displays the custom actions Adding empty actions Figure 3: Displays bpmn file with empty actions. Filtering options on the client Figure 4: Displays that is possible to add more of the same All predefined actions is already added Edit custom actions |
Very thoroughly testing @framitdavid! 😍
So as you are mentioning:
I have included a comment on that in the code. Enabling the auto-saving onBlur will also remove the need of a useState to hold the current value
Maybe that could be a part of some global app validation on deploy (as we have discussed earlier)? Or maybe it is not really an issue. But deffinetly something we should check out! 🤩
I agree that it would be nice! But maybe we should also consider the value it gives for what cost? In other words, the backside to that they are able to define multiple similar actions, I think are none? So even though it is not logic and useless I think it is unnecessary resources for us to implement a hard restriction since it is not directly dissructive for the app 🫣
Agree that we could consider a split. But if we decide to keep it as is, could it be enough to change the wording of the description a bit;
Is it possible with the combobox? I think it only shows the options that matches the current value 🤔 |
Agree! I can look into how we can split predefined and custom actions into two separate options, for example by using tabs. If we don't like that option, we can keep it as one combobox, but then we should make it clear how to create a custom action by saying something like 'write your own name for your custom action in the select box to define your own action.' |
Could this work? @standeren @framitdavid |
@Annikenkbrathen based on the screenshots above, I like that they are explicit between choosing an action and creating an action. Is the idea that the one you create will appear in the list under the "Velg handling" tab along with the ones that are already predefined? |
@standeren let's keep this issue as is! I have created a new one that takes care of the feedback. However, should we change the text to: "Velg en forhåndsdefinert handling fra nedtrekkslisten eller definer din egen ved å skrive inn navnet som fritekst i feltet", to make it more clear for the user about how to add a custom action? |
#12837 😁 |
Description
App developer should be able to add/edit
actions
to a task in their process.An action can have a
type
(serverAction
orprocessAction
), and a name/value that defines the name of the action.See https://docs.altinn.studio/app/development/process/actions/ for more details.
This is probably something that will have to be done through a customized bpmn properties panel
The text was updated successfully, but these errors were encountered: