digdir / dialogporten-frontend

Brukergrensesnitt for Dialogporten
https://digdir.github.io/dialogporten-frontend/
MIT License
4 stars 2 forks source link

Suport legacy HTML and markdown on AdditionalInfo content #1214

Closed seanes closed 1 month ago

seanes commented 1 month ago

Introduction

We only render AditionalInfo as text/plain today, but need to support HTML as legacy content and markdown as well. Use embeddable HTML component for supporting this action.

Implementation

Section for (optional) additional info InboxItemDetail should render different depending on mediaType:

Highly consider extraction the section for additional in InboxItemDetail to a separate component, abstracting this logic.

Testing

Add examples in mockDialogs with both markdown and HTML.

LeifHelstad commented 2 weeks ago

Test viser at: Ren tekst vises, inkludert den rart formaterte .json-aktige teksten i meldingene fra skatt.

Markdown vises ok. F.eks. dette: image

HTML finner jeg ikke eksempler på i TT02.

LeifHelstad commented 1 week ago

HTML Dette:

image

gir:

image