Skip to content

NO COMMIT 페이지 UI 개선 #613

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

Merged
merged 4 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [20.16.0]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion packages/view/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ body {
display: grid;
grid-template-columns: 4fr 1fr;
height: calc(100vh - 200px);

padding: 20px;
}

.no-commits-container{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: calc(100vh - 350px);

h1 {
margin: 40px 0 0 0;
}
}
13 changes: 9 additions & 4 deletions packages/view/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { container } from "tsyringe";
import { useEffect, useRef } from "react";
import BounceLoader from "react-spinners/BounceLoader";

import MonoLogo from "assets/monoLogo.svg";
import { BranchSelector, Statistics, TemporalFilter, ThemeSelector, VerticalClusterList } from "components";
import "./App.scss";
import type IDEPort from "ide/IDEPort";
Expand Down Expand Up @@ -74,14 +75,18 @@ const App = () => {
<div className="top-container">
<TemporalFilter />
</div>
<div className="middle-container">
<div>
{filteredData.length !== 0 ? (
<>
<div className="middle-container">
<VerticalClusterList />
<Statistics />
</>
</div>
) : (
<div>NO COMMIT EXISTS</div>
<div className="no-commits-container">
<MonoLogo />
<h1>No Commits Found.</h1>
<p>Make at least one commit to proceed.</p>
</div>
)}
</div>
</>
Expand Down
10 changes: 10 additions & 0 deletions packages/view/src/assets/monoLogo.svg
Copy link
Contributor

Choose a reason for hiding this comment

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

WOW🤩

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading