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

chore: Replace divider component #13960

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

wrt95
Copy link
Contributor

@wrt95 wrt95 commented Oct 31, 2024

Description

  • Deleting <Divider /> component.
  • Replacing all occurrences with studio-token

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)

@github-actions github-actions bot added area/data-modeling Area: Related to data models - e.g. create, edit, use data models. area/dashboard Area: Related to the dashboard solution/studio/designer Issues related to the Altinn Studio Designer solution. frontend labels Oct 31, 2024
@wrt95 wrt95 changed the title Replace divider component chore: Replace divider component Oct 31, 2024
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.19%. Comparing base (79d7a4f) to head (bbc342e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13960      +/-   ##
==========================================
- Coverage   95.19%   95.19%   -0.01%     
==========================================
  Files        1697     1698       +1     
  Lines       22457    22450       -7     
  Branches     2631     2630       -1     
==========================================
- Hits        21378    21371       -7     
  Misses        834      834              
  Partials      245      245              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@standeren standeren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work ⭐

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the deleteButton class is still referenced in the CustomProperties component. Can we also delete the class from there? 😄

</>
)}
{hasCustomProps && <CustomProperties path={schemaPointer} />}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be a divider between the rootPointer and the customProps now? Looks like this change only sets a divider in the top of the FieldSet below this component? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably no biggie, but it looks like the Divider above the FieldSet is lost now? If it is not added css to the FieldSet component that sets a border on the top of it 🫣

Comment on lines +20 to +22
<StudioLabelAsParagraph size='sm' className={classes.noItem}>
{t('schema_editor.no_item_selected')}
</StudioLabelAsParagraph>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could be moved to a separate file so we dont need to duplicate the noItem css in two files? 😊
Then we can use it both here and in TypeInspector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard Area: Related to the dashboard area/data-modeling Area: Related to data models - e.g. create, edit, use data models. frontend solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace all occurrences of Divider with border-bottom: solid {X} px {color}
2 participants