From a66606acf7de070c326c3ffed1902a2466dd4da9 Mon Sep 17 00:00:00 2001 From: Roger Chapman Date: Mon, 11 Jan 2021 12:36:12 +1100 Subject: [PATCH] :art: Add out payloads and format output (#42) --- CHANGELOG.md | 6 ++- frontend/src/controls/Dropdown.svelte | 3 +- frontend/src/monaco.css | 52 ++++++++++++++++++++++ frontend/src/monaco.js | 2 + frontend/src/views/FieldOneof.svelte | 5 +++ frontend/src/views/MethodSelect.svelte | 2 +- frontend/src/views/OutputPane.svelte | 61 ++++++++++++++++++-------- internal/app/api.go | 3 +- internal/app/events.go | 2 + internal/server/server.go | 5 +++ 10 files changed, 119 insertions(+), 22 deletions(-) create mode 100644 frontend/src/monaco.css diff --git a/CHANGELOG.md b/CHANGELOG.md index 94e1441..59f6894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,13 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Date picker for `google.protobuf.Timestamp` fields - Request type icons, in-flight indicator and network out/in count +- Request payloads added to main output to better represent streaming requests +- Output gutter decorations and headers to clearly show separate out/in payloads ### Changed -- Response output control re-architecture to enable future features +- Output control re-architecture to enable future features +- Response tab renamed to "Payload" to reflect both in and out payloads ### Fixed - A canceled client stream blocks further requests - Output syntax highlighting on Windows +- Oneof data is sent as empty in some scenarios - State miss match with descriptor causes `unknown field` error ## [v0.3.3] - 2020-12-13 diff --git a/frontend/src/controls/Dropdown.svelte b/frontend/src/controls/Dropdown.svelte index 73c61ab..37fd492 100644 --- a/frontend/src/controls/Dropdown.svelte +++ b/frontend/src/controls/Dropdown.svelte @@ -14,6 +14,7 @@ export let labelColor = undefined; export let removeable = false; export let Item = undefined; + export let titleProp = "value"; -