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

Punktliste #1197

Merged
merged 5 commits into from
Jan 6, 2025
Merged

Punktliste #1197

merged 5 commits into from
Jan 6, 2025

Conversation

RobinLundSadun
Copy link
Contributor

Lagt til punktliste som mulig visningsvariant.

Tror logikken kan forbedres (linje 129-136) men venter på endringene fra @fredrikmork på feltmappen. Lager en lapp i mellomtiden.

@RobinLundSadun RobinLundSadun requested a review from a team as a code owner January 3, 2025 09:29
Copy link
Contributor

@SandraLekve SandraLekve left a comment

Choose a reason for hiding this comment

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

Nice 😊

@@ -126,6 +126,14 @@ object SøknadTilGenereltFormatMapper {
if (entitet.label == "Om arbeidsforholdet ditt") {
return listOf(feltlisteMap(entitet.label, list, VisningsVariant.TABELL_ARBEIDSFORHOLD))
}
if (entitet.label == "Gjelder noe av dette deg?") {
Copy link
Contributor

Choose a reason for hiding this comment

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

kanskje bedre å sjekke om den har alternativer?

is List<*> -> verdi.joinToString("\n\n") { it.toString() }
else -> verdi?.toString() ?: ""
}
return listOf(mapOf("label" to entitet.label, "visningsVariant" to VisningsVariant.PUNKTLISTE, "verdi" to verdi, "alternativer" to entitet.alternativer?.joinToString(" / ")))
Copy link
Contributor

Choose a reason for hiding this comment

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

små pirk: er det ikke mer vanlig å separere elementer med ,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Jo 100%, det med \n\n er bare slik det gjøres i dagens løsning. Vil på sikt egt. ikke ha det som en string i det hele tatt, men heller en liste eller noe sånt.

Copy link
Contributor

@fredrikmork fredrikmork left a comment

Choose a reason for hiding this comment

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

🎆

  • Tester du i preprod med dagens prod og med denne PR-en?
  • Løse konflikt

@RobinLundSadun RobinLundSadun merged commit f688bb0 into main Jan 6, 2025
1 check passed
@RobinLundSadun RobinLundSadun deleted the situasjon-seksjon branch January 6, 2025 11:21
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.

3 participants