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 WithUiId handling to use hook useWithUiId() #1555

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Nov 17, 2023

Following up on #1554, create hook useWithUiId() to handle injecting UI id to objects. Any object T going will to the hook will come out as a WithUiId<T> object.

Tables using the UI id have been adjusted to use the Constant UI_UNIQUE_ID as the WithUiId<T> table data idProperty.

All uses of WithUiId<T> are now handled the same way.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1a2f183) 39.18% compared to head (92d4864) 39.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1555      +/-   ##
==========================================
+ Coverage   39.18%   39.20%   +0.01%     
==========================================
  Files         146      146              
  Lines        4856     4857       +1     
  Branches     1164     1164              
==========================================
+ Hits         1903     1904       +1     
  Misses       2939     2939              
  Partials       14       14              
Flag Coverage Δ
client 39.20% <100.00%> (+0.01%) ⬆️
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@sjd78 sjd78 force-pushed the refactor_withuiid branch 3 times, most recently from d2d5b1f to 13ff1f8 Compare November 27, 2023 15:39
client/src/app/queries/issues.ts Outdated Show resolved Hide resolved
Following up on konveyor#1554, create hook `useWithUiId()` to handle injecting
UI id to objects.  Any object `T` going will to the hook will come out
as a `WithUiId<T>` object.

Tables using the UI id have been adjusted to use the Constant
`UI_UNIQUE_ID` as the `WithUiId<T>` table data `idProperty`.

All uses of `WithUiId<T>` are now handled the same way.

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
  - Doc language
  - Remove custom query hook return type interfaces in favor of
    using TS type inference

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
@sjd78 sjd78 merged commit b654645 into konveyor:main Dec 14, 2023
9 checks passed
@sjd78 sjd78 deleted the refactor_withuiid branch February 9, 2024 18:59
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