Skip to content

bugfix(monit): import JsonViewer utils in events#38

Merged
stackhousesrl merged 1 commit intoflowerforce:mainfrom
FilippoDeiana:bugfix/json-viewer
Mar 9, 2026
Merged

bugfix(monit): import JsonViewer utils in events#38
stackhousesrl merged 1 commit intoflowerforce:mainfrom
FilippoDeiana:bugfix/json-viewer

Conversation

@FilippoDeiana
Copy link
Contributor

Description

Fixes the monitoring events error by importing the correct JsonViewer utility functions from utils.

ui.events.js:186 Uncaught ReferenceError: renderJsonViewer is not defined
at showDetail (ui.events.js:186:5)

List of proposed changes

  • Updated packages/flowerbase/src/monitoring/ui.events.js to replace:
    • highlightJson
      with:
    • renderJsonViewer
    • clearJsonViewer

How to test the changes

  1. Run the app and open the monitoring/events UI.
  2. Trigger an event that includes JSON details.
  3. Verify JSON is rendered correctly in the viewer.
  4. Change selection/clear the event details and verify the JSON viewer is cleared without errors.
  5. Check browser console for no utils function/import errors.

Modified packages

  • flowerbase
  • demo

@stackhousesrl stackhousesrl merged commit f93e6b6 into flowerforce:main Mar 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants