KKcorps opened a new pull request, #15647: URL: https://github.com/apache/pinot/pull/15647
This pull request introduces a toggleable view mode (Simple and JSON) for adding offline and realtime tables in the Pinot Controller UI. It enhances the user experience by allowing users to switch between a form-based interface and a raw JSON editor. The most important changes include adding the toggle functionality, syncing state between the two views, and validating configurations based on the selected view. ### New Features for View Modes: * Added an `EditView` enum to define the two view modes: `SIMPLE` and `JSON` ### State Management Enhancements: * Added `editView`, `tableObj`, and `jsonTableObj` states to manage data for both views ### Validation and Save Logic: * Updated the `handleSave` method to validate and save configurations based on the active view mode ### UI Updates for JSON View: * Integrated `CustomCodemirror` for JSON editing, with error handling for invalid JSON inputs   -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org