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

feat: added reference and combination #13455

Conversation

JamalAlabdullah
Copy link
Contributor

@JamalAlabdullah JamalAlabdullah commented Sep 2, 2024

Description

  • Added combination and referance to drop-down menu in datamodel/felter/legg til felt
  • Fixed the order of elements to match other menus
  • Added icons for the elements.
  • Updated test

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@github-actions github-actions bot added area/data-modeling Area: Related to data models - e.g. create, edit, use data models. solution/studio/designer Issues related to the Altinn Studio Designer solution. labels Sep 2, 2024
…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
@JamalAlabdullah JamalAlabdullah changed the title added reference and combination feat: added reference and combination Sep 2, 2024
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.30%. Comparing base (34a57f0) to head (466154d).
Report is 3 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

JamalAlabdullah and others added 8 commits September 16, 2024 16:32
…-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
Copy link
Contributor

@TomasEng TomasEng left a 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 bruk StudioDropdownMenu.
  • 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.

Copy link
Contributor

@TomasEng TomasEng left a 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å.

Copy link
Contributor

@TomasEng TomasEng left a 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.

…-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel
Copy link
Member

@Jondyr Jondyr left a 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
@JamalAlabdullah JamalAlabdullah merged commit fe5395f into main Sep 30, 2024
10 checks passed
@JamalAlabdullah JamalAlabdullah deleted the 13317-add-combination-and-referanse-types-to-dropdown-menu-in-felter-section-in-datamodel branch September 30, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/data-modeling Area: Related to data models - e.g. create, edit, use data models. solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add combination and referanse types to dropdown menu in felter section in datamodel
3 participants