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 ReviewFields #1752

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Mar 8, 2024

Refactor the ReviewFields component in advance of #1745:

  • The component is used on the Review tab of application and archetype details drawer

  • The input prop reviews was not used in any current containing component. Push the useFetchReviews() hook down to the component itself. This keeps the data fetch as close as possible to where it is used.

  • Move the component to @app/components/detail-drawer folder since it is used in more than one page grouping

Refactor the `ReviewFields` component:

  - The component is used on the Review tab of application and
    archetype details drawer

  - The input prop `reviews` was not used in any current containing
    component.  Push the `useFetchReviews()` hook down to the component
    itself.  This keeps the data fetch as close as possible to where
    it is used.

  - Move the component to `@app/components/detail-drawer` folder
    since it is used in more than one page grouping

Refactoring in advance of konveyor#1745

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
Copy link
Member

@ibolton336 ibolton336 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 LGTM.

@ibolton336 ibolton336 merged commit 333cc04 into konveyor:main Mar 11, 2024
6 checks passed
@sjd78 sjd78 deleted the refator_ReviewFields branch March 12, 2024 16:46
@sjd78 sjd78 added this to the v0.3.1 milestone Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants