Skip to content

Commit

Permalink
more readable search context in testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Sep 24, 2023
1 parent 112c43f commit 1890621
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/jsMain/kotlin/testcases/testcases.kt
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,20 @@ fun RenderContext.testCase(showStore: Store<Map<String, Boolean>>, ratedSearch:
} handledBy showStore.update
}
div("mx-3 grow") {
+"${
ratedSearch.searchContext.map { (k, v) -> "$k: $v" }.joinToString(", ")
} rated results: ${ratedSearch.ratings.size} "
ratedSearch.searchContext.forEach { (k, v) ->
+"$k: "
b {
+v
+" "
}
}
+"- Rated results: ${ratedSearch.ratings.size} "
}
iconButton(SvgIconSource.Delete, "Delete rated search") {
clicks.map { ratedSearch.id } handledBy ratedSearchesStore.deleteById
}
}
if (show) {

div("") {
p { +"RsId: ${ratedSearch.id} Rated documents" }
div("flex flex-row w-full gap-2 items-center") {
Expand Down Expand Up @@ -390,7 +394,6 @@ fun RenderContext.testCase(showStore: Store<Map<String, Boolean>>, ratedSearch:
}
}
}

}

private fun RenderContext.modalFieldEditor(
Expand Down

0 comments on commit 1890621

Please sign in to comment.