diff --git a/develop-docs/application/feedback-architecture.mdx b/develop-docs/application/feedback-architecture.mdx index b5c064a008c22..41d25165f38a0 100644 --- a/develop-docs/application/feedback-architecture.mdx +++ b/develop-docs/application/feedback-architecture.mdx @@ -52,17 +52,18 @@ offers 2 improvements: The user's submission is wrapped in a context object: -```Python/Javascript +```Pseudo-code event[”contexts”][”feedback”] = { "name": , "contact_email": , "message": , "url": , - "source": + "source": , + "associated_event_id": } -// all fields are technically optional, but recommended -// the widget can be configured to require a non-empty email and/or name +// All fields are optional except message. +// The widget can be configured to require a non-empty email and/or name. ``` - This doc refers to the payload format (`event` in the pseudo-code above) as a “**feedback event”**. @@ -100,7 +101,7 @@ a separate topic and storage, and the UI makes a separate request for them. The deprecated way of sending feedback is as a **user report**. This is a simple typed dict: -```Python/Javascript +```Pseudo-code user_report = { "event_id": , "email": ,