Skip to content

TangibleFieldsRenderer: Centralize fields args formatting#51

Merged
nicolas-jaussaud merged 3 commits into
mainfrom
refactor/fields-renderer-centralize-formatting
Jul 6, 2026
Merged

TangibleFieldsRenderer: Centralize fields args formatting#51
nicolas-jaussaud merged 3 commits into
mainfrom
refactor/fields-renderer-centralize-formatting

Conversation

@nicolas-jaussaud

@nicolas-jaussaud nicolas-jaussaud commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Currently just a draft as it will conflict if PR#50 is merged

I noticed we currently apply a similar formatting in different places for fields args:

This is just a proposition to centralize this behavior, and make sure we format fields and subfields consistently regardless of where they are rendered

I also added a throw when we attempt to use an unsupported field type as a repeater subfield (here) instead of a silent fallback to text, but it can be changed back if needed

@nicolas-jaussaud nicolas-jaussaud marked this pull request as ready for review June 27, 2026 15:09
@nicolas-jaussaud nicolas-jaussaud requested a review from zinigor June 27, 2026 15:10

@zinigor zinigor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks nice, with tests too!

@nicolas-jaussaud nicolas-jaussaud merged commit 68c4034 into main Jul 6, 2026
3 checks 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