-
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: added reference and combination #13455
feat: added reference and combination #13455
Conversation
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13455 +/- ##
=======================================
Coverage 94.30% 94.30%
=======================================
Files 1534 1539 +5
Lines 20899 20913 +14
Branches 2515 2513 -2
=======================================
+ Hits 19709 19723 +14
Misses 945 945
Partials 245 245 ☔ View full report in Codecov by Sentry. |
frontend/packages/schema-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTab.tsx
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/schema-editor/src/components/SchemaInspector/hooks/useKindOption.ts
Outdated
Show resolved
Hide resolved
...ackages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx
Outdated
Show resolved
Hide resolved
…-dropdown-menu-in-felter-section-in-datamodel
…enu-in-felter-section-in-datamodel' of https://github.com/Altinn/altinn-studio into 13317-add-combination-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
frontend/packages/schema-editor/src/components/AddPropertiesMenu/AddPropertiesMenu.tsx
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/schema-editor/src/components/SchemaInspector/hooks/useKindOptions.ts
Outdated
Show resolved
Hide resolved
…-dropdown-menu-in-felter-section-in-datamodel
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
…enu-in-felter-section-in-datamodel' of https://github.com/Altinn/altinn-studio into 13317-add-combination-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
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.
Da har jeg tatt en ny runde. Hovedpunkter:
- Vi må implementere
AddPropertiesMenu
på en litt annerledes måte. Nå har du laget to menyer inni hverandre. Det er nok også grunnen til at du har vanskeligheter med å ta i brukStudioDropdownMenu
. - Jeg er usikker på den nye komponenten for referanseknapp er nødvendig, siden de to bruksområdene er såpass forskjellige.
- Veldig fint at du har laget en egen komponent for visningen av type. Det er mer av logikken i
ItemFIeldsTableRow
som bare er relevant for den cellen, så det kan du også flytte inn i den nye komponenten. - Se om du kan skrive enhetstestene uten å mocke ut hooks. Se gjerne på hvordan det er gjort i andre komponenter.
...ackages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/schema-editor/src/components/AddPropertiesMenu/AddPropertiesMenu.tsx
Outdated
Show resolved
Hide resolved
...d/packages/schema-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTab.test.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/schema-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTab.tsx
Outdated
Show resolved
Hide resolved
frontend/libs/studio-components/src/components/StudioReferenceButton/StudioReferenceButton.tsx
Outdated
Show resolved
Hide resolved
...hema-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTypes.tsx
Outdated
Show resolved
Hide resolved
...hema-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTypes.tsx
Outdated
Show resolved
Hide resolved
...editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTypes.test.tsx
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
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.
Nå ser dette mye bedre ut. Jeg synes vi skal se på muligheten til å ta denne i bruk i AddNodeMenu
også, men det kan vi gjøre i en separat PR. La oss starte med å fokusere på de to stedene hvor du har implementert den nye komponenten nå.
...d/packages/schema-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTab.test.tsx
Show resolved
Hide resolved
...src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldType/ItemFieldType.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/schema-editor/src/components/SchemaInspector/hooks/useTypeNames.ts
Outdated
Show resolved
Hide resolved
...ackages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/schema-editor/src/components/AddPropertiesMenu/AddPropertiesMenu.tsx
Outdated
Show resolved
Hide resolved
...ackages/schema-editor/src/components/SchemaTree/SchemaNode/ActionButtons/AddPropertyMenu.tsx
Outdated
Show resolved
Hide resolved
...src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldType/ItemFieldType.tsx
Outdated
Show resolved
Hide resolved
...omponents/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldType/ItemFieldType.test.tsx
Outdated
Show resolved
Hide resolved
...omponents/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldType/ItemFieldType.test.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/schema-editor/src/components/SchemaInspector/hooks/useKindNames.ts
Outdated
Show resolved
Hide resolved
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
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.
Bra jobbet. Har bare noen siste, konkrete forslag til endringer.
...src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldType/ItemFieldType.tsx
Outdated
Show resolved
Hide resolved
...omponents/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldType/ItemFieldType.test.tsx
Outdated
Show resolved
Hide resolved
...ponents/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldType/ItemFieldType.module.css
Outdated
Show resolved
Hide resolved
...a-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTable/ItemFieldsTableRow.tsx
Outdated
Show resolved
Hide resolved
...d/packages/schema-editor/src/components/SchemaInspector/ItemFieldsTab/ItemFieldsTab.test.tsx
Show resolved
Hide resolved
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
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✅
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
Description
Related Issue(s)
Verification
Documentation