Skip to content

setActionBehavior should open a bottom sheet to confirm, in place of a modal #221

@brtbrt

Description

@brtbrt

Message type: SET_ACTION_BEHAVIOR

Originator: web

Min app version: 12.7

Description

In order to comply with the O2DE OB's requirements, the confirmation menu should appear as a bottom sheet, in place of a modal.

Differences between iOS/Android (if any)

  • iOS should use the bottomsheet
  • android could keep behaving the same

Payload definition

Request Payload

declare type ActionBehavior = {
    behavior: 'confirm';
    title: string;
    message: string;
    acceptText: string;
    cancelText: string;
} | {
    behavior: 'default';
} | {
    behavior: 'cancel';
};

Examples:

{
    "type": "SET_ACTION_BEHAVIOR",
    "id": "xxx-xxx-xxx-xxx",
    "payload": {
        "actions": {
            "navigationBack": {
                "behavior": "cancel",
            },
            "webviewClose": {
                "behavior": "confirm",
                "aIK8,cceptText": "Verlassen",
                "cancelText": "Abbrechen",
                "message": "Beim Verlassen dieser Ansicht gehen deine Eingaben verloren.",
                "title": "Hinweis"
            }
    },
}

Response Payload
The current ones.

Possible error cases

Include codes and description messages. Also explain when they can occur if
necessary.

401 → Missing permissions

Metadata

Metadata

Assignees

No one assigned

    Labels

    o2deBlauDE & O2DE

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions