Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ object HorizontalListRenderer : Renderer<List<Any?>> {
override val name: String = "Horizontal List" // by Claude

override fun priority(context: RenderContext<List<Any?>>, module: FormModule): Float {
if (context.serializer.descriptor.isNullable) return -1f
if (context.serializer.descriptor.kind != StructureKind.LIST) return -1f

// Higher priority for explicit annotation - by Claude
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ object ListRenderer : Renderer<List<Any?>> {
override val name: String = "List" // by Claude

override fun priority(context: RenderContext<List<Any?>>, module: FormModule): Float {
if (context.serializer.descriptor.isNullable) return -1f
return if (context.serializer.descriptor.kind == StructureKind.LIST) 0.8f else -1f
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ object SetRenderer : Renderer<Set<Any?>> {

override fun priority(context: RenderContext<Set<Any?>>, module: FormModule): Float {
val descriptor = context.serializer.descriptor
if (descriptor.isNullable) return -1f
// Match sets specifically - they have StructureKind.LIST but serialName contains "Set"
return if (descriptor.kind == StructureKind.LIST && descriptor.serialName.contains("Set")) 0.85f else -1f
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ object TableRenderer : Renderer<List<Any?>> {
override val name: String = "Table" // by Claude

override fun priority(context: RenderContext<List<Any?>>, module: FormModule): Float {
if (context.serializer.descriptor.isNullable) return -1f
// Only match lists where inner type has serializableProperties
if (context.serializer.descriptor.kind != StructureKind.LIST) return -1f

Expand Down
Loading