-
Notifications
You must be signed in to change notification settings - Fork 22
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
🐾 Update to PF5 - part II - onClick event handler #1208
Merged
yaacov
merged 1 commit into
kubev2v:main
from
sgratch:onclick-event-handler-naming-typed
Jun 19, 2024
Merged
🐾 Update to PF5 - part II - onClick event handler #1208
yaacov
merged 1 commit into
kubev2v:main
from
sgratch:onclick-event-handler-naming-typed
Jun 19, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yaacov
reviewed
Jun 10, 2024
...-console-plugin/src/modules/NetworkMaps/views/details/components/MapsSection/MapsSection.tsx
Show resolved
Hide resolved
yaacov
reviewed
Jun 10, 2024
packages/common/src/components/ActionServiceDropdown/ActionServiceDropdown.tsx
Outdated
Show resolved
Hide resolved
yaacov
reviewed
Jun 10, 2024
packages/common/src/components/ActionServiceDropdown/ActionServiceDropdown.tsx
Outdated
Show resolved
Hide resolved
yaacov
added
the
enhancement
Categorizes issue or PR as related to a new feature.
label
Jun 10, 2024
yaacov
changed the title
Update to PF5 - part II - onClick event handler
🐾 Update to PF5 - part II - onClick event handler
Jun 10, 2024
sgratch
force-pushed
the
onclick-event-handler-naming-typed
branch
from
June 16, 2024 18:21
071e6ea
to
fdaa1e7
Compare
Quality Gate passedIssues Measures |
yaacov
reviewed
Jun 17, 2024
...onsole-plugin/src/modules/Overview/views/overview/tabs/Metrics/cards/MigrationsChartCard.tsx
Outdated
Show resolved
Hide resolved
sgratch
force-pushed
the
onclick-event-handler-naming-typed
branch
from
June 17, 2024 15:02
fdaa1e7
to
00c76ce
Compare
yaacov
reviewed
Jun 18, 2024
...onsole-plugin/src/modules/Overview/views/overview/tabs/Metrics/cards/MigrationsChartCard.tsx
Outdated
Show resolved
Hide resolved
sgratch
force-pushed
the
onclick-event-handler-naming-typed
branch
from
June 18, 2024 11:27
00c76ce
to
dc9ee17
Compare
Reference: kubev2v#1098 Seems like onClick event handler parameters was changed in PF5 for few of the components by enforcing the event handler as the first parameter (E.g. https://www.patternfly.org/components/chip/#chip while in our code we are not passing the event https://github.com/kubev2v/forklift-console-plugin/blob/686daff412d61c5e84c14f7b87fe2867038fc14b/packages/forklift-console-plugin/src/modules/Plans/views/create/components/ChipsToolbarProviders.tsx#L40). For avoiding uncaught migration errors, this PR named and typed all callback appearances, when possible Signed-off-by: Sharon Gratch <[email protected]>
sgratch
force-pushed
the
onclick-event-handler-naming-typed
branch
from
June 18, 2024 21:01
dc9ee17
to
5c6e273
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reference: #1098
Include 2 changes:
onClick
event handler parameters were not changed in PF5.But to be on the safe side and avoid uncaught PF 4 -> PF 5 migration errors, this PR typed (i.e. (add type to function
signature) all
onClick
callback appearances which include the event parameter.onClick
callback appearances (when possible).