Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
114 stars 70 forks source link

"Upload codelist" functionality in component config #13677

Open nkylstad opened 2 weeks ago

nkylstad commented 2 weeks ago

Description

WHY:

As a user, I want to be able to upload an existing (static) codelist to my app when I need to use it in a component.

In scope

Only adding the "Upload codelist" button in the "Add codelists" tab, allowing user to select a JSON codelist file to upload.

Out of scope

Sketches

Screenshot 2024-10-01 at 23 40 55

Tasks

Additional information

We have a similar button to upload datamodel, can we re-use (and possibly make a Studio-component)?

Acceptance criteria

wrt95 commented 2 weeks ago

Find out if we need validation on frontend or backend or both

Konrad-Simso commented 1 week ago

I've noticed that the PR does not fulfill all acceptance criteria.