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

ft-google auth-#187419119 #10

Merged
merged 1 commit into from
Jun 27, 2024
Merged

ft-google auth-#187419119 #10

merged 1 commit into from
Jun 27, 2024

Conversation

MugemaneBertin2001
Copy link
Collaborator

@MugemaneBertin2001 MugemaneBertin2001 commented Jun 19, 2024

what does this PR do?

  • This pr enables the user to authenticate with existing Google account in eagles-ec-fe
    Screenshot 2024-06-19 184804
    Screenshot 2024-06-19 185123

Copy link

vercel bot commented Jun 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eagles-ec-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2024 0:39am

@MugemaneBertin2001 MugemaneBertin2001 changed the title Auth: user can login with google auth- Auth: user can login with google auth-#187419119 Jun 19, 2024
@MugemaneBertin2001 MugemaneBertin2001 changed the title Auth: user can login with google auth-#187419119 ft-google auth-#187419119 Jun 19, 2024
@MugemaneBertin2001 MugemaneBertin2001 force-pushed the ft-google-auth-#187419119 branch from a325f8e to 6737a9d Compare June 24, 2024 10:33
for (var ao = 0; ao < X; ++ao) {
aa = T[ao];
ai = ag.match(aa[1]);
if (ai) {
Copy link

Choose a reason for hiding this comment

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

Avoid deeply nested control flow statements.

if (af === "u" || af === "x") {
return parseInt(ah.substring(2), 16);
} else {
return ah.charCodeAt(1);
Copy link

Choose a reason for hiding this comment

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

Avoid too many return statements within this function.

var Z = [];
var W = 0;
var S;
if (V.currentStyle) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

var ab = /\r\n?|\n/;
var ac = V.ownerDocument;
var S;
if (V.currentStyle) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@@ -0,0 +1,85 @@
/* eslint-disable */
var jumpToCode = (function init() {
Copy link

Choose a reason for hiding this comment

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

Function init has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5100 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5116 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5116 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5125 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 5790 lines exceeds the maximum allowed for the inline comments feature.

@MugemaneBertin2001 MugemaneBertin2001 force-pushed the ft-google-auth-#187419119 branch from fc10cd9 to 407bd3e Compare June 27, 2024 10:02
@@ -0,0 +1,196 @@
/* eslint-disable */
var addSorting = (function() {
Copy link

Choose a reason for hiding this comment

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

Function addSorting has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.

<button
type="submit"
className="border flex items-center justify-center py-3 px-10 text-[13px] md:text-lg rounded-sm"
<a
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 2 locations. Consider refactoring.

<button
type="button"
className="border flex items-center font-normal justify-center py-2.5 text-[16px] rounded-sm"
<a
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 2 locations. Consider refactoring.

@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2024

Codecov Report

Attention: Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.37%. Comparing base (1b6ad2e) to head (ddd157b).

Files Patch % Lines
src/pages/Login.tsx 83.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #10      +/-   ##
==========================================
+ Coverage   76.05%   76.37%   +0.32%     
==========================================
  Files          37       38       +1     
  Lines         618      635      +17     
  Branches       66       68       +2     
==========================================
+ Hits          470      485      +15     
- Misses        146      149       +3     
+ Partials        2        1       -1     

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

Copy link
Collaborator

@soleil00 soleil00 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -26,7 +26,7 @@ jobs:
node-version: "20"

- name: Install dependencies
run: npm install
run: npm install --legacy-peer-deps
Copy link
Member

Choose a reason for hiding this comment

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

don't change this

npm run test
# npm run test
Copy link
Member

Choose a reason for hiding this comment

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

uncomment this

.env Outdated
@@ -0,0 +1 @@
VITE_BASE_URL = http://localhost:499/api/v1
Copy link
Member

Choose a reason for hiding this comment

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

don't push .env create .env.example instead

@MugemaneBertin2001 MugemaneBertin2001 force-pushed the ft-google-auth-#187419119 branch from 18b5946 to ddd157b Compare June 27, 2024 12:39
Copy link

codeclimate bot commented Jun 27, 2024

Code Climate has analyzed commit ddd157b and detected 0 issues on this pull request.

View more on Code Climate.

@teerenzo teerenzo merged commit 7136e3b into dev Jun 27, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants