-
-
Notifications
You must be signed in to change notification settings - Fork 42
Feature : Built a Github Analytics Dashboard With Repository And Contributor-Level Insights #58
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
base: main
Are you sure you want to change the base?
Changes from all commits
fccdaf2
35316fc
94a446c
f949348
059dc85
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,58 @@ | ||
| /* #root { | ||
| max-width: 1280px; | ||
| margin: 0 auto; | ||
| padding: 2rem; | ||
| text-align: center; | ||
| } */ | ||
| /* @import "tailwindcss"; */ | ||
| #root { | ||
| max-width: 1280px; | ||
| margin: 0 auto; | ||
| padding: 2rem; | ||
| text-align: center; | ||
| } | ||
|
|
||
| body { | ||
| background: #0f172a; | ||
| color: #e2e8f0; | ||
| font-family: "Inter", sans-serif; | ||
| } | ||
|
|
||
| .chart-container { | ||
| margin-top: 30px; | ||
| padding: 20px; | ||
| border-radius: 16px; | ||
| background: rgba(255, 255, 255, 0.05); | ||
| backdrop-filter: blur(10px); | ||
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); | ||
| } | ||
|
|
||
| h1 { | ||
| font-size: 32px; | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| h2 { | ||
| margin-bottom: 10px; | ||
| } | ||
|
|
||
| table { | ||
| width: 100%; | ||
| border-collapse: collapse; | ||
| margin-top: 20px; | ||
| } | ||
|
|
||
| th, td { | ||
| padding: 10px; | ||
| border-bottom: 1px solid #444; | ||
| text-align: left; | ||
| } | ||
|
|
||
| th { | ||
| cursor: pointer; | ||
| color: #38bdf8; | ||
| } | ||
|
|
||
| tr:hover { | ||
| background: rgba(255,255,255,0.05); | ||
|
Comment on lines
+30
to
+57
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overly broad global selectors will leak into unrelated UI. Styling bare
Scope these under a class (e.g., 🤖 Prompt for AI Agents |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,37 @@ | ||
| import './App.css' | ||
| import { useState } from "react"; | ||
| import { Routes, Route } from "react-router-dom"; | ||
|
|
||
| function App() { | ||
| import DashboardLayout from "./layout/DashboardLayout"; | ||
| import Overview from "./pages/Overview"; | ||
| import Repositories from "./pages/Repositories"; | ||
| import GraphPage from "./pages/GraphPage"; | ||
| import ContributorDetail from "./pages/ContributorDetail"; | ||
| import RepoDetails from "./pages/RepoDetails"; | ||
|
|
||
| export default function App() { | ||
| const [orgInput, setOrgInput] = useState(""); | ||
| const [orgLogo, setOrgLogo] = useState(""); | ||
|
|
||
| return ( | ||
| <> | ||
| <h1>Hello, OrgExplorer!</h1> | ||
| </> | ||
| ) | ||
| } | ||
| <DashboardLayout orgInput={orgInput} orgLogo={orgLogo}> | ||
| <Routes> | ||
| <Route | ||
| path="/" | ||
| element={ | ||
| <Overview | ||
| orgInput={orgInput} | ||
| setOrgInput={setOrgInput} | ||
| setOrgLogo={setOrgLogo} | ||
| /> | ||
| } | ||
| /> | ||
|
|
||
| <Route path="/repositories" element={<Repositories />} /> | ||
| <Route path="/graph" element={<GraphPage />} /> | ||
| <Route path="/contributor/:username" element={<ContributorDetail />} /> | ||
| <Route path="/repo/:name" element={<RepoDetails />} /> | ||
|
|
||
| export default App | ||
| </Routes> | ||
| </DashboardLayout> | ||
| ); | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||||||||||||||||||||||||||
| interface Props { | ||||||||||||||||||||||||||||||
| title: string; | ||||||||||||||||||||||||||||||
| value: string | number; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| export default function StatCard({ title, value }: Props) { | ||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||
| <div className="bg-[#1F2937] p-4 rounded-xl h-32"> | ||||||||||||||||||||||||||||||
| <p className="text-gray-400 text-sm">{title}</p> | ||||||||||||||||||||||||||||||
| <h2 className="text-2xl font-bold text-green-400">{value}</h2> | ||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||
|
Comment on lines
+6
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Use non-heading element (or appropriate level) for the value, and rename the file to PascalCase.
♻️ Proposed change- <div className="bg-[`#1F2937`] p-4 rounded-xl h-32">
+ <div className="bg-[`#1F2937`] p-4 rounded-xl h-32">
<p className="text-gray-400 text-sm">{title}</p>
- <h2 className="text-2xl font-bold text-green-400">{value}</h2>
+ <p className="text-2xl font-bold text-green-400">{value}</p>
</div>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
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.
Remove quotes around
Interper Stylelint.Stylelint
font-family-name-quotesflags this.Interis a single identifier with no spaces/special chars and shouldn't be quoted.📝 Committable suggestion
🧰 Tools
🪛 Stylelint (17.7.0)
[error] 18-18: Expected no quotes around "Inter" (font-family-name-quotes)
(font-family-name-quotes)
🤖 Prompt for AI Agents