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

refactor(studio-root): seperated repeated html on ContactPage to React Component #14169

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

framitdavid
Copy link
Collaborator

@framitdavid framitdavid commented Nov 26, 2024

Description

This PR refactors the ContactPage to improve code readability and maintainability by extracting repeating HTML structures into a separate React component. The extracted component encapsulates shared logic and markup, ensuring the ContactPage remains clean and focused on its specific functionality.

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 solution/studio/designer Issues related to the Altinn Studio Designer solution. skip-releasenotes Issues that do not make sense to list in our release notes area/studio-root Area: Issues related to studio-root application frontend labels Nov 26, 2024
@framitdavid framitdavid marked this pull request as ready for review November 26, 2024 10:22
Copy link
Contributor

@wrt95 wrt95 left a comment

Choose a reason for hiding this comment

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

Some small comments added 😄

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.33%. Comparing base (ab1a970) to head (8b410a2).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14169   +/-   ##
=======================================
  Coverage   95.33%   95.33%           
=======================================
  Files        1783     1785    +2     
  Lines       23230    23236    +6     
  Branches     2693     2694    +1     
=======================================
+ Hits        22147    22153    +6     
  Misses        836      836           
  Partials      247      247           

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

Copy link
Contributor

@wrt95 wrt95 left a comment

Choose a reason for hiding this comment

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

🥳

@framitdavid framitdavid added the skip-manual-testing PRs that do not need to be tested manually label Nov 27, 2024
@framitdavid framitdavid merged commit d67600e into main Nov 27, 2024
10 checks passed
@framitdavid framitdavid deleted the refactor/studioRootContactSection branch November 27, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/studio-root Area: Issues related to studio-root application frontend skip-manual-testing PRs that do not need to be tested manually skip-releasenotes Issues that do not make sense to list in our release notes solution/studio/designer Issues related to the Altinn Studio Designer solution. team/studio-core
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants