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

fix:resolved sign-up distortion[#2133] #86

Closed
wants to merge 6 commits into from

Conversation

aakashreddy-p
Copy link

@aakashreddy-p aakashreddy-p commented Dec 12, 2024

Updated the CSS properties so that it can take large emails[#2133].

@aakashreddy-p aakashreddy-p added the bug Something isn't working label Dec 12, 2024
@aakashreddy-p aakashreddy-p self-assigned this Dec 12, 2024
Copy link

👋 Hey, the Quality Gate has PASSED.
✅Status: OK,
MetricKey: new_reliability_rating
Comparator: GT
ErrorThreshold: 1
ActualValue: 1

✅Status: OK,
MetricKey: new_security_rating
Comparator: GT
ErrorThreshold: 1
ActualValue: 1

✅Status: OK,
MetricKey: new_maintainability_rating
Comparator: GT
ErrorThreshold: 1
ActualValue: 1

✅Status: OK,
MetricKey: new_coverage
Comparator: LT
ErrorThreshold: 80
ActualValue: 0.0

✅Status: OK,
MetricKey: new_duplicated_lines_density
Comparator: GT
ErrorThreshold: 3
ActualValue: 0.0

Copy link

github-actions bot commented Dec 12, 2024

SonarQube Quality Gate Result

Metric Status Value Error Threshold
New reliability rating ✅ OK 1 > 1
New security rating ✅ OK 1 > 1
New maintainability rating ✅ OK 1 > 1
New coverage ❗ Error 0 < 80
New duplicated lines density ✅ OK 0 > 3

View on SonarQube

updated: 12/23/2024, 08:57:20 (UTC+0)

Copy link

👋 Hey, the Quality Gate has PASSED.
✅Status: OK,
MetricKey: new_reliability_rating
Comparator: GT
ErrorThreshold: 1
ActualValue: 1

✅Status: OK,
MetricKey: new_security_rating
Comparator: GT
ErrorThreshold: 1
ActualValue: 1

✅Status: OK,
MetricKey: new_maintainability_rating
Comparator: GT
ErrorThreshold: 1
ActualValue: 1

✅Status: OK,
MetricKey: new_coverage
Comparator: LT
ErrorThreshold: 80
ActualValue: 0.0

✅Status: OK,
MetricKey: new_duplicated_lines_density
Comparator: GT
ErrorThreshold: 3
ActualValue: 0.0

Comment on lines 246 to 251
<div class="d-flex flex-column mx-auto sparrow-fs-14 sparrow-fs-300">
<p>
Check your inbox for the verification code sent to <span
class="sparrow-fw-700 text-whiteColor cursor-pointer">{emailText}</span
Check your inbox for the verification code sent to<span
class="sparrow-fw-700 text-whiteColor cursor-pointer email-text d-inline-block">{emailText}</span
> and enter it below to proceed.
</p>
Copy link
Member

@itsmdasifraza itsmdasifraza Dec 20, 2024

Choose a reason for hiding this comment

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

Could you add a limit to crop the text and display an ellipsis (...) when it overflows?
https://github.com/sparrowapp-dev/sparrow-app-auth/pull/79/files
please refer to this pull request

Copy link
Author

Choose a reason for hiding this comment

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

@itsmdasifraza I will fix it.

@itsmdasifraza
Copy link
Member

Could you change the base branch to development

Copy link
Member

@Astitva877 Astitva877 left a comment

Choose a reason for hiding this comment

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

@aakashreddy-p whenever you raise PR, raise it in development not in main.

Copy link

👋 Hey, the Quality Gate has FAILED.
💣Status: ERROR,
MetricKey: new_coverage
Comparator: LT
ErrorThreshold: 80
ActualValue: 0.0

Copy link

👋 Hey, the Quality Gate has FAILED.
💣Status: ERROR,
MetricKey: new_coverage
Comparator: LT
ErrorThreshold: 80
ActualValue: 0.0

Comment on lines 23 to 25
let isRegistered = false;
let maxlength = 40;
let redirectRules = {
Copy link
Member

Choose a reason for hiding this comment

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

use

   const  MAX_LENGTH = 100;

Copy link
Author

Choose a reason for hiding this comment

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

okay

Comment on lines 227 to 231
// This function will reduce the email size if it is too long.
function handleEmail(text:string,maxlength:number){
if(text.length > maxlength){
return text.slice(0, maxlength) + "..."
}
Copy link
Member

Choose a reason for hiding this comment

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

use arrow function here, return type is missing

Copy link
Author

Choose a reason for hiding this comment

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

I will fix it

Comment on lines 233 to 234
}
$: EmailText = handleEmail(emailText, maxlength);
Copy link
Member

Choose a reason for hiding this comment

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

variable name should be camel case.

Copy link
Author

Choose a reason for hiding this comment

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

I will change it.

Copy link

👋 Hey, the Quality Gate has FAILED.
💣Status: ERROR,
MetricKey: new_coverage
Comparator: LT
ErrorThreshold: 80
ActualValue: 0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants