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

MTV-2197: Plan name error text wrong for special characters #1527

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

avivtur
Copy link
Collaborator

@avivtur avivtur commented Mar 18, 2025

📝 Links

References: https://issues.redhat.com/browse/MTV-2197

📝 Description

we validate different conditions but we have same validation error message for all types of error.
separated messages according to the error.

🎥 Demo

fix-plan-name-validation.mp4

📝 CC://

@tag as needed

@avivtur avivtur force-pushed the unique-chars-plan-name branch from 3271b23 to 8a49d02 Compare March 18, 2025 18:07
@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 36.14%. Comparing base (13484d0) to head (71cb12d).
Report is 375 commits behind head on main.

Files with missing lines Patch % Lines
...ackages/forklift-console-plugin/src/utils/i18n.tsx 66.66% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1527      +/-   ##
==========================================
- Coverage   36.81%   36.14%   -0.67%     
==========================================
  Files         158      157       -1     
  Lines        2548     2606      +58     
  Branches      599      633      +34     
==========================================
+ Hits          938      942       +4     
- Misses       1428     1470      +42     
- Partials      182      194      +12     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -23,16 +23,27 @@ export const PlanNameTextField: React.FC<PlanNameTextFieldProps> = ({
const { t } = useForkliftTranslation();
const [isUpdated, setIsUpdated] = React.useState(false);

const getInvalidHelperText = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why in tsx file ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To avoid sending 3 params: value, validated and, t func

@avivtur avivtur force-pushed the unique-chars-plan-name branch 2 times, most recently from 6ffa3f4 to 75cc778 Compare March 19, 2025 11:14
@avivtur avivtur force-pushed the unique-chars-plan-name branch from 75cc778 to 71cb12d Compare March 19, 2025 11:47
@metalice metalice merged commit f9f6c18 into kubev2v:main Mar 19, 2025
5 checks passed
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.

3 participants