Skip to content

Commit

Permalink
fixing after mege problems
Browse files Browse the repository at this point in the history
  • Loading branch information
seangah8 committed Jan 18, 2025
1 parent db56d63 commit cf3b1ac
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 36 deletions.
3 changes: 0 additions & 3 deletions src/cmps/dynamicCmps/Members.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import { useSelector } from "react-redux";
export function Members({ cellId, group, task, members, onTaskUpdate, users }) {
const openModalId = useSelector(state => state.boardModule.openModal)
const modal = (openModalId === cellId)
useEffect(() => {
console.log(members)
}, [])

const modalRef = useRef(null)
const membersCellRef = useRef(null)
Expand Down
6 changes: 4 additions & 2 deletions src/cmps/dynamicCmps/modals/ChatModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export function ChatModal({
const [newReplies, setNewReplies] = useState(
chat.map(comment => ({ id: comment.sentAt, text: "" })))

console.log(users)

// toggel btween spectate and edit mode
function toggleEditMode() {
if (onEditMode) {
Expand Down Expand Up @@ -138,9 +140,9 @@ export function ChatModal({
const replier = getUserById(reply.userId);
return (
<li key={`${reply.sentAt}-${reply.userId}`} className="reply">
<img src={replier.imgUrl} alt={replier.name} />
<img src={replier.imgUrl} alt={replier.fullName} />
<div className="replay-container">
<p>{replier.name}</p>
<p>{replier.fullName}</p>
<p className="reply-text">{reply.text}</p>
</div>
<p className="reply-time">{simplifyTimeToStr(reply.sentAt)}</p>
Expand Down
1 change: 0 additions & 1 deletion src/cmps/dynamicCmps/progressCmps/P_Date.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { utilService } from "../../../services/util.service.js"
export function P_Date({tasks}){

const dates = tasks.map(task=> utilService.formatStrToDate(task.date))
console.log(dates)
const {firstDate, lastDate} = getFirstAndLastDate(dates)
const finalStr = betweenDatesStr(firstDate, lastDate)
const progressPrecentage = precentageOfToday(firstDate, lastDate)
Expand Down
7 changes: 2 additions & 5 deletions src/cmps/dynamicCmps/progressCmps/P_Members.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ export function P_Members({tasks}){
<div className="progress-members">
{
allMembers.length
? allMembers.map(member=><span key={member.id}>
<img src={member.imgUrl}/>
</span>)
? allMembers.map(member=>
<img key={member.id} src={member.imgUrl}/>)
: <img src={defultImg}/>


}
</div>
)
Expand Down
15 changes: 1 addition & 14 deletions src/services/board.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,20 +249,7 @@ async function makeFirstBoard() {
date: '27-02-2022',
status: { text: 'Working on it', color: '#FDAB3D' },
priority: { text: 'Low', color: '#86B6FB' },
chat: [
{
userId: 'userid0',
sentAt: new Date(),
text: 'comment comment comment...',
replies: [
{
userId: 'userid1',
sentAt: new Date(),
text: 'reply reply reply...',
},
],
},
],
chat: [],
},
{
id: 't102',
Expand Down
5 changes: 0 additions & 5 deletions src/styles/_login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
}
}

p {
// border-top: 1px solid #333;
// padding-top: 1rem;
}

a {
text-decoration: none;
color: #0073ea;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/dynamicCmps/modals/_ChatModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
z-index: 100;
position: absolute;
top: 0px; // temporary
right: 0px; // temporary
right: 300px; // temporary
width: 50%;
height: 600px;
background-color: white;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/dynamicCmps/progressCmps/_P_Date.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

.prog-box.with-date{
height: 50px; // temporary
padding: 5px;

.progress-date{
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions src/styles/dynamicCmps/progressCmps/_P_Members.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
margin-left: 5px;

img{
width: 35px;
height: 35px;
width: 30px;
height: 30px;
border-radius: 50%;
border: solid white 2px;
margin-left: -10px;
Expand Down
3 changes: 2 additions & 1 deletion src/styles/dynamicCmps/progressCmps/_P_Priority.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

.prog-box.with-priority{
padding: none;
padding: 5px;

.progress-priority{
display: flex;
Expand All @@ -10,6 +10,7 @@
border: none;

.color-block{
padding: 0px;
height: 100%;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/styles/dynamicCmps/progressCmps/_P_Status.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

.prog-box.with-status{
padding: none;
padding: 5px;

.progress-status{
display: flex;
Expand All @@ -10,6 +10,7 @@
border: none;

.color-block{
padding: 0px;
height: 100%;
}
}
Expand Down

0 comments on commit cf3b1ac

Please sign in to comment.