From 0da915160334254a80f45a0e86602ba71ec4358e Mon Sep 17 00:00:00 2001 From: SANKALP PANDEY Date: Tue, 13 Feb 2024 19:37:25 +0530 Subject: [PATCH] FEAT: added the total lang analyssi card --- .../FollowerAnalysis/FollowerProgress.tsx | 2 +- .../FollowerAnalysis/FollowingProgress.tsx | 2 +- .../LanguageAnalysis/TotalLangProgress.tsx | 47 ++++++++++++++----- src/Components/Repository/RepoProgress.tsx | 2 +- src/Styles/Dashboard/langCount.css | 27 ++++++++++- src/app/Dashboard/page.tsx | 3 +- 6 files changed, 64 insertions(+), 19 deletions(-) diff --git a/src/Components/FollowerAnalysis/FollowerProgress.tsx b/src/Components/FollowerAnalysis/FollowerProgress.tsx index f51c85b..d2e643a 100644 --- a/src/Components/FollowerAnalysis/FollowerProgress.tsx +++ b/src/Components/FollowerAnalysis/FollowerProgress.tsx @@ -36,7 +36,7 @@ const FollowerProgress: React.FC = ({ tooltip="Followers" color={"green"} > - {followerCount} + {followerCount} {increaseOrDecrease === "no_change" ? ( = ({ tooltip="Following" color={"purple"} - > {followingCount} + > {followingCount} {increaseOrDecrease === "no_change" ? ( No Change diff --git a/src/Components/LanguageAnalysis/TotalLangProgress.tsx b/src/Components/LanguageAnalysis/TotalLangProgress.tsx index 48e0e57..0726b17 100644 --- a/src/Components/LanguageAnalysis/TotalLangProgress.tsx +++ b/src/Components/LanguageAnalysis/TotalLangProgress.tsx @@ -1,21 +1,42 @@ -import React from "react"; -import { Card, BarList,ProgressBar } from "@tremor/react"; -import { TotalLangAnalysis } from "@/Interface/api.interface"; +import React , {useState} from "react"; +import { + Card, + Flex, + ProgressCircle, + BadgeDelta, +} from "@tremor/react"; +import { RoughNotation } from "react-rough-notation"; +import {TotalLangAnalysis} from "@/Interface/api.interface"; const TotalLangProgress: React.FC = ({ - TotalCodePushedSinceJoingingGit, +TotalCodePushedSinceJoingingGit }) => { + const [show, setShow] = useState(true); + return ( +
+
+ +
+ {show && ( + +

Lines of code pushed

+
+ )} +
- const bars = [ - { name: "Total Count", value: TotalCodePushedSinceJoingingGit }, - ]; + -
- - - + > {TotalCodePushedSinceJoingingGit}
+ + +
); }; diff --git a/src/Components/Repository/RepoProgress.tsx b/src/Components/Repository/RepoProgress.tsx index 4e4d172..26a6d6c 100644 --- a/src/Components/Repository/RepoProgress.tsx +++ b/src/Components/Repository/RepoProgress.tsx @@ -36,7 +36,7 @@ const RepoProgress: React.FC = ({ tooltip="Followers" color={"pink"} > - {RepoCount} + {RepoCount} {increaseOrDecrease === "no_change" ? ( { - + @@ -230,6 +230,7 @@ const VersionDashboard: React.FC = () => {
+