Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit 4fb02fe

Browse files
authored
fixes & Release Ready
1 parent 0fa3c03 commit 4fb02fe

File tree

16 files changed

+180
-98
lines changed

16 files changed

+180
-98
lines changed

README.md

Lines changed: 59 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,67 @@
1-
# React + TypeScript + Vite
1+
# Project Pilot
22

3-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3+
## Overview
44

5-
Currently, two official plugins are available:
5+
A React-based project management application designed to enhance collaboration, finance management, and task management. The application features tailored user interfaces for different roles:
66

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7+
- **Project Manager (PM)**
8+
- **Finance Manager (FM)**
9+
- **Scrum Master (SM)**
10+
- **Employee (E)**
911

10-
## Expanding the ESLint configuration
12+
## Key Features
1113

12-
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
14+
- **Collaboration Tools**: Facilitate team collaboration.
15+
- **Finance Management**: Manage project budgets and expenses.
16+
- **Task Management**: Assign and track tasks for team members.
17+
- **Role-Specific UI**: Customized user experience based on roles.
1318

14-
- Configure the top-level `parserOptions` property like this:
19+
## Getting Started
1520

16-
```js
17-
export default {
18-
// other rules...
19-
parserOptions: {
20-
ecmaVersion: 'latest',
21-
sourceType: 'module',
22-
project: ['./tsconfig.json', './tsconfig.node.json'],
23-
tsconfigRootDir: __dirname,
24-
},
25-
}
26-
```
21+
1. **Fetch Local Data**:
22+
- Scroll to the bottom of the page.
23+
- Click on the footer.
24+
- Navigate to "Data Refresh" to store data locally in the browser.
2725

28-
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29-
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
26+
2. **Login**:
27+
- Scroll to the bottom of the homepage.
28+
- Click on "Login" or "Manage Account" from the footer.
29+
30+
3. **Sign In**:
31+
- Use the following credentials:
32+
33+
| Username | Password |
34+
| -------------- | -------- |
35+
| pm | p |
36+
| fm | f |
37+
| sm | s |
38+
| employee:e/1 | (empty) |
39+
| employee:e/2 | (empty) |
40+
| employee:e/3 | (empty) |
41+
42+
4. **Dashboard**:
43+
- Upon signing in, you will be redirected to your respective dashboard.
44+
45+
## Detailed Functionality
46+
47+
- **Project Manager (PM)**:
48+
- Create projects.
49+
- View overview of expenses and tasks.
50+
51+
- **Finance Manager (FM)**:
52+
- Allocate funds.
53+
- Create and manage expenses.
54+
55+
- **Scrum Master (SM)**:
56+
- Assign tasks to employees.
57+
58+
- **Employee (E)**:
59+
- View assigned tasks.
60+
61+
## Conclusion
62+
63+
This project management application provides a comprehensive solution for team collaboration, financial oversight, and task management, ensuring a streamlined workflow tailored to specific user roles.
64+
65+
##### `DEPRICATED AS OF JULY-2024`
66+
67+
[![wakatime](https://wakatime.com/badge/user/94eceae7-683a-4d18-a44b-59d4ffd2eb5d/project/32051a46-239e-4241-8dad-76e9a347ad49.svg)](https://wakatime.com/badge/user/94eceae7-683a-4d18-a44b-59d4ffd2eb5d/project/32051a46-239e-4241-8dad-76e9a347ad49)

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>App</title>
7+
<title>Project-Pilot</title>
88
<script src="https://cdn.tailwindcss.com"></script>
99
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.min.css" rel="stylesheet" type="text/css" />
1010
<link rel="icon" href="./src/assets/logo/Logo.svg" type="image/svg+xml">

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "project-pilot",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "1.0.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/components/Notice.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export const Notice = () => {
2+
return (
3+
<div role="alert" className="alert alert-error w-fit p-1 px-2">
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
className="h-6 w-6 shrink-0 stroke-current"
7+
fill="none"
8+
viewBox="0 0 24 24">
9+
<path
10+
strokeLinecap="round"
11+
strokeLinejoin="round"
12+
strokeWidth="2"
13+
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
14+
</svg>
15+
<>DEPRICATED AS OF JULY-2024</>
16+
</div>
17+
)
18+
}

src/components/fm/FMTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const FMTable = () => {
125125
return (
126126
<div>
127127
<h2 className='mt-10 text-2xl font-semibold'>Other Expenses Tracker</h2>
128-
<div className={`card card-table !w-fit overflow-x-auto ${animations ? 'skeleton slide-up' : 'bg-base-100'}`}>
128+
<div className={`card card-table !w-fit overflow-x-auto ${animations ? 'bg-base-100 slide-up' : 'bg-base-100'}`}>
129129
<table className="table cursor-default text-xl">
130130

131131
<thead>
Lines changed: 66 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,73 @@
11
import { Link } from "react-router-dom"
22
import LogoSVG from "../../assets/logo/LogoSVG"
3+
import { useState } from "react"
34

45
export const AppFooter = () => {
6+
const [show, setShow] = useState(true)
57
return (
6-
<footer className="footer bg-base-200 rounded-t-3xl border-t-2 border-slate-300 text-base-content mt-10 p-10">
7-
<aside>
8-
<LogoSVG size={50} />
9-
<p>
10-
Project-Pilot
11-
<br />
12-
Your project, our platform
13-
</p>
14-
</aside>
15-
<nav>
16-
<h6 className="footer-title">Services</h6>
17-
<Link to={'/DataRefresh'}>
18-
<a className="link link-hover">Data Refresh</a>
19-
</Link>
20-
<a className="link link-hover">Design</a>
21-
<a className="link link-hover">Marketing</a>
22-
<a className="link link-hover">Advertisement</a>
23-
</nav>
24-
<nav>
25-
<h6 className="footer-title">Company</h6>
26-
<a className="link link-hover">About us</a>
27-
<a className="link link-hover">Contact</a>
28-
<a className="link link-hover">Jobs</a>
29-
<a className="link link-hover">Press kit</a>
30-
</nav>
31-
<nav>
32-
<h6 className="footer-title">Legal</h6>
33-
<a className="link link-hover">Terms of use</a>
34-
<a className="link link-hover">Privacy policy</a>
35-
<a className="link link-hover">Cookie policy</a>
36-
</nav>
37-
</footer>
8+
<div className="mt-10">
9+
{show ?
10+
<a href="#footer">
11+
<div className="text-center p-5 hover:bg-base-300 hover:cursor-pointer" onClick={() => { setShow(!show) }}>
12+
© 2024 Project-Pilot
13+
{show ? <i className="fas fa-chevron-up ml-2"></i> : <i className="fas fa-chevron-down ml-2"></i>}
14+
</div>
15+
</a>
16+
:
17+
<div>
18+
<footer id="footer" className="footer text-base-content p-10 bg-base-300">
19+
<aside>
20+
<LogoSVG size={50} />
21+
<p>
22+
Project-Pilot
23+
<br />
24+
Your project, our platform
25+
</p>
26+
</aside>
27+
<nav>
28+
</nav>
29+
<nav>
30+
</nav>
31+
<nav>
32+
<h6 className="footer-title">Features</h6>
33+
<a className="link link-hover group" target="_blank" href="https://github.com/pratikkabade/Project-Pilot/blob/main/README.md#getting-started">
34+
Getting Started
35+
<span className="opacity-0 group-hover:opacity-100"></span>
36+
</a>
37+
<Link to={'/DataRefresh'}>
38+
<a className="link link-hover">Data Refresh</a>
39+
</Link>
40+
<Link to={'/Login'}>
41+
<a className="link link-hover">Accounts Page</a>
42+
</Link>
43+
</nav>
44+
<nav>
45+
<h6 className="footer-title">Company</h6>
46+
<Link to={'/About'}>
47+
<a className="link link-hover">About</a>
48+
</Link>
49+
<a className="link link-hover group" target="_blank" href="https://github.com/pratikkabade/Project-Pilot/">
50+
GitHub
51+
<span className="opacity-0 group-hover:opacity-100"></span>
52+
</a>
53+
<a className="link link-hover group" target="_blank" href="https://github.com/pratikkabade/Project-Pilot/issues">
54+
Issues
55+
<span className="opacity-0 group-hover:opacity-100"></span>
56+
</a>
57+
<a className="link link-hover group" target="_blank" href="https://github.com/pratikkabade/Project-Pilot/projects?query=is%3Aopen">
58+
Roadmap
59+
<span className="opacity-0 group-hover:opacity-100"></span>
60+
</a>
61+
</nav>
62+
</footer>
63+
<a href="#footer">
64+
<div className="text-center p-5 bg-base-300 hover:bg-base-200 hover:cursor-pointer" onClick={() => { setShow(!show) }}>
65+
© 2024 Project-Pilot
66+
{show ? <i className="fas fa-chevron-down ml-2"></i> : <i className="fas fa-chevron-down ml-2"></i>}
67+
</div>
68+
</a>
69+
</div>
70+
}
71+
</div>
3872
)
3973
}

src/components/layout/AppNavbar.tsx

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
import { Link } from "react-router-dom";
22
import { ThemeToggler } from "../ThemeToggler";
33
import LogoSVG from "../../assets/logo/LogoSVG";
4-
import { useEffect, useState } from "react";
5-
import { GetItem, SetItem } from "../../functions/ArrayData";
6-
import PageName from "../../functions/PageName";
4+
// import { useEffect, useState } from "react";
5+
// import { GetItem, SetItem } from "../../functions/ArrayData";
76

87
export const AppNavbar = () => {
9-
const [id, setId] = useState(GetItem('login_details'));
8+
// const [id, setId] = useState(GetItem('login_details'));
109

11-
useEffect(() => {
12-
PageName('Project-Pilot');
13-
}, []);
14-
15-
useEffect(() => {
16-
console.log(`ID has changed to: ${id}`);
17-
}, [id]);
18-
19-
const handleSignOut = () => {
20-
SetItem('login_details', '');
21-
setId('');
22-
};
10+
// const handleSignOut = () => {
11+
// SetItem('login_details', '');
12+
// setId('');
13+
// };
2314

2415
return (
2516
<div className="navbar fixed z-50 shadow-xl backdrop-blur-sm bg-base-100 rounded-b-3xl px-4 pr-6">
2617
<div className="flex-1">
2718
<a className="btn btn-ghost text-xl hover:text-blue-600 hover:bg-base-100">
28-
<Link to={'/dashboard'} className="flex flex-row">
19+
<Link to={'/home'} className="flex flex-row">
2920
<LogoSVG size={30} />
3021
</Link>
31-
<Link to={'/home'} className="flex flex-row">
22+
<Link to={'/dashboard'} className="flex flex-row">
3223
Project-Pilot
3324
</Link>
3425
</a>
3526
</div>
3627
<div className="flex-none">
37-
<ul className="px-1 items-center mr-2 font-bold">
28+
{/* <ul className="px-1 items-center mr-2 font-bold">
3829
<li className="px-3">
3930
{
4031
!id ? (
@@ -48,7 +39,7 @@ export const AppNavbar = () => {
4839
)
4940
}
5041
</li>
51-
</ul>
42+
</ul> */}
5243
<ThemeToggler />
5344
</div>
5445
</div>

src/components/sm/SMTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const SMTable = () => {
113113
return (
114114
<div>
115115
<h2 className=' mt-10 text-2xl font-semibold'>Tasks insight</h2>
116-
<div className={`card card-table ${animations ? 'skeleton slide-up' : 'bg-base-100'}`}>
116+
<div className={`card card-table ${animations ? 'bg-base-100 slide-up' : 'bg-base-100'}`}>
117117
<table className="table cursor-default text-xl">
118118
<thead>
119119
<tr className="text-xl">

src/pages/DataRefresh.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const DataRefresh = () => {
1919
return (
2020
<div className='flex flex-row justify-center align-middle items-center py-40 pt-60'>
2121
<button
22-
className='btn btn-primary'
22+
className='btn btn-primary rounded-full'
2323
onClick={saveData}>
2424
DataRefresh
2525
</button>

0 commit comments

Comments
 (0)