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(ui): show 1915(c) Appendix K Package Details for withdrawn children #671

Merged
merged 11 commits into from
Jul 31, 2024

Conversation

asharonbaltazar
Copy link
Collaborator

@asharonbaltazar asharonbaltazar commented Jul 23, 2024

Purpose

Show a 1915(c) Appendix K Package Details header for withdrawn Appk children. Previously, it was hard to associate the packages from their parent because nothing was tying them (other than an object in the package changelog).

Linked Issues to Close

https://qmacbis.atlassian.net/browse/OY2-28784

Approach

  • add appkParent: true to object when it's created to signify its new independent status
  • move title variable into component and remove unnecessary hook call by passing down props

@asharonbaltazar asharonbaltazar marked this pull request as ready for review July 23, 2024 20:51
@asharonbaltazar asharonbaltazar marked this pull request as draft July 24, 2024 14:49
itemResult: ItemResult;
};

export const PackageDetails = ({ itemResult }: PackageDetailsProps) => {
Copy link

Choose a reason for hiding this comment

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

Function PackageDetails has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.

Copy link

codeclimate bot commented Jul 26, 2024

Code Climate has analyzed commit ace51e8 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

The test coverage on the diff in this pull request is 11.7% (50% is the threshold).

This pull request will bring the total coverage in the repository to 39.9% (0.0% change).

View more on Code Climate.

Copy link
Contributor

@mdial89f mdial89f 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

@mdial89f
Copy link
Contributor

ignore code climate

@asharonbaltazar asharonbaltazar merged commit 37175e4 into master Jul 31, 2024
14 of 15 checks passed
@asharonbaltazar asharonbaltazar deleted the child-appk-header branch July 31, 2024 14:46
Copy link
Contributor

🎉 This PR is included in version 1.5.0-val.68 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants