diff --git a/frontend/src/Admin/index.tsx b/frontend/src/Admin/index.tsx index 80e3a2b..7b03de9 100644 --- a/frontend/src/Admin/index.tsx +++ b/frontend/src/Admin/index.tsx @@ -87,9 +87,7 @@ type AddUserPopupProps = { const AddUserPopup: React.FC = ({ onAddUser }) => { const { register, handleSubmit, errors, setValue, control } = useForm(); - console.log(errors); const createUser = (data: CreateUserData) => { - console.log(data); onAddUser(data); }; return ( @@ -187,8 +185,6 @@ const AdminRoute = () => { const cacheData: any = client.readQuery({ query: UsersDocument, }); - console.log(cacheData); - console.log(createData); const newData = produce(cacheData, (draftState: any) => { draftState.users = [...draftState.users, { ...createData.data.createUserAccount }]; }); @@ -217,8 +213,6 @@ const AdminRoute = () => { canInviteUser={user.roles.org == 'admin'} onInviteUser={() => {}} onUpdateUserPassword={(user, password) => { - console.log(user); - console.log(password); hidePopup(); }} onDeleteUser={(userID, newOwnerID) => { diff --git a/frontend/src/App/TopNavbar.tsx b/frontend/src/App/TopNavbar.tsx index c28284b..a8bf051 100644 --- a/frontend/src/App/TopNavbar.tsx +++ b/frontend/src/App/TopNavbar.tsx @@ -177,9 +177,6 @@ export const ProjectPopup: React.FC = ({ history, name, proje query: GetProjectsDocument, }); - console.log(cacheData); - console.log(deleteData); - const newData = produce(cacheData, (draftState: any) => { draftState.projects = draftState.projects.filter( (project: any) => project.id !== deleteData.data.deleteProject.project.id, @@ -253,11 +250,9 @@ const GlobalTopNavbar: React.FC = ({ onRemoveFromBoard, nameOnly, }) => { - console.log(popupContent); const { user, setUserRoles, setUser } = useCurrentUser(); const { loading, data } = useMeQuery({ onCompleted: data => { - console.log('me query has completed!'); if (user && user.roles) { setUserRoles({ org: user.roles.org, @@ -311,9 +306,7 @@ const GlobalTopNavbar: React.FC = ({ }; const onOpenSettings = ($target: React.RefObject) => { - console.log('maybe firing popup'); if (popupContent) { - console.log('showing popup'); showPopup($target, popupContent, 185); } }; diff --git a/frontend/src/Profile/index.tsx b/frontend/src/Profile/index.tsx index c582c7e..cb1f26b 100644 --- a/frontend/src/Profile/index.tsx +++ b/frontend/src/Profile/index.tsx @@ -36,7 +36,6 @@ const Projects = () => { ref={$fileUpload} onChange={e => { if (e.target.files) { - console.log(e.target.files[0]); const fileData = new FormData(); fileData.append('file', e.target.files[0]); const accessToken = getAccessToken(); diff --git a/frontend/src/Projects/Project/Board/index.tsx b/frontend/src/Projects/Project/Board/index.tsx index 7fd4c7d..adab8d8 100644 --- a/frontend/src/Projects/Project/Board/index.tsx +++ b/frontend/src/Projects/Project/Board/index.tsx @@ -244,14 +244,12 @@ const ProjectBoard: React.FC = ({ projectID, onCardLabelClick const [toggleTaskLabel] = useToggleTaskLabelMutation({ onCompleted: newTaskLabel => { taskLabelsRef.current = newTaskLabel.toggleTaskLabel.task.labels; - console.log(taskLabelsRef.current); }, }); const onCreateTask = (taskGroupID: string, name: string) => { if (data) { const taskGroup = data.findProject.taskGroups.find(t => t.id === taskGroupID); - console.log(`taskGroup ${taskGroup}`); if (taskGroup) { let position = 65535; if (taskGroup.tasks.length !== 0) { @@ -262,7 +260,6 @@ const ProjectBoard: React.FC = ({ projectID, onCardLabelClick position = Math.ceil(lastTask.position) * 2 + 1; } - console.log(`position ${position}`); createTask({ variables: { taskGroupID, name, position }, optimisticResponse: { diff --git a/frontend/src/Projects/Project/Details/index.tsx b/frontend/src/Projects/Project/Details/index.tsx index 3cfcefb..e325d1a 100644 --- a/frontend/src/Projects/Project/Details/index.tsx +++ b/frontend/src/Projects/Project/Details/index.tsx @@ -144,14 +144,11 @@ const Details: React.FC = ({ cache => produce(cache, draftCache => { const { prevChecklistID, checklistID, checklistItem } = response.data.updateTaskChecklistItemLocation; - console.log(`${checklistID} !== ${prevChecklistID}`); if (checklistID !== prevChecklistID) { const oldIdx = cache.findTask.checklists.findIndex(c => c.id === prevChecklistID); const newIdx = cache.findTask.checklists.findIndex(c => c.id === checklistID); - console.log(`oldIdx ${oldIdx} newIdx ${newIdx}`); if (oldIdx > -1 && newIdx > -1) { const item = cache.findTask.checklists[oldIdx].items.find(item => item.id === checklistItem.id); - console.log(item); if (item) { draftCache.findTask.checklists[oldIdx].items = cache.findTask.checklists[oldIdx].items.filter( i => i.id !== checklistItem.id, @@ -195,7 +192,6 @@ const Details: React.FC = ({ cache => produce(cache, draftCache => { const { checklists } = cache.findTask; - console.log(deleteData); draftCache.findTask.checklists = checklists.filter( c => c.id !== deleteData.data.deleteTaskChecklist.taskChecklist.id, ); @@ -450,10 +446,8 @@ const Details: React.FC = ({ { let position = 65535; - console.log(data.findTask.checklists); if (data.findTask.checklists) { const [lastChecklist] = data.findTask.checklists.slice(-1); - console.log(`lastCheclist ${lastChecklist}`); if (lastChecklist) { position = lastChecklist.position * 2 + 1; } diff --git a/frontend/src/Projects/Project/LabelManagerEditor/index.tsx b/frontend/src/Projects/Project/LabelManagerEditor/index.tsx index 8b50e4c..6291963 100644 --- a/frontend/src/Projects/Project/LabelManagerEditor/index.tsx +++ b/frontend/src/Projects/Project/LabelManagerEditor/index.tsx @@ -84,7 +84,6 @@ const LabelManagerEditor: React.FC = ({ const labels = labelsRef.current ? labelsRef.current : []; const taskLabels = taskLabelsRef && taskLabelsRef.current ? taskLabelsRef.current : []; const [currentTaskLabels, setCurrentTaskLabels] = useState(taskLabels); - console.log(taskLabels); return ( <> hidePopup()}> diff --git a/frontend/src/Projects/Project/index.tsx b/frontend/src/Projects/Project/index.tsx index 453adbe..27800a9 100644 --- a/frontend/src/Projects/Project/index.tsx +++ b/frontend/src/Projects/Project/index.tsx @@ -127,7 +127,6 @@ const Project = () => { const [toggleTaskLabel] = useToggleTaskLabelMutation({ onCompleted: newTaskLabel => { taskLabelsRef.current = newTaskLabel.toggleTaskLabel.task.labels; - console.log(taskLabelsRef.current); }, }); @@ -176,8 +175,6 @@ const Project = () => { FindProjectDocument, cache => produce(cache, draftCache => { - console.log(cache); - console.log(response); draftCache.findProject.members = cache.findProject.members.filter( m => m.id !== response.data.deleteProjectMember.member.id, ); @@ -208,8 +205,6 @@ const Project = () => { ); } if (data) { - console.log(data.findProject); - labelsRef.current = data.findProject.labels; return ( diff --git a/frontend/src/Projects/index.tsx b/frontend/src/Projects/index.tsx index 7b17265..e268ae1 100644 --- a/frontend/src/Projects/index.tsx +++ b/frontend/src/Projects/index.tsx @@ -261,7 +261,6 @@ const Projects = () => { const colors = ['#e362e3', '#7a6ff0', '#37c5ab', '#aa62e3', '#e8384f']; if (data && user) { - console.log(user); const { projects, teams, organizations } = data; const organizationID = organizations[0].id ?? null; const projectTeams = teams @@ -283,7 +282,6 @@ const Projects = () => { }), }; }); - console.log(projectTeams); return ( <> {}} projectID={null} name={null} /> diff --git a/frontend/src/Teams/Members/index.tsx b/frontend/src/Teams/Members/index.tsx index cfeb27b..962b585 100644 --- a/frontend/src/Teams/Members/index.tsx +++ b/frontend/src/Teams/Members/index.tsx @@ -495,7 +495,6 @@ const Members: React.FC = ({ teamID }) => { users={data.users} teamMembers={data.findTeam.members} onAddTeamMember={userID => { - console.log(`team: ${userID}`); createTeamMember({ variables: { userID, teamID } }); }} />, diff --git a/frontend/src/shared/components/Admin/index.tsx b/frontend/src/shared/components/Admin/index.tsx index cb25ec3..45552bc 100644 --- a/frontend/src/shared/components/Admin/index.tsx +++ b/frontend/src/shared/components/Admin/index.tsx @@ -221,7 +221,6 @@ const TeamRoleManagerPopup: React.FC = ({ disabled={!(!hasOwned || (hasOwned && deleteUser))} onClick={() => { if (onDeleteUser) { - console.log(`${!hasOwned} || (${hasOwned} && ${deleteUser})`); if (!hasOwned || (hasOwned && deleteUser)) { onDeleteUser(user.id, deleteUser ? deleteUser.value : null); } diff --git a/frontend/src/shared/components/Checklist/Checklist.stories.tsx b/frontend/src/shared/components/Checklist/Checklist.stories.tsx index feb19c5..c4b34a4 100644 --- a/frontend/src/shared/components/Checklist/Checklist.stories.tsx +++ b/frontend/src/shared/components/Checklist/Checklist.stories.tsx @@ -1,19 +1,19 @@ -import React, {useState} from 'react'; -import {action} from '@storybook/addon-actions'; +import React, { useState } from 'react'; +import { action } from '@storybook/addon-actions'; import BaseStyles from 'App/BaseStyles'; import NormalizeStyles from 'App/NormalizeStyles'; -import {theme} from 'App/ThemeStyles'; +import { theme } from 'App/ThemeStyles'; import produce from 'immer'; -import styled, {ThemeProvider} from 'styled-components'; -import Checklist, {ChecklistItem} from '.'; +import styled, { ThemeProvider } from 'styled-components'; +import Checklist, { ChecklistItem } from '.'; export default { component: Checklist, title: 'Checklist', parameters: { backgrounds: [ - {name: 'gray', value: '#f8f8f8', default: true}, - {name: 'white', value: '#ffffff'}, + { name: 'gray', value: '#f8f8f8', default: true }, + { name: 'white', value: '#ffffff' }, ], }, }; @@ -115,7 +115,6 @@ export const Default = () => { ]); }} onDeleteItem={itemID => { - console.log(`itemID ${itemID}`); setItems(items.filter(item => item.id !== itemID)); }} onChangeItemName={(itemID, currentName) => { @@ -138,7 +137,7 @@ export const Default = () => { key={item.id} wrapperProps={{}} handleProps={{}} - checklistID='id' + checklistID="id" itemID={item.id} name={item.name} complete={item.complete} diff --git a/frontend/src/shared/components/Checklist/index.tsx b/frontend/src/shared/components/Checklist/index.tsx index 8fc9671..23c9061 100644 --- a/frontend/src/shared/components/Checklist/index.tsx +++ b/frontend/src/shared/components/Checklist/index.tsx @@ -566,9 +566,6 @@ const Checklist = React.forwardRef( $name.current.select(); } }, [editting]); - useEffect(() => { - console.log($container); - }, [$container]); return ( diff --git a/frontend/src/shared/components/DropdownMenu/DropdownMenu.stories.tsx b/frontend/src/shared/components/DropdownMenu/DropdownMenu.stories.tsx index 1b4f5ea..f6d1bd4 100644 --- a/frontend/src/shared/components/DropdownMenu/DropdownMenu.stories.tsx +++ b/frontend/src/shared/components/DropdownMenu/DropdownMenu.stories.tsx @@ -35,7 +35,6 @@ export const Default = () => { }); const $buttonRef: any = createRef(); const onClick = () => { - console.log($buttonRef.current.getBoundingClientRect()); setMenu({ isOpen: !menu.isOpen, left: $buttonRef.current.getBoundingClientRect().right, diff --git a/frontend/src/shared/components/DueDateManager/index.tsx b/frontend/src/shared/components/DueDateManager/index.tsx index 084d322..c732ac5 100644 --- a/frontend/src/shared/components/DueDateManager/index.tsx +++ b/frontend/src/shared/components/DueDateManager/index.tsx @@ -149,7 +149,6 @@ const DueDateManager: React.FC = ({ task, onDueDateChange, ]; const { register, handleSubmit, errors, setValue, setError, formState, control } = useForm(); const saveDueDate = (data: any) => { - console.log(data); const newDate = moment(`${data.endDate} ${data.endTime}`, 'YYYY-MM-DD h:mm A'); if (newDate.isValid()) { onDueDateChange(task, newDate.toDate()); @@ -168,7 +167,6 @@ const DueDateManager: React.FC = ({ task, onDueDateChange, /> ); }); - console.log(`textStartDate ${textStartDate}`); return (
diff --git a/frontend/src/shared/components/List/List.stories.tsx b/frontend/src/shared/components/List/List.stories.tsx index 30daa66..d6e6fdc 100644 --- a/frontend/src/shared/components/List/List.stories.tsx +++ b/frontend/src/shared/components/List/List.stories.tsx @@ -60,15 +60,7 @@ export const Default = () => { onExtraMenuOpen={action('extra menu open')} > - { - console.log('close!'); - }} - onCreateCard={name => { - console.log(name); - }} - isOpen={false} - /> + {}} onCreateCard={name => {}} isOpen={false} /> ); @@ -85,15 +77,7 @@ export const WithCardComposer = () => { onExtraMenuOpen={action('extra menu open')} > - { - console.log('close!'); - }} - onCreateCard={name => { - console.log(name); - }} - isOpen - /> + {}} onCreateCard={name => {}} isOpen /> ); @@ -124,15 +108,7 @@ export const WithCard = () => { checklists={{ complete: 1, total: 4 }} dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }} /> - { - console.log('close!'); - }} - onCreateCard={name => { - console.log(name); - }} - isOpen={false} - /> + {}} onCreateCard={name => {}} isOpen={false} /> ); @@ -162,15 +138,7 @@ export const WithCardAndComposer = () => { checklists={{ complete: 1, total: 4 }} dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }} /> - { - console.log('close!'); - }} - onCreateCard={name => { - console.log(name); - }} - isOpen - /> + {}} onCreateCard={name => {}} isOpen /> ); diff --git a/frontend/src/shared/components/PopupMenu/LabelEditor.tsx b/frontend/src/shared/components/PopupMenu/LabelEditor.tsx index 3d69be5..38092cc 100644 --- a/frontend/src/shared/components/PopupMenu/LabelEditor.tsx +++ b/frontend/src/shared/components/PopupMenu/LabelEditor.tsx @@ -59,7 +59,6 @@ const LabelManager = ({ labelColors, label, onLabelEdit, onLabelDelete }: Props) type="submit" onClick={e => { e.preventDefault(); - console.log(currentColor); if (currentColor) { onLabelEdit(label ? label.id : null, currentLabel ?? '', currentColor); } diff --git a/frontend/src/shared/components/PopupMenu/PopupMenu.stories.tsx b/frontend/src/shared/components/PopupMenu/PopupMenu.stories.tsx index 3456d0c..5073051 100644 --- a/frontend/src/shared/components/PopupMenu/PopupMenu.stories.tsx +++ b/frontend/src/shared/components/PopupMenu/PopupMenu.stories.tsx @@ -130,7 +130,6 @@ const OpenLabelsButton = () => { const [currentLabel, setCurrentLabel] = useState(''); const [labels, setLabels] = useState(labelData); const { showPopup, setTab } = usePopup(); - console.log(labels); return ( { isComposerOpen={false} onSaveName={action('on save name')} onOpenComposer={action('on open composer')} - onExtraMenuOpen={(taskGroupID, $targetRef) => console.log(taskGroupID, $targetRef)} + onExtraMenuOpen={(taskGroupID, $targetRef) => {}} > { checklists={{ complete: 1, total: 4 }} dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }} /> - { - console.log('close!'); - }} - onCreateCard={name => { - console.log(name); - }} - isOpen={false} - /> + {}} onCreateCard={name => {}} isOpen={false} /> diff --git a/frontend/src/shared/components/Settings/index.tsx b/frontend/src/shared/components/Settings/index.tsx index 86254c3..4433d0a 100644 --- a/frontend/src/shared/components/Settings/index.tsx +++ b/frontend/src/shared/components/Settings/index.tsx @@ -269,7 +269,6 @@ const ResetPasswordTab: React.FC = ({ onResetPassword }) return ( { - console.log(`${data.password} !== ${data.password_confirm}`); if (data.password !== data.password_confirm) { setError('password', { message: 'Passwords must match!', type: 'error' }); setError('password_confirm', { message: 'Passwords must match!', type: 'error' }); diff --git a/frontend/src/shared/components/TaskDetails/index.tsx b/frontend/src/shared/components/TaskDetails/index.tsx index d19162e..6e0216e 100644 --- a/frontend/src/shared/components/TaskDetails/index.tsx +++ b/frontend/src/shared/components/TaskDetails/index.tsx @@ -247,8 +247,6 @@ const TaskDetails: React.FC = ({ destination, ); const newPosition = getNewDraggablePosition(afterDropDraggables, destination.index); - console.log(droppedGroup); - console.log(`positiion: ${newPosition}`); onChecklistDrop({ ...droppedGroup, position: newPosition }); } else { throw { error: 'task group can not be found' }; @@ -285,7 +283,6 @@ const TaskDetails: React.FC = ({ position: newPosition, }; onChecklistItemDrop(droppedChecklistItem.taskChecklistID, destination.droppableId, newItem); - console.log(newItem); } } };