-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat: upload static images to be used by the image component #13322
feat: upload static images to be used by the image component #13322
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13322 +/- ##
==========================================
- Coverage 95.24% 94.24% -1.01%
==========================================
Files 1505 1531 +26
Lines 20589 20885 +296
Branches 2492 2521 +29
==========================================
+ Hits 19611 19684 +73
- Misses 869 948 +79
- Partials 109 253 +144 ☔ View full report in Codecov by Sentry. |
077820c
to
fe8f3b4
Compare
67e1251
to
05c18c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Har lagt igjen noen kommentarer på ting jeg har lagt merke til. Hovedpunkter:
- Ikke vær redd for å dele opp ting i bittesmå biter - hovedregelen er at en funksjon skal gjøre én ting. Hvis du har mer enn to indenteringsnivåer, kan det være et hint om at det er lurt å dele opp.
- Prøv å skille databehandlingskode (ikke-React) fra presentasjonskode (React), og lag egne enhetstester for databehandlingsnivået.
- Unngå, hvis mulig, å kaste feilmeldinger som en del av det tiltenkte scenariet.
Ellers vil jeg på det sterkeste anbefale å begynne å skrive noen tester. Da vil du selv kunne oppdage deler av konden som kan struktureres på en bedre måte. Jeg ser for eksempel at du har kommentert at du ikke forstår hvorfor det er nødvendig med +1
et sted. Skill ut koden og lag en test, så får du svar!
...nents/config/editModal/EditImage/ConflictingImageSourceAlert/ConflictingImageSourceAlert.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/ux-editor/src/components/config/editModal/EditImage/EditImage.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/ux-editor/src/components/config/editModal/EditImage/EditImage.tsx
Outdated
Show resolved
Hide resolved
...src/components/config/editModal/EditImage/LocalImage/ImportImage/UploadImage/UploadImage.tsx
Outdated
Show resolved
Hide resolved
...src/components/config/editModal/EditImage/LocalImage/ImportImage/UploadImage/UploadImage.tsx
Show resolved
Hide resolved
...components/config/editModal/EditImage/LocalImage/PreviewImageSummary/PreviewImageSummary.tsx
Outdated
Show resolved
Hide resolved
.../config/editModal/EditImage/LocalImage/ImportImage/AddImageFromLibrary/ChooseFromLibrary.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/ux-editor/src/components/config/editModal/EditImage/EditImage.tsx
Outdated
Show resolved
Hide resolved
45a311c
to
1d6b7b2
Compare
0ae4a10
to
17d90b4
Compare
…itImage/ExternalImage/ExternalImageValidationStatus.tsx Co-authored-by: Tomas Engebretsen <tomas.engebretsen@digdir.no>
1eb5e13
to
88584af
Compare
backend/src/Designer/Infrastructure/GitRepository/AltinnAppGitRepository.cs
Fixed
Show fixed
Hide fixed
88584af
to
07722d8
Compare
5339373
to
38ec507
Compare
backend/src/Designer/Infrastructure/GitRepository/AltinnAppGitRepository.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested OK in dev! 🚀 It works as expected and meets all acceptance criteria, impressive work! 🤩
frontend/libs/studio-components/src/components/StudioFileUploader/StudioFileUploader.test.tsx
Fixed
Show fixed
Hide fixed
8c53365
to
c82ee58
Compare
21e3a4f
to
3c3a106
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💪
Description
Related Issue(s)
Verification
Documentation