-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ISSUE-15100: add tooltip for field Text type #15159
Conversation
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Alexandr-Nedomets for the PR, i have left a few comments please let me know if you need any help! also, it would be great if you attach a video of your changes in the description
@@ -74,6 +74,7 @@ const TestCaseForm: React.FC<TestCaseFormProps> = ({ | |||
const isColumnFqn = dashboardType === ProfilerDashboardType.COLUMN; | |||
const [form] = Form.useForm(); | |||
const [testDefinitions, setTestDefinitions] = useState<TestDefinition[]>([]); | |||
const [testDefinition, setTestDefinition] = useState<TestDefinition>({} as TestDefinition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const [testDefinition, setTestDefinition] = useState<TestDefinition>({} as TestDefinition); | |
const [testDefinition, setTestDefinition] = useState<TestDefinition>(); |
onChange={(value) => { | ||
setTestDefinition( | ||
testDefinitions.find((item) => item.fullyQualifiedName === value) as TestDefinition | ||
); | ||
}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be great if we pull out the inline function to separate function in the code with below changes
onChange={(value) => { | |
setTestDefinition( | |
testDefinitions.find((item) => item.fullyQualifiedName === value) as TestDefinition | |
); | |
}}> | |
onChange={(value) => { | |
setTestDefinition( | |
testDefinitions.find((item) => item.fullyQualifiedName === value) | |
); | |
}}> |
|
Describe your changes:
Fixes
Add tooltip for field "Test type". Text(value from field description) in tooltip will change depend choose Test type.
Sometime comfortably get tooltip for native language
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>