Skip to content

ROX-33770: Replace PropTypes in KeepBothSection component#19583

Merged
pedrottimark merged 1 commit intomasterfrom
ROX-33770-PropTypes-KeepBothSection
Mar 26, 2026
Merged

ROX-33770: Replace PropTypes in KeepBothSection component#19583
pedrottimark merged 1 commit intomasterfrom
ROX-33770-PropTypes-KeepBothSection

Conversation

@pedrottimark
Copy link
Contributor

@pedrottimark pedrottimark commented Mar 24, 2026

Description

Follow up no-non-deprecated-PropTypes lint rule in #19548

Analysis

Sibling component has the usual component props type definition.

Solution

  1. Edit KeepBothSection.tsx file.

    • Replace PropTypes with KeepBothSectionProps type.
    • Add string type for name and value arguments.
  2. Edit RenamePolicySection.tsx file.

    • Add string type for name and value arguments.

Residue

  1. Too bad, so sad that handler argument still has implicit any.

    Whenever we resume implicit any removal effort, I think we will rewrite:

    • Without partially applied function pattern, which seems to break encapsulation of the formik update.

      That is, pass updateResolution function as a prop, if needed.

    • Maybe even without formik Field element.

User-facing documentation

  • CHANGELOG.md update is not needed
  • documentation PR is not needed

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • edited lint configuration
  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

  1. npm run tsc in ui/apps/platform folder.
  2. npm run lint:fast-dev in ui/apps/platform folder.

@pedrottimark pedrottimark requested a review from a team as a code owner March 24, 2026 20:54
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at bb81487.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-434-gbb81487f73.

@codecov
Copy link

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.26%. Comparing base (5d84b54) to head (bb81487).
⚠️ Report is 23 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19583      +/-   ##
==========================================
- Coverage   49.26%   49.26%   -0.01%     
==========================================
  Files        2735     2735              
  Lines      206138   206138              
==========================================
- Hits       101550   101549       -1     
- Misses      97041    97043       +2     
+ Partials     7547     7546       -1     
Flag Coverage Δ
go-unit-tests 49.26% <ø> (-0.01%) ⬇️

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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pedrottimark pedrottimark merged commit dbe6a22 into master Mar 26, 2026
91 of 92 checks passed
@pedrottimark pedrottimark deleted the ROX-33770-PropTypes-KeepBothSection branch March 26, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants