Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for the serialization of DataframeConvertible values in ValueColumns has been added to enhance visualization in the KTNB plugin. #823

Merged
merged 5 commits into from
Aug 15, 2024

Conversation

ermolenkodev
Copy link
Contributor

If the value within the ValueColumn can be converted to a dataframe, it will be serialized in a manner similar to the FrameColumn values. Consequently, it will be visualized as a nested table in the KTNB plugin.

Implemented the `CellKind` enum with a `DataFrameConvertable` type. Updated JSON writing logic to handle `DataFrameConvertable` cells and added utility function to check if an object is convertible to DataFrame.
@ermolenkodev ermolenkodev added the enhancement New feature or request label Aug 12, 2024
Also refactor JSON encoding to use the unified EncodingOptions interface
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small notes, but LGTM

Replace `EncodingOptions` with `CustomEncoder` to improve flexibility and clarity in the JSON serialization process. This update includes introducing `CustomEncoder` interface and dedicated encoders for DataFrameConvertable and BufferedImage, alongside necessary adjustments across related classes and tests.
@ermolenkodev
Copy link
Contributor Author

I’ve pushed a refactoring that replaces EncodingOption with a CustomEncoder interface. You might want to take a look, @Jolanrensen @koperagen.

Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! I really like this modular approach :)

Copy link
Contributor

Generated sources will be updated after merging this PR.
Please inspect the changes in here.

@ermolenkodev ermolenkodev merged commit 2974f4d into master Aug 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants