Handle JSON viewer empty states (#10750)

- Display the number of descendants for object and array elements
- Display an empty state for arrays and objects
- Make the input and output visualizer scrollable horizontally 
  - Prevent JSON visualizer's text to wrap

## Demo: input


https://github.com/user-attachments/assets/d6bd6acf-a779-4fc7-a8b1-12b857cee7f9

Closes https://github.com/twentyhq/core-team-issues/issues/497
This commit is contained in:
Baptiste Devessier
2025-03-10 17:39:49 +01:00
committed by GitHub
parent dc55fac1d5
commit dd26001372
70 changed files with 533 additions and 39 deletions

View File

@ -1218,6 +1218,14 @@ msgstr "Pracownicy"
msgid "Empty"
msgstr "Puste"
#: src/modules/workflow/components/json-visualizer/components/JsonArrayNode.tsx
msgid "Empty Array"
msgstr ""
#: src/modules/workflow/components/json-visualizer/components/JsonObjectNode.tsx
msgid "Empty Object"
msgstr ""
#: src/pages/settings/developers/webhooks/components/SettingsDevelopersWebhookDetail.tsx
msgid "Endpoint URL"
msgstr "URL punktu końcowego"