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

move goal feat (wip) #2067

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

move goal feat (wip) #2067

wants to merge 27 commits into from

Conversation

vinaybadgujar102
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Oct 25, 2024

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

Name Status Preview Updated (UTC)
zinzen ✅ Ready (Inspect) Visit Preview Nov 4, 2024 11:01am

@tijlleenders
Copy link
Owner

Looking good.
Especially interested in the sharing behavior.

Awesome to see you're tackling this complex issue!

{newParentTitle === "Non-shared goal" && (
<div className="warning-message">
<InfoCircleOutlined />
<span>The new parent goal is not shared. Changes will be ignored if accepted.</span>
Copy link
Owner

Choose a reason for hiding this comment

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

In my opinion, sharing should be per goal - independant of what the parent goal is.

If I/you change the parent goal of our shared goal - that should not affect propagation of changes on our shared goal, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is for the situation when child is moved out of the shared goal. the above code is stale.

If I/you change the parent goal of our shared goal - that should not affect propagation of changes on our shared goal, right?

this is handled differently. if we move the root shared alltogether then the suggestion will discarded altogether by the reciever.

Copy link
Owner

@tijlleenders tijlleenders Oct 26, 2024

Choose a reason for hiding this comment

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

Yeah, what I'm saying is that maybe we should be dropping the whole concept of letting shared status depend on some 'root-goal'?

In my view, when you share a goal - all descendants are also shared (or not with opt-out).
From then on out - they are 'autonomous' from each other.

Of course if you delete a tree - all descendants will also be suggested to be deleted - even the ones your partner has moved since the sharing (since they are handled one-by-one). The ones you moved out of the tree will then not be deleted.

Basically, this makes sharing/deleting a tree the equivalent of individually sharing/deleting all goals in the tree. The advantage is that after that you are free to move things around individually without any extra complexity/dependency on other goals.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree that dropping root-goal dependency and treating each goal independently would make the system more flexible and intuitive.

I'll start implementing these changes.

@vinaybadgujar102
Copy link
Collaborator Author

@tijlleenders when there is a change in shared descendant, where should the notification be displayed. root or the parent (if new goal added) / goal itself.

@tijlleenders
Copy link
Owner

@vinaybadgujar102 The idea is that the notification dot travels up the tree to the highest level - just like now.

A possible difference with the current situation is that the dot should not care about sharing when 'travelling up' the tree. It is also realtime (not a property of ancestors) - as things are always moveable.

Does this make sense?
Do you see any problems?

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

Successfully merging this pull request may close these issues.

2 participants