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

allow deleting contacts (WIP) #2086

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

vinaybadgujar102
Copy link
Collaborator

@vinaybadgujar102 vinaybadgujar102 commented Nov 30, 2024

Resolves #1790

Copy link

vercel bot commented Nov 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
zinzen ❌ Failed (Inspect) Dec 15, 2024 7:49am

@vinaybadgujar102 vinaybadgujar102 marked this pull request as draft November 30, 2024 13:16
src/components/GoalsComponents/MyGoal/MyGoal.tsx Outdated Show resolved Hide resolved
Comment on lines 11 to 15
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import GoalDropdown from "./components/GoalDropdown";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <import/order> reported by reviewdog 🐶
@src/common/NotificationSymbol import should occur before import of ../GoalAvatar

Suggested change
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import GoalDropdown from "./components/GoalDropdown";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";
import NotificationSymbol from "@src/common/NotificationSymbol";
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";

Comment on lines 11 to 16
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import GoalDropdown from "./components/GoalDropdown";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";
import CopyIcon from "@src/assets/CopyIcon";
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <import/order> reported by reviewdog 🐶
@src/assets/CopyIcon import should occur before import of ../GoalAvatar

Suggested change
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import GoalDropdown from "./components/GoalDropdown";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";
import CopyIcon from "@src/assets/CopyIcon";
import CopyIcon from "@src/assets/CopyIcon";
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";

Comment on lines 11 to 17
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import GoalDropdown from "./components/GoalDropdown";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";
import CopyIcon from "@src/assets/CopyIcon";
import TriangleIcon from "@src/assets/TriangleIcon";
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <import/order> reported by reviewdog 🐶
@src/assets/TriangleIcon import should occur before import of ../GoalAvatar

Suggested change
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import GoalDropdown from "./components/GoalDropdown";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";
import CopyIcon from "@src/assets/CopyIcon";
import TriangleIcon from "@src/assets/TriangleIcon";
import TriangleIcon from "@src/assets/TriangleIcon";
import GoalAvatar from "../GoalAvatar";
import GoalTitle from "./components/GoalTitle";
import { GoalContainer } from "../ZItemContainer";
import GoalIcon from "./components/GoalIcon";
import NotificationSymbol from "@src/common/NotificationSymbol";
import CopyIcon from "@src/assets/CopyIcon";

@@ -0,0 +1,50 @@
import GoalIcon from "@components/GoalsComponents/MyGoal/components/GoalIcon";
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <import/no-named-as-default> reported by reviewdog 🐶
Using exported name 'GoalIcon' as identifier for default export.

contact: ContactItem;
setSelectedContact: Dispatch<SetStateAction<ContactItem | null>>;
}) => {
const [expandGoalId, setExpandGoalId] = useState("root");
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] <@typescript-eslint/no-unused-vars> reported by reviewdog 🐶
'setExpandGoalId' is assigned a value but never used.

}) => {
const [expandGoalId, setExpandGoalId] = useState("root");

const [isAnimating, setIsAnimating] = useState(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] <@typescript-eslint/no-unused-vars> reported by reviewdog 🐶
'setIsAnimating' is assigned a value but never used.

const { partnersList } = usePartnerContext();

return (
<AppLayout title="contacts" debounceSearch={() => {}}>
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <@typescript-eslint/no-empty-function> reported by reviewdog 🐶
Unexpected empty arrow function.

@vinaybadgujar102
Copy link
Collaborator Author

@tijlleenders what should happen on receiver side when a contact is deleted by a user?

@tijlleenders
Copy link
Owner

tijlleenders commented Nov 30, 2024

@tijlleenders what should happen on receiver side when a contact is deleted by a user?

Interesting question... I see three possible reasons for deleting a contact(device):

  • that contact(device) no longer exists
  • the relationship is broken bilaterally (both parties don't want to share)
  • the relationship is broken unilaterally (only one party doesn't want to share)

Only in the last case there is a reason to:

  • maintain the relationship id
  • possibly inform the other party they are being 'ghosted'

For now, let's not add any extra requirements.
Deleting is one-sided and doesn't affect the other party or the relationship id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow deleting contacts
2 participants