[Feature] Add column_type_formatters_detail#999
Draft
maxim-f1 wants to merge 8 commits intosmithyhq:mainfrom
Draft
[Feature] Add column_type_formatters_detail#999maxim-f1 wants to merge 8 commits intosmithyhq:mainfrom
column_type_formatters_detail#999maxim-f1 wants to merge 8 commits intosmithyhq:mainfrom
Conversation
added 8 commits
December 21, 2025 12:33
…l pages. * Added `column_type_formatters_detail`. * Added `_default_formatter_detail` to separate detail-view processing. * Added built-in formatters for `StrEnum`, `datetime`, and "copy to clipboard" functionality. * Updated documentation and added tests.
Member
|
@maxim-f1 any updates on this one? Shall we keep it open? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new
column_type_formatters_detailfield has been added toModelView.This field follows the same principle as
column_type_formatters, with the sole difference that it is only applied on the details page.If
column_type_formatters_detailis not set, the details page will fall back to using formatting fromcolumn_type_formatters.Several additional built-in formatters have been introduced (the default
column_type_formattersremains unchanged).Now, when a parent class is used as the key for
column_type_formattersorcolumn_type_formatters_detail, all its child classes will also be formatted accordingly.If both a child and its parent are specified, the child's formatter takes precedence.
New formatters
1.
StrEnumFormatterAdds a tooltip displaying the list of available enum values.
List:
Details:
2. Copy String Formatter
Adds a copy-to-clipboard button for any string field content.
List:
Details:
3.
dateordatetimeFormatterAdds a tooltip with the precise timestamp and displays the date in a human-readable format.
List:
Details: