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

MGC-JUL-24 | PRISCILLA MAC-GATUS|TASK-TRACKER|WEEK1 #3

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ed5fcae
Task Track Week 1 completed
Priscilla-MacGatus Feb 5, 2025
eb4469e
Cleared initial comments and gave a special id to each task item in t…
Priscilla-MacGatus Feb 7, 2025
9fd8690
Updated .gitignore to exclude .vscode directory
Priscilla-MacGatus Feb 7, 2025
b638437
Erased all other irrelevant comments and div mainContainer to avoid …
Priscilla-MacGatus Feb 7, 2025
b66f2e1
change the button tags to span for status section
Priscilla-MacGatus Feb 7, 2025
b18cfb0
Created separated components for each icon and adjusted css styling
Priscilla-MacGatus Feb 7, 2025
9395018
ADjusted margin css styling
Priscilla-MacGatus Feb 7, 2025
7e82138
Removed all 'import from react from the icon file"
Priscilla-MacGatus Feb 7, 2025
bbd2dac
Cleared taskItem component from the App
Priscilla-MacGatus Feb 9, 2025
0e9e8c1
Assigned a usestate with an array of object of task items
Priscilla-MacGatus Feb 9, 2025
4dc43df
Added a new-task file and created a new task component
Priscilla-MacGatus Feb 9, 2025
342d6a6
imported and added the newtaskform to the app component
Priscilla-MacGatus Feb 9, 2025
bd527cf
Inserted parameters into the newTask function
Priscilla-MacGatus Feb 9, 2025
61545c4
Corrected error with setState, inserted taskListINfo to the taskList …
Priscilla-MacGatus Feb 9, 2025
e369ef1
inserted a missing closing div tag
Priscilla-MacGatus Feb 9, 2025
d06ea08
set state for each elements and passed function as a prop with each p…
Priscilla-MacGatus Feb 9, 2025
1b64294
Moved files to the right file path
Priscilla-MacGatus Feb 9, 2025
3436d40
applied classname and id to the new task elements
Priscilla-MacGatus Feb 9, 2025
53700c7
Passed tasklistinfo as a prop to tasklist component
Priscilla-MacGatus Feb 9, 2025
97ebd34
Fixed error with file path
Priscilla-MacGatus Feb 9, 2025
391b1b9
Replaced all variable or parameters of name ProjectState to ProjectSt…
Priscilla-MacGatus Feb 9, 2025
9b5decd
Applied css class properties to new Task and added a new css file
Priscilla-MacGatus Feb 9, 2025
07f3a5a
Added a classname to the task input
Priscilla-MacGatus Feb 9, 2025
45d197e
Changed letter casing for all state input with different casing
Priscilla-MacGatus Feb 10, 2025
3d0556f
Added a new class naw and applied css styling to all elements
Priscilla-MacGatus Feb 10, 2025
6f69a49
Applied css styling to the h2 heading tag
Priscilla-MacGatus Feb 10, 2025
676a5ca
Added a function clearfields and attached it to the button
Priscilla-MacGatus Feb 10, 2025
88db617
Used a more descriptive name for handlers
Priscilla-MacGatus Feb 16, 2025
8bd52d8
Changed casing from pascal casing to camel casing
Priscilla-MacGatus Feb 16, 2025
505edfd
defined the function before the return keyword and called it in the…
Priscilla-MacGatus Feb 16, 2025
148b733
Handle dynamic participant list using .join()
Priscilla-MacGatus Feb 16, 2025
696f613
changed the name of the file and location.Took the isRequired keyword…
Priscilla-MacGatus Feb 16, 2025
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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cSpell.words": ["Ebetsam", "Umair"]
}
6 changes: 6 additions & 0 deletions package-lock.json

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

35 changes: 32 additions & 3 deletions web/package-lock.json

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

66 changes: 64 additions & 2 deletions web/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,71 @@
import { TaskList } from './components/domains/task/TaskList/TaskList';
import { useState } from 'react';
import TaskList from './components/domains/task/TaskList/TaskList';
import NewTaskForm from './components/domains/task/NewTask/NewTask.jsx';

function App() {
const [TaskListInfo, setTaskListInfo] = useState([
{
id: 'T1',
ProjectTask: 'Rework UI/UX',
ProjectStatus: 'Low',
date: '12/05/2025',
participants: ['Said', ' Rachel'],
project: 'Timer App',
},
{
id: 'T2',
ProjectTask: 'Dark Mode Toggle',
ProjectStatus: 'High',
date: '09/03/2025',
participants: ['Umair', ' Precious'],
project: 'ASA DarkMode Feature',
},
{
id: 'T3',
ProjectTask: 'Accessibility Checks',
ProjectStatus: 'Medium',
date: '15/04/2025',
participants: ['Micheal', ' Ricardo'],
project: 'Timer App',
},
{
id: 'T4',
ProjectTask: 'Notification Integration',
ProjectStatus: 'High',
date: '11/03/2025',
participants: ['Ebetsam', ' Deborah'],
project: 'Timer App',
},
]);

const newTask = (
taskName,
ProjectStatus,
deadline,
participants,
projectName,
) => {
setTaskListInfo((prevTaskInfo) => [
...prevTaskInfo,
{
id: `T${prevTaskInfo.length + 1}`,
ProjectTask: taskName,
ProjectStatus: ProjectStatus.toLowerCase()
.split(' ')
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(' '),
date: deadline,
participants: participants.split(','),
project: projectName,
},
]);
};

return (
<>
<TaskList />
<TaskList TaskListInfo={TaskListInfo}></TaskList>

<NewTaskForm onHandleNewTask={newTask}></NewTaskForm>
</>
);
}
Expand Down
47 changes: 47 additions & 0 deletions web/src/components/Icons/participantIcon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const ParticipantIcon = () => (
<svg
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g clipPath="url(#clip0_2106_140)">
<path
d="M14.1666 17.5V15.8333C14.1666 14.9493 13.8154 14.1014 13.1903 13.4763C12.5652 12.8512 11.7173 12.5 10.8333 12.5H4.16659C3.28253 12.5 2.43468 12.8512 1.80956 13.4763C1.18444 14.1014 0.833252 14.9493 0.833252 15.8333V17.5"
stroke="black"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M7.50008 9.16667C9.34103 9.16667 10.8334 7.67428 10.8334 5.83333C10.8334 3.99238 9.34103 2.5 7.50008 2.5C5.65913 2.5 4.16675 3.99238 4.16675 5.83333C4.16675 7.67428 5.65913 9.16667 7.50008 9.16667Z"
stroke="black"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M19.1667 17.5V15.8333C19.1662 15.0948 18.9204 14.3773 18.4679 13.7936C18.0154 13.2099 17.3819 12.793 16.6667 12.6083"
stroke="black"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M13.3333 2.60833C14.0503 2.79191 14.6858 3.20891 15.1396 3.79359C15.5935 4.37826 15.8398 5.09735 15.8398 5.8375C15.8398 6.57764 15.5935 7.29673 15.1396 7.8814C14.6858 8.46608 14.0503 8.88308 13.3333 9.06666"
stroke="black"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</g>
<defs>
<clipPath id="clip0_2106_140">
<rect width="20" height="20" fill="white" />
</clipPath>
</defs>
</svg>
);

export default ParticipantIcon;
Loading