Skip to content

Conversation

@aniketkatkar97
Copy link
Member

Fix the overflow issue while uploading a certification file with a long name.

Before:

Screen.Recording.2025-12-11.at.10.34.40.AM.mov

After:

Screen.Recording.2025-12-11.at.10.35.07.AM.mov

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to fix an overflow issue when uploading certificate files with long names in service forms. The fix adds CSS width constraints to the password widget component to prevent UI overflow. However, the PR also includes unrelated code formatting changes in DomainUtils.tsx and has a critical issue in the new E2E test where an extremely long certificate string is used as a filename, which could cause filesystem errors.

Key Changes:

  • CSS fix: Added width: 100% to .password-widget class and m-t-sm margin to Radio.Group
  • New E2E test: Added test coverage for SSL certificate upload functionality
  • Unrelated: Code formatting improvements in DomainUtils.tsx

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
openmetadata-ui/src/main/resources/ui/src/components/common/Form/JSONSchema/JsonSchemaWidgets/password-widget.less Added width: 100% to password-widget class to constrain width and prevent overflow
openmetadata-ui/src/main/resources/ui/src/components/common/Form/JSONSchema/JsonSchemaWidgets/PasswordWidget.tsx Added m-t-sm margin class to Radio.Group for better spacing
openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ServiceForm.spec.ts Added E2E test for SSL certificate upload, but uses CERT_FILE constant as filename (critical bug)
openmetadata-ui/src/main/resources/ui/playwright/constant/serviceForm.ts Added CERT_FILE constant with mock certificate data (very long string)
openmetadata-ui/src/main/resources/ui/src/utils/DomainUtils.tsx Unrelated formatting changes: updated copyright year and reformatted long lines for readability

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants