Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
114 stars 70 forks source link

Do we need message as a standard status in the inbox #5494

Open Febakke opened 3 years ago

Febakke commented 3 years ago

Description

Technically there is no difference between our forms and messages, this makes it possible to connect form and messages into connected services. If the app owner wants to tell the user they are on a message step they can use sub-status, but this might create a situation where we have different names and descriptions for the same functionality. Would it be better to have a standard way of handling messages?

This might be a part of a larger issue on how the inbox should handle our apps.

In scope

Research need from app developers Decide if this is something we need

Out of scope

Specification of message behavior and design

Analysis

Lorem ipsum

Conclusion

Short summary of the proposed solution.

Tasks

torbjokv commented 3 years ago

At DAT we have the need to send the organisation a message to their inbox with the reply of an application (or maybe just give general information?) like we have done with InsertCorrespondenceBasicV2 until now. While the message functionality (https://altinn.github.io/docs/altinn-studio/app-creation/message/) is flexible and meets most of our needs, its limited how we manage to adapt the text and buttons in the altinn inbox. Now there is a go to form button and a pencil icon, but we only want to give read only information in this case and there is no way to get rid of this as far as I know.

image

altinnadmin commented 3 years ago

Would it be better to have a standard way of handling messages

Currently the inbox is based on the very limited service types in Altinn 2, something that makes it difficult to handle the flexibility of apps in Altinn 3 in the inbox. An app is not always a message, or a form. It can be whatever.

Could we instead go the other way and simplify? For apps, just use the service owner logo as icon instead of the envelope and pencil, and just "Åpne" instead of "Gå til skjemautfylling" etc. That way we avoid these strange cases and all the related complexity.

lvbachmann commented 3 years ago

@altinnadmin That would somewhat simplify things, but an "Åpne" button which just leads to the same content in a new framing doesn't sound ideal...

altinnadmin commented 3 years ago

Hopefully one does not create apps that only shows the same content. Seems like a strange thing to do?

lvbachmann commented 3 years ago

@Febakke To shed some light on the question from @altinnadmin: Have we moved away from the hypothesis of the message text being shown in the inbox? If we have, I agree that same content in message box and service seems unlikely/strange.

torbjokv commented 3 years ago

At DAT we have the need to send the organisation a message to their inbox with the reply of an application (or maybe just give general information?) like we have done with InsertCorrespondenceBasicV2 until now. While the message functionality (https://altinn.github.io/docs/altinn-studio/app-creation/message/) is flexible and meets most of our needs, its limited how we manage to adapt the text and buttons in the altinn inbox. Now there is a go to form button and a pencil icon, but we only want to give read only information in this case and there is no way to get rid of this as far as I know.

image

My example here in maybe not the best as I guess the initial receipt when posting the form should be sufficient (I hope). A better example would be "Application approved: Innkvartering...." and then we would like to add our own archive reference in there somewhere together with some data/text provided by the caseworker (e.q. in case you got rejection, we need to tell them why). The latter points may of course be located inside the app.

Febakke commented 3 years ago

Originally this issue was created based on the fear that we would end up in a situation where apps use different words to describe the same functionality. Some might call it a message, correspondence or a letter. The solution to this might be to offer a standard message status defined by us, that hopefully would concise description of messages in the inbox.

@lvbachmann Well, yes in the first sketches we ended up not including any message text in the inbox, but that decision was not made with usability in mind. From the perspective of a user in the inbox, it is very hard for me to argue that it is better to have a simple message inside an app instead of inside the message element in the inbox. That said I do agree that our elements could need an upgrade. I could make a separate issue "improve our inbox elements" and include Altinnadmins suggestion?

@altinnadmin Could some confirmation text maybe be shown with the help of the sub-status description in this case?

nkylstad commented 10 months ago

This issue seems stale, can it be either closed or moved to a more relevant repo? @Febakke @altinnadmin

Febakke commented 10 months ago

I agree, it should be moved. Our lack of concepts (to my knowledge) around how status and longer connected services are presented outside the app is still a concern of mine. I guess issues like this might go beyond the Altinn inbox as it might not always be the place where the user will find or see a status on the apps. Also might be relevant for @sorensensig and "Arbeidsflate".

altinnadmin commented 10 months ago

To me it seems like we have these things to consider:

sorensensig commented 9 months ago

I agree, it should be moved. Our lack of concepts (to my knowledge) around how status and longer connected services are presented outside the app is still a concern of mine. I guess issues like this might go beyond the Altinn inbox as it might not always be the place where the user will find or see a status on the apps. Also might be relevant for @sorensensig and "Arbeidsflate".

I share your concerns @Febakke on how we don't have a clear strategy on how apps are experienced outside the app itself and how they should convey an experience of connected services in the various places they are exposed to the user. I believe this might be one case-study we have to look at across product teams as the responsibility seems to fall between the cracks.

I know team arbeidsflate have looked into this issue as well and how apps ought to be experienced in the inbox. It doesn't seem like I can tag Mette (product owner arbeidsflate) here. @indiamaydesign can you bring up this issue with Mette and team arbeidsflate? However, this does not meet all of our needs for how connected services should be experienced as they might be exposed in other locations than the inbox.

elsand commented 9 months ago

As I'm reading this, "connected services" in this context is just a complex dialogue process consisting of various backs-and-forths between the user and the service owner - all within a single app instance. In Altinn 2, this would actually be distinct services; that is one or more correspondence services in addition to the formtask(s), with their distinct and mostly disconnected inbox elements and distinct access control/delegation.

The ability to express the various states of complex dialogue processes is at the very core of what we want to achieve with Dialogporten. The integration with Altinn 3 is in that regard a crucial piece of the puzzle, handling the state transitions for app instances and syncing the current metadata to "dialogs" in Dialogporten, which then is rendered in Arbeidsflate.

Here's a simple diagram over this: image

Dialogporten has a roadmap issue (with links to a more or less empty epic in Dialogporten). The component mentioned above will naturally have to be the result of a close collaboration between the Dialgporten team and the apps team; I have already discussed this briefly with @tjololo.

Issues related to this relevant for studio are still TBD, but will presumably be mostly a more supportive/value-add nature. For instance, having some sort of preview functionality ("how will instances of my app look like in arbeidsflate on a given process step/task") would be great.